/* Shared screen treatment; printed worksheets keep their own layout. */
@media screen {
  :root {
    --paper: #f8f8f3;
    --white: #fffefa;
    --muted: #5b6b61;
    --sage: #edf1e7;
    --line: #dce2d7;
  }

  body {color:#243f35;}
  .site-header {background:var(--white);}
  .header-inner {min-height:94px;}
  .desktop-nav {gap:30px;}
  .desktop-nav a {font-size:14px;}
  .desktop-nav a:hover {color:var(--green);text-decoration:underline;text-underline-offset:6px;}
  .brand-copy small {color:#56665b;letter-spacing:.8px;}

  .button {border-radius:8px;transition:background-color .15s ease,border-color .15s ease;}
  .button-primary:hover {transform:none;}
  .button-secondary {border-color:#c7d2c2;}
  .button-secondary:hover {background:#edf2e8;}

  .hero {gap:72px;padding-block:44px 48px;}
  .hero h1 {font-size:clamp(52px,5vw,68px);line-height:1.07;letter-spacing:-2.1px;}
  .hero h1 em {color:#39715b;}
  .hero-region {font-size:.65em;letter-spacing:-.3px;}
  .hero-lead {color:#4e6155;line-height:1.7;}
  .hero-note {color:#566b5c;}
  .eyebrow {font-size:12px;letter-spacing:1px;}
  .eyebrow::before {width:5px;height:5px;flex-basis:5px;}
  .hero-board {min-height:344px;padding:28px 32px 24px;border-color:#dbe3d5;border-radius:18px;background:#eef2e9;}
  .board-label,.board-bottom {color:#536c59;font-size:11px;letter-spacing:.8px;}
  .board-bottom {border-color:#ccd8c6;}
  .board-title {font-size:27px;line-height:1.3;}

  h2 {font-size:40px;letter-spacing:-.9px;}
  .section {padding-top:64px;padding-bottom:52px;}
  .subjects-section {padding-top:40px;}
  .section-lead {line-height:1.7;}
  .subjects-navigation {border-radius:12px;background:var(--white);}
  .subject-direct-links {border-left-color:var(--line);background:#fbfcf8;}
  .subject-tab {font-weight:600;}
  .subject-tab-hint {font-size:12px;font-weight:400;color:#526c5a;}
  .subject-tab[aria-selected="true"] {
    border-bottom-color:var(--line);
    background:#edf2e7;
    box-shadow:inset 3px 0 0 #52765b;
  }
  .subject-tab:hover {background:#f0f4ec;}
  .subject-direct-link {
    min-height:52px;
    height:52px;
    align-self:center;
    margin:0 10px;
    padding:10px 8px;
    border:1px solid #b8c9b4;
    border-radius:8px;
    background:#edf3e7;
    color:#214b37;
    font-size:15px;
    line-height:1.3;
    transition:background-color .15s ease,border-color .15s ease;
  }
  .subject-direct-link:last-child {border-bottom:1px solid #b8c9b4;}
  .subject-direct-link:first-child {border-top:1px solid #b8c9b4;}
  .subject-direct-link:hover {border-color:#7b9c78;background:#e2ecdb;color:#183d34;}
  .subject-panel {padding:32px;border-color:#d4dfcc;border-radius:12px;background:#eef2e7;}
  .subject-panel-eyebrow {margin-bottom:20px;color:#526b54;font-size:11px;letter-spacing:1px;}
  .subject-panel h3 {font-size:32px;line-height:1.2;}
  .subject-panel #subject-description {color:#465d49;}

  .sample-card {gap:48px;padding:38px 42px;border-radius:12px;border-color:#d8e0d1;}
  .sample-card:hover {border-color:#9bb08f;background:#fffefa;}
  .sample-copy h3 {font-size:34px;line-height:1.2;}
  .sample-label {color:#526b58;font-size:13px;letter-spacing:.3px;}
  .sample-preview {padding:26px;border-radius:5px;border-color:#d1ddc6;border-top-width:3px;transform:none;background:#f1f5ec;box-shadow:0 8px 24px rgb(24 61 52 / 5%);}
  .sample-sheet-title {font-size:11px;letter-spacing:.7px;}
  .sample-sheet-bottom {color:#526b58;font-size:10px;letter-spacing:.5px;}
  .sample-picker select {border:1px solid #9db295;border-radius:8px;background:var(--white);}
  .telegram-help,.material-index {border-color:#d9e1d2;border-radius:10px;background:var(--white);}
  .telegram-help summary,.material-index summary {padding-block:17px;font-weight:600;}
  .material-index a span {color:#4d6654;}

  .about-section {padding-block:64px;background:#eef2e9;}
  .about-layout {gap:76px;}
  .about-copy p {font-size:16px;line-height:1.75;}
  .step {grid-template-columns:42px minmax(0,1fr);gap:18px;}
  .step-number {display:grid;width:38px;height:38px;place-items:center;padding:0;border:1px solid #cfdcc7;border-radius:50%;background:var(--white);color:#526d53;font-size:20px;line-height:1;}
  .step p {line-height:1.65;}
  .help-section {gap:76px;padding-block:66px 74px;}
  .help-section .section-index {display:none;}
  .faq-list {border-top-color:#d5dfce;}
  .faq {border-bottom-color:#d5dfce;}
  .faq summary {min-height:72px;gap:18px;}
  .faq > p {color:#4e6355;line-height:1.75;}
  .site-footer {background:var(--white);}
  .footer-inner > a:not(.brand) {font-size:14px;}

  .resource-shell {width:min(820px,calc(100% - 48px));}
  .breadcrumbs {font-size:14px;}
  .resource-article h1 {font-size:46px;line-height:1.15;letter-spacing:-1.2px;}
  .resource-article h2 {font-size:30px;line-height:1.25;}
  .resource-note {border-left-color:#76916c;border-radius:0 8px 8px 0;background:#eef2e7;}
  .telegram-resource {padding:30px;border-color:#d5dfce;border-radius:12px;background:var(--white);}
  .preparation-checklist,.station-table-wrap {border-color:#d5dfce;border-radius:10px;}
  .preparation-checklist li + li {border-color:#dde5d6;}
  .station-table th {background:#edf2e7;}
  .material-topics li {border-color:#d4dfcc;border-radius:6px;background:#f0f4eb;color:#3d5b45;}
  .print-source {color:#536a59;}
}

@media screen and (min-width:641px) and (max-width:1000px) {
  .hero {gap:32px;}
  .hero h1 {font-size:52px;}
  .hero-board {padding-inline:24px;}
  .subjects-layout {gap:24px;}
  .subject-panel {padding:26px;}
  .subject-panel h3 {font-size:29px;}
  .about-layout,.help-section {gap:42px;}
}

@media screen and (max-width:780px) {
  .hero {gap:0;}
}

@media screen and (max-width:640px) {
  .header-inner {min-height:82px;}
  .header-inner > .button-small {font-size:12px;}
  .hero {padding-block:28px;}
  .hero h1 {font-size:40px;line-height:1.1;letter-spacing:-1.5px;}
  .hero-region {font-size:.7em;}
  .hero .eyebrow {font-size:10px;letter-spacing:.8px;}
  .hero-lead {line-height:1.65;}
  h2 {font-size:32px;line-height:1.2;}
  .section {padding-block:38px;}
  .subjects-section {padding-top:28px;}
  .subjects-layout {overflow:hidden;border:1px solid #d6dfcf;border-radius:12px;background:var(--white);}
  .subject-tab {border-left:0;line-height:1.4;}
  .subject-tab:first-child {border-top:0;}
  .subject-tab:last-child {border-bottom:0;}
  .subject-direct-link {min-height:52px;height:52px;margin-inline:8px;padding-inline:7px;}
  .subject-panel {padding:24px 20px;border-width:1px 0;border-radius:0;}
  .subject-panel h3 {font-size:28px;}
  .subject-panel-eyebrow {margin-bottom:14px;font-size:10px;}
  .sample-card {padding:26px 22px;gap:24px;}
  .sample-copy h3 {font-size:29px;}
  .sample-label {font-size:13px;}
  .about-section {padding-block:44px;}
  .about-layout {gap:34px;}
  .help-section {gap:22px;padding-block:44px;}
  .eyebrow {font-size:11px;letter-spacing:.8px;}
  .faq summary {min-height:68px;}
  .resource-shell {width:calc(100% - 40px);}
  .resource-article h1 {font-size:34px;letter-spacing:-.8px;}
  .resource-article h2 {font-size:27px;}
  .telegram-resource {padding:24px 20px;}
}

@media (prefers-reduced-motion:reduce) {
  .button,.subject-direct-link {transition:none;}
}

@media screen {
  .subject-tab .subject-tab-icon,
  .subject-icon-badge {
    display:grid;
    width:40px;
    height:40px;
    flex:0 0 40px;
    place-items:center;
    border:1px solid #d5e0cb;
    border-radius:10px;
    background:#eff4e9;
  }
  .subject-tab .subject-tab-icon img,
  .subject-icon-badge img {display:block;width:28px;height:28px;}
  .subject-tab {gap:12px;}
  .subject-tab[aria-selected="true"] .subject-tab-icon {border-color:#c7d7bb;background:#fffefa;}
  .subject-panel-kicker {display:flex;align-items:center;gap:12px;margin-bottom:20px;}
  .subject-panel-kicker .subject-panel-eyebrow {margin:0;}
  .subject-panel-kicker .subject-panel-eyebrow::before {display:none;}
  .sample-subject-line {display:flex;align-items:center;gap:12px;margin-bottom:18px;}
  .sample-subject-line .sample-label {margin:0;line-height:1.5;}
  .material-index a {flex-direction:row;align-items:center;gap:12px;}
  .material-index a .material-index-copy {display:flex;min-width:0;flex-direction:column;gap:4px;color:var(--green);font-size:inherit;text-decoration:none;}
  .material-index a .subject-icon-badge {text-decoration:none;}
  .fallback-subject-heading {display:flex;align-items:center;gap:12px;margin-bottom:12px;}
  .fallback-subject-heading h3 {margin:0;}
  .resource-article > .resource-subject {align-items:center;gap:12px;line-height:1.6;}
  .resource-subject::before {display:none;}
}

@media screen and (max-width:640px) {
  .subject-tab {gap:10px;}
  .subject-tab .subject-tab-icon {width:32px;height:32px;flex-basis:32px;border-radius:8px;}
  .subject-tab .subject-tab-icon img {width:25px;height:25px;}
  .subject-panel-kicker {gap:10px;margin-bottom:16px;}
  .sample-subject-line {gap:10px;}
}

@media screen and (max-width:360px) {
  .subject-tab {gap:8px;}
  .subject-tab .subject-tab-icon {width:28px;height:28px;flex-basis:28px;border-radius:7px;}
  .subject-tab .subject-tab-icon img {width:23px;height:23px;}
}
