/* Editorial screen theme. Worksheets retain their existing print styling. */
@media screen {
  :root {
    --paper: #f7f4ed;
    --white: #fffdf8;
    --green: #163e35;
    --green-hover: #25564a;
    --muted: #52675c;
    --sage: #eaf0e5;
    --line: #dddcd0;
    --brass: #aa8650;
    --card-shadow: 0 14px 40px rgb(31 55 41 / 6%);
  }
  body {color:#233f34;background:var(--paper);}
  ::selection {background:#dce7ce;color:#163e35;}
  .site-header {position:relative;border-top:3px solid var(--green);border-bottom-color:#deddd1;background:#fffdf9;}
  .header-inner {min-height:94px;}
  .brand-copy strong {font-size:20px;letter-spacing:-.6px;}
  .brand-copy strong b {color:#806039;}
  .brand-copy small {color:#5a6a5f;font-size:10px;letter-spacing:1px;}
  .desktop-nav a {color:#425c4e;font-size:14px;font-weight:500;}
  .desktop-nav a:hover {color:var(--green);text-decoration-color:var(--brass);}
  .button {border-radius:10px;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;}
  .button-primary,.button-small {border-color:#163e35;background:linear-gradient(145deg,#245447,#163e35);color:#fffdf4;box-shadow:inset 0 1px 0 rgb(255 255 255 / 12%),0 6px 15px rgb(22 62 53 / 11%);}
  .button-primary:hover,.button-small:hover {border-color:#2f6554;background:#285c4c;box-shadow:0 8px 20px rgb(22 62 53 / 17%);transform:none;}
  .button-secondary {border-color:#bcc6b5;background:#fffdf8;box-shadow:0 3px 10px rgb(22 62 53 / 4%);}
  .button-secondary:hover {border-color:#7e957e;background:#edf2e6;}
  .hero {gap:72px;padding-block:58px 62px;}
  .hero h1 {font-size:clamp(54px,5.3vw,72px);line-height:1.05;letter-spacing:-2.5px;color:#183f34;}
  .hero h1 em {color:#467055;}
  .hero-region {display:inline-block;margin-top:8px;font-size:.63em;letter-spacing:-.5px;}
  .hero .eyebrow {color:#526650;font-size:11px;letter-spacing:1.5px;}
  .eyebrow::before {width:22px;height:2px;flex-basis:22px;background:var(--brass);}
  .hero-lead {max-width:475px;font-size:17px;line-height:1.75;}
  .hero-actions {gap:14px 24px;}
  .hero-text-link {font-size:15px;text-decoration-color:#b79b6e;text-decoration-thickness:1px;text-underline-offset:5px;}
  .hero-note {font-size:13px;color:#586b5d;}
  .hero-note::before {width:6px;height:6px;flex-basis:6px;background:#8a7549;}
  .hero-board {isolation:isolate;min-height:426px;padding:32px 38px 30px;border:1px solid #52705a;border-radius:20px;background:radial-gradient(ellipse at 30% 5%,#315c49 0,transparent 65%),#183f34;color:#fff8e9;box-shadow:0 24px 50px rgb(19 53 41 / 16%);}
  .hero-board::before {position:absolute;z-index:-1;top:62px;left:50%;width:330px;height:330px;border:1px solid rgb(221 205 164 / 14%);border-radius:50%;box-shadow:0 0 0 34px rgb(221 205 164 / 4%),0 0 0 68px rgb(221 205 164 / 3%);transform:translateX(-50%);content:"";pointer-events:none;}
  .hero-board::after {position:absolute;inset:11px;border:1px solid rgb(208 184 132 / 35%);border-radius:12px;content:"";pointer-events:none;}
  .board-label {margin-bottom:18px;color:#e0d3b3;font-size:11px;letter-spacing:1.6px;}
  .hero-board .board-book {width:280px;margin-bottom:12px;filter:drop-shadow(0 12px 12px rgb(0 0 0 / 17%));}
  .board-title {margin:3px 0 26px;color:#fff6e4;font-size:32px;line-height:1.22;letter-spacing:-.7px;}
  .board-bottom {border-color:rgb(207 191 146 / 32%);color:#d8ddca;font-size:10px;letter-spacing:1px;}
  h2 {font-size:44px;letter-spacing:-1.2px;}
  .section {padding-block:62px;border-top-color:#dad9cb;}
  .subjects-section {padding-top:46px;}
  .section-heading .eyebrow {margin-bottom:18px;color:#5c6d5d;font-size:11px;letter-spacing:1.5px;}
  .section-lead {color:#4c6253;}
  .subjects-layout {gap:32px;}
  .subjects-navigation {border-color:#d7dbcd;border-radius:16px;box-shadow:var(--card-shadow);background:#fffdf8;}
  .subject-direct-links {border-color:#e0e2d7;background:#f9faf3;}
  .subject-tab {color:#254c3c;}
  .subject-tab:hover {background:#f2f4e9;}
  .subject-tab[aria-selected="true"] {border-bottom-color:#d8dfce;background:#eaf0e1;color:#163e35;box-shadow:inset 4px 0 0 #386047;}
  .subject-tab[aria-selected="true"] .subject-tab-hint,.subject-tab-hint {color:#51694e;text-decoration-color:#99a78c;}
  .subject-tab .subject-tab-icon,.subject-icon-badge {border-color:#d5ddc8;border-radius:11px;background:linear-gradient(145deg,#f6f7ed,#e8efdf);box-shadow:inset 0 1px 0 #fffdf5,0 2px 5px rgb(37 70 46 / 4%);}
  .subject-tab[aria-selected="true"] .subject-tab-icon {border-color:#b8c9a5;background:#fffdf4;}
  .subject-direct-link {border-color:#bdcbb2;border-radius:9px;background:#eef3e5;color:#234b36;box-shadow:inset 0 1px 0 #fffdf5;}
  .subject-direct-link:hover {border-color:#718e68;background:#dfeacc;color:#163e35;box-shadow:0 3px 10px rgb(37 70 46 / 8%);}
  .subject-panel {padding:34px;border:1px solid #d8ddce;border-top:3px solid #b49661;border-radius:16px;background:linear-gradient(155deg,#fffdf8,#f2f5e9);box-shadow:var(--card-shadow);}
  .subject-panel-kicker {margin-bottom:25px;}
  .subject-panel-eyebrow {color:#586b50;letter-spacing:1.3px;}
  .subject-panel h3 {font-size:35px;line-height:1.18;}
  .subject-panel #subject-description {color:#455f4b;line-height:1.8;}
  .subject-panel .button {min-height:52px;}
  .telegram-help,.material-index {border-color:#d9dece;border-radius:12px;background:#fffdf8;box-shadow:0 5px 16px rgb(31 55 41 / 3%);}
  .telegram-help summary::marker,.material-index summary::marker {color:#6e815a;}
  .sample-picker label {color:#466047;}
  .sample-picker select {border-color:#a4b396;border-radius:10px;background:#fffdf8;box-shadow:0 4px 12px rgb(31 55 41 / 4%);}
  .sample-card {gap:60px;padding:42px 48px;border-color:#d6decc;border-radius:18px;background:#fffdf8;box-shadow:var(--card-shadow);transition:border-color .18s ease,box-shadow .18s ease;}
  .sample-card:hover {border-color:#a3b492;background:#fffdf8;box-shadow:0 18px 45px rgb(31 55 41 / 10%);}
  .sample-copy h3 {font-size:38px;line-height:1.16;letter-spacing:-.9px;}
  .sample-copy > p {color:#50664f;line-height:1.75;}
  .sample-label {color:#586d4e;}
  .sample-link {width:fit-content;gap:26px;min-height:48px;padding:11px 18px;border:1px solid #bac9ad;border-radius:8px;background:#edf3e4;color:#244b37;font-size:15px;}
  .sample-preview {position:relative;padding:30px 28px 24px;border:1px solid #d3dac8;border-top:4px solid #668262;border-radius:6px;background:#fafbf5;transform:none;box-shadow:7px 7px 0 -1px #e5e9d9,7px 7px 0 0 #d9dfcc,0 14px 25px rgb(31 55 41 / 8%);}
  .sample-sheet-title {color:#3e6246;letter-spacing:1.4px;}
  .sample-preview p {border-color:#dfe4d6;color:#53694f;}
  .sample-sheet-bottom {color:#62724f;}
  .about-section {position:relative;padding-block:72px;border-block:1px solid #375747;background:#193f34;color:#fff8e8;}
  .about-copy h2 {color:#fff8e8;font-size:44px;line-height:1.15;}
  .about-copy > .eyebrow {color:#ddcfac;letter-spacing:1.5px;}
  .about-copy > p:not(.eyebrow) {color:#dbe3d4;line-height:1.8;}
  .about-copy .card-link {max-width:455px;border-color:#5b7460;color:#fff1d5;font-size:15px;}
  .about-copy .card-link:hover {color:#e5c998;}
  .steps {gap:12px;}
  .step,.step + .step,.step:last-child {grid-template-columns:42px minmax(0,1fr);gap:18px;padding:22px 24px;border:1px solid #4b6650;border-radius:12px;background:#244b3b;box-shadow:inset 0 1px 0 rgb(255 255 255 / 3%);}
  .step-number {width:38px;height:38px;border-color:#728062;background:#304e3d;color:#e5d0a0;font-size:20px;}
  .step h3 {color:#fff8e8;font-size:17px;}
  .step p {color:#d8e2ce;font-size:15px;line-height:1.65;}
  .help-section {padding-block:72px 80px;}
  .faq-list {padding:4px 26px;border:1px solid #d8dece;border-radius:16px;background:#fffdf8;box-shadow:var(--card-shadow);}
  .faq {border-bottom-color:#e0e5d7;}
  .faq:last-child {border-bottom:0;}
  .faq summary {min-height:76px;color:#2b4e39;}
  .faq > p {color:#4e6550;}
  .site-footer {border-top-color:#d6dccb;background:#efeede;}
  .footer-inner {padding-block:32px;}
  .footer-inner .brand-copy strong {font-size:18px;}
  .footer-inner > p {color:#596d53;}
  .footer-inner > a:not(.brand) {color:#36553c;}
  .resource-shell {width:min(880px,calc(100% - 64px));}
  .breadcrumbs {color:#5c7057;}
  .resource-article {padding:38px 42px;border:1px solid #d9dece;border-radius:18px;background:#fffdf8;box-shadow:var(--card-shadow);}
  .resource-article h1 {font-size:48px;line-height:1.12;letter-spacing:-1.2px;}
  .resource-article h2 {color:#284d39;}
  .resource-note {border-left:3px solid #a38852;background:#f1f3e7;}
  .telegram-resource {border-color:#ced8c1;border-top:3px solid #a68a53;border-radius:14px;background:#f0f4e6;box-shadow:0 7px 20px rgb(31 55 41 / 4%);}
  .preparation-checklist,.station-table-wrap {border-color:#d6decb;border-radius:12px;background:#fffef9;}
  .station-table th {background:#eaf0df;}
  .material-topics li {border-color:#d2dcc4;border-radius:7px;background:#edf2e3;color:#48613e;}
}

@media screen and (min-width:781px) and (max-width:1050px) {
  .hero {gap:36px;}
  .hero h1 {font-size:56px;}
  .hero-board {min-height:410px;padding:28px;}
  .board-title {font-size:29px;}
  .subject-panel {padding:28px;}
  .subject-panel h3 {font-size:31px;}
  .sample-card {gap:36px;padding:36px;}
}
@media screen and (min-width:641px) and (max-width:780px) {
  .hero {padding-block:44px;}
  .hero h1 {font-size:62px;}
  .subject-panel {display:block;}
  .subject-panel #subject-description {margin-bottom:26px;}
}
@media screen and (max-width:640px) {
  .header-inner {min-height:82px;}
  .brand-copy strong {font-size:16px;}
  .brand-copy small {font-size:8px;letter-spacing:.45px;}
  .header-inner > .button-small {font-size:12px;border-radius:8px;}
  .hero {padding-block:32px 36px;gap:0;}
  .hero h1 {font-size:43px;line-height:1.08;letter-spacing:-1.6px;}
  .hero-region {margin-top:6px;font-size:.67em;}
  .hero .eyebrow {font-size:10px;letter-spacing:1px;}
  .hero-lead {font-size:16px;line-height:1.7;}
  .hero-actions {gap:0;}
  h2,.about-copy h2 {font-size:34px;line-height:1.17;letter-spacing:-.8px;}
  .section {padding-block:40px;}
  .subjects-section {padding-top:30px;}
  .subjects-layout {gap:0;border-color:#d2dbc4;border-radius:14px;background:#fffdf8;box-shadow:var(--card-shadow);}
  .subject-panel {min-height:0;padding:25px 20px;border:1px solid #cbd7bb;border-width:2px 0 1px;border-radius:0;box-shadow:none;}
  .subject-panel h3 {font-size:29px;}
  .subject-panel-kicker {margin-bottom:18px;}
  .subject-tab .subject-tab-icon {border-radius:8px;}
  .subject-direct-link {min-height:52px;height:52px;border-radius:8px;}
  .sample-card {padding:28px 24px;gap:28px;border-radius:14px;}
  .sample-copy h3 {font-size:31px;}
  .sample-link {font-size:15px;}
  .sample-preview {width:calc(100% - 8px);padding:24px 22px 20px;}
  .about-section {padding-block:46px;}
  .about-layout {gap:30px;}
  .step,.step + .step,.step:last-child {gap:14px;padding:20px 18px;}
  .help-section {padding-block:46px;gap:22px;}
  .faq-list {padding-inline:18px;border-radius:12px;}
  .faq summary {gap:12px;font-size:16px;}
  .faq > p {padding-right:0;font-size:15px;}
  .footer-inner {padding-block:28px;}
  .footer-inner .brand-copy strong {font-size:16px;}
  .resource-shell {width:calc(100% - 32px);}
  .resource-article {padding:26px 20px;border-radius:14px;}
  .resource-article h1 {font-size:34px;line-height:1.15;letter-spacing:-.7px;}
  .resource-article h2 {font-size:27px;}
  .telegram-resource {padding:24px 20px;}
}
@media screen and (max-width:360px) {
  .brand-copy strong {font-size:14px;}
  .header-inner > .button-small {max-width:100px;font-size:11px;}
  .hero h1 {font-size:39px;}
  .subject-tab .subject-tab-icon {border-radius:7px;}
  .subject-panel {padding-inline:18px;}
  .subject-panel h3 {font-size:27px;}
  .sample-card {padding:25px 20px;}
  .resource-shell {width:calc(100% - 24px);}
  .resource-article {padding:23px 16px;}
}
@media (prefers-reduced-motion:reduce) {
  .button,.subject-direct-link,.sample-card {transition:none;}
}
