/* ESF.hu - teljes reszponziv dizajn (kiemelve a kezdolap-tervbol + lista/adatlap komponensek) */

:root {
  --ink: #142621;
  --pine: #1f4a3e;
  --pine-2: #2c5f4f;
  --sage: #8aa898;
  --sage-soft: #dbe4d9;
  --clay: #c25a2c;
  --clay-soft: #e8b28f;
  --paper: #eef1e7;
  --paper-raised: #f8f9f3;
  --card-border: #d7ddca;
  --text: #17251f;
  --text-soft: #4b5c51;
  --focus: #1f4a3e;
  --good: #2e7d4f;
  --shadow: 0 18px 40px -22px rgba(20, 38, 33, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pine: #7fbfa4; --pine-2: #9cd3b9; --sage: #4c6558; --sage-soft: #223229;
    --clay: #e79a5d; --clay-soft: #4a3323; --paper: #0f1a16; --paper-raised: #152420;
    --card-border: #24352c; --text: #eaf0e9; --text-soft: #a9bcb0; --focus: #9cd3b9;
    --good: #6cc98e;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --pine: #7fbfa4; --pine-2: #9cd3b9; --sage: #4c6558; --sage-soft: #223229;
  --clay: #e79a5d; --clay-soft: #4a3323; --paper: #0f1a16; --paper-raised: #152420;
  --card-border: #24352c; --text: #eaf0e9; --text-soft: #a9bcb0; --focus: #9cd3b9;
  --good: #6cc98e;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] {
  --pine: #1f4a3e; --pine-2: #2c5f4f; --sage: #8aa898; --sage-soft: #dbe4d9;
  --clay: #c25a2c; --clay-soft: #e8b28f; --paper: #eef1e7; --paper-raised: #f8f9f3;
  --card-border: #d7ddca; --text: #17251f; --text-soft: #4b5c51; --focus: #1f4a3e;
  --good: #2e7d4f;
  --shadow: 0 18px 40px -22px rgba(20, 38, 33, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

/* mobilon nagyobb alap betumeret a jobb olvashatosagert (minden rem-alapu meret ehhez skalazodik) */
@media (max-width: 600px) {
  html { font-size: 18px; }
  body { line-height: 1.55; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.no-data { color: var(--text-soft); font-style: italic; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.site nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text); }
.logo .mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(155deg, var(--pine), var(--pine-2)); display: flex; align-items: center; justify-content: center; flex: none; }
.logo .mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-family: -apple-system, sans-serif; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin-top: 2px; }
.navlinks { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.navlinks a { text-decoration: none; color: var(--text-soft); position: relative; padding: 4px 0; }
.navlinks a:hover, .navlinks a.active { color: var(--text); }
.navlinks a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--clay); border-radius: 2px; }
.navcta-wrap { display: none; }
@media (min-width: 880px) { .navcta-wrap { display: flex; align-items: center; gap: 20px; margin-left: 28px; padding-left: 28px; border-left: 1px solid var(--card-border); } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--clay); color: #fff8f2; }
.btn-primary:hover { background: color-mix(in srgb, var(--clay) 88%, black); }
.btn-ghost { background: transparent; border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--pine); }
@media (max-width: 879px) { .navlinks { display: none; } }

/* hamburger + mobil menu */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--card-border);
  border-radius: 10px; background: var(--paper-raised); cursor: pointer; flex: none;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 879px) { .hamburger { display: flex; } }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 12px 28px 20px;
  border-top: 1px solid var(--card-border); background: var(--paper-raised);
}
.mobile-nav.open { display: flex; }
@media (min-width: 880px) { .mobile-nav { display: none !important; } }
.mobile-navlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-navlinks a { display: block; padding: 12px 4px; text-decoration: none; color: var(--text); font-size: 1rem; border-bottom: 1px solid var(--card-border); }
.mobile-navlinks a.active { color: var(--pine); font-weight: 700; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- hero: full-bleed photo (fooldal) ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fdfaf3; overflow: clip; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,26,22,0.92) 0%, rgba(15,26,22,0.82) 28%, rgba(15,26,22,0.45) 52%, rgba(15,26,22,0.12) 72%, rgba(15,26,22,0.28) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 70px; width: 100%; }
.hero-content { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: #eef1e7;
  background: rgba(238,241,231,0.14); border: 1px solid rgba(238,241,231,0.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); line-height: 1.1; letter-spacing: -0.01em; color: #fdfaf3; }
.hero h1 em { font-style: normal; color: var(--clay-soft); }
.hero p.lede { margin-top: 20px; font-size: 1.06rem; line-height: 1.6; color: rgba(238,241,231,0.85); max-width: 50ch; }

.search-card { margin-top: 34px; background: rgba(248,249,243,0.96); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.search-card .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
@media (max-width: 620px) { .search-card .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-soft); }
.field select, .field input[type="text"] {
  appearance: none; -webkit-appearance: none; font-size: 0.96rem;
  padding: 12px 38px 12px 14px; border-radius: 12px; border: 1px solid var(--card-border);
  background: var(--paper); color: var(--text); cursor: pointer;
}
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9"><path d="M1 1l6 6 6-6" stroke="%234b5c51" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center;
}
.search-card .go .btn { width: 100%; justify-content: center; padding: 13px 22px; }
.hero-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 0.7rem; color: rgba(238,241,231,0.55); }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { color: var(--pine); background: var(--sage-soft); border-color: transparent; display: inline-flex; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 14px; }
.section-head p { margin-top: 12px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.6; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 18px; padding: 26px 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; transition: transform 0.15s ease, border-color 0.15s ease; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--pine); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-soft); color: var(--pine); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { font-family: -apple-system, sans-serif; font-size: 1.05rem; font-weight: 700; }
.cat-card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.5; }
.cat-card .go-link { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; }

.strip { background: var(--pine); color: var(--paper-raised); border-radius: 24px; padding: 40px 36px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; } }
.strip-item h3 { font-family: -apple-system, sans-serif; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.strip-item p { margin-top: 6px; color: color-mix(in srgb, var(--paper-raised) 78%, transparent); font-size: 0.92rem; line-height: 1.5; }

/* ---------- footer ---------- */
footer.site { margin-top: 40px; background: var(--paper-raised); border-top: 1px solid var(--card-border); }
.footer-hero { position: relative; min-height: 420px; display: flex; align-items: center; color: #fdfaf3; overflow: clip; }
.footer-photo { position: absolute; inset: 0; z-index: 0; }
.footer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.footer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(260deg, rgba(15,26,22,0.92) 0%, rgba(15,26,22,0.8) 30%, rgba(15,26,22,0.35) 58%, rgba(15,26,22,0.15) 100%); }
.footer-hero-inner { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; max-width: 520px; }
.footer-hero-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fdfaf3; }
.footer-hero-inner p { margin-top: 14px; color: rgba(238,241,231,0.85); line-height: 1.6; max-width: 46ch; }
.footer-hero-inner .btn { margin-top: 22px; }
.footer-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 0.7rem; color: rgba(238,241,231,0.55); }

.footer-cols { border-top: 1px solid var(--card-border); padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-cols ul a { text-decoration: none; color: var(--text); }
.footer-cols ul a:hover { color: var(--pine); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; max-width: 32ch; }

.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 20px; padding-bottom: 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: var(--text-soft); }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { text-decoration: none; }
.footer-bottom .legal a:hover { color: var(--pine); }

/* ---------- "Hamarosan..." placeholder oldalak (impresszum, adatvedelem) ---------- */
.soon-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 60px; padding-bottom: 60px; }
.soon-page h1 { font-size: 2rem; }
.soon-page p { margin-top: 10px; color: var(--text-soft); }
.soon-page .btn { margin-top: 24px; }

/* ---------- belso oldalak: page header, breadcrumb ---------- */
.page-header { padding-top: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--card-border); }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--pine); }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-header p { margin-top: 10px; color: var(--text-soft); max-width: 65ch; }

/* ---------- kereso/szuro sav (lista oldalak) ---------- */
.filter-bar { background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px; margin: 28px 0; }
.filter-bar form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: center; }
@media (max-width: 700px) {
  .filter-bar form { grid-template-columns: 1fr; gap: 14px; }
  .filter-bar button { width: 100%; justify-content: center; }
}
.filter-bar input[type="text"], .filter-bar select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--card-border);
  background: var(--paper); color: var(--text);
}
.results-meta { color: var(--text-soft); font-size: 0.92rem; margin: 18px 0; }

/* ---------- eredmeny kartyak (lista.php) ---------- */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .result-grid { grid-template-columns: 1fr; } }
.result-card { background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.result-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); color: var(--pine); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex: none; }
.result-card h3 { font-family: -apple-system, sans-serif; font-size: 1.05rem; font-weight: 700; }
.result-card .meta { color: var(--text-soft); font-size: 0.9rem; }
.result-card .badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-ugyelet { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.badge-varmegye { background: var(--sage-soft); color: var(--pine); }
.btn-details { margin-top: auto; align-self: flex-start; background: var(--pine); color: var(--paper-raised); }
.btn-details:hover { background: var(--pine-2); }

/* ---------- lapozo ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--card-border); text-decoration: none; color: var(--text); font-size: 0.9rem; }
.pagination a:hover { border-color: var(--pine); }
.pagination .current { background: var(--pine); color: var(--paper-raised); border-color: var(--pine); font-weight: 700; }

/* ---------- adatlap (detail) ---------- */
.detail-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 40px 0 24px; }
.detail-title-block { display: flex; gap: 16px; align-items: flex-start; }
.detail-avatar { width: 60px; height: 60px; border-radius: 16px; background: var(--sage-soft); color: var(--pine); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.detail-title h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.detail-title .doctor-name, .detail-title .doctor-specialty { margin-top: 6px; font-size: 0.92rem; color: var(--text-soft); }
.detail-actions { display: flex; gap: 10px; margin-left: auto; }
.share-btn, .route-btn { background: var(--paper-raised); border: 1px solid var(--card-border); color: var(--text); }
.share-btn:hover, .route-btn:hover { border-color: var(--pine); }
.share-btn--copied { background: var(--good); color: #fff; border-color: var(--good); }

.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-bottom: 60px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid--single { grid-template-columns: 1fr; max-width: 640px; }
.detail-section { background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 18px; padding: 26px; margin-bottom: 20px; }
.detail-section h2 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card-border); font-size: 0.94rem; }
.contact-row:last-child { border-bottom: none; }
.contact-row .label { color: var(--text-soft); }

.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.schedule-table th, .schedule-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--card-border); }
.schedule-table tr.today { background: var(--sage-soft); }
.schedule-today-badge { display: inline-block; background: var(--pine); color: var(--paper-raised); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 8px; }

.phone-reveal { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-soft); color: var(--pine); border: none; border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.phone-reveal:hover { background: color-mix(in srgb, var(--sage-soft) 70%, var(--pine) 10%); }

.data-freshness { display: inline-block; font-size: 0.8rem; color: var(--text-soft); background: var(--paper); border: 1px solid var(--card-border); padding: 5px 12px; border-radius: 999px; margin-top: 6px; }

.map-embed { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; overflow: hidden; }

@media (max-width: 600px) {
  .detail-title h1 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .detail-title .doctor-name, .detail-title .doctor-specialty { font-size: 1rem; }
  .detail-section h2 { font-size: 1.2rem; }
  .contact-row { font-size: 1.05rem; padding: 13px 0; gap: 16px; }
  .schedule-table { font-size: 1.05rem; }
  .schedule-table th, .schedule-table td { padding: 12px 6px; }
  .breadcrumb { font-size: 0.95rem; }
  .page-header p { font-size: 1.05rem; }
  .phone-reveal { font-size: 0.95rem; padding: 10px 16px; }
  .data-freshness { font-size: 0.88rem; }
}

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 540px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- megye bongeszo (fooldal accordion) ---------- */
.county-browser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .county-browser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .county-browser { grid-template-columns: 1fr; } }
.county-browser-item { background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.county-browser-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.county-browser-item summary::-webkit-details-marker { display: none; }
.county-browser-panel { padding: 0 18px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.county-pill { font-size: 0.82rem; background: var(--sage-soft); color: var(--pine); padding: 5px 12px; border-radius: 999px; text-decoration: none; }

/* ---------- autocomplete ---------- */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--paper-raised); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; display: none; }
.autocomplete-list.open { display: block; }
.autocomplete-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--sage-soft); }
.autocomplete-item .sub { color: var(--text-soft); font-size: 0.8rem; }

@media (max-width: 600px) {
  .cat-card p { font-size: 0.98rem; }
  .result-card h3 { font-size: 1.12rem; }
  .result-card .meta { font-size: 1rem; }
  .results-meta { font-size: 0.98rem; }
  .footer-cols ul { font-size: 1rem; }
  .footer-brand p { font-size: 0.98rem; }
  .badge { font-size: 0.82rem; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 60px; padding-bottom: 60px; gap: 12px; }
.error-page .code { font-family: Georgia, serif; font-size: 4rem; color: var(--pine); }
