:root {
  --ink: #18312b;
  --green: #153e35;
  --green-2: #235f50;
  --cream: #f6f1e6;
  --paper: #fffdf8;
  --gold: #f1b743;
  --orange: #d87431;
  --red: #b6463f;
  --muted: #6d7b76;
  --line: #d9ded9;
  --shadow: 0 18px 45px rgba(21, 62, 53, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans Devanagari", "Mangal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
code { background: #edf1ee; padding: .1rem .35rem; border-radius: 6px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(246, 241, 230, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(21, 62, 53, .1);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px; background: var(--green); color: white;
  font-size: 1.45rem; font-weight: 800; box-shadow: var(--shadow);
}
.brand strong { display: block; font-size: 1.02rem; }
.brand small { display: block; color: var(--muted); font-size: .73rem; letter-spacing: .02em; }
 .topbar nav { display: flex; align-items: center; gap: 18px; }
 .topbar nav a { font-size: .92rem; font-weight: 700; padding: 8px 2px; border-bottom: 2px solid transparent; }
 .topbar nav a:hover { color: var(--green-2); border-color: var(--gold); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.section { padding: 82px clamp(18px, 5vw, 80px); max-width: 1500px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--paper); }
.section.alt > * { max-width: 1340px; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; color: var(--orange); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 0; line-height: 1.1; }
h3 { line-height: 1.2; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -170px; top: 40px; background: rgba(241, 183, 67, .18); filter: blur(2px);
}
.hero h1 { font-size: clamp(3.3rem, 7vw, 7.2rem); line-height: .96; margin: 20px 0 26px; letter-spacing: -.04em; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.hero-actions, .button-row, .conversation-controls, .admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.voice-note { margin-top: 20px; max-width: 650px; padding: 12px 16px; border-radius: 14px; background: rgba(21,62,53,.07); color: var(--muted); font-size: .86rem; }
.hero-panel {
  min-height: 430px; border-radius: 42px; background: var(--green); color: white;
  position: relative; display: grid; place-items: center; box-shadow: 0 35px 80px rgba(21,62,53,.25); overflow: hidden;
}
.hero-panel::after { content: ""; position: absolute; inset: auto -50px -120px; height: 260px; border-radius: 50% 50% 0 0; background: #22584b; }
.sun-orbit { position: absolute; top: 38px; right: 40px; width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.sun-orbit span { font-size: 3.2rem; color: var(--gold); }
.hero-word { position: relative; z-index: 2; text-align: center; display: grid; gap: 12px; }
.hero-word small { color: #b9d5cc; text-transform: uppercase; letter-spacing: .15em; }
.hero-word strong { font-size: clamp(3rem, 6vw, 5.5rem); }
.hero-word span { color: #d7e6e1; }
.round-btn { margin: 15px auto 0; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--gold); font-size: 1.3rem; }

.btn {
  border: 1px solid rgba(21,62,53,.2); background: white; color: var(--ink);
  border-radius: 14px; padding: 12px 18px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,62,53,.12); }
.btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.secondary { background: transparent; border-color: var(--green); }
.btn.danger { background: var(--red); color: white; border-color: var(--red); }
.btn.small { padding: 9px 13px; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn.center { display: block; margin: 24px auto 0; }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(21,62,53,.12); border-top: 1px solid rgba(21,62,53,.08); border-bottom: 1px solid rgba(21,62,53,.08);
}
.stats-strip div { background: var(--paper); padding: 28px; text-align: center; }
.stats-strip strong { display: block; font-size: 2rem; color: var(--green); }
.stats-strip span { color: var(--muted); font-size: .85rem; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head select, .search-row select, .speech-checker select {
  min-width: 180px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: white;
}
.learn-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.flashcard, .practice-box, .game-card, .speech-checker, .admin-login, .admin-panel {
  background: var(--paper); border: 1px solid rgba(21,62,53,.09); border-radius: var(--radius); box-shadow: var(--shadow);
}
.flashcard { min-height: 460px; padding: 30px; display: grid; grid-template-rows: auto 1fr auto; }
.flash-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.flash-top span:first-child { color: var(--orange); font-weight: 800; }
.flash-main { display: grid; place-content: center; text-align: center; gap: 9px; }
.flash-main strong { font-size: clamp(3rem, 7vw, 6rem); color: var(--green); }
.flash-main > span { color: var(--muted); letter-spacing: .08em; }
.flash-meaning { margin-top: 12px; font-size: 1.5rem; font-weight: 800; }
.flash-main small { color: var(--muted); font-size: 1rem; }
.flash-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.practice-box { padding: 30px; align-self: stretch; }
.practice-box p { color: var(--muted); }
.record-state { padding: 18px; margin: 24px 0; border-radius: 16px; background: #eef4f0; font-weight: 800; text-align: center; }
.toggle { display: flex; gap: 9px; align-items: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }

.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-row input, .admin-login input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: white; outline: none;
}
.search-row input:focus, textarea:focus, input:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(35,95,80,.1); }
.dictionary-list { display: grid; gap: 12px; margin-top: 22px; }
.dictionary-item {
  display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr auto; gap: 20px; align-items: center;
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
}
.dictionary-item .word strong { display: block; font-size: 1.35rem; color: var(--green); }
.dictionary-item .word small, .dictionary-item .meaning small { color: var(--muted); }
.dictionary-item .meaning b { display: block; }
.dictionary-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: .72rem; padding: 4px 8px; background: #eef3f0; border-radius: 999px; color: var(--green-2); }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #edf2ef; }
.text-link { color: var(--green-2); font-weight: 800; }

.game-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.game-tabs button { white-space: nowrap; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 15px; font-weight: 800; }
.game-tabs button.active { background: var(--green); color: white; border-color: var(--green); }
.score-pill { padding: 10px 16px; background: #fff4d8; border-radius: 999px; }
.game-card { margin-top: 18px; min-height: 430px; padding: clamp(22px, 4vw, 45px); display: grid; place-items: center; }
.game-inner { width: min(780px, 100%); text-align: center; }
.game-question { font-size: clamp(2rem, 6vw, 4.4rem); color: var(--green); margin: 14px 0 30px; font-weight: 900; }
.game-sub { color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option { border: 2px solid #e2e7e3; background: white; border-radius: 16px; padding: 18px; font-weight: 800; }
.option:hover { border-color: var(--green-2); }
.option.correct { background: #dff3e7; border-color: #4d9d6a; }
.option.wrong { background: #f7dddd; border-color: #c65b55; }
.answer-input { display: flex; gap: 10px; }
.answer-input input { flex: 1; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.game-feedback { min-height: 30px; margin-top: 18px; font-weight: 800; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(80px,1fr)); gap: 10px; width: min(800px, 100%); }
.memory-card { min-height: 100px; border: 0; border-radius: 16px; background: var(--green); color: transparent; font-weight: 900; padding: 10px; }
.memory-card.open, .memory-card.matched { background: white; color: var(--ink); border: 2px solid var(--gold); }
.memory-card.matched { opacity: .55; }

.conversation-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.dialogue-lines { display: grid; gap: 12px; }
.dialogue-line { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.speaker { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.dialogue-text strong { display: block; font-size: 1.25rem; color: var(--green); }
.dialogue-text small { color: var(--muted); }
.conversation-controls { margin-top: 18px; }
.review-note { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--gold); background: #fff8e8; color: #6d5c32; }
.speech-checker { padding: 28px; }
.speech-checker p { color: var(--muted); }
.speech-checker select { width: 100%; margin-bottom: 12px; }
.heard-box { margin-top: 18px; padding: 16px; border-radius: 15px; background: #eef4f0; }
.heard-box small { display: block; color: var(--muted); }
.heard-box strong { display: block; margin-top: 8px; word-break: break-word; }
.match-meter { height: 12px; border-radius: 999px; overflow: hidden; background: #e2e6e3; margin: 16px 0 8px; }
.match-meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.match-text { font-weight: 800; }

.admin-section { background: #eaf0ec; max-width: none; }
.admin-section > * { max-width: 1340px; margin-left: auto; margin-right: auto; }
.status-badge { padding: 8px 12px; border-radius: 999px; background: #dde5e0; color: var(--muted); font-weight: 800; }
.status-badge.online { background: #d9efdf; color: #2c7043; }
.admin-login { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.admin-login p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.admin-panel { padding: 24px; }
.admin-actions { justify-content: flex-end; margin-bottom: 20px; }
.file-btn input { display: none; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-grid textarea { width: 100%; min-height: 430px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }

.voice-fab { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--orange); color: white; font-size: 1.45rem; box-shadow: 0 16px 38px rgba(216,116,49,.35); }
.voice-fab.listening { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(216,116,49,.15); } }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 120px); opacity: 0; background: #102f28; color: white; padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow); transition: .25s ease; max-width: min(92vw, 650px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
 .site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 44px clamp(18px, 5vw, 80px) 132px; background: var(--green); color: white; }
 .site-footer p { color: #bcd1ca; margin-bottom: 0; max-width: 700px; }
 .site-footer div:last-child { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .topbar nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--paper); padding: 16px; border-radius: 18px; box-shadow: var(--shadow); }
  .topbar nav.open { display: flex; }
  .hero, .learn-grid, .conversation-layout, .admin-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .hero-panel { min-height: 360px; }
  .practice-box { min-height: auto; }
}

@media (max-width: 680px) {
  .section { padding: 60px 16px; }
  .topbar { padding: 10px 14px; }
  .brand small { display: none; }
  .hero { min-height: auto; gap: 35px; }
  .hero h1 { font-size: 3.3rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .search-row { grid-template-columns: 1fr; }
  .dictionary-item { grid-template-columns: 1fr auto; }
  .dictionary-item .meaning { grid-column: 1 / -1; grid-row: 2; }
  .options { grid-template-columns: 1fr; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .dialogue-line { grid-template-columns: 40px 1fr; }
  .dialogue-line .icon-button { grid-column: 2; }
  .admin-login { grid-template-columns: 1fr; }
  .admin-login p { grid-column: auto; }
  .answer-input { flex-direction: column; }
  .site-footer { flex-direction: column; }
}

/* Articles and information pages */
.articles-section { background: linear-gradient(180deg, rgba(255,255,255,.25), transparent); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card {
  min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid rgba(21,62,53,.1);
  border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.article-card img, .article-placeholder { width: 100%; height: 210px; object-fit: cover; }
.article-placeholder {
  display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--green), var(--green-2));
  font-size: 4rem; font-weight: 900;
}
.article-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.article-card p { color: var(--muted); flex: 1; }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--green-2); font-weight: 900; text-align: left; }
.text-button:hover { color: var(--orange); }

.content-page { max-width: 920px !important; margin: 0 auto !important; }
.content-page h2 { margin: 10px 0 28px; }
.rich-text { color: #304840; font-size: 1.04rem; }
.rich-text p { margin: 0 0 1.15rem; white-space: normal; }
.info-section { scroll-margin-top: 76px; }
.contact-details { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.contact-details a, .contact-details span { padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }

.faq-list { display: grid; gap: 12px; max-width: 980px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 19px 0; font-weight: 900; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--orange); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item > div { padding: 0 0 18px; color: var(--muted); }
.faq-item > div p:last-child { margin-bottom: 0; }

.content-editor-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.content-editor-block textarea {
  width: 100%; min-height: 560px; resize: vertical; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; margin-bottom: 12px;
}

.article-dialog { width: min(900px, calc(100vw - 28px)); max-height: 88vh; border: 0; border-radius: 24px; padding: 0; color: var(--ink); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.article-dialog::backdrop { background: rgba(8,25,20,.68); backdrop-filter: blur(4px); }
.article-dialog article { padding: clamp(28px, 5vw, 58px); }
.article-dialog h2 { margin: 10px 45px 12px 0; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #edf2ef; font-size: 1.7rem; line-height: 1; }
.article-byline { color: var(--muted); margin-bottom: 28px; font-size: .9rem; }

@media (max-width: 1180px) {
  .topbar nav { gap: 11px; }
  .topbar nav a { font-size: .84rem; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-card img, .article-placeholder { height: 180px; }
  .article-dialog article { padding: 28px 20px; }
  .contact-details { flex-direction: column; }
}

/* v1.2 bilingual language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  margin-left: auto;
  border: 1px solid rgba(21, 62, 53, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}
.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: transparent;
  color: var(--green);
  font-weight: 800;
  font-size: .8rem;
}
.language-switcher button.active {
  background: var(--green);
  color: white;
}

@media (max-width: 980px) {
  .language-switcher { margin-left: auto; }
}

@media (max-width: 620px) {
  .language-switcher button { padding: 6px 8px; font-size: .72rem; }
  .brand small { display: none; }
}


/* v1.3 floating bottom navigation */
body { padding-bottom: 0; }
section[id] { scroll-margin-top: 82px; }
.voice-fab { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

.app-dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  width: min(720px, calc(100vw - 30px));
  min-height: 78px;
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(21, 62, 53, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 55px rgba(21, 38, 33, .19);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-dock__item {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  min-width: 0;
  min-height: 60px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #6d7270;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-dock__item:hover {
  color: var(--green);
  background: rgba(21, 62, 53, .055);
  border-bottom-color: transparent;
}

.app-dock__item:focus-visible {
  outline: 3px solid rgba(241, 183, 67, .55);
  outline-offset: 2px;
}

.app-dock__item.active,
.app-dock__item[aria-current="page"] {
  color: var(--green);
  background: #eaf1ee;
  box-shadow: inset 0 0 0 1px rgba(21, 62, 53, .045);
}

.app-dock__item.active .app-dock__icon,
.app-dock__item[aria-current="page"] .app-dock__icon {
  transform: translateY(-1px) scale(1.04);
}

.app-dock__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}

.app-dock__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-dock__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .76rem;
}

.app-dock__voice.listening {
  color: white;
  background: var(--orange);
  animation: dockVoicePulse 1s ease-in-out infinite;
}

@keyframes dockVoicePulse {
  50% { transform: translateY(-2px); box-shadow: 0 0 0 7px rgba(216, 116, 49, .13); }
}

@media (max-width: 680px) {
  .site-footer { padding-bottom: 120px; }
  .app-dock {
    width: calc(100vw - 16px);
    min-height: 70px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 6px;
    border-radius: 20px;
  }
  .app-dock__item { min-height: 56px; border-radius: 15px; padding: 6px 3px; gap: 4px; }
  .app-dock__icon, .app-dock__icon svg { width: 22px; height: 22px; }
  .app-dock__label { font-size: .7rem; }
  .toast { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .app-dock__label { font-size: .64rem; }
  .app-dock__item { padding-left: 1px; padding-right: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-dock__item, .app-dock__icon { transition: none; }
  .app-dock__voice.listening { animation: none; }
}

/* Dedicated secure login is available at /login. */
.admin-section{display:none!important}


/* v2.1 dedicated article pages */
.article-page-section { background: linear-gradient(180deg, #f4f8f6 0%, #ffffff 34%); min-height: 72vh; }
.article-page-card { width: min(920px, 100%); margin: 0 auto; }
.article-back { border: 0; background: transparent; color: var(--green-2); padding: 8px 0; margin-bottom: 22px; font: inherit; font-weight: 900; cursor: pointer; }
.article-back:hover { color: var(--orange); }
.article-page-image-wrap { overflow: hidden; border-radius: 24px; margin-bottom: 32px; box-shadow: var(--shadow); }
.article-page-image-wrap img { width: 100%; max-height: 480px; display: block; object-fit: cover; }
.article-page-heading h1 { max-width: 850px; margin: 12px 0 14px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; }
.article-page-excerpt { max-width: 780px; margin: 0 0 14px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.7; }
.article-page-tools { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.article-page-body { max-width: 780px; font-size: 1.08rem; line-height: 1.92; }
.article-page-body p { margin-bottom: 1.45rem; }
.article-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.article-card-link:hover { border-bottom-color: transparent; }
.article-card-link:hover h3 { color: var(--green-2); }
.article-card-link .text-button { margin-top: auto; }
@media (max-width: 680px) {
  .article-page-section { padding-left: 18px; padding-right: 18px; }
  .article-page-heading h1 { font-size: 2.2rem; }
  .article-page-body { font-size: 1rem; line-height: 1.8; }
}

/* v2.2 sourced article panel */
.article-source-panel { max-width: 780px; margin-top: 42px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #f6faf8; }
.article-source-panel h2 { margin: 0 0 8px; font-size: 1.3rem; }
.article-source-panel p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.article-source-panel ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.article-source-panel a { overflow-wrap: anywhere; font-weight: 800; }
