/* ============================================================
   ΓΥΜΝΑΣΙΟ ΝΟΣΟΚΟΜΕΙΟΥ ΠΑΙΔΩΝ — Stylesheet
   Warm-formal palette: deep navy + terracotta + cream
   ============================================================ */

:root {
  /* Palette */
  --ink:        oklch(0.22 0.03 245);
  --ink-soft:   oklch(0.38 0.025 245);
  --muted:      oklch(0.55 0.02 245);
  --line:       oklch(0.88 0.012 80);
  --line-soft:  oklch(0.93 0.01 80);

  --bg:         oklch(0.985 0.012 85);
  --bg-warm:    oklch(0.96 0.018 80);
  --surface:    oklch(1 0 0);
  --surface-2:  oklch(0.97 0.012 80);

  --primary:        oklch(0.38 0.07 235);
  --primary-soft:   oklch(0.92 0.025 235);
  --primary-ink:    oklch(0.28 0.06 235);

  --accent:         oklch(0.62 0.13 42);
  --accent-soft:    oklch(0.94 0.04 42);
  --accent-ink:     oklch(0.45 0.12 42);

  --leaf:           oklch(0.55 0.09 145);
  --leaf-soft:      oklch(0.93 0.03 145);

  /* Type */
  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --rad: 14px;
  --rad-sm: 8px;
  --rad-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,30,50,0.04), 0 1px 3px rgba(20,30,50,0.05);
  --shadow-md: 0 4px 12px rgba(20,30,50,0.06), 0 2px 4px rgba(20,30,50,0.04);
  --shadow-lg: 0 16px 40px rgba(20,30,50,0.08), 0 4px 12px rgba(20,30,50,0.05);

  --nav-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
  padding: 48px 0 80px;
}

@media (max-width: 720px) {
  main { padding: 24px 0 60px; }
  .container { padding: 0 18px; }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
}
.brand-name {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--rad-sm);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-warm); color: var(--ink); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); }

.nav-item .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 60;
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.submenu a, .submenu button {
  display: block;
  padding: 8px 12px;
  border-radius: var(--rad-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.submenu a:hover, .submenu button:hover {
  background: var(--bg-warm);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .brand-sub { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(20,30,50,0.4);
  z-index: 100;
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: var(--surface);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.mobile-drawer .nav-link { padding: 12px 14px; font-size: 1rem; }
.mobile-drawer .submenu-mobile {
  padding-left: 14px;
  border-left: 2px solid var(--line);
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.mobile-drawer .submenu-mobile .nav-link { padding: 8px 12px; font-size: 0.9rem; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(800px 400px at 10% 110%, var(--accent-soft) 0%, transparent 55%),
    var(--bg-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 400;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-card-art {
  height: 180px;
  border-radius: var(--rad);
  background:
    repeating-linear-gradient(135deg, var(--primary-soft) 0 16px, var(--accent-soft) 16px 32px);
  opacity: 0.7;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero-card-art::after {
  content: "Φωτογραφία σχολείου";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.5);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  padding: 12px 14px;
  background: var(--bg-warm);
  border-radius: var(--rad);
}
.hero-stat strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  display: block;
  color: var(--primary);
}
.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-ink); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 6px 0 0; }
.section-head .eyebrow { margin: 0; }

/* ============================================================
   NEWS / ANNOUNCEMENTS
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.news-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.news-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-ink) 100%);
  color: #fff;
  border: none;
}
.news-card.featured .news-meta,
.news-card.featured h3,
.news-card.featured p { color: #fff; }
.news-card.featured .news-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.news-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-tag {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.news-tag.announce { background: var(--primary-soft); color: var(--primary-ink); }
.news-tag.event { background: var(--leaf-soft); color: var(--leaf); }
.news-card h3 { margin: 0; }
.news-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

@media (max-width: 720px) {
  .news-card.featured { grid-column: span 1; }
}

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */

.page-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-header .breadcrumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb a:hover { color: var(--primary); }
.page-header h1 { margin: 0 0 12px; }
.page-header p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   PROSE / CONTENT
   ============================================================ */

.prose {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ============================================================
   TEACHERS GRID
   ============================================================ */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.teacher-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px;
  text-align: center;
}
.teacher-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--bg-warm);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 600;
  position: relative;
}
.teacher-avatar::after {
  content: "";
  position: absolute; inset: -3px;
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
}
.teacher-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.teacher-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.teacher-bio {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   ACTIVITIES & GENERIC CARDS
   ============================================================ */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.activity-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.activity-art {
  height: 140px;
  background: repeating-linear-gradient(45deg, var(--bg-warm) 0 10px, var(--surface-2) 10px 20px);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.activity-art-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.activity-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.activity-body h3 { margin: 0; font-size: 1.05rem; }
.activity-body p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.activity-meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   TABLE / SCHEDULE
   ============================================================ */

.schedule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}
.schedule table {
  width: 100%;
  border-collapse: collapse;
}
.schedule th, .schedule td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.schedule th {
  background: var(--bg-warm);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
.schedule tr:last-child td { border-bottom: none; }
.schedule td:first-child {
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
  width: 140px;
}

/* ============================================================
   LIBRARY
   ============================================================ */

.library-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.book {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-cover {
  aspect-ratio: 2/3;
  border-radius: var(--rad-sm);
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-ink) 100%);
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--serif);
  position: relative;
  overflow: hidden;
}
.book-cover.alt-1 { background: linear-gradient(160deg, var(--accent) 0%, var(--accent-ink) 100%); }
.book-cover.alt-2 { background: linear-gradient(160deg, var(--leaf) 0%, oklch(0.42 0.08 145) 100%); }
.book-cover.alt-3 { background: linear-gradient(160deg, oklch(0.35 0.06 280) 0%, oklch(0.25 0.06 280) 100%); }
.book-cover::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: rgba(0,0,0,0.2);
}
.book-cover-title { font-size: 0.95rem; line-height: 1.2; font-weight: 600; }
.book-cover-author { font-size: 0.7rem; opacity: 0.85; font-family: var(--sans); letter-spacing: 0.04em; }
.book h4 { margin: 0; font-size: 0.92rem; }
.book-meta { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   LINKS / LEGISLATION
   ============================================================ */

.link-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.link-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 16px 20px;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.link-row:hover {
  border-color: var(--primary);
  transform: translateX(2px);
  color: var(--ink);
}
.link-icon {
  width: 38px; height: 38px;
  border-radius: var(--rad-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--serif);
  flex-shrink: 0;
}
.link-content { flex: 1; min-width: 0; }
.link-content strong { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 2px; }
.link-content span { color: var(--muted); font-size: 0.85rem; }
.link-arrow { color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
}
.info-card h3 { margin: 0 0 16px; }
.info-row {
  display: flex; gap: 14px; align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row:last-child { border-bottom: none; }
.info-row .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 80px;
  padding-top: 2px;
}
.info-row .value { color: var(--ink); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
  background: var(--ink);
  color: oklch(0.85 0.012 245);
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: oklch(0.78 0.012 245); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; color: oklch(0.78 0.012 245); max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid oklch(0.32 0.025 245);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: oklch(0.65 0.012 245);
}
.footer-bottom button {
  background: transparent;
  border: 1px solid oklch(0.32 0.025 245);
  color: oklch(0.85 0.012 245);
  padding: 6px 12px;
  border-radius: var(--rad-sm);
  font-size: 0.82rem;
  font-family: inherit;
}
.footer-bottom button:hover { color: #fff; border-color: oklch(0.85 0.012 245); }

/* ============================================================
   ADMIN
   ============================================================ */

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
@media (max-width: 880px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--ink);
  color: oklch(0.85 0.012 245);
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.admin-sidebar .brand {
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid oklch(0.32 0.025 245);
}
.admin-sidebar .brand .brand-name { color: #fff; font-size: 0.95rem; }
.admin-sidebar .brand .brand-sub { color: oklch(0.7 0.012 245); }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--rad-sm);
  font-size: 0.92rem;
  background: transparent;
  border: none;
  color: oklch(0.85 0.012 245);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.admin-nav-link:hover { background: oklch(0.3 0.025 245); color: #fff; }
.admin-nav-link.active { background: var(--primary); color: #fff; }
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid oklch(0.32 0.025 245);
  display: flex; flex-direction: column; gap: 6px;
}

.admin-main { padding: 32px; overflow-y: auto; }
@media (max-width: 600px) { .admin-main { padding: 18px; } }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.admin-header h1 { font-size: 1.6rem; margin: 0; }
.admin-header .eyebrow { margin-bottom: 4px; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px;
}

.admin-list {
  display: flex; flex-direction: column; gap: 10px;
}
.admin-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 14px 18px;
  display: flex; gap: 14px; align-items: center;
}
.admin-item-main { flex: 1; min-width: 0; }
.admin-item-title { font-weight: 600; font-size: 0.96rem; margin-bottom: 2px; }
.admin-item-sub { font-size: 0.82rem; color: var(--muted); }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--rad-sm);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid; place-items: center;
}
.icon-btn:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.icon-btn.danger:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(20,30,50,0.5);
  z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--rad-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px 20px;
}
.stat-card .eyebrow { display: block; margin-bottom: 8px; }
.stat-card strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--primary);
  display: block;
}

/* Empty */
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-warm);
  border-radius: var(--rad);
}

/* Helpers */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.74rem;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: var(--rad);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
}
