/* =========================================================================
   Sayfaya özgü stiller
   ========================================================================= */

/* --- Ana sayfa kahraman alanı --- */
.hero {
    position: relative;
    padding-block: var(--sp-16) var(--sp-12);
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand-400) 16%, transparent), transparent 70%),
        radial-gradient(40% 60% at 85% 20%, color-mix(in srgb, var(--accent-400) 10%, transparent), transparent 70%);
    pointer-events: none;
}
.hero > * { position: relative; }

.hero__title {
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, var(--text-3xl));
    letter-spacing: -0.028em;
    margin-bottom: var(--sp-3);
}
.hero__lead {
    color: var(--text-muted);
    font-size: var(--text-lg);
    max-width: 56ch;
    margin: 0 auto var(--sp-8);
}
.hero__search { max-width: 640px; margin: 0 auto; }
.hero__hint {
    margin-top: var(--sp-4);
    font-size: var(--text-sm);
    color: var(--text-subtle);
}
.hero__hint a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.hero__hint a:hover { color: var(--link); }

/* Ana sayfa bölümleri */
.section { margin-top: var(--sp-12); }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.section__title { font-size: var(--text-xl); }
.section__link { font-size: var(--text-sm); font-weight: 550; }

/* --- İlaç detay sayfası --- */
.drug-hero { margin-bottom: var(--sp-6); }
.drug-hero__title {
    font-size: clamp(1.375rem, 1.1rem + 1.2vw, var(--text-2xl));
    margin-bottom: var(--sp-3);
}
.drug-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.drug-hero__meta a { font-weight: 550; }

/* Tanıtım paragrafı: özgün metin + resmî belgeden alıntı */
.drug-intro { margin-top: var(--sp-6); }

.drug-intro__lead {
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    color: var(--text);
}

.drug-intro__quote {
    margin: var(--sp-4) 0 0;
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--radius);
}
.drug-intro__quote p {
    margin: 0;
    color: var(--text-muted);
    line-height: var(--leading-normal);
}
.drug-intro__quote cite {
    display: block;
    margin-top: var(--sp-3);
    font-size: var(--text-xs);
    font-style: normal;
    color: var(--text-subtle);
}

.drug-section { margin-top: var(--sp-6); }
.drug-section__title {
    font-size: var(--text-lg);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}

/* Kaynak metinlerin (etken madde özeti) güvenli tipografisi */
.prose { line-height: var(--leading-normal); color: var(--text-muted); }
.prose p { margin-bottom: var(--sp-3); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 620; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose br { content: ""; display: block; margin-bottom: var(--sp-1); }

/* Yan menü (detay sayfası) */
.side-menu { display: flex; flex-direction: column; }
.side-menu__item {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 550;
    transition: background var(--transition), color var(--transition);
}
.side-menu__item:last-child { border-bottom: 0; }
.side-menu__item:hover { background: var(--surface-hover); color: var(--link); }
.side-menu__item.is-active {
    color: var(--brand-700);
    background: var(--brand-50);
    box-shadow: inset 3px 0 0 var(--brand-500);
}
:root[data-theme="dark"] .side-menu__item.is-active {
    color: var(--brand-300);
    background: var(--bg-sunken);
}

/* --- Firma / etken madde dizin sayfaları --- */
.index-list {
    columns: 3 260px;
    column-gap: var(--sp-8);
}
.index-list__item {
    break-inside: avoid;
    padding-block: var(--sp-2);
    border-bottom: 1px solid var(--border);
}
.index-list__item a { color: var(--text-muted); font-size: var(--text-base); }
.index-list__item a:hover { color: var(--link); }
.index-list__count {
    color: var(--text-subtle);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
    margin-left: var(--sp-2);
}

/* --- ATC dizin --- */
.atc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-3);
}
.atc-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.atc-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.atc-item__code {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--brand-500) 12%, transparent);
    color: var(--brand-700);
    font-weight: 700;
    font-size: var(--text-md);
}
:root[data-theme="dark"] .atc-item__code { color: var(--brand-300); }
.atc-item__name {
    font-weight: 550;
    color: var(--text);
    line-height: var(--leading-snug);
    font-size: var(--text-base);
}
.atc-item__count { font-size: var(--text-xs); color: var(--text-subtle); margin-top: 2px; }

/* --- Statik içerik sayfaları --- */
.static-page { max-width: 68ch; }
.static-page h2 {
    font-size: var(--text-lg);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-3);
}
.static-page h2:first-of-type { margin-top: var(--sp-6); }
.static-page p { margin-bottom: var(--sp-4); color: var(--text-muted); }
.static-page ul {
    list-style: disc;
    padding-left: var(--sp-5);
    margin-bottom: var(--sp-4);
    color: var(--text-muted);
}
.static-page li { margin-bottom: var(--sp-2); }

/* --- Hata sayfası --- */
.error-page {
    text-align: center;
    padding-block: var(--sp-16);
}
.error-page__code {
    font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--brand-600);
    opacity: 0.25;
}
.error-page__title { margin-block: var(--sp-4) var(--sp-3); }
.error-page__text { color: var(--text-muted); margin-bottom: var(--sp-8); }
.error-page__search { max-width: 480px; margin: 0 auto var(--sp-6); }

/* --- Haberler --- */
.post-list {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }

.post-card__title {
    font-size: var(--text-md);
    line-height: var(--leading-snug);
    color: var(--text);
    margin-bottom: var(--sp-2);
}
.post-card__link:hover .post-card__title { color: var(--link); }

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-xs);
    color: var(--text-subtle);
    margin-bottom: var(--sp-3);
}

.post-card__summary {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.post-lead {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: var(--leading-normal);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

/* Yazı gövdesi tipografisi */
.post-body { line-height: var(--leading-normal); color: var(--text-muted); }
.post-body h2 {
    font-size: var(--text-lg);
    color: var(--text);
    margin: var(--sp-8) 0 var(--sp-3);
}
.post-body h3 { font-size: var(--text-md); color: var(--text); margin: var(--sp-6) 0 var(--sp-2); }
.post-body p { margin-bottom: var(--sp-4); }
.post-body ul, .post-body ol { margin-bottom: var(--sp-5); }
.post-body ul li, .post-body ol li {
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
}
.post-body ul li:last-child, .post-body ol li:last-child { border-bottom: 0; }
.post-body li a { font-weight: 550; }
.post-body li span { color: var(--text-subtle); font-size: var(--text-sm); }
.post-body blockquote {
    margin: var(--sp-5) 0;
    padding-left: var(--sp-5);
    border-left: 3px solid var(--brand-500);
    color: var(--text-muted);
}
.post-body em { color: var(--text-subtle); font-size: var(--text-sm); }

/* --- Haber görselleri --- */
.post-card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card--media > :not(.post-card__media) { padding-inline: var(--sp-5); }
.post-card--media > .post-card__link { padding-top: var(--sp-4); }
.post-card--media > :last-child { padding-bottom: var(--sp-5); }

.post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bg-sunken);
    overflow: hidden;
}
.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-cover {
    margin: 0 0 var(--sp-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
}
.post-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Yönetim formunda mevcut kapak önizlemesi */
.cover-preview {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
    padding: var(--sp-3);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.cover-preview img {
    width: 140px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.cover-preview span { font-size: var(--text-xs); color: var(--text-subtle); }

/* ============================================================
   Nöbetçi eczaneler
   ============================================================ */

/* --- İl seçimi --- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-4);
    margin: var(--sp-6) 0 var(--sp-10);
}
.city-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    transition: all var(--transition);
}
.city-card:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.city-card--muted { opacity: .62; }
.city-card__link {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-5);
}
.city-card__name { font-size: var(--text-lg); font-weight: 600; color: var(--text); }
.city-card__meta { font-size: var(--text-sm); color: var(--text-muted); }

/* --- İlçe şeridi --- */
.chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
}
.chip--active {
    background: var(--brand-50);
    border-color: var(--brand-300);
    color: var(--link);
}

/* Öneri listesinde grup başlığı (İlaçlar / Etkin Maddeler / ATC). */
.search__group {
    margin: 0;
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 620;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--n-50, rgba(0,0,0,.03));
    border-top: 1px solid var(--border);
}
.search__group:first-child { border-top: 0; }

/* --- Arama süzme paneli --- */
.filter-bar {
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.filter-bar__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--sp-3);
}
.filter-bar label { display: block; min-width: 0; }
.filter-bar label > span {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}
.filter-bar select,
.filter-bar input[type="number"] {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    background: var(--surface, transparent);
    color: inherit;
    font: inherit;
}
.filter-bar__range { display: flex; gap: var(--sp-2); }
.filter-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}
.filter-bar__note { font-size: var(--text-sm); color: var(--text-muted); }

/* --- Resmî belge: bölüm gezintisi ve metin --- */
.doc-toc {
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.doc-toc__label { font-weight: 620; margin: 0 0 var(--sp-2); }
.doc-toc__list { margin: 0 0 var(--sp-4); padding-left: 1.2rem; }
.doc-toc__list li { margin: 2px 0; }
.doc-search { display: block; }
.doc-search__label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}
.doc-search input {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    background: var(--surface, transparent);
    color: inherit;
    font: inherit;
}
.doc-search__status {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--sp-2) 0 0;
    min-height: 1.2em;
}

/* Resmî metin: okunabilirlik için ölçülü satır uzunluğu, ama içerik
   değiştirilmez — yalnızca satır sonları korunur. */
.doc-text__section { margin-bottom: var(--sp-6); scroll-margin-top: var(--sp-6); }
.doc-text__title {
    font-size: var(--text-md);
    font-weight: 620;
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-3);
}
.doc-text__body { max-width: 74ch; line-height: 1.65; }
.doc-text__body mark { background: var(--warn-100, #fff3bf); color: inherit; }
.doc-text__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 74ch;
    margin: var(--sp-4) 0;
}
.doc-pdf-toggle { margin: var(--sp-4) 0; }
.doc-pdf-toggle summary { cursor: pointer; font-weight: 620; }

/* --- İlaç karşılaştırma --- */
.compare-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-4);
    align-items: end;
    margin-bottom: var(--sp-6);
}
.compare-picker__slot { position: relative; min-width: 0; }
.compare-picker__slot label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}
.compare-picker__input {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    background: var(--surface, transparent);
    color: inherit;
    font: inherit;
}
.compare-picker__results {
    position: absolute;
    z-index: 20;
    left: 0; right: 0;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    max-height: 16rem;
    overflow-y: auto;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.compare-picker__results button {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--sp-2) var(--sp-3);
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.compare-picker__results button:hover,
.compare-picker__results button:focus { background: var(--n-100, rgba(0,0,0,.05)); }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
    padding: var(--sp-3);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
}
.compare-table thead th { font-weight: 620; }
/* İlk sütun sabit: yatay kaydırırken hangi satırda olduğun kaybolmasın. */
.compare-table th[scope="row"], .compare-table thead th:first-child {
    position: sticky;
    left: 0;
    background: var(--bg, #fff);
    font-weight: 620;
    min-width: 8.5rem;
}
/* Fark işareti RENGE BAĞLI DEĞİL: sol kenar çizgisi renk körlüğünde de
   okunur, ayrıca altındaki not işaretin ne anlama geldiğini yazıyor. */
.compare-table tr.is-diff th[scope="row"] { box-shadow: inset 3px 0 0 var(--brand-500, currentColor); }
.compare-note, .compare-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--sp-3);
    max-width: 70ch;
}

/* --- Etkin madde / ATC veri merkezi --- */
.entity-stats { margin-bottom: var(--sp-6); }
.entity-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-4);
}
.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: var(--sp-4);
    background: var(--surface, transparent);
}
.stat-card--wide { margin-top: var(--sp-4); }
.stat-card__title {
    font-size: var(--text-md);
    font-weight: 620;
    margin: 0 0 var(--sp-3);
}
.stat-card__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--sp-3) 0 0;
    max-width: 70ch;
}

.stat-bars { list-style: none; margin: 0; padding: 0; }
.stat-bars__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem auto;
    align-items: center;
    gap: var(--sp-2);
    padding: 2px 0;
    font-size: var(--text-sm);
}
.stat-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bars__track {
    background: var(--border);
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
}
.stat-bars__fill {
    display: block;
    height: 100%;
    background: var(--brand-500, currentColor);
    border-radius: 99px;
}
.stat-bars__count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Firma özet şeridi: dört sayı, kart çerçevesi olmadan. */
.company-summary {
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: var(--sp-4);
}
.company-summary dd { font-size: var(--text-lg, 1.125rem); }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}
.link-list li:last-child { border-bottom: 0; }
.link-list a { flex: 1 1 auto; min-width: 0; }
.link-list__code {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    margin-right: var(--sp-2);
}
.link-list__name { }
.link-list__count {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--sp-3);
    margin: 0;
}
.price-stats dt { font-size: var(--text-sm); color: var(--text-muted); }
.price-stats dd {
    margin: 2px 0 0;
    font-weight: 620;
    font-variant-numeric: tabular-nums;
}

/* Dar ekranda etiket sütunu daralıp çubuk kaybolmasın. */
@media (max-width: 420px) {
    .stat-bars__row { grid-template-columns: minmax(0, 1fr) 3rem auto; }
}

/* --- Değişiklik günlüğü, veri kaynakları, fiyat trendi --- */
.drug-section__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--sp-3);
    max-width: 62ch;
}
.change-list { list-style: none; padding: 0; margin: 0; }
.change-list__item {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
}
.change-list__item:last-child { border-bottom: 0; }
.change-list__date {
    flex: 0 0 auto;
    min-width: 6.5rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-size: var(--text-sm);
}
.change-list__text { flex: 1 1 auto; }

.source-list { margin: 0; }
.source-list__label {
    font-weight: 620;
    margin-top: var(--sp-3);
}
.source-list__value {
    margin: 0 0 var(--sp-2);
    color: var(--text-muted);
}
.source-list__note { display: block; font-size: var(--text-sm); }

/* Zam kırmızı, indirim yeşil DEĞİL: renk tek başına anlam taşımamalı,
   işaret (+/−) zaten metinde. Renk yalnızca destekleyici. */
.trend { font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend--up   { color: var(--danger, #b42318); }
.trend--down { color: var(--success, #067647); }

/* Geniş tablolar telefonda taşmasın; sayfa gövdesi yatay kaymamalı. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Eczane kartları --- */
.pharm-section { margin-bottom: var(--sp-8); }
.pharm-section__title {
    font-size: var(--text-md);
    font-weight: 620;
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}
/* Kaynağın ilçe vermediği kayıtların bölüm açıklaması. */
.pharm-section__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: calc(var(--sp-3) * -1) 0 var(--sp-4);
    max-width: 62ch;
}
.pharm-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--sp-4);
}
.pharm-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}
.pharm-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
}
.pharm-card__name { font-size: var(--text-base); font-weight: 620; color: var(--text); }
.pharm-card__district {
    flex: none;
    font-size: var(--text-xs);
    color: var(--text-subtle);
}
.pharm-card__address,
.pharm-card__directions,
.pharm-card__until {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    color: var(--text-muted);
}
.pharm-card__directions { color: var(--text-subtle); font-style: italic; }
.pharm-card__until { color: var(--rx-turuncu-fg); }
.pharm-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: auto;
    padding-top: var(--sp-2);
}
/* Telefon numarası mobilde tek dokunuşla aranır; hedef alan küçülmemeli. */
.btn--sm {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-sm);
    min-height: 38px;
}

/* --- Kaynak ve tazelik --- */
.source-line {
    font-size: var(--text-sm);
    color: var(--text-subtle);
    margin-top: var(--sp-2);
}
.source-line a { color: var(--text-muted); text-decoration: underline; }
.notice__title { font-weight: 620; color: var(--text); margin-bottom: var(--sp-2); }
.region-line { margin-top: var(--sp-4); font-size: var(--text-sm); }
.muted { color: var(--text-subtle); }

@media (max-width: 560px) {
    .pharm-list, .city-grid { grid-template-columns: 1fr; }
}

/* --- İlaç kutusu fotoğrafı --- */
.drug-hero__photo {
    flex: none;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;           /* kutu fotoğrafları beyaz zeminli çekiliyor */
    overflow: hidden;
}
.drug-hero__photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 560px) {
    .drug-hero__photo { width: 84px; height: 84px; }
}

/* Liste satırlarındaki kutu fotoğrafı — form ikonuyla AYNI ölçüde olmalı,
   yoksa fotoğraflı ve fotoğrafsız satırlar farklı hizalanır. */
.drug-row__photo {
    flex: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}
.drug-row__photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================================
   Veri tabloları (ilaç güvenliği listeleri)
   ============================================================ */

/* Sarmalayıcı ZORUNLU: geniş tablo telefonda sayfayı yatay kaydırır ve
   içerik kesilir. Kaydırma tablonun KENDİ kutusunda olmalı, sayfada değil. */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    margin-bottom: var(--sp-6);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 640px;          /* altında sütunlar okunmaz hale geliyor */
}
.data-table th,
.data-table td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.data-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-sunken);
    font-weight: 620;
    color: var(--text-muted);
    white-space: nowrap;
    z-index: 1;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table__sub {
    display: block;
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--text-subtle);
}
