/* ===========================================================
   기출 101 — site.css (design v2, prompt 049)
   The one stylesheet of the website (copied to /assets/site.css). Benchmark: 내신코치's structure, proportions and
   whitespace; no copied assets. Palette 60-30-10: white/#F7F8FA ground, deep navy for dark blocks and primary
   buttons, a highlighter yellow accent used only as a background behind dark text. Grading red only for answer
   marks. No gradients except the highlighter's hard stop and the notebook ruling; corners 0–4px.
   Font: Pretendard (self-hosted, OFL; /assets/fonts/pretendard/).
   =========================================================== */

:root {
  /* ground (60) */
  --bg:          #FFFFFF;
  --bg-2:        #F7F8FA;
  --tint:        #EEF2F9;     /* hero and preview panels */
  --line:        #E6E8EC;
  --line-2:      #D5DAE3;     /* inactive chips, paper edges */
  --line-3:      #C9CFDA;
  /* text */
  --ink:         #1F2329;
  --ink-2:       #4B515C;
  --muted:       #80858F;
  --faint:       #9AA0AA;     /* inactive tabs, dates (large text or non-essential only) */
  --ink-inv:     #FFFFFF;
  --ink-inv-2:   #C7D0E6;
  /* navy (30) */
  --navy-deep:   #0F1E46;     /* dark blocks, primary buttons, footer band */
  --navy:        #1F3C88;     /* links, active tab, chips, eyebrows */
  --navy-pale:   #E9EEF8;
  --navy-pale-bd:#C5D0E8;
  /* accent (10): highlighter, background only */
  --hl:          #FFE94A;
  --hl-pale:     #FFF8CC;
  /* semantic: grading red, answer marks only */
  --red:         #C8102E;
  /* ruling */
  --rule-40: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(31, 60, 136, 0.08) 39px, rgba(31, 60, 136, 0.08) 40px);
  --rule-32: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(31, 60, 136, 0.07) 31px, rgba(31, 60, 136, 0.07) 32px);
  /* fonts */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --wrap: 1200px;
}

/* =========================================================== base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); letter-spacing: -0.3px;
       -webkit-font-smoothing: antialiased; line-height: 1.6;
       word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.6px; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.page-body { padding: 28px 24px 72px; }
.hl-mark, mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 2px; }
.mono { font-family: var(--font-mono); }

/* =========================================================== notice bar */
.notice { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.notice__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 38px; display: flex; align-items: center;
              justify-content: space-between; gap: 16px; font-size: 13px; }
.notice__msg { display: flex; gap: 14px; align-items: center; min-width: 0; }
.notice__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--navy); letter-spacing: 0.6px;
                 font-variant: small-caps; flex-shrink: 0; }
.notice__msg a { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notice__links { display: flex; gap: 12px; color: var(--muted); flex-shrink: 0; align-items: center; }
.notice__links a { color: var(--muted); }
/* U149: several notices turn over in .notice__view (a fixed-height window; the bar never changes height). Without JavaScript the view just shows the first one. */
.notice__view { position: relative; flex: 1 1 auto; min-width: 0; height: 38px; display: flex; align-items: center; overflow: hidden; --nh: 38px; }
.notice__view > a, .notice__view > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice__msg.is-rot .notice__view > a, .notice__msg.is-rot .notice__view > span { position: absolute; left: 0; right: 0; top: 0; display: block; height: var(--nh); line-height: var(--nh); min-height: 0;
  transform: translateY(100%); opacity: 0; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.notice__msg.is-rot .notice__view > .is-cur { transform: none; opacity: 1; }
.notice__msg.is-rot .notice__view > .is-out { transform: translateY(-100%); opacity: 0; }
.notice__msg.is-rot .notice__view > .nt { transition: none; }
.notice__msg.is-rot { flex: 1 1 auto; }   /* the window has no width of its own once the notices are absolutely placed */
.notice__pause { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.notice__pause:hover { background: var(--line); }
@media (max-width: 899px) { .notice__view { height: 44px; --nh: 44px; } .notice__pause { width: 44px; height: 44px; } }

/* =========================================================== header */
/* U144: the top menu by field. Navy bar, 64px on a PC; each field carries its colours as inline --c / --bg / --light (home_fields.tvars): the dot and
   the current-page line use --light (readable on navy), the panel's head box uses --bg and --c. >= 900px: drop-down panels under the bar;
   below 900px: a 56px bar, the fields in a 3 x 2 row (.frow) and a full-screen menu panel (.mm). menu.js adds the behaviour; without it the
   drop-down fields are plain links to /all/#<id> and the menu button is a link to the footer. */
.hdr { position: relative; z-index: 20; background: var(--navy-deep); color: #fff; }
.hdr__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.hdr :focus-visible { outline: 2px solid #FFE94A; outline-offset: -2px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.brand img { display: block; height: 32px; width: auto; }
.brand:hover { text-decoration: none; }
.menu { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; height: 64px; gap: 2px; }
.mf { display: flex; }
.mf__a { height: 64px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap;
         box-shadow: inset 0 -3px 0 transparent; }
.mf__a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.mf__a[aria-current], .mf.is-open > .mf__a { box-shadow: inset 0 -3px 0 var(--light); }
.mf__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--light); }
.mf__chev { font-size: 11px; opacity: 0.8; }
.mf__a--soon { color: #9AA6C4; cursor: default; }
.mf__a--soon:hover { color: #9AA6C4; background: none; }
.mf__a--soon .mf__dot { opacity: 0.5; }
.mf__pill { font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--navy-deep); background: #C9D3E8; border-radius: 999px; padding: 1px 7px; }
.hdr__all { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; background: #FFE94A; color: var(--navy-deep);
            font-size: 14px; font-weight: 800; white-space: nowrap; }
.hdr__all:hover { color: var(--navy-deep); text-decoration: none; background: #FFF08A; }
.menu-btn, .frow, .mm { display: none; }
/* the drop-down panel: white, full width under the bar, the content width inside */
.mp { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(15, 30, 70, 0.12); }
.mp[hidden] { display: none; }
.mp__in { max-width: 1200px; margin: 0 auto; padding: 18px 24px 22px; display: flex; align-items: flex-start; gap: 32px; }
.mp__head { flex: 0 0 220px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.mp__head b { display: block; font-size: 18px; font-weight: 900; color: var(--c); }
.mp__head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.mp__head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--c); }
.mp__list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; }
.mp__list a { display: block; min-height: 52px; padding: 8px 12px; border-radius: 10px; border: 1px solid #F1F2F4; color: var(--ink); }
.mp__list a:hover { background: var(--bg-2); text-decoration: none; }
.mp__list b { display: block; font-size: 15px; color: var(--navy-deep); }
.mp__list span { font-size: 12.5px; color: var(--ink-2); }
/* a PC just under 900px: shrink the gaps first */
@media (max-width: 1000px) { .hdr__in { gap: 14px; } .mf__a { padding: 0 8px; gap: 6px; font-size: 14.5px; } }

/* U144: below 900px the header is the phone header: bar (logo, 전체 보기, menu button), the fields in a 3 x 2 row, and the menu panel */
@media (max-width: 899px) {
  .hdr { z-index: auto; }                                       /* no stacking context: the fixed panel (.mm) must cover the whole page */
  .hdr__in { height: 56px; padding: 0 8px 0 16px; gap: 10px; }
  .brand img { height: 26px; }
  .menu { display: none; }
  .hdr__all { margin-left: auto; min-height: 44px; padding: 0 12px; font-size: 13px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
  .menu-btn:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
  .frow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .frow__a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
             border-right: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 -3px 0 transparent; }
  .frow__a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
  .frow__a[aria-current] { box-shadow: inset 0 -3px 0 var(--light); }
  .frow__a--soon { color: #9AA6C4; }
  .frow__a--soon .mf__dot { opacity: 0.5; }
  .mm:not([hidden]) { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #fff; color: var(--ink); }
  .mm__top { flex: 0 0 56px; height: 56px; display: flex; align-items: center; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
  .mm__title { flex: 1 1 auto; font-size: 18px; font-weight: 900; color: var(--navy-deep); }
  .mm__x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy-deep); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
  .mm__body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 6px 12px 12px; }
  .mm__f { border-bottom: 1px solid #F1F2F4; }
  .mm__row { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 6px; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 800;
             color: var(--navy-deep); text-align: left; cursor: pointer; }
  .mm__row:hover { color: var(--navy-deep); text-decoration: none; }
  .mm__row i { font-style: normal; color: var(--ink-2); }
  .mm__dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--c); }
  .mm__name { flex: 1 1 auto; }
  .mm__chev { color: var(--ink-2); display: inline-block; }
  .mm__row[aria-expanded="true"] .mm__chev { rotate: 180deg; }
  .mm__row--off { color: #6B7280; cursor: default; }
  .mm__row--off .mm__dot { opacity: 0.45; }
  .mm__pill { font-size: 12px; font-weight: 700; color: var(--ink-2); background: #F1F2F4; border-radius: 999px; padding: 2px 9px; }
  .mm__subs { margin: 0 0 10px 26px; padding: 4px; border-radius: 10px; background: var(--bg); }
  .mm__subs[hidden] { display: none; }
  .mm__subs a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
  .mm__subs a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.6); }
  .mm__subs i { font-style: normal; color: var(--ink-2); }
  .mm__foot { flex: 0 0 auto; padding: 12px 16px 20px; border-top: 1px solid var(--line); }
  .mm__foot a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--navy-deep); color: #fff; font-weight: 800; }
  .mm__foot a:hover { color: #fff; text-decoration: none; }
  .mm :focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
}
html.mm-open { overflow: hidden; }

/* =========================================================== footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 0; }
.foot__in { max-width: 1200px; margin: 0 auto; padding: 32px 24px 40px; display: flex; justify-content: space-between; gap: 16px;
            flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__brand { display: inline-flex; align-self: flex-start; min-height: 44px; align-items: center; margin-bottom: 4px; }
.foot__brand img { display: block; height: 46px; width: auto; }   /* the letters 기출 101 ≈ 34px tall */
.page-mark { margin: 6px 0 18px; }
.page-mark img { display: block; height: 64px; width: auto; }
/* the loader behind preview images (052): the image covers it once loaded; with JS it also fades in */
.has-loader { position: relative; color: var(--navy); }
.has-loader > .loader { position: absolute; left: 50%; top: 50%; width: 66px; height: 35px; transform: translate(-50%, -50%); }
.has-loader > img { position: relative; z-index: 1; transition: opacity 0.25s ease; }
.js .has-loader > img:not([data-loaded]) { opacity: 0; }
.row__thumb > .loader { width: 30px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .has-loader > img { transition: none; } }
.foot__links { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot__links a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.foot__links a.foot__privacy { color: var(--ink); font-weight: 700; }
/* U110: footer columns 영어 / 수학 (from published pages) */
.foot__cols { display: flex; gap: 8px 48px; flex-wrap: wrap; }
.foot__links--col { flex-direction: column; gap: 0; }
.foot__col-title { font-weight: 800; color: var(--ink); font-size: 14px; padding: 8px 0 4px; }

/* =========================================================== buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-weight: 700;
       text-decoration: none; border-radius: 2px; box-sizing: border-box; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn--navy { background: var(--navy-deep); border: 1px solid var(--navy-deep); color: var(--ink-inv); font-size: 16px; height: 56px; padding: 0 26px; }
.btn--navy:hover { background: var(--navy); border-color: var(--navy); color: var(--ink-inv); }
.btn--outline { background: var(--bg); border: 1px solid #D9DCE3; color: var(--navy-deep); font-weight: 800; font-size: 16px; height: 56px; padding: 0 26px; }   /* U162: no black border */
.btn--outline:hover { background: var(--bg-2); color: var(--navy-deep); }
.btn--sm { height: 50px; font-size: 15px; padding: 0 22px; }
.btn--lg { height: 60px; font-size: 18px; padding: 0 40px; }
.btn__tag { font-family: var(--font-mono); font-size: 11px; background: var(--navy); color: var(--ink-inv); padding: 2px 5px; }
.pill { font-size: 13.5px; border: 1px solid var(--line-3); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center;
        background: var(--bg); color: var(--navy); border-radius: 2px; font-weight: 600; }
.pill:hover { background: var(--bg-2); text-decoration: none; }

/* =========================================================== home: hero */
.ruled { position: relative; overflow: hidden; }
.ruled::before { content: ""; position: absolute; inset: 0; background-image: var(--rule-40); pointer-events: none; }
.ruled--32::before { background-image: var(--rule-32); }
.ruled > * { position: relative; }
.hero { background: var(--tint); }
.hero__in { max-width: 1200px; margin: 0 auto; padding: 72px 24px 64px; display: flex; gap: 48px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-size: 46px; line-height: 1.32; font-weight: 900; letter-spacing: -1.2px; color: var(--navy-deep); }
.hero h1 .hero__sub { display: block; font-weight: 700; color: var(--ink); }
.hero p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 560px; }
.hero__paper { flex: 0 0 360px; position: relative; height: 430px; }
/* U115: 새 소식 panel in place of the PDF picture (config home.news); static, no JavaScript */
.news { flex: 0 0 380px; min-width: 0; background: var(--bg); border: 1px solid var(--line); padding: 20px 20px 12px; }
.news h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--navy-deep); letter-spacing: -0.2px; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li + li { border-top: 1px solid var(--line); }
.news__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 4px; color: var(--ink); }
.news__item:hover { text-decoration: none; background: var(--bg-2); }
.news__item:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.news__item--main { padding: 16px 4px; }
.news__tag { flex-shrink: 0; align-self: flex-start; margin-top: 2px; min-width: 52px; text-align: center; background: var(--navy-deep); color: var(--ink-inv); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 2px; }
.news__item--main .news__tag { background: var(--hl); color: var(--ink); }
.news__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.news__title { font-size: 16px; font-weight: 800; color: var(--navy-deep); letter-spacing: -0.3px; }
.news__item--main .news__title { font-size: 18px; }
.news__text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.news__arrow { flex-shrink: 0; color: var(--navy); font-weight: 700; }
.paper { background: var(--bg); border: 1px solid var(--line-3); box-shadow: 0 8px 24px rgba(15, 30, 70, 0.12); display: block; }
.paper img { display: block; width: 100%; height: auto; }
.hero__paper .paper--back { position: absolute; left: 40px; top: 22px; width: 280px; height: 396px; transform: rotate(4deg);
                            border-color: var(--line-2); box-shadow: none; }
.hero__paper .paper--front { position: absolute; left: 0; top: 0; width: 290px; }

/* =========================================================== home: highlight band */
.band { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.band__in { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; }
.band__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; flex: 1 1 560px; }
.band h2 { margin: 0; font-size: 38px; line-height: 1.35; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.band h2 mark { padding: 0 4px; }
.chips__label { font-size: 14px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-book { font-size: 15px; font-weight: 700; color: var(--ink-inv); background: var(--navy); padding: 0 16px; min-height: 44px;
             border-radius: 2px; display: inline-flex; align-items: center; border: 1px solid var(--navy); }
.chip-book:hover { background: var(--navy-deep); color: var(--ink-inv); text-decoration: none; }
.band__btns { display: flex; flex-wrap: wrap; flex-shrink: 0; }

/* =========================================================== home: 콘텐츠 소개 (CSS-only tabs) */
.contents { max-width: 1200px; margin: 0 auto; padding: 88px 24px 40px; }
.contents__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.contents__head h2 { margin: 0; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -2px; color: var(--ink); }
.tabs { display: flex; gap: 28px; flex-wrap: nowrap; overflow-x: auto; }
.tabs a { font-size: 18px; font-weight: 700; color: var(--faint); border-bottom: 3px solid transparent; padding: 6px 0;
          min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tab-panel { display: flex; gap: 56px; align-items: center; scroll-margin-top: 24px; }
.tab-panel + .tab-panel { margin-top: 56px; }
.tab-panel__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tab-panel__no { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.tab-panel h3 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -1px; color: var(--navy-deep); line-height: 1.25; }
.tab-panel p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.tab-panel p.tab-panel__tags { font-size: 15px; font-weight: 700; color: var(--ink); }
.tab-panel .btn { align-self: flex-start; margin-top: 10px; }
.tab-panel__img { flex: 1 1 560px; min-width: 0; background: var(--tint); height: 420px; display: flex; align-items: center; justify-content: center; }
.tab-panel__img .paper { width: 270px; }
.qa { background: var(--bg-2); border-left: 3px solid var(--navy); padding: 14px 18px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.qa b { color: var(--ink); }
.qa p { margin: 0; font-size: inherit; }
.qa p + p { margin-top: 4px; }
/* one panel at a time where :has() exists; otherwise all four stay stacked and readable */
@supports selector(:has(a)) {
  .contents:not(.js-tabs) .tab-panel { display: none; }
  .contents:not(.js-tabs) .tab-panel + .tab-panel { margin-top: 0; }
  .contents:not(.js-tabs):not(:has(.tab-panel:target)) .contents__head + .tab-panel,
  .contents:not(.js-tabs) .tab-panel:target { display: flex; }
  .contents:not(.js-tabs):not(:has(.tab-panel:target)) .tabs a:first-child,
  .contents:not(.js-tabs):has(#c1:target) .tabs a[href="#c1"], .contents:not(.js-tabs):has(#c2:target) .tabs a[href="#c2"],
  .contents:not(.js-tabs):has(#c3:target) .tabs a[href="#c3"], .contents:not(.js-tabs):has(#c4:target) .tabs a[href="#c4"] {
    color: var(--navy); font-weight: 800; border-bottom-color: var(--navy); }
}
/* with JavaScript (050): the script switches panels without scrolling and keeps aria-selected in sync */
.contents.js-tabs .tab-panel { display: none; }
.contents.js-tabs .tab-panel + .tab-panel { margin-top: 0; }
.contents.js-tabs .tab-panel.is-active { display: flex; }
.contents.js-tabs .tabs a[aria-selected="true"] { color: var(--navy); font-weight: 800; border-bottom-color: var(--navy); }

/* =========================================================== rows: 새로 올라온 자료, /exams/ */
.latest { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; gap: 16px; }
.sec-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.6px; }
.sec-head a { font-size: 14px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: flex; gap: 20px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); min-height: 44px; }
.row:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.row__thumb { flex: 0 0 52px; height: 68px; background: var(--bg); border: 1px solid var(--line-3); overflow: hidden; }
.row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__kind { font-size: 12px; font-weight: 700; color: var(--navy); }
.row__title { font-size: 17px; font-weight: 700; line-height: 1.45; }
.row__meta { font-size: 13px; color: var(--muted); }
.row__date { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* =========================================================== number band */
.numbers { background: var(--navy-deep); color: var(--ink-inv); }
.numbers__in { max-width: 1200px; margin: 0 auto; padding: 40px 24px 32px; }
.numbers__item { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-height: 44px; }
.numbers a.numbers__item:hover { text-decoration: none; }
.numbers a.numbers__item:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* U205: row 1 = usage numbers (stats.js), the row keeps its height from the first paint (the grey line while no number passes its floor), row 2 = the question counts per subject, under it the free / answers line */
.numbers__use { min-height: 144px; box-sizing: border-box; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.numbers__none { margin: 0; text-align: center; font-size: 16px; color: var(--ink-inv-2); }
.numbers__use[data-has] .numbers__none { display: none; }
.numbers__use:not([data-has]) .numbers__cells { display: none; }
.numbers__cells { display: flex; gap: 24px; width: 100%; align-items: flex-start; }
.numbers__ucell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.numbers__ucell[hidden] { display: none; }
.numbers__lab { font-size: 14px; font-weight: 700; color: var(--ink-inv-2); }
.numbers__ucell strong { font-size: 36px; }
.numbers__ucell strong small { font-size: 18px; }
.numbers__subj { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; align-items: start; }
.numbers__subj strong { font-size: 36px; }
.numbers__subj strong small { font-size: 17px; }
.numbers p.numbers__free { margin: 26px 0 0; text-align: center; font-size: 14px; color: var(--ink-inv-2); }
.numbers strong { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.2;
                  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }   /* U118b: the unit drops whole under the number */
.numbers strong small { font-size: 20px; white-space: nowrap; }
.numbers strong .numbers__hl { color: var(--hl); }   /* the only yellow text: on the deep navy band (about 11:1), never on white */
.numbers span.numbers__cap { font-size: 14px; color: var(--ink-inv-2); }
@media (max-width: 900px) { .numbers__subj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers__subj > :last-child:nth-child(odd) { grid-column: 1 / -1; } }   /* U118b / U205: two columns up to 900px; an odd last cell spans both */

/* =========================================================== ad slots: always labelled 광고 */
.ad-wrap { margin: 40px 0; }
/* 054: with no ad box (ads off) a section directly under the page header still gets its own space */
.page-head + section { margin-top: 30px; }
/* 054: a box is rendered only with a real AdSense unit in it (site.ads_enabled + site.ad_units); the small 광고 label sits
   above the ad, and min-height (only then) avoids layout shift while the ad loads */
.ad-slot { display: block; }
.ad-slot__label { font-size: 12px; color: var(--faint); letter-spacing: 1px; margin-bottom: 6px; }
/* U208 (design_system §8): every slot reserves its height (PC 250, phone 280) so nothing moves when the ad arrives; grey box only (no field colour, navy or yellow) */
.ad-slot { background: #F4F5F7; border: 1px solid #E5E8EB; border-radius: 10px; padding: 10px 12px 12px; }
.ad-slot .adsbygoogle, .ad-ph { min-height: 250px; box-sizing: border-box; }
.ad-ph { display: flex; align-items: center; justify-content: center; border: 1px dashed #C4C9D1; border-radius: 6px; background: #ECEEF1; color: #6B7684; font-size: 14px; text-align: center; }
.ad-slot--off { display: none; }                  /* unfilled and below the viewport: folded (the observer in the macro) */
.ad-slot--kept .adsbygoogle { visibility: hidden; }  /* unfilled but in view: the space stays */
.home-ad { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
/* 153: the home banner (config home.slides; design approved by Jaehyuk 2026-10-24, planning/home_slides/banner_preview.html).
   A photo carousel, 440px tall on a PC (600px on a phone), rounded 16px, in the page's 1200px wrap. Native scroll-snap does
   swipe; home.js adds autoplay, the dots and the arrows. Under 720px the photo moves on top (brand, school) or fills the card
   with the text over its bottom (news, store). Backgrounds are named (config `bg`), never free CSS. */
@font-face { font-family: "Noto Serif KR Brand"; font-weight: 700; font-style: normal; font-display: swap;
             src: url(/assets/fonts/notoserif/noto-serif-kr-700-brand-v4.woff2) format("woff2"); }   /* a subset: only the brand title's glyphs (generator/tools/make_home_assets.py) */
.hb { --hb-serif: "Noto Serif KR Brand", "Noto Serif KR", "Nanum Myeongjo", Batang, serif; --hb-gold: #9A7B3F; --hb-dot: #C5CCD8; padding: 24px 0 0; }
.hb__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hb__frame { position: relative; min-width: 0; }
.hb__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 16px; }
.hb__track::-webkit-scrollbar { display: none; }
.hb__slide { flex: 0 0 100%; min-width: 0; min-height: 440px; scroll-snap-align: start; position: relative; overflow: hidden; display: flex; align-items: center; }
.hb__bg--wall { background: linear-gradient(90deg, #EFEDEA 0%, #EFEDEA 45%, #D6D4D1 100%); }
.hb__bg--news { --hb-rgb: 244, 241, 236; background: rgb(var(--hb-rgb)); }
.hb__bg--store { --hb-rgb: 247, 243, 236; background: rgb(var(--hb-rgb)); }
.hb__bg--school { background: linear-gradient(180deg, #D7E8FB 0%, #EAF3FD 55%, #F4EBDB 100%); }
.hb picture { display: block; }
.hb img { max-width: none; }
/* the photo (news, store): on the right, full height; the slide's own colour fades over its left edge */
.hb__slide--photo > picture.hb__photo, .hb__slide--photo > noscript > picture.hb__photo { position: absolute; right: 0; top: 0; height: 100%; z-index: 0; }   /* 157a: the <noscript> copy matches too */
.hb__slide--photo > picture.hb__photo img, .hb__slide--photo > noscript > picture.hb__photo img { display: block; height: 100%; width: auto; }
.hb__slide--photo.hb__bg--news::after, .hb__slide--photo.hb__bg--store::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hb__slide--photo.hb__bg--news::after { background: linear-gradient(90deg, rgb(var(--hb-rgb)) 0%, rgb(var(--hb-rgb)) 52%, rgba(var(--hb-rgb), .7) 58%, rgba(var(--hb-rgb), 0) 68%); }
.hb__slide--photo.hb__bg--store::after { background: linear-gradient(90deg, rgb(var(--hb-rgb)) 0%, rgb(var(--hb-rgb)) 53%, rgba(var(--hb-rgb), .6) 59%, rgba(var(--hb-rgb), 0) 68%); }
/* the school photo: whole (3:2) at the banner's height, its left edge fading into the sky; voices sit over it */
.hb__bg--school > div.hb__photo { position: absolute; right: 0; top: 0; height: 100%; aspect-ratio: 3 / 2; z-index: 0; }
.hb__bg--school > div.hb__photo img { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.hb__voice { position: absolute; left: var(--hb-x, 50%); transform: translate(-50%, -100%) rotate(var(--hb-tilt, 0deg)); font-weight: 900; font-size: 27px; white-space: nowrap; color: var(--navy-deep); padding-bottom: 24px; letter-spacing: -0.3px;
  text-shadow: -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 8px rgba(0, 0, 0, .25); }
.hb__voice::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 22px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cg stroke='%23ffffff' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M8 3 L15 14'/%3E%3Cpath d='M22 2 L22 15'/%3E%3Cpath d='M36 3 L29 14'/%3E%3C/g%3E%3Cg stroke='%230F1E46' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 3 L15 14'/%3E%3Cpath d='M22 2 L22 15'/%3E%3Cpath d='M36 3 L29 14'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
/* the brand slide: the two teachers on the right, a pile of three real PDF pages between them and the text */
.hb__people { position: absolute; right: 0; top: 0; height: 100%; z-index: 0; }
.hb__people img { display: block; height: 100%; width: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hb__pile { position: absolute; left: calc(47% + 12px); top: 80px; width: 200px; height: 283px; z-index: 0; }
.hb__page { position: absolute; left: 0; top: 0; width: 200px; height: auto; border: 1px solid #DDD6CB; box-shadow: 0 14px 30px rgba(15, 30, 70, .18); }
.hb__page--l { transform: translate(-72px, 14px) rotate(-9deg); }
.hb__page--r { transform: translate(72px, 6px) rotate(7deg); }
.hb__page--f { transform: rotate(-1.5deg); }
.hb__text { position: relative; z-index: 2; padding: 56px 56px 84px; max-width: 600px; display: grid; justify-items: start; gap: 12px; }
.hb .hb__title { margin: 2px 0 0; max-width: none; font-family: var(--hb-serif); font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: -0.5px; color: var(--navy-deep); word-break: keep-all; text-wrap: balance; }   /* 153a: serif on every slide */
.hb__slide--brand .hb__title { font-size: 36px; margin-top: 4px; }   /* 153c: slide 1 keeps its size */
.hb__slide--brand .hb__text { padding-top: 46px; padding-bottom: 74px; }   /* U131: the keyword line adds 20px; slide 1 keeps its height (440) */
.hb .hb__p { margin: 0; max-width: none; font-size: 17px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; }
.hb__tag { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--navy-deep); color: var(--ink-inv); }   /* 153c: the chips are back on slides 2-4 */
.hb__tag--soon { background: #FFF4D6; color: #8A5A00; border: 1px solid #F0D58A; }
.hb__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--hb-gold); }
.hb__eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--hb-gold); }
.hb__btns { display: flex; gap: 10px; margin-top: 10px; }
.hb__btn { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--navy); border: 1px solid var(--navy); color: var(--ink-inv); font-weight: 700; font-size: 15px; }
.hb__btn:hover { text-decoration: none; background: var(--navy-deep); border-color: var(--navy-deep); color: var(--ink-inv); }
.hb__btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hb__btns .hb__btn { margin-top: 0; }
.hb__slide--brand .hb__btn { border-radius: 2px; background: var(--navy-deep); border-color: var(--navy-deep); }   /* slide 1: square */
.hb__btn--line, .hb__slide--brand .hb__btn--line { background: var(--bg); color: var(--navy-deep); }
.hb__btn--line:hover, .hb__slide--brand .hb__btn--line:hover { background: var(--navy-pale); color: var(--navy-deep); }
.hb__soon { margin-top: 10px; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px dashed var(--hb-dot); border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; letter-spacing: 1.5px; cursor: default; user-select: none; }   /* a label, not a button: no hover, not focusable */
.hb__controls { position: absolute; left: 56px; bottom: 36px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.hb__controls[hidden] { display: none; }
.hb__dots { display: flex; }
.hb__dot { width: 24px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hb__dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--hb-dot); transition: width .25s; }
.hb__dot[aria-current="true"] span { width: 22px; border-radius: 4px; background: var(--navy); }
.hb__dot:focus-visible, .hb__arrow:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.hb__arrow { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--navy-deep); cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hb__arrow:hover { background: var(--bg-2); }
/* U143c: the keyword line under slide 1's title stays inside the <h1> for search engines but is not shown (U131 had made it visible) */
.hb-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the 새 소식 panel, under the carousel */
.hb-news { padding: 24px 0 8px; }
.hb-news__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hb-news .news { flex: none; width: 100%; padding-bottom: 8px; }
.hb-news .news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-news .news__list li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 20px; }
.hb-news .news__list li { padding-right: 20px; }
.hb-news .news__item { height: 100%; align-items: flex-start; }
@media (max-width: 900px) {
  .hb-news .news__list { display: block; }
  .hb-news .news__list li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .hb-news .news__list li { padding-right: 0; }
}
@media (max-width: 719px) {
  .hb { padding-top: 16px; }
  .hb__in { padding: 0 16px; }
  .hb__slide { min-height: 600px; align-items: flex-end; }
  .hb__text { padding: 0 20px 84px; max-width: none; gap: 8px; }
  .hb .hb__title { font-size: 23px; }
  .hb__slide--brand .hb__title { font-size: 25px; }
  .hb__slide--brand .hb__text { padding-top: 0; padding-bottom: 76px; }   /* U131: the keyword line (2 lines here) adds 8px; slide 1 keeps its height (600) */
  .hb .hb__p { font-size: 15px; }
  .hb__btn, .hb__soon { height: 42px; }
  .hb__btn, .hb__soon, .hb__btns .hb__btn { margin-top: 6px; }
  .hb__btns .hb__btn { margin-top: 0; }
  .hb__btns { margin-top: 6px; }
  .hb__slide--brand .hb__btn { padding: 0 16px; font-size: 14px; }
  .hb__controls { left: 20px; bottom: 22px; }
  .hb-pc { display: none; }
  /* news, store: the photo fills the card's top (focus = its horizontal crop); the slide's colour fades up over its bottom */
  .hb__slide--photo > picture.hb__photo, .hb__slide--photo > noscript > picture.hb__photo { left: 0; right: 0; height: 380px; }
  .hb__slide--photo > picture.hb__photo img, .hb__slide--photo > noscript > picture.hb__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hb-focus, 50%) 0; }
  .hb__slide--photo.hb__bg--news::after { background: linear-gradient(180deg, rgba(var(--hb-rgb), 0) 0%, rgba(var(--hb-rgb), 0) 44%, rgba(var(--hb-rgb), .88) 60%, rgb(var(--hb-rgb)) 68%) }
  .hb__slide--photo.hb__bg--store > picture.hb__photo, .hb__slide--photo.hb__bg--store > noscript > picture.hb__photo { height: 330px; }   /* 153b, kept by 153c: a shorter photo, and the fade starts higher, so the chip and the title sit on the plain background */
  .hb__slide--photo.hb__bg--store::after { background: linear-gradient(180deg, rgba(var(--hb-rgb), 0) 0%, rgba(var(--hb-rgb), 0) 34%, rgba(var(--hb-rgb), .85) 46%, rgb(var(--hb-rgb)) 54%) }
  /* brand: the teachers + page pile picture on top, the text below on the wall colour */
  .hb__bg--wall { background: #EFEDEA; }
  .hb__slide--brand { flex-direction: column; align-items: stretch; }
  .hb__people { position: static; height: auto; }
  .hb__people img { width: 100%; height: 219px; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }   /* U131c: the height of the 3:2 photo at 360 px, fixed, so slide 1 stays 600 from 360 to 430 px */
  .hb__pile { display: none; }
  .hb__slide--brand .hb__text { padding-top: 18px; }
  /* school: the whole photo on top, the text below */
  .hb__bg--school { flex-direction: column; align-items: stretch; }
  .hb__bg--school > div.hb__photo { position: relative; right: auto; top: auto; width: 100%; height: auto; }
  .hb__bg--school > div.hb__photo img { height: auto; -webkit-mask-image: none; mask-image: none; }
  .hb__bg--school .hb__text { padding-top: 18px; }
  .hb__voice { left: var(--hb-xm, var(--hb-x, 50%)); font-size: 15px; padding-bottom: 13px; text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
  .hb__voice::after { width: 34px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hb__dot span { transition: none; } }
.numbers__n { font-variant-numeric: tabular-nums; }
/* U123: scroll reveal on every home block (home.js adds .rv only after it runs, so with no JavaScript, an error, no
   IntersectionObserver or reduced motion nothing is ever hidden). Only opacity and transform change. */
.rv { opacity: 0; transform: translateY(24px); }
.rv--in { opacity: 1; transform: none;
          transition: opacity 600ms cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms), transform 600ms cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms); }
@media (max-width: 760px) { .rv { transform: translateY(16px); } }
.hub-sec[id] { scroll-margin-top: 16px; }
/* 157: home 문제 PDF section (above 「콘텐츠 소개」): three real pages of one unit as a fanned bundle. The end state is the default (no
   JavaScript, reduced motion); home.js adds .pdfsec--pre (the bundle and the chips are folded) while the section is below the fold and
   .pdfsec--go when it scrolls into view: the bundle rises and the two back pages fan out (1.5 s, ease-out), then the chips fade in. */
.pdfsec { padding: 40px 0 8px; }
.pdfsec__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.pdfsec__in { background: var(--tint); border-radius: 20px; max-width: 1152px; padding: 56px 64px; box-sizing: border-box; }
.pdfsec__text { display: grid; gap: 14px; justify-items: start; }
.pdfsec__eyebrow { font-size: 15px; font-weight: 800; color: var(--navy); }
.pdfsec__title { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; color: var(--navy-deep); word-break: keep-all; }
.pdfsec__p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 520px; }
.pdfsec__chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; transition: opacity .6s ease-out 1.3s; }
.pdfsec__chips li { padding: 8px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); color: var(--navy); font-weight: 800; font-size: 15px; }
.pdfsec__link { font-weight: 800; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.pdfsec__bundle { position: relative; aspect-ratio: 1.45 / 1; min-width: 0; }
.pdfsec__page { position: absolute; display: block; height: auto; max-width: none; border: 1px solid #DDD6CB; box-shadow: 0 14px 34px rgba(15, 30, 70, .2); background: #FBF7EF;
                transition: transform 1.5s cubic-bezier(.16, .84, .3, 1), opacity .5s ease-out; }
.pdfsec__page--front { left: 28%; top: 3%; width: 44%; z-index: 3; transform: rotate(-0.8deg); }
.pdfsec__page--left { left: 3%; top: 12%; width: 35%; z-index: 1; transform: rotate(-7deg); }
.pdfsec__page--right { right: 1%; top: 2%; width: 35%; z-index: 2; transform: rotate(6deg); }
.pdfsec__tag { position: absolute; z-index: 4; padding: 6px 16px; border-radius: 999px; background: var(--navy); color: var(--ink-inv); font-weight: 800; font-size: 14px; white-space: nowrap; transition: opacity .6s ease-out 1.3s; }
.pdfsec__tag--left { left: 9%; top: 24%; }
.pdfsec__tag--right { right: 2%; top: 14%; }
.pdfsec__tag--front { left: 41%; bottom: 0; }
.pdfsec--pre .pdfsec__page--front { transform: translateY(46px) rotate(-0.8deg); opacity: 0; }
.pdfsec--pre .pdfsec__page--left { transform: translate(34%, 6%) rotate(0deg); opacity: 0; }
.pdfsec--pre .pdfsec__page--right { transform: translate(-34%, 6%) rotate(0deg); opacity: 0; }
.pdfsec--pre .pdfsec__chips, .pdfsec--pre .pdfsec__tag { opacity: 0; transition: none; }
@media (max-width: 860px) {
  .pdfsec { padding-top: 28px; }
  .pdfsec__in { grid-template-columns: minmax(0, 1fr); padding: 32px 22px 28px; gap: 24px; border-radius: 16px; }
  .pdfsec__title { font-size: 28px; }
  .pdfsec__p { font-size: 15.5px; }
  .pdfsec__tag { font-size: 12.5px; padding: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) { .pdfsec__page, .pdfsec__chips, .pdfsec__tag { transition: none; } }

/* U133 / U133b: home story block (.hstory): the tint panel of .pdfsec; text left, cards right (option B: one big card + up to three rows);
   the link is its own grid item so it sits under the text on PC and is a full-width button on phones. Reused by the next blocks. */
.hstory { padding: 40px 0 8px; }
.hstory__in { max-width: 1152px; margin: 0 auto; padding: 52px 56px; box-sizing: border-box; background: var(--tint); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); grid-template-areas: "text cards" "link cards"; column-gap: 48px; row-gap: 0; align-items: center; }
.hstory__text { grid-area: text; align-self: end; display: grid; gap: 14px; justify-items: start; }
.hstory__eyebrow { font-size: 15px; font-weight: 800; color: var(--navy); }
.hstory__title { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; color: var(--navy-deep); word-break: keep-all; }
.hstory__p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 520px; }
.hstory__chips { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 10px; justify-content: start; }
.hstory__chips li { padding: 7px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); color: var(--navy); font-weight: 800; font-size: 14px; }
.hstory__link { grid-area: link; align-self: start; justify-self: start; margin-top: 10px; font-weight: 800; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.hstory__cards { grid-area: cards; display: grid; gap: 12px; min-width: 0; }
.hstory__big, .hstory__rows { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.hstory__big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); color: var(--ink); text-decoration: none; }
.hstory__big:hover, .hstory__row:hover { text-decoration: none; color: var(--ink); }
.hstory__big:hover { border-color: var(--navy); }
.hstory__media { position: relative; display: block; min-height: 220px; background: var(--tint); overflow: hidden; }
.hstory__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hstory__media--plain { display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 14px; font-weight: 800; }
.hstory__body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 22px; min-width: 0; }
.hstory__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hstory__tag { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); }
.hstory__tag--topic { background: var(--navy-pale); border-color: var(--navy-pale-bd); color: var(--navy); }
.hstory__tag--new { background: var(--hl); border-color: var(--hl); color: var(--ink); }
.hstory__en { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--navy-deep); overflow-wrap: anywhere; }
.hstory__ko { font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.hstory__meta { font-size: 13px; color: var(--muted); }
.hstory__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 44px; padding: 12px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.hstory__row:first-child { border-top: 0; }
.hstory__thumb { position: relative; display: block; width: 112px; height: 63px; border-radius: 8px; background: var(--tint); overflow: hidden; }
.hstory__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hstory__thumb.hstory__media--plain { min-height: 0; font-size: 12px; }
.hstory__rtext { display: grid; gap: 4px; min-width: 0; }
.hstory__rline { font-size: 12px; font-weight: 800; color: var(--navy); }
.hstory__rmd { display: none; }
.hstory__rko { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.hstory__rdate { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .hstory { padding-top: 28px; }
  .hstory__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "cards" "link"; row-gap: 22px; padding: 32px 18px 24px; border-radius: 16px; }
  .hstory__text { align-self: auto; }
  .hstory__title { font-size: 28px; }
  .hstory__p { font-size: 15.5px; }
  .hstory__link { align-self: auto; justify-self: stretch; justify-content: center; margin-top: 0; min-height: 48px; border: 1px solid var(--navy); border-radius: 12px; background: var(--bg); }
  .hstory__big { grid-template-columns: minmax(0, 1fr); }
  .hstory__media { min-height: 0; aspect-ratio: 16 / 9; }
  .hstory__body { padding: 16px 18px 18px; }
  .hstory__row { grid-template-columns: 96px minmax(0, 1fr); padding: 12px 14px; }
  .hstory__thumb { width: 96px; height: 54px; }
  .hstory__rko { font-size: 14.5px; }
  .hstory__rlv, .hstory__rdate { display: none; }
  .hstory__rmd { display: inline; }
}

/* U134: three more home story blocks on the .hstory panel: modifiers --dark / --plain / --flip, and the cards of 문제 풀기 (.hq, .hstory__grades),
   중학 수학 (.hm) and 학교별 시험 정보 (.hs). Same geometry as the news block; phones: text, visual, link. */
.hstory--dark .hstory__in { background: var(--navy-deep); }
.hstory--dark .hstory__title { color: var(--ink-inv); }
.hstory--dark .hstory__p { color: var(--ink-inv-2); }
.hstory--dark .hstory__eyebrow { background: var(--hl); color: var(--navy-deep); padding: 2px 8px; border-radius: 4px; }
.hstory--plain .hstory__in { background: var(--bg-2); border: 1px solid var(--line); }
@media (min-width: 861px) {
  .hstory--flip .hstory__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); grid-template-areas: "cards text" "cards link"; }
  .hstory--solve .hstory__in { grid-template-areas: "cards text"; }
  .hstory--solve .hstory__text { align-self: center; }
}
.hstory__grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 8px; }
.hstory__grade { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--ink-inv); text-decoration: none; box-sizing: border-box; }
.hstory__grade:hover { background: rgba(255, 255, 255, .16); color: var(--ink-inv); text-decoration: none; }
.hstory__grade-name { font-size: 15px; font-weight: 800; }
.hstory__grade-n { font-size: 13px; font-weight: 700; color: var(--ink-inv-2); }
.hq { display: block; background: var(--bg); color: var(--ink); border-radius: 14px; padding: 22px 24px 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); text-decoration: none; min-width: 0; }
.hq:hover { color: var(--ink); text-decoration: none; }
.hq > span, .hq__q > span { display: block; }
.hq__top { display: flex !important; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hq__bar { height: 4px; border-radius: 2px; background: var(--line); margin: 10px 0 18px; overflow: hidden; }
.hq__bar::before { content: ""; display: block; height: 100%; width: var(--hq-p, 5%); background: var(--navy); border-radius: 2px; }
.hq__no { font-size: 13px; font-weight: 800; color: var(--navy); }
.hq__stem { margin: 6px 0 12px; font-size: 17px; line-height: 1.5; font-weight: 800; color: var(--navy-deep); word-break: keep-all; }
.hq__pass { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.hq .blank { display: inline-block; min-width: 5em; height: 1em; border-bottom: 1.5px solid var(--ink); vertical-align: -2px; }
.hq .blank.xl, .hq .blank.full { min-width: 8em; }
.hq .nw { white-space: nowrap; }
.hq__opts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hq__opt { display: flex !important; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; box-sizing: border-box; min-width: 0; }
.hq__opt--on { border: 2px solid var(--navy); background: var(--navy-pale); padding: 7px 11px; }
.hq__cn { font-weight: 800; color: var(--ink-2); }
.hq__ot { overflow-wrap: anywhere; min-width: 0; }
.hq__pill { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--navy-deep); color: var(--ink-inv); font-size: 12px; font-weight: 800; white-space: nowrap; }
.hq__strat { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.hq__strat b { color: var(--navy); font-weight: 800; }
.hm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.hm__card { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.hm__card:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.hm__page { display: block; margin-bottom: 10px; border: 1px solid #DDD6CB; box-shadow: 0 10px 24px rgba(15, 30, 70, .16); background: #FBF7EF; aspect-ratio: 320 / 453; overflow: hidden; }
.hm__page img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm__name { font-size: 17px; font-weight: 800; color: var(--navy-deep); }
.hm__meta { font-size: 13px; font-weight: 700; color: var(--navy); }
.hm__set { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.hs { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.hs__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 15px; font-weight: 800; color: var(--navy-deep); border-bottom: 1px solid var(--line); }
.hs__grade { color: var(--navy); }
.hs__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 14px 20px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.hs__row:first-child { border-top: 0; }
.hs__row:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.hs__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs__short { font-size: 16px; font-weight: 800; color: var(--navy-deep); }
.hs__district { font-size: 13px; color: var(--ink-2); }
.hs__when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: right; }
.hs__tag { font-size: 12px; font-weight: 800; color: var(--navy); }
.hs .wiki-nw { white-space: nowrap; }
/* U136: home 한능검 block: 예상문제 set cards (.hh__set) and the 회차별 기출 card (.hh__rounds), each one link */
.hh { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.hh:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.hh__set { align-items: center; gap: 20px; padding: 18px 20px; }
.hh__page { flex: none; display: block; width: 96px; border: 1px solid #DDD6CB; box-shadow: 0 8px 18px rgba(15, 30, 70, .16); background: #FBF7EF; aspect-ratio: 320 / 453; overflow: hidden; }
.hh__page img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hh__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hh__title { font-size: 17px; line-height: 1.4; font-weight: 800; color: var(--navy-deep); word-break: keep-all; }
.hh__line { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hh__rounds { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 22px; }
.hh__next { padding: 3px 10px; border-radius: 6px; background: var(--hl); color: var(--ink); font-size: 15px; font-weight: 800; }
@media (max-width: 860px) {
  .hstory--solve .hstory__in { grid-template-areas: "text" "cards"; }
  .hstory__grades { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hstory__grade { flex-direction: row; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; }
  .hstory--dark .hstory__link { color: var(--ink-inv); border-color: rgba(255, 255, 255, .5); background: transparent; }
  .hq { padding: 18px 16px 20px; }
  .hq__stem { font-size: 16px; }
  .hq__pass { font-size: 16px; padding: 12px 14px; }
  .hq__opts { grid-template-columns: minmax(0, 1fr); }
  .hq__opt--ph { display: none !important; }
  .hm { gap: 8px; }
  .hm__card { padding: 8px 8px 12px; border-radius: 12px; }
  .hm__page { margin-bottom: 6px; }
  .hm__name { font-size: 14px; }
  .hm__meta { font-size: 11.5px; line-height: 1.35; }
  .hm__set { display: none; }
  .hs__head, .hs__row { padding-left: 16px; padding-right: 16px; }
  .hs__short { font-size: 15px; }
  .hs__when { font-size: 13px; }
}

/* U137: book page numbers row (.bk-nums, 2 x 2 on phones) and 자주 묻는 질문 (.bk-faq, rows split by 1px lines) */
.bk-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border: 1px solid var(--line); background: var(--bg); }
.bk-nums__cell { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.bk-nums__cell:first-child { border-left: 0; }
.bk-nums__label { font-size: 12px; color: var(--ink-2); }
.bk-nums__value { font-size: 24px; line-height: 1.25; font-weight: 900; color: var(--navy-deep); letter-spacing: -0.4px; }
.bk-faq__row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.bk-faq__row:first-of-type { padding-top: 16px; }
.bk-faq__q { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.bk-faq__a { margin: 6px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.bk-faq__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
@media (max-width: 860px) {
  .bk-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-nums__cell:nth-child(odd) { border-left: 0; }
  .bk-nums__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bk-nums__cell { padding: 14px 16px; }
  .bk-nums__value { font-size: 20px; }
  .bk-faq__list { grid-template-columns: minmax(0, 1fr); }
}
/* U110: two equal subject cards under the hero (영어 / 수학) */
.subjects { border-bottom: 1px solid var(--line); }
.subjects__in { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subject-card { border: 1px solid var(--line); background: var(--bg); padding: 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.subject-card h3 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.6px; color: var(--navy-deep); }
.subject-card p { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.hub-sec { margin-top: 34px; }
.hub-sec .book-grid, .hub-sec .rows { margin-top: 14px; }
/* U114: math unit landing pages and the hub's 단원별 안내 */
.unit-sem { font-size: 13.5px; font-weight: 700; color: var(--navy); margin: -4px 0 8px; }
.unit-text p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.8; }
.unit-terms { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.unit-terms li { border: 1px solid var(--line); background: var(--bg-2); padding: 6px 12px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.unit-list-plain { margin: 14px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; }
.unit-rel-h { font-size: 15px; font-weight: 800; margin: 20px 0 6px; }
.unit-rel { list-style: none; margin: 0; padding: 0; }
.unit-rel a { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.unit-rel li:last-child a { border-bottom: 0; }
.unit-rel a::before { content: "\00b7"; margin-right: 8px; color: var(--muted); }
@media (min-width: 861px) { .grid-2 > .card-link:only-child.is-next { grid-column: 2; } }
.home-ad .ad-wrap { margin: 0; }

/* =========================================================== inner pages: header, sections */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); display: inline-block; padding: 6px 0; }
.breadcrumb .sep { color: var(--line-3); margin: 0 7px; }
.page-head { background: var(--tint); padding: 34px 36px; }
.page-head h1 { margin: 0 0 12px; font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1.32; color: var(--navy-deep); }
.page-head h1 .h1-pre { display: block; font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -0.2px; margin-bottom: 4px; }
.page-head p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.page-head p + p { margin-top: 6px; }
.page-head .page-head__note { font-size: 13.5px; color: var(--ink-2); background: var(--bg); border-left: 3px solid var(--navy); padding: 8px 12px; margin-top: 14px; }
.page-head--unit { display: flex; gap: 26px; align-items: flex-start; }
.page-head--split { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head--split h1 { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 0.2px; margin-bottom: 8px; }
.unit-badge { background: var(--navy-deep); color: var(--ink-inv); width: 78px; flex-shrink: 0; text-align: center; padding: 10px 0 12px; }
.unit-badge__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.8px; opacity: 0.85; }
.unit-badge__num { font-size: 38px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
.h2-sec { margin: 48px 0 0; font-size: 24px; font-weight: 900; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.h2-sec--sm { font-size: 21px; }
.h2-sec__num { color: var(--navy); margin-right: 9px; }
.h3-sub { margin: 30px 0 12px; font-size: 18px; font-weight: 800; color: var(--navy-deep); display: flex; align-items: center; gap: 9px; }
.label-sm { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.2px; margin-bottom: 12px; }
/* U125: the 서술형 rule line under an answers page header: footnote-level, not a banner */
.answers-rule { margin: 14px 0 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.note-sm { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 10px 0 0; }
.goal { font-size: 14px; line-height: 1.6; }
.panel { background: var(--bg); border: 1px solid var(--line); }
.panel--pad { padding: 22px 26px; }
.panel--pad-lg { padding: 28px 32px; }
.panel--pad-sm { padding: 16px 18px; }
.prose { font-size: 15.5px; line-height: 1.9; }
.prose h2 { font-size: 19px; margin: 30px 0 8px; color: var(--navy-deep); }
.prose ul, .prose ol { padding-left: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.gap-11 { gap: 11px; }
.num-badge { background: var(--navy-deep); color: var(--ink-inv); width: 22px; height: 22px; display: inline-flex; align-items: center;
             justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.tag-exam { background: var(--navy-deep); color: var(--ink-inv); font-size: 11px; font-weight: 700; padding: 3px 8px; letter-spacing: 0.3px; }
.tag-navy { display: inline-block; background: var(--navy); color: var(--ink-inv); font-size: 11.5px; font-weight: 700; padding: 3px 9px; }

/* cards and file links */
.card-link { background: var(--bg); border: 1px solid var(--line); padding: 16px 18px; display: block; min-height: 44px; color: var(--ink); }
.card-link:hover { background: var(--bg-2); border-color: var(--line-3); text-decoration: none; }
.card-link__kicker { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.card-link__title { font-size: 15px; font-weight: 700; color: var(--navy); }
.file-link { background: var(--bg); border: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center;
             justify-content: space-between; gap: 12px; min-height: 44px; color: var(--ink); }
.file-link:hover { background: var(--bg-2); text-decoration: none; }
.file-link__name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.file-link__meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.file-link--solid { background: var(--navy-deep); border-color: var(--navy-deep); }
.file-link--solid:hover { background: var(--navy); }
.file-link--solid .file-link__name { color: var(--ink-inv); font-weight: 700; }
@media (max-width: 760px) {   /* U130: a long meta line wraps instead of pushing the row wider than a phone (desktop rows unchanged) */
  .file-link__name { flex: 1 1 auto; min-width: 0; }
  .file-link__meta { flex-shrink: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
}
.unit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.unit-row { background: var(--bg); border: 1px solid var(--line); padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.unit-row__title { font-size: 15.5px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.unit-row__links { display: flex; gap: 6px; flex-shrink: 0; }
.unit-row__links a { font-size: 13px; border: 1px solid var(--line-3); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 2px; }
.unit-row__links a:hover { background: var(--bg-2); text-decoration: none; }
/* U129: the 문제 풀기 entry points (only rendered when the solve page is built) */
.pill-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-row--solve { flex-wrap: wrap; }
.unit-row--solve .unit-row__links { flex-wrap: wrap; }
.soon { font-size: 13px; color: var(--muted); }

/* book cards (/textbook/) */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.book-card { border: 1px solid var(--line); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg); color: var(--ink); min-height: 44px; }
a.book-card:hover { border-color: var(--navy); text-decoration: none; background: var(--bg-2); }
.book-card__name { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
a.book-card .book-card__name { color: var(--navy-deep); }
.book-card__meta { font-size: 13px; color: var(--muted); }
.book-card--soon .book-card__name { color: var(--faint); font-weight: 600; }
/* U120: /textbook/ grade sections; 준비 중 books as one muted line, not cards */
.tb-grade { margin-top: 30px; scroll-margin-top: 16px; }
.tb-grade__lead { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.book-soon { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* CTA band */
.cta { background: var(--navy-deep); padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta__title { font-size: 21px; font-weight: 900; color: var(--ink-inv); letter-spacing: -0.5px; margin-bottom: 8px; }
.cta__note { font-size: 14px; color: var(--ink-inv-2); line-height: 1.7; }
.cta .btn--light { background: var(--bg); color: var(--navy-deep); border: 1px solid var(--bg); height: 56px; padding: 0 26px; font-size: 16px; }
.cta .btn--light:hover { background: var(--hl); border-color: var(--hl); color: var(--navy-deep); }

/* =========================================================== PDF page */
.spec { background: var(--bg); border: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.types-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--bg); }
.types-table th, .types-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.types-table th { background: var(--bg-2); font-weight: 700; color: var(--ink-2); }
.types-table td.num { text-align: right; white-space: nowrap; }
.preview-panel { background: var(--tint); padding: 40px 32px; margin-top: 12px; }
.preview-panel .grid-3 { gap: 24px; }
.preview-panel figure { margin: 0; }
.thumb-img { display: block; width: 100%; height: auto; }
.thumb__cap { font-size: 12.5px; color: var(--ink-2); text-align: center; margin-top: 10px; }
/* U128: the quiet jump link in a math set page's header (a text link, not a second download button) */
.dl-panel { text-align: center; margin-top: 26px; border: 1px solid var(--line); padding: 32px 28px; background: var(--bg); }
.dl-file { font-size: 13px; color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.dl-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.en, .eg { font-family: var(--font); }
.eg { font-size: 16.5px; color: var(--ink); letter-spacing: 0; }
.ko { font-size: 13.5px; color: var(--ink-2); }
.u { text-decoration: underline; text-underline-offset: 3px; }
.o, .x { color: var(--red); font-weight: 700; }       /* answer marks: grading red */
.arrow { color: var(--navy); font-weight: 700; }
.gray, .tr { color: var(--ink-2); }
s { color: var(--muted); }
.blank { display: inline-block; min-width: 64px; border-bottom: 1.5px solid var(--ink); height: 1em; vertical-align: -2px; }
.blank--w { min-width: 96px; }
.blank--l { min-width: 128px; }
.blank--xl { min-width: 168px; }
.blank--full { display: block; min-width: 0; width: 100%; height: 1.6em; }
.eg .ko, .quiz-item .ko { font-size: 13px; }

/* concept blocks */
.c-p { margin: 12px 0; font-size: 15.5px; line-height: 1.85; }
.c-ex { margin: 10px 0; padding: 12px 18px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.9; }
.c-item { margin-top: 28px; }
.c-box { margin: 12px 0; padding: 14px 18px; font-size: 15px; line-height: 1.8; }
.c-box h4 { margin: 0 0 6px; font-size: 15px; }
.c-box ol { margin: 6px 0 0; padding-left: 20px; }
.c-box--warn { background: var(--hl-pale); border-left: 4px solid var(--navy-deep); }
.c-box--warn h4 { color: var(--navy-deep); }
.c-box--tip { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--navy); }
.c-box--tip h4 { color: var(--navy); }
.role-table { background: var(--bg); border: 1px solid var(--line); }
.role-row { display: grid; grid-template-columns: 170px 170px minmax(0, 1fr); }
.role-row--3 { grid-template-columns: 150px 150px minmax(0, 1fr); }
.role-row .cell { padding: 16px 17px; }
.role-table .role-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.role-table .role-row--head { background: var(--bg-2); }
.role-table .role-row--head .cell { font-size: 13px; font-weight: 700; padding: 11px 17px; color: var(--ink-2); }
.role-name { font-size: 15px; font-weight: 700; }
.role-mean, .role-ko, .role-note { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.role-where { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.verb-box { padding: 16px 18px; }
.verb-box--ok { background: var(--navy-pale); border: 1px solid var(--navy-pale-bd); }
.verb-box--both { background: var(--hl-pale); border: 1px solid #EADF94; }
.verb-box--no { background: var(--bg-2); border: 1px solid var(--line-3); }
.verb-box__head { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.verb-box .en { font-size: 15px; line-height: 1.75; }
.check-list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.95; }
.box-note { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 18px 24px; }
.box-hl { background: var(--hl-pale); border: 1px solid #EADF94; padding: 20px 26px; }
.box-hl__title { font-size: 16px; font-weight: 800; color: var(--navy-deep); margin-bottom: 12px; }
.ins { font-size: 14px; color: var(--ink-2); margin: 8px 0 12px; }
.quiz-grid { background: var(--bg); border: 1px solid var(--line); padding: 20px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 34px; }
.quiz-item { font-size: 15.5px; border-bottom: 1px dotted var(--line-3); padding-bottom: 9px; }
.quiz-no { font-weight: 700; color: var(--navy); font-size: 13px; margin-right: 7px; }

/* questions */
.q { background: var(--bg); border: 1px solid var(--line); padding: 18px 22px; margin-top: 12px; }
.q__head { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.q__no { color: var(--navy); font-weight: 900; font-size: 18px; flex-shrink: 0; }
.q__lv { font-size: 11px; font-weight: 700; padding: 2px 6px; border: 1px solid var(--navy-pale-bd); color: var(--navy); flex-shrink: 0; }
.q__pts { color: var(--ink-2); font-weight: 700; }
.q__box { margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--bg-2); line-height: 1.85; }
.q__box--en { font-size: 15.5px; }
.q__label { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.q__opts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 15px; }
.q__opts--one { grid-template-columns: minmax(0, 1fr); }
.q__opts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q__resp { margin-top: 12px; line-height: 2; font-size: 15px; }
table.q__table { border-collapse: collapse; margin-top: 12px; font-size: 14px; width: 100%; }
table.q__table th, table.q__table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
table.q__table th { background: var(--bg-2); }

/* answers: correct choices and marks in grading red */
.ans { color: var(--red); font-weight: 800; }
.num-chip { border: 1px solid var(--line); padding: 0 4px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px;
            font-size: 13.5px; color: var(--ink); background: var(--bg); }
.num-chip:hover { background: var(--bg-2); text-decoration: none; }
.num-chip b { color: var(--navy); }
.num-chip--ref { font-size: 12px; color: var(--muted); }
.ans-chip { padding: 8px 4px; text-align: center; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.ans-chip b { color: var(--navy); margin-right: 2px; }
.ans-chip .ans-chip__a { color: var(--red); font-weight: 700; }
.quick { border: 1px solid var(--line); background: var(--bg-2); padding: 18px 22px; margin-top: 14px; }
.sol-list { background: var(--bg); border: 1px solid var(--line); margin-top: 14px; }
.sol { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.sol:last-child { border-bottom: 0; }
.sol__head { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sol__head .sol__no { color: var(--navy); }
.sol__head .pts { font-size: 12px; color: var(--muted); font-weight: 600; }
.sol__lesson { font-size: 11.5px; color: var(--navy); font-weight: 700; border: 1px solid var(--navy-pale-bd); padding: 1px 6px; }
.sol__body { margin: 0 0 9px; font-size: 15px; line-height: 1.8; }
.sol__row { display: flex; gap: 9px; align-items: flex-start; }
.sol__row + .sol__row { margin-top: 7px; }
.sol__text { font-size: 14.5px; line-height: 1.7; }
.sol--group { background: var(--bg-2); }
.sol--group .sol__head { color: var(--navy-deep); }
.chip { font-size: 11px; font-weight: 700; padding: 3px 8px; flex-shrink: 0; margin-top: 2px; white-space: nowrap; }
.chip--score { background: var(--navy-pale); color: var(--navy); }
.chip--trans { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip--trap { background: var(--hl); color: var(--ink); }
.chip--strat { background: var(--navy-deep); color: var(--ink-inv); }

/* =========================================================== narrow screens */
@media (max-width: 1000px) {
  .hero__paper { display: none; }
  .hero__in--news { flex-direction: column; align-items: stretch; gap: 28px; }   /* U115: panel below the text */
  .hero__in--news .hero__text, .news { flex: none; }   /* a flex-basis becomes a height in a column (050) */
}
@media (max-width: 760px) {
  .notice__in { padding: 0 16px; }
  .notice__msg a { min-height: 44px; display: flex; align-items: center; }   /* tap target; the bar grows to 44px */
  .notice__links { display: none; }
  .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
  .breadcrumb a, .breadcrumb > span { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  .page-mark img { height: 48px; }
  .hero__in { padding: 40px 16px 36px; flex-direction: column; align-items: stretch; gap: 28px; }
  .hero__text, .band__main { flex: none; }   /* 050: a flex-basis became a height in the column layout (the gaps) */
  .hero h1, .hero .hero__title { font-size: 28px; letter-spacing: -0.8px; }
  .hero p { font-size: 15.5px; }
  .hero__paper { display: block; flex: none; height: auto; }
  .hero__paper .paper--back { display: none; }
  .hero__paper .paper--front { position: static; width: 78%; max-width: 280px; margin: 0 auto; }
  .band__in { padding: 36px 16px; flex-direction: column; align-items: stretch; gap: 20px; }
  .band h2 { font-size: 26px; }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-book { padding: 0 12px; font-size: 14.5px; }
  .band__btns { flex-direction: column; gap: 8px; }
  .band__btns .btn { width: 100%; height: 54px; }
  .contents { padding: 52px 16px 24px; }
  .contents__head { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 26px; }
  .contents__head h2 { font-size: 38px; letter-spacing: -1.2px; }
  .tabs { gap: 20px; }
  .tabs a { font-size: 15.5px; }
  .tab-panel { flex-direction: column-reverse; align-items: stretch; gap: 22px; }
  .tab-panel h3 { font-size: 28px; }
  .tab-panel__img { flex: none; height: 260px; }
  .tab-panel__img .paper { width: 160px; }
  .latest { padding: 36px 16px; }
  .row { gap: 14px; }
  .row__thumb { display: none; }
  .row { flex-wrap: wrap; }
  .row__title { font-size: 15.5px; }
  .row__date { width: 100%; }
  .numbers__in { padding: 28px 16px 26px; }
  .numbers__subj { gap: 22px 16px; }
  .numbers strong, .numbers__subj strong { font-size: 30px; }
  .numbers strong small, .numbers__subj strong small { font-size: 16px; }
  .numbers__use { min-height: 168px; padding-bottom: 22px; margin-bottom: 22px; }
  .numbers__cells { gap: 10px; }
  .numbers__ucell strong { font-size: 24px; }
  .numbers__ucell strong small { font-size: 13px; }
  .numbers__lab { font-size: 12px; }
  .numbers__ucell .numbers__cap { font-size: 11.5px; line-height: 1.45; }
  .home-ad { padding: 28px 16px; }
  .subjects__in { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; gap: 12px; }
  .subject-card { padding: 20px; }
  .subject-card .btn { width: 100%; }
  .foot__cols { gap: 4px 32px; }
  .ad-slot .adsbygoogle, .ad-ph { min-height: 280px; }
  .foot__in { padding: 26px 16px 32px; flex-direction: column; }
  .page-body { padding: 16px 16px 48px; }
  .page-head { padding: 24px 20px; }
  .page-head h1 { font-size: 24px; }
  .page-head--unit { gap: 14px; }
  .unit-badge { width: 62px; }
  .unit-badge__num { font-size: 30px; }
  .panel--pad, .panel--pad-lg { padding: 18px; }
  .grid-2, .grid-3, .book-grid, .unit-list { grid-template-columns: minmax(0, 1fr); }
  .grid-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .preview-panel { padding: 24px 18px; }
  .preview-panel .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cta { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .btn--lg { width: 100%; padding: 0 20px; font-size: 17px; }
  .unit-row { flex-wrap: wrap; }
  .q { padding: 14px; }
  .q__opts, .q__opts--three { grid-template-columns: minmax(0, 1fr); }
  .role-row, .role-row--3 { grid-template-columns: minmax(0, 1fr); }
  .quiz-grid { grid-template-columns: minmax(0, 1fr); }
  .sol { padding: 14px 16px; }
  .c-ex, .q__box { overflow-wrap: anywhere; }
  .h2-sec { font-size: 21px; }
}

/* U143: the home banner as drawn pictures (design Banner_B). Navy slides, text left, picture right (a 420 x 230 drawing); on a phone the picture sits in
   its own 150px box above the text, scaled to .62, so nothing overlaps. Motion plays once when home.js gives the slide `.go`; the only loop is the
   calendar's walking blocks. Individual translate / scale / rotate properties keep the static tilts. */
.hb__bg--art { background: #0F1E46; color: #fff; }
.hb--art .hb__slide { min-height: 320px; }
.hb--art .hb__text { padding: 28px 0 60px 56px; flex: 1 1 0; max-width: none; gap: 8px; align-content: start; }
.hb--art .hb .hb__title, .hb--art .hb__title { color: #fff; font-size: 36px; margin-top: 2px; }
.hb--art .hb__p { color: #C9D3E8; }
.hb--art .hb__eyebrow { color: #FFE94A; } .hb--art .hb__eyebrow::after { background: #FFE94A; }
.hb--art .hb__tag { background: #FFE94A; color: #0F1E46; border-radius: 4px; padding: 3px 8px; }
.hb--art .hb__btn { background: #FFE94A; border-color: #FFE94A; color: #0F1E46; border-radius: 8px; height: 48px; }
.hb--art .hb__btn:hover { background: #fff; border-color: #fff; color: #0F1E46; }
.hb--art .hb__btn:focus-visible, .hb--art .hb__dot:focus-visible, .hb--art .hb__arrow:focus-visible { outline-color: #fff; }
.hb--art .hb__dot span { background: rgba(255, 255, 255, .35); }
.hb--art .hb__dot[aria-current="true"] span { background: #FFE94A; }
.hb--art .hb__controls { bottom: 8px; left: 50px; gap: 4px; }   /* 44px targets for the dots and arrows */
.hb--art .hb__dot { width: 28px; height: 44px; }
.hb--art .hb__arrow { width: 44px; height: 44px; font-size: 22px; }
.hb--art .hb__arrow { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; } .hb--art .hb__arrow:hover { background: rgba(255, 255, 255, .12); }
.ha-box { flex: 0 0 420px; height: 230px; position: relative; margin: 0 56px 0 24px; }
.ha-art { position: absolute; left: 0; top: 0; width: 420px; height: 230px; }
.ha-sh { position: absolute; width: 130px; height: 180px; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); padding: 14px; box-sizing: border-box; rotate: var(--r); }
.ha-sh i { display: block; height: 8px; border-radius: 4px; background: #E6E8EC; margin-bottom: 9px; } .ha-sh i.h { background: #FFE94A; width: 45%; }
.ha-k { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; border-radius: 4px; padding: 2px 6px; margin-bottom: 10px; }
.ha-card { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); box-sizing: border-box; color: #1F2329; rotate: var(--r, 0deg); }
.ha-ph { position: relative; height: 118px; border-radius: 6px; background: #C9D3E8; margin-bottom: 10px; overflow: hidden; }
.ha-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-cr { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; font-size: 8.5px; line-height: 1.3; color: #fff; background: rgba(15, 30, 70, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; } .ha-row--sp { justify-content: space-between; margin-bottom: 10px; }
.ha-en { font-size: 11px; font-weight: 800; color: #fff; background: #1F3C88; border-radius: 4px; padding: 2px 6px; }
.ha-bar { height: 9px; flex: 1; background: #0F1E46; border-radius: 4px; }
.ha-ln { height: 8px; background: #E6E8EC; border-radius: 4px; margin-bottom: 6px; }
.ha-wl { font-size: 11px; font-weight: 700; margin-bottom: 4px; } .ha-w { font-size: 18px; font-weight: 900; color: #0F1E46; overflow-wrap: anywhere; line-height: 1.25; }
.ha-ul { height: 7px; width: 60%; background: #FFE94A; border-radius: 4px; margin-top: 6px; }
.ha-chip { position: absolute; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 5px 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); white-space: nowrap; background: var(--bg); color: var(--c); }
.ha-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ha-cal span { height: 18px; border-radius: 4px; background: #F1F2F4; }
.ha-cal span.wy { background: var(--y); } .ha-cal span.wp { background: var(--p); }
.ha-bag { position: absolute; left: 115px; top: 62px; width: 190px; height: 160px; background: #FFE94A; border-radius: 10px 10px 18px 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.ha-bag::before { content: ""; position: absolute; left: 50%; top: -46px; width: 88px; height: 58px; margin-left: -44px; border: 8px solid #FFE94A; border-bottom: 0; border-radius: 44px 44px 0 0; box-sizing: border-box; }
.ha-bag::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: rgba(15, 30, 70, .08); border-radius: 10px 10px 0 0; }
.ha-mk { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; font-weight: 900; font-size: 28px; color: #0F1E46; letter-spacing: -1px; }
.ha-mk span { box-shadow: inset 0 -8px 0 #fff; padding: 0 2px; }
@keyframes ha-fan { from { translate: var(--fx) 26px; rotate: 0deg; opacity: 0; } to { translate: 0 0; rotate: var(--r); opacity: 1; } }
@keyframes ha-rise { from { translate: 0 26px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes ha-drop { 0% { translate: 0 -36px; opacity: 0; } 70% { translate: 0 4px; opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
@keyframes ha-pop { 0% { scale: .5; opacity: 0; } 70% { scale: 1.08; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes ha-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ha-walky { 0%, 22% { background: var(--y); } 30%, 100% { background: #F1F2F4; } }
@keyframes ha-walkp { 0%, 22% { background: var(--p); } 30%, 100% { background: #F1F2F4; } }
.go .ha-sh { animation: ha-fan .8s cubic-bezier(.2, .8, .2, 1) both; }
.go .ha-sh:nth-child(2) { animation-delay: .08s; } .go .ha-sh:nth-child(3) { animation-delay: .16s; } .go .ha-sh:nth-child(4) { animation-delay: .24s; }
.go .ha-card { animation: ha-rise .7s cubic-bezier(.2, .8, .2, 1) both; } .go .ha-card.ha-word { animation-delay: .25s; }
.go .ha-bag { animation: ha-drop .7s cubic-bezier(.2, .8, .2, 1) both; }
.go .ha-chip { animation: ha-pop .45s ease-out both; }
.go .ha-chip.d1 { animation-delay: .9s; } .go .ha-chip.d2 { animation-delay: 1.1s; } .go .ha-chip.d3 { animation-delay: 1.3s; }
.go .ha-cal-card { animation: ha-fade .5s ease-out .3s both; }
.go .ha-cal span.wy { animation: ha-walky 3.5s linear infinite; } .go .ha-cal span.wp { animation: ha-walkp 3.5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .go .ha-sh, .go .ha-card, .go .ha-bag, .go .ha-chip, .go .ha-cal-card, .go .ha-cal span { animation: none !important; } }
@media (max-width: 719px) {
  .hb--art .hb__slide { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 18px; }
  .hb--art .hb__text { padding: 10px 20px 56px; flex: 0 0 auto; gap: 6px; }   /* U143b: tighter, so the tallest slide (1) is shorter; the dots sit right under it */
  .hb--art .hb__controls { left: 14px; bottom: 6px; }
  .hb--art .hb .hb__title, .hb--art .hb__title { font-size: 26px; }
  .hb--art .hb__btn { width: 100%; }
  .ha-box { order: -1; flex: 0 0 auto; width: 100%; height: 150px; margin: 0; overflow: hidden; }
  .ha-art { left: 50%; margin-left: -131px; scale: .62; transform-origin: 0 0; }
}

/* U143: the block under the banner (design B): four field cards + 다가오는 시험. A field's colours come inline from home_fields.TYPES (--c, --bg). */
.hf { padding: 34px 0 6px; }
.hf__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.hf__main { flex: 999 1 640px; min-width: 0; }
.hf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.hf__head h2 { margin: 0; font-size: 22px; font-weight: 900; color: var(--navy-deep); }
.hf__head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.hf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hf__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); background: #fff; border-bottom: 4px solid var(--c); text-decoration: none; }
a.hf__card:hover { box-shadow: 0 10px 24px rgba(15, 30, 70, .12); text-decoration: none; color: var(--ink); }
a.hf__card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.hf__vis { display: block; height: 150px; background: var(--bg); position: relative; overflow: hidden; }
.hf__lab { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); border-radius: 6px; padding: 4px 10px; }
.hf__soon { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 12px; font-weight: 700; color: #4B515C; background: #fff; border-radius: 999px; padding: 3px 10px; }
.hf__pv { position: absolute; top: 34px; width: 92px; height: 122px; background: #fff; border-radius: 6px; box-shadow: 0 6px 16px rgba(15, 30, 70, .15); padding: 11px; box-sizing: border-box; }
.hf__pv--1 { left: 32%; } .hf__pv--2 { left: 52%; top: 22px; }
.hf__pv i { display: block; height: 8px; border-radius: 4px; background: #E6E8EC; margin-bottom: 9px; }
.hf__pv i.n { background: var(--c); width: 60%; height: 10px; } .hf__pv i.h { background: #FFE94A; width: 45%; }
.hf__tx { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.hf__tx strong { font-size: 20px; color: var(--navy-deep); letter-spacing: -.4px; }
.hf__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.hf__pills span { font-size: 12.5px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.hf__card--off { background: #FAFAFB; } .hf__card--off .hf__tx strong { color: #4B515C; }
.hf__side { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.hf__in--solo .hf__main { flex-basis: 100%; }
.hf__side h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--navy-deep); }
.hf__ev { display: flex; gap: 12px; align-items: center; min-height: 64px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.hf__ev[hidden] { display: none; }
.hf__ev:hover { border-color: var(--c); text-decoration: none; color: var(--ink); }
.hf__ev:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.hf__dd { flex: 0 0 56px; height: 56px; border-radius: 10px; background: var(--bg); color: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.hf__dd b { font-size: 17px; font-weight: 900; } .hf__dd b:empty { display: none; } .hf__dd small { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.hf__ew { flex: 1 1 auto; min-width: 0; }
.hf__ek { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--c); margin-bottom: 1px; }
.hf__ew b { display: block; color: var(--navy-deep); font-size: 15px; } .hf__ew em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.hf__ar { color: var(--ink-2); font-size: 18px; }
.hf__btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: var(--navy-deep); color: #fff; font-weight: 700; margin-top: auto; }
.hf__btn:hover { background: var(--navy); color: #fff; text-decoration: none; }
@media (max-width: 719px) {
  .hf { padding-top: 24px; } .hf__in { padding: 0 16px; }
  .hf__grid { gap: 10px; } .hf__vis { height: 104px; } .hf__pv { width: 64px; height: 84px; top: 30px; padding: 8px; } .hf__pv--2 { top: 20px; }
  .hf__tx { padding: 10px 11px 12px; } .hf__tx strong { font-size: 16.5px; } .hf__pills span { font-size: 11.5px; }
  .hf__lab { font-size: 12px; left: 8px; top: 8px; padding: 3px 7px; } .hf__soon { right: 8px; top: 8px; font-size: 11px; }
}

/* U143: 전체 보기 /all/ (design C): six light-headed panels, a field's colours inline (--c, --bg) */
.all-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0 40px; }
/* U143b: a plain head on /all/ (no box, no ruled lines) */
.all-top { padding: 6px 0 14px; } .all-top h1 { margin: 0 0 4px; font-size: 28px; font-weight: 900; color: var(--navy-deep); } .all-top p { margin: 0; font-size: 15px; color: #4B515C; }
@media (max-width: 719px) { .all-top h1 { font-size: 23px; } }
.all-col { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 4px rgba(15, 30, 70, .05); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 16px; }
.all-col:target { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.all-head { background: var(--bg); padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #EEF0F3; }
.all-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: #fff; color: var(--c); display: flex; align-items: center; justify-content: center; }
.all-head h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--c); }
.all-head p { margin: 2px 0 0; font-size: 13px; color: #4B515C; }
.all-soon { margin-left: auto; font-size: 12px; font-weight: 700; color: #C2410C; background: #fff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.all-list { display: flex; flex-direction: column; padding: 6px 10px 10px; }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 10px; border-bottom: 1px solid #F1F2F4; color: var(--ink); text-decoration: none; }
.all-list > *:last-child { border-bottom: 0; }
a.ap-row:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
a.ap-row:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
.ap-row b { display: block; font-size: 15.5px; color: var(--navy-deep); } .ap-row small { display: block; font-size: 12.5px; color: #4B515C; margin-top: 2px; }
.ap-row i { font-style: normal; color: var(--c); font-weight: 700; font-size: 18px; }
.ap-row--off b { color: #4B515C; }
@media (max-width: 900px) { .all-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .all-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* =========================================================== T041: 중학 영어 재디자인 v1 (docs/design_system.md; 영어 교재 pages)
   One block for the shared parts (macros in _parts.html.j2, skeleton in tb_base.html.j2): the tinted page head with its crumb, label + chips,
   h1, lead, number boxes and button row; the body column (1120px); lesson cards, the 예상문제 100 emphasis card, the preview strip, the
   bars, the sample cards, the FAQ and the chip links. Field colours come from tvars("eng") (--c, --bg, --light); --bd is the head line. */
.ds { --bd: #D9E2F2; color: var(--ink); }
.ds-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ds-head { background: var(--bg); border-bottom: 1px solid var(--bd); }
.ds-head .ds-in { padding-top: 22px; padding-bottom: 26px; }
.ds-head .breadcrumb { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.7; }
.ds-head .breadcrumb a { color: var(--ink-2); padding: 0; }
.ds-head .breadcrumb .sep { margin: 0 6px; color: var(--muted); }
.ds-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ds-lab { font-size: 13px; font-weight: 800; color: #fff; background: var(--c); border-radius: 6px; padding: 3px 9px; }
.ds-chip { font-size: 12.5px; font-weight: 800; color: var(--c); background: #fff; border: 1px solid var(--bd); border-radius: 999px; padding: 2px 10px; }
.ds-head h1 { margin: 10px 0 6px; font-size: 30px; line-height: 1.3; font-weight: 900; color: var(--navy-deep); letter-spacing: -0.8px; }
.ds-lead { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.ds-nums { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ds-nums li { background: #fff; border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ds-nums b { display: block; font-size: 19px; line-height: 1.4; font-weight: 900; color: var(--navy-deep); }
.ds-nums span { font-size: 12.5px; color: var(--ink-2); }
.ds-acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ds-btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 12px; font-weight: 800; font-size: 16px;
          text-decoration: none; background: #fff; border: 1px solid #D9DCE3; color: var(--ink); font-family: inherit; }
.ds-btn:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.ds-btn--p { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.ds-btn--p:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.ds-btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.ds-main .ds-in { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.ds-main .ad-wrap { margin: 0; }
.ds-sec h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.4; font-weight: 900; color: var(--navy-deep); }
.ds-sub { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ds-soon { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
/* lesson cards (과별) */
.ds-ls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-l { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; min-width: 0; }
.ds-l__top { display: flex; gap: 12px; align-items: center; }
.ds-l__no { flex: 0 0 auto; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 12px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.ds-l__t { font-size: 16.5px; line-height: 1.4; font-weight: 800; color: var(--navy-deep); min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.ds-l__t:hover { text-decoration: underline; color: var(--navy-deep); }
.ds-l__g { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ds-l__acts { display: flex; gap: 6px; margin-top: 4px; }
.ds-l__acts .ds-btn { flex: 0 1 auto; }
.ds-l__acts .ds-btn--p, .ds-l__acts .ds-btn--o { flex: 1 1 auto; }
/* 예상문제 100 emphasis card (macro exam_card; the same markup for every exam) */
.ds-ex { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--bd); background: var(--bg); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.ds-ex:last-child { margin-bottom: 0; }
.ds-ex__body { min-width: 0; flex: 1 1 320px; }
.ds-ex__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-ex__chips span { font-size: 12.5px; font-weight: 800; color: var(--c); background: #fff; border: 1px solid var(--bd); border-radius: 999px; padding: 2px 10px; }
.ds-ex__t { display: block; font-size: 17px; line-height: 1.45; font-weight: 800; color: var(--navy-deep); margin: 2px 0; }
.ds-ex__m { display: block; font-size: 13.5px; color: var(--ink-2); }
.ds-ex .ds-acts { margin: 0; }
/* FAQ */
.ds-faq { border-top: 1px solid var(--line); }
.ds-faq details { border-bottom: 1px solid var(--line); }
.ds-faq summary { min-height: 54px; display: flex; align-items: center; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--navy-deep); padding: 0 4px; }
.ds-faq p { margin: 0 4px 16px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
/* chip links (같은 학년 다른 교과서) */
.ds-other { display: flex; gap: 6px; flex-wrap: wrap; }
.ds-other a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; }
.ds-other a:hover { border-color: var(--light); background: var(--bg); text-decoration: none; color: var(--ink); }
/* lesson page: 한눈에 보기, bars, preview strip, sample cards, neighbours */
.ds-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.ds-two--one { grid-template-columns: minmax(0, 1fr); }
.ds-bx { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.ds-bx h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; color: var(--ink-2); }
.ds-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ds-tags li { min-height: 34px; display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; background: var(--bg); color: var(--navy-deep); font-size: 14px; font-weight: 700; }
.ds-links { margin: 0; padding: 0; list-style: none; }
.ds-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #F1F2F4; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.ds-links li:last-child a { border-bottom: 0; }
.ds-links a:hover { color: var(--navy-deep); text-decoration: none; background: var(--bg-2); }
.ds-bars { margin: 12px 0 0; padding: 10px 18px; list-style: none; border: 1px solid var(--line); border-radius: 14px; }
.ds-br { display: grid; grid-template-columns: 110px minmax(0, 1fr) 28px; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; }
.ds-br__t { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.ds-br__t i { display: block; height: 10px; border-radius: 5px; background: var(--c); }
.ds-br em { font-style: normal; font-weight: 800; color: var(--navy-deep); text-align: right; }
.ds-pv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ds-pv a { display: block; color: inherit; }
.ds-pv a:hover { text-decoration: none; color: inherit; }
.ds-pv__sheet { display: block; aspect-ratio: 210 / 297; border: 1px solid var(--line); border-radius: 10px; background: #FAFAFC; overflow: hidden; }
.ds-pv__sheet > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ds-pv a:hover .ds-pv__sheet { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); }
.ds-pv__cap { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.ds-qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ds-q { border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.ds-q__n { font-size: 13px; font-weight: 800; color: var(--navy); }
.ds-q__stem { margin: 4px 0 12px; font-size: 16px; line-height: 1.55; font-weight: 700; color: var(--navy-deep); }
.ds-q__box { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 14.5px; line-height: 1.7; }
.ds-q__lab { display: block; font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 2px; }
.ds-q table { border-collapse: collapse; margin: 0 0 10px; font-size: 14px; }
.ds-q th, .ds-q td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.ds-op { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-op li { min-height: 40px; display: flex; align-items: center; gap: 10px; border: 1px solid #EEF0F3; border-radius: 10px; padding: 4px 12px; font-size: 14.5px; line-height: 1.5; }
.ds-op b { color: var(--navy); font-weight: 700; flex: 0 0 auto; }
.ds-resp { min-height: 64px; border: 1px dashed var(--line-2); border-radius: 10px; }
.ds-pn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ds-pn a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; color: var(--ink); background: #fff; }
.ds-pn a:hover { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); text-decoration: none; color: var(--ink); }
.ds-pn small { font-size: 12.5px; color: var(--ink-2); }
.ds-pn b { font-size: 15.5px; color: var(--navy-deep); overflow-wrap: anywhere; }
.ds-pn .is-mid { text-align: center; }
.ds-pn .is-next { text-align: right; }
.ds-pn .is-next:only-child { grid-column: 3; }
/* /textbook/: grade sections with book cards */
.ds-books { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ds-book { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 84px; height: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; color: var(--ink); }
.ds-book:hover { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); text-decoration: none; color: var(--ink); }
.ds-book b { font-size: 17px; font-weight: 800; color: var(--navy-deep); }
.ds-book span { font-size: 13.5px; color: var(--ink-2); }
.ds-empty { margin: 14px 0 0; padding: 18px 20px; border: 1px dashed var(--line-3); border-radius: 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 900px) { .ds-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ds-in { padding: 0 16px; }
  .ds-head h1 { font-size: 24px; }
  .ds-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-acts .ds-btn { flex: 1 1 100%; }
  .ds-ls, .ds-two, .ds-qs { grid-template-columns: minmax(0, 1fr); }
  /* T048: the book cards of /textbook/ stay in two columns on a phone (name + one line) */
  .ds-books { gap: 10px; }
  .ds-book { min-height: 64px; padding: 12px 14px; }
  .ds-book b { font-size: 15px; word-break: keep-all; }
  .ds-book span { font-size: 12.5px; word-break: keep-all; }
  .ds-ex .ds-acts { width: 100%; }
  .ds-pn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-pn .is-mid { display: none; }
  .ds-pn .is-next:only-child { grid-column: 2; }
  .ds-br { grid-template-columns: 96px minmax(0, 1fr) 24px; }
}

/* =========================================================== 163: 중학 영어 재디자인 v1, 학년 영문법 /gN/ and 단원 /gN/unit-NN/ (docs/design_system.md; own gr-* classes, new rules only).
   Field colours come from tvars("eng") (--c, --bg, --light). The head is full width, the body column 1120px. */
.gr { --bd: #D9E2F2; color: #1F2329; }
.gr-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gr-head { background: var(--bg); border-bottom: 1px solid var(--bd); }
.gr-head .gr-in { padding-top: 22px; padding-bottom: 26px; }
.gr-head .breadcrumb { font-size: 13px; color: #4B515C; margin-bottom: 12px; line-height: 1.7; }
.gr-head .breadcrumb a { color: #4B515C; padding: 0; }
.gr-head .breadcrumb .sep { margin: 0 6px; color: #80858F; }
.gr-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gr-lab { font-size: 13px; font-weight: 800; color: #fff; background: var(--c); border-radius: 6px; padding: 3px 9px; }
.gr-chip { font-size: 12.5px; font-weight: 800; color: var(--c); background: #fff; border: 1px solid var(--bd); border-radius: 999px; padding: 2px 10px; }
.gr-head h1 { margin: 10px 0 6px; font-size: 30px; line-height: 1.3; font-weight: 900; color: #0F1E46; letter-spacing: -0.8px; }
.gr-lead { margin: 0; font-size: 15.5px; line-height: 1.6; color: #4B515C; }
.gr-body { padding-top: 28px; padding-bottom: 56px; }     /* U161: the TOC is the shared .toc (below); the grade tabs are the shared .hx-tab */
.gr-col { min-width: 0; }
.gr-ch { margin-bottom: 26px; }
.gr-ch h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 19px; line-height: 1.4; font-weight: 900; color: #0F1E46; }
.gr-ch h2 small { font-size: 12.5px; font-weight: 800; color: var(--c); }
.gr-list { border: 1px solid #E6E8EC; border-radius: 14px; overflow: hidden; background: #fff; }
.gr-u { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 8px 14px; border-top: 1px solid #F1F2F4; }
.gr-u:first-child { border-top: 0; }
.gr-no { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--c); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.gr-t { font-size: 15.5px; font-weight: 700; color: #0F1E46; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.gr-t:hover { text-decoration: underline; color: #0F1E46; }
.gr-act { display: flex; gap: 6px; align-items: center; }
.gr-b { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 800; background: #fff; border: 1px solid #D9DCE3; color: #1F2329; white-space: nowrap; }
.gr-b:hover { background: #F4F5F7; color: #1F2329; text-decoration: none; }
.gr-b--p { background: #0F1E46; border-color: #0F1E46; color: #fff; }
.gr-b--p:hover { background: #1F3C88; border-color: #1F3C88; color: #fff; }
/* 164: list rows use an outline 「바로 풀기」 (navy text); the filled navy stays on the unit page */
.gr-b--first { color: #0F1E46; font-weight: 800; }
.gr-b--first:hover { color: #0F1E46; border-color: #0F1E46; }
.gr-b--lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.gr-l { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-size: 13.5px; font-weight: 800; color: var(--c); }
.gr-note { font-size: 13px; color: #4B515C; border-top: 1px solid #E6E8EC; padding-top: 16px; margin: 8px 0 0; }
/* the unit page: body column under the head, then the 「PDF 받기」 card with the first page of the PDF */
.gr-unit { padding-top: 12px; padding-bottom: 56px; }
.gr-cta { margin-top: 34px; display: flex; gap: 24px; align-items: center; border: 1px solid var(--bd); background: var(--bg); border-radius: 16px; padding: 20px 24px; }
.gr-cta__sheet { flex: 0 0 auto; width: 132px; aspect-ratio: 210 / 297; border: 1px solid #E6E8EC; border-radius: 8px; background: #FAFAFC; overflow: hidden; display: block; }
.gr-cta__sheet:hover { border-color: var(--light); box-shadow: 0 0 0 3px #fff; }
.gr-cta__sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gr-cta__body { min-width: 0; flex: 1 1 auto; }
.gr-cta__title { font-size: 20px; line-height: 1.4; font-weight: 900; color: #0F1E46; }
.gr-cta__note { margin-top: 4px; font-size: 14px; line-height: 1.65; color: #4B515C; }
.gr-cta__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 760px) {
  .gr-in { padding: 0 16px; }
  .gr-head h1 { font-size: 24px; }
  .gr-body { padding-top: 0; }
  .gr-u { grid-template-columns: 32px minmax(0, 1fr); padding: 10px 12px; }
  .gr-no { width: 32px; height: 32px; }
  .gr-act { grid-column: 2; }
  .gr-cta { flex-direction: column; align-items: stretch; padding: 18px; gap: 16px; }
  .gr-cta__sheet { width: 112px; align-self: center; }
  .gr-cta__acts .gr-b { flex: 1 1 100%; }
}

/* E018: /exams/ (grade → book → 예상문제 100 cards, two columns on a PC) */
.ds-bk { margin-top: 18px; }
.ds-bk__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ds-bk__head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--navy-deep); }
.ds-bk__head a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--navy); }
.ds-exg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-exg .ds-ex { margin: 0; }
.ds-exg .ds-ex__body { flex-basis: 100%; }
.ds-main .note-sm { margin: 0; }
@media (max-width: 760px) { .ds-exg { grid-template-columns: minmax(0, 1fr); } }

/* E020: /exams/ list variant of the exam card, and the fold per book */
.ds-btn--o { background: #fff; border-color: var(--navy-deep); color: var(--navy-deep); font-weight: 800; }
.ds-btn--o:hover { background: var(--bg); color: var(--navy-deep); }
.ex-books { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; }
.ex-book { margin-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.ex-book__h { min-height: 56px; display: flex; align-items: center; gap: 10px; }
.ex-book__n { font-size: 17px; font-weight: 800; color: var(--navy-deep); }
.ex-book__c { font-size: 13.5px; color: var(--ink-2); }
.ex-book__all { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--navy); }
.ex-book .ds-exg { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .ex-books { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .ex-book--wide { grid-column: 1 / -1; }
  .ex-book--wide .ds-exg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ds-ex--list .ds-acts { flex-wrap: nowrap; gap: 8px; }
  .ds-ex--list .ds-acts .ds-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
}

/* =========================================================== U151: the subject hubs /english/ and /math/ (docs/design_system.md; mock planning/design/english_math_v1)
   Built on the ds-* head (tinted head, label, h1, lead, number boxes) with the field's colours from tvars (--c, --bg, --light); math has its own head line (--bd).
   Own hx-* rules: the grade tabs, the grade sections, the textbook / exam / unit cards, the side cards. hub.js (tabs) is the only script.
   The HTML has every grade section (.hb-grade); without the script all of them show, one after the other, and the tabs are links to them. */
.hx[data-field="math"] { --bd: #CBE5E8; }
.hx [hidden] { display: none !important; }      /* U161: also /textbook/ and /exams/ (class hx on their root) */
.hx-tabs { display: flex; gap: 4px; margin: 18px 0 -26px; }
.hx-tab { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; border-radius: 12px 12px 0 0; font-size: 16px; font-weight: 700; color: var(--ink-2); background: transparent; }
.hx-tab:hover { text-decoration: none; background: rgba(255, 255, 255, 0.55); color: var(--ink-2); }
.hx-tab[aria-selected="true"], .hx-tab[aria-current="page"] { background: #fff; color: var(--navy-deep); font-weight: 900; }
.hx-tab:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
.hx-sec { min-width: 0; }
.hx-sec + .hx-sec { margin-top: 0; }
.hx-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 4px; }
.hx-sh h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 900; color: var(--navy-deep); }
.hx-sh a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--c); }
.hx-sh a:hover { color: var(--navy-deep); }
.hx-sec .ds-sub { margin: 0 0 14px; }
.hx-eng { display: flex; flex-direction: column; gap: 34px; }           /* U159: the blocks of a grade stack, like .hx-math */
.hx-bks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-bk { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; color: var(--ink); }
.hx-bk:hover { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); text-decoration: none; color: var(--ink); }
.hx-bk small { font-size: 12px; font-weight: 800; color: var(--c); }
.hx-bk b { font-size: 17px; line-height: 1.35; font-weight: 900; color: var(--navy-deep); }
.hx-bk em { align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--c); background: var(--bg); border-radius: 999px; padding: 1px 8px; }
.hx-bk span { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.hx-bks--ex .hx-bk { background: #EEF2F9; border-color: #D9E2F2; }                   /* U160: the 예상문제 100 card of a grade with one exam: the textbook card, tinted */
.hx-bks--ex .hx-bk em { background: #fff; }
.hx-math { display: flex; flex-direction: column; gap: 34px; }
.hx-exams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hx-ex { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--bd); background: var(--bg); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.hx-ex small { font-size: 12.5px; font-weight: 800; color: var(--c); }
.hx-ex b { font-size: 16.5px; line-height: 1.4; color: var(--navy-deep); }
.hx-ex > span { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.hx-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.hx-links li { display: flex; align-items: center; }
.hx-links li + li::before { content: "\00b7"; color: var(--muted); margin-right: 2px; }
.hx-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 14.5px; font-weight: 800; color: var(--c); }
.hx-links a:hover { color: var(--navy-deep); text-decoration: underline; }
/* U159: the English blocks. Book names under an exam card are text links in a wrapping row (>= 32 px tall, 10 px between rows, 14 px between links) */
.hx-links--bk { gap: 10px 14px; margin-top: 8px; }
.hx-links--bk li + li::before { display: none; }
.hx-links--bk a { min-height: 32px; min-width: 0; padding: 0 2px; }
.hx-units--ch .hx-u { min-height: 96px; }
.hx-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-nw { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; color: var(--ink); min-width: 0; }
.hx-nw:hover { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); text-decoration: none; color: var(--ink); }
.hx-nw small { font-size: 12px; font-weight: 800; color: var(--c); }
.hx-nw b { font-size: 16px; line-height: 1.45; color: var(--navy-deep); }
.hx-nw span { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.hx-nw time { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--muted); }
.hx-sem h3 { margin: 0 0 10px; font-size: 16px; font-weight: 900; color: var(--c); }
.hx-sem + .hx-sem { margin-top: 20px; }
.hx-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hx-u { display: flex; flex-direction: column; gap: 4px; min-height: 86px; height: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); min-width: 0; }
.hx-u:hover { border-color: var(--light); box-shadow: 0 0 0 3px var(--bg); text-decoration: none; color: var(--ink); }
.hx-u small { font-size: 11.5px; font-weight: 800; color: var(--c); }
.hx-u b { font-size: 15px; line-height: 1.35; color: var(--navy-deep); }
.hx-u span { margin-top: auto; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 760px) {
  .hx-tab { flex: 1 1 0; padding: 0; }
  .hx-sh h2 { font-size: 20px; }
  .hx-bks, .hx-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-news { grid-template-columns: minmax(0, 1fr); }
  .hx-nw { min-height: 0; }
  .hx-exams { grid-template-columns: minmax(0, 1fr); }            /* U153: one column so up to five links fit on one line */
  .hx-ex { padding: 14px 10px 14px 12px; }
  .hx-links { gap: 0 4px; }                                      /* U152: one line; a narrow card wraps between links, never inside one */
  .hx-links--bk { gap: 10px 14px; }
  .hx-links li + li::before { display: none; }
  .hx-links a { padding: 0; }
}

/* =========================================================== U161: the grade tabs on every subject page + the left page TOC (planning/design/subject_toc_v1)
   The tab row is the hub's (.hx-tabs / .hx-tab, above): white tab at the bottom of the tinted head. In-page (hub.js) on the hubs, /textbook/ and /exams/;
   plain links on /gN/ and /math/gN/ (aria-current="page"). The head's bottom padding differs per page, so the row's pull-down does too. */
.gr-head .hx-tabs { margin-bottom: -26px; }
.mv-head .hx-tabs { margin-bottom: -24px; }
.hx-tab { white-space: nowrap; }
@media (max-width: 760px) {
  .mv-head .hx-tabs { margin-bottom: -20px; }
  .hx-tab { flex: 1 1 0; }
}

/* The TOC: PC (1024px and up) a 240px column left of the content, sticky, no box; below that one sticky chip row (52px, chips 36px). The field colours come from --c / --bg. */
.tocx-main { min-width: 0; display: flex; flex-direction: column; gap: var(--tocg, 40px); }
.mv-main .tocx-main { --tocg: 38px; }
.gr-body .tocx-main { gap: 0; }
.toc [hidden] { display: none !important; }
.toc ul { list-style: none; margin: 0; padding: 0; }
nav.toc a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; line-height: 1.35; font-weight: 600; color: #3B414A; overflow-wrap: anywhere; }
nav.toc a:hover { background: var(--bg); color: #3B414A; text-decoration: none; }
nav.toc a:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
nav.toc a[aria-current="location"] { background: var(--bg); color: var(--c); font-weight: 800; }
.toc-gh { display: block; padding: 12px 10px 4px; font-size: 13px; line-height: 1.4; font-weight: 900; color: var(--navy-deep, var(--navy)); }
.toc-g:first-child .toc-gh { padding-top: 2px; }
.hx--js .toc-gh--grade { display: none; }
.tocx-main [id] { scroll-margin-top: 72px; }
@media (min-width: 1024px) {
  .tocx { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .tocx-main [id] { scroll-margin-top: 20px; }
}
@media (max-width: 1023px) {
  .toc { position: sticky; top: 0; z-index: 20; height: 52px; margin: 0 -16px 20px; padding: 0 16px; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid #E6E8EC; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-g, .toc ul, .toc li { display: contents; }
  nav.toc a { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid #E6E8EC; border-radius: 999px; white-space: nowrap; font-size: 13.5px; }
  nav.toc a[aria-current="location"] { background: var(--c); border-color: var(--c); color: #fff; }
  .toc-gh { flex: 0 0 auto; padding: 0 4px 0 8px; font-size: 12.5px; }
  .toc-g:first-child .toc-gh { padding-top: 0; }
}

/* U162: the old pages in the new shell (unit PDF / answers, textbook PDF / answers, exam answers): the body is the full 1120px container */
.ds-main .quick.grid-8 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.ds-main .quick .grid-8 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.ds-main .own-text .prose, .ds-main .prose { max-width: 760px; }
.ds-main .answers-rule { margin: 0; }
.ds-main .grid-3.gap-11 { gap: 12px; }
.ds-main .ds-sec > .sol-list, .ds-main .ds-sec > .quick { margin-top: 12px; }
.dl-panel .ds-btn { min-height: 56px; padding: 0 30px; }
@media (max-width: 760px) {
  .ds-main .quick.grid-8, .ds-main .quick .grid-8 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dl-panel .ds-btn { width: 100%; }
}
/* U162: the breadcrumb is one line on a phone: 홈 › … › second last › last (the items between are hidden), never wrapped, cut with … if still too long */
@media (max-width: 760px) {
  .breadcrumb { display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; overflow: hidden; line-height: 22px; }
  .breadcrumb a, .breadcrumb > span { min-height: 24px; flex: 0 0 auto; padding: 0; }
  .breadcrumb > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb > :nth-child(n+3):not(:nth-last-child(-n+3)) { display: none; }
  .breadcrumb > :nth-child(2):nth-last-child(n+5)::after { content: " … ›"; margin: 0 0 0 7px; color: var(--muted); }
}
/* U167: the answer numbers of the quick-answer grids are navy (red is for right and wrong only); the 본문 block after the rule line sits one section gap (40px) below, not 40px + its own 32px */
.num-chip .ans, .ans-chip .ans-chip__a { color: #1F3C88; }
.ds-main .own-text { margin-top: 0 !important; }
/* U168: the 「함께 보기」 box (generator/cross_links.py, _parts.html.j2 `together`): a grey label (no heading), rows of text links 44 px tall, no filled button */
.tg { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 6px; min-width: 0; background: #fff; }
.tg-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #6A707A; }
.tg-list { margin: 0; padding: 0; list-style: none; }
.tg-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid #F1F2F4; color: var(--navy); }
.tg-list li:last-child .tg-row { border-bottom: 0; }
.tg-row:hover { color: var(--navy-deep); text-decoration: none; background: var(--bg-2); }
.tg-tag { flex: 0 0 104px; font-size: 13px; font-weight: 500; color: #6A707A; }
.tg-txt { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.tg-ar { flex: 0 0 auto; font-weight: 700; }
.tg-more { border-top: 1px solid #F1F2F4; }
.tg-more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); list-style: none; }
.tg-more > summary::-webkit-details-marker { display: none; }
.tg-more > summary::after { content: "▾"; margin-left: 6px; }
.tg-more[open] > summary::after { content: "▴"; }
.tg-stack { display: grid; gap: 14px; margin-top: 40px; }
.pp-tg { max-width: 1180px; margin: 24px auto 0; padding: 0 16px; }
@media (max-width: 560px) { .tg-tag { flex: 0 0 auto; } }

/* ================= U172: 「블로그 · 합격노트」 on the field hubs (templates/site/_blog.html.j2). One look on every hub; only the field colour changes. ================= */
.bl { --bl: #1F3C88; margin: 40px 0 0; word-break: keep-all; overflow-wrap: break-word; }
.bl--history { --bl: #6B3FA0; } .bl--driving { --bl: #C2410C; }
.bl-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.bl-sh h2 { margin: 0; font-size: 20px; font-weight: 900; color: var(--navy-deep); letter-spacing: -0.4px; }
.bl-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--navy); }
.bl-lead { margin: 2px 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.bl-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bl-card { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 16px 18px; background: #fff; border: 1px solid var(--line-3); border-radius: 14px; color: inherit; text-decoration: none; }
.bl-card:hover { border-color: var(--bl); }
.bl-card:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 2px; }
.bl-meta { font-size: 12.5px; font-weight: 800; color: var(--bl); }
.bl-t { font-size: 16.5px; line-height: 1.45; font-weight: 800; color: var(--navy-deep); letter-spacing: -0.2px; }
.bl-tz { font-size: 14px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-foot { margin-top: auto; padding-top: 4px; font-size: 13px; color: #6A707A; }
.bl-note { margin: 12px 0 0; font-size: 12.5px; color: #6A707A; }
@media (min-width: 760px) { .bl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* U175: /math/ one text line to the store (pilot to 2026-11-28): grey text, one teal link, not a button */
.hx-store { margin: 32px 0 0; font-size: 15px; line-height: 1.6; color: #4E5968; }
.hx-store a { display: inline-flex; align-items: center; min-height: 44px; color: #0E6E78; font-weight: 700; text-decoration: none; }
.hx-store a:hover, .hx-store a:focus-visible { text-decoration: underline; }

/* U181: the download count / page-view line (static/js/counts.js fills it from /api/stats/counts). Hidden = invisible but it keeps its height, so nothing below it moves (CLS 0). */
.dl-count { margin: 10px 0 0; min-height: 20px; font-size: 13.5px; line-height: 20px; color: #6B7684; }
.dl-count b { font-weight: 700; color: #6B7684; }
.dl-count[hidden] { display: block; visibility: hidden; }
.hx .dl-count[hidden] { display: block !important; }      /* the hubs hide every [hidden] with !important (.hx [hidden], U161) */


/* U184: the footer's visitors line (stats.js fills it; the home's usage numbers are in the dark band since U205; hidden = same height, so nothing moves) */
.foot__stat { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid #E5E8EB; min-height: 33px; box-sizing: border-box; font-size: 13.5px; line-height: 20px; color: #6B7684; }
.foot__stat b { font-weight: 700; color: var(--navy-deep, #0F1E46); }
.foot__stat[hidden] { display: block; visibility: hidden; }

/* U185 (beta): the account screens (/login/, /me/), the 운전면허 header circle and the result sheet. Navy filled buttons are not used here (the company buttons follow their own rules). */
.acct { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-deep, #0F1E46); background: radial-gradient(circle, #FFE94A 17px, transparent 17.5px); }
.acct[hidden] { display: none; }
.acct-sheet { max-width: 1152px; margin: 24px auto; padding: 0 24px; }
.acct-sheet[hidden] { display: none; }
.acct-sheet__card { border: 1px solid #E5E8EB; border-radius: 14px; background: #fff; padding: 20px 22px; }
.acct-sheet__text { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.acct-sheet__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-sheet__later { min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 14px; color: #6B7684; cursor: pointer; text-decoration: underline; }
.acct-sheet__line { margin: 0; font-size: 14px; line-height: 20px; color: #6B7684; }
.acct-btn, .acc-btn { min-height: 44px; padding: 0 22px; border: 1px solid var(--navy-deep, #0F1E46); border-radius: 10px; background: #fff; color: var(--navy-deep, #0F1E46); font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.acct-btn:hover, .acc-btn:hover { background: #F2F4F8; text-decoration: none; }
.acct-btn[hidden], .acc-btn[hidden], .acc__link[hidden] { display: none; }
.acc { max-width: 520px; margin: 0 auto; padding: 40px 20px 56px; position: relative; }
.acc--me { max-width: 720px; }
.acc__x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: var(--ink-2); }
.acc__h1 { margin: 24px 0 8px; font-size: 26px; line-height: 1.35; color: var(--ink); }
.acc__lead { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.acc__err { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #C2410C; border-radius: 10px; background: #FFF7F0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.acc__err--soft { border-color: #E5E8EB; background: #F7F8FA; color: #4E5968; }
.acc__err[hidden] { display: none; }
.acc__btns { display: flex; flex-direction: column; gap: 10px; min-height: 166px; }
.acc-co { min-height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.acc-co:hover { text-decoration: none; filter: brightness(.97); }
.acc-co--kakao { background: #FEE500; color: #191919; }
.acc-co--naver { background: #03C75A; color: #fff; }
.acc-co--google { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.acc-co__ic { display: inline-flex; }
.acc__small { margin: 18px 0 0; text-align: center; font-size: 13.5px; line-height: 1.7; color: #6B7684; }
.acc__small a { color: #6B7684; text-decoration: underline; }
.acc__small--l { text-align: left; margin: 14px 0 18px; }
.acc__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #E5E8EB; font-size: 13.5px; line-height: 1.7; color: #6B7684; }
.acc__load { min-height: 320px; }
.acc__sec { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #E5E8EB; }
.acc__sec h2 { margin: 0 0 10px; font-size: 16px; color: var(--ink); }
.acc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc__row p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.acc__soft { font-size: 14px; color: #6B7684; }
.acc__list { list-style: none; margin: 0 0 12px; padding: 0; }
.acc__item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 48px; border-bottom: 1px solid #EEF0F3; font-size: 15px; }
.acc__name { font-weight: 700; color: var(--ink); margin-right: auto; }
.acc__tag { padding: 2px 8px; border-radius: 6px; background: #EEF1F8; font-size: 12.5px; font-weight: 700; color: var(--navy-deep, #0F1E46); }
.acc__link { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy-deep, #0F1E46); text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; }
.acc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #E5E8EB; }
.acc__del { min-height: 44px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #6B7684; text-decoration: underline; cursor: pointer; }
.acc__age { margin: 0; padding: 0; border: 0; }
.acc__age legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: #6B7684; }
.acc__age label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; margin-bottom: 8px; border: 1px solid #E5E8EB; border-radius: 12px; font-size: 16px; cursor: pointer; }
.acc__age input { width: 20px; height: 20px; accent-color: var(--navy-deep, #0F1E46); }
.acc-btn--wide { width: 100%; }
.acc-btn[disabled] { opacity: .45; cursor: default; }
.acc-dlg { max-width: 420px; width: calc(100% - 32px); border: 0; border-radius: 16px; padding: 22px; box-shadow: 0 12px 40px rgba(15, 30, 70, .25); }
.acc-dlg::backdrop { background: rgba(15, 30, 70, .45); }
.acc-dlg__text { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.acc-dlg__row { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .acc { padding: 28px 16px 48px; }
  .acc__h1 { font-size: 23px; }
  .acct-sheet { padding: 0 16px; }
}

/* U206: the one signal for 「this device's records are saved to the account」: <html data-sync="on"> (signed in AND merging; head script before paint, account.js afterwards).
   For every stream: put the two sentences in the HTML and mark them; no script of your own is needed.
     <span data-sync-out>…이 기기에 저장됩니다…</span><span data-sync-in>{{ copy("account.sync_on_line") }}</span>
   A block element that should stay a block when shown: data-sync-in="block". Words: copy("account.sync_on_line" / "account.sync_on_short"); on /en/ en.acct.sync_on_line / sync_on_short. */
[data-sync-in] { display: none; }
html[data-sync="on"] [data-sync-in]:not([hidden]) { display: inline; }
html[data-sync="on"] [data-sync-in="block"]:not([hidden]) { display: block; }
html[data-sync="on"] [data-sync-out] { display: none; }

/* U187: the header entrance (회원가입 + 로그인 / 내 공부 ▾), the phone icon, the ☰ card and the home box. Both shapes are in the HTML; html[data-auth="in"] (head script) picks one. */
.hdr__acct { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
[data-in] { display: none; }
html[data-auth="in"] [data-in] { display: revert; }
html[data-auth="in"] [data-out] { display: none; }
html[data-auth="in"] .hdr__ico, html:not([data-auth="in"]) .hdr__ico { display: none; }
.hdr__join { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: #C9D3E8; text-decoration: none; white-space: nowrap; }
.hdr__join:hover { color: #fff; text-decoration: underline; }
.hdr__login { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid #fff; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.hdr__login:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.hdr__me { position: relative; }
html[data-auth="in"] .hdr__me { display: block; }
.hdr__mebtn { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hdr__mebtn:hover { background: rgba(255, 255, 255, 0.08); }
.hdr__av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--navy-deep, #0F1E46); }
.hdr__av svg { width: 20px; height: 20px; }
.hdr__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; box-shadow: 0 14px 30px rgba(15, 30, 70, 0.16); z-index: 60; }
.hdr__menu[hidden] { display: none; }
.acct-row { width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink, #191F28); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.acct-row:hover, .acct-row:focus-visible { background: #F2F4F8; text-decoration: none; color: var(--ink, #191F28); }
.hdr__ico { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
.hdr__ico:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.acct-btn--navy { background: var(--navy-deep, #0F1E46); color: #fff; }
.acct-btn--navy:hover { background: #1B2D63; color: #fff; }
.mm__acct { margin: 6px 0 10px; padding: 16px; border: 1px solid #E5E8EB; border-radius: 14px; background: #F7F8FA; }
.mm__acct-text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink, #191F28); }
.mm__acct-title { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 800; color: var(--navy-deep, #0F1E46); }
.mm__acct-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mm__acct-rows .acct-row, .acct-box__rows .acct-row { background: #fff; border: 1px solid #E5E8EB; margin-bottom: 6px; }
.acct-box { margin: 0 0 20px; padding: 18px 20px; border: 1px solid #E5E8EB; border-radius: 14px; background: #fff; }
.acct-box__title { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 800; color: var(--navy-deep, #0F1E46); }
.acct-box__text { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2, #4E5968); }
.acct-box__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-box__join, .acct-box__me { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--navy-deep, #0F1E46); }
@media (max-width: 899px) {
  .hdr__acct { order: 2; gap: 0; }
  .hdr__all { order: 1; }
  .menu-btn { order: 3; }
  .hdr__join, .hdr__login, .hdr__me { display: none !important; }
  .hdr__acct .hdr__ico[data-out] { display: inline-flex; }
  html[data-auth="in"] .hdr__acct .hdr__ico[data-in] { display: inline-flex; }
  html[data-auth="in"] .hdr__acct .hdr__ico[data-out] { display: none; }
}

/* U188: sign-up v3 (checks, company buttons that wake up, under 14, new person, merge, welcome, study setup) */
.acc-btn--go { background: var(--navy-deep, #0F1E46); border-color: var(--navy-deep, #0F1E46); color: #fff; }
.acc-btn--go:hover { background: #1B2D63; color: #fff; }
.acc-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.acc__checks { margin: 0 0 16px; border: 1px solid #E5E8EB; border-radius: 12px; overflow: hidden; }
.acc__btns[hidden], .acc__checks[hidden], .acc__hint[hidden], .acc__links[hidden], .acc__inapp[hidden], .acc__u14[hidden], .acc__setup[hidden], .acc__merge[hidden], .acc__ticks[hidden] { display: none; }
.acc-chk { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border-bottom: 1px solid #EEF0F3; }
.acc-chk:last-child { border-bottom: 0; }
.acc-chk--all { background: #F7F8FA; font-weight: 800; }
.acc-chk__lab { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: 1; font-size: 15px; color: var(--ink); cursor: pointer; }
.acc-chk__lab input { width: 22px; height: 22px; flex: none; accent-color: var(--navy-deep, #0F1E46); }
.acc-chk__notes { padding: 10px 14px 12px; }                                     /* U192: left aligned, 6px between the two lines */
.acc-chk__notes .acc__small { margin: 0; text-align: left; }
.acc-chk__notes .acc__small + .acc__small { margin-top: 6px; }
.acc-sync__row { margin: 0; }
.acc-sync__row + .acc-sync__row { margin-top: 4px; }
.acc-merge__list { list-style: none; margin: 0 0 10px; padding: 0; }
.acc-merge__list li { padding: 3px 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.acc-chk__view { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 14px; color: #6B7684; text-decoration: underline; }
.acc-co.is-off, .acc-co[aria-disabled="true"] { opacity: .45; filter: grayscale(.4); cursor: default; }
.acc-co { position: relative; }
.acc-co__recent { position: absolute; right: 10px; top: -9px; padding: 2px 9px; border-radius: 999px; background: var(--navy-deep, #0F1E46); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.acc__hint { margin: 10px 0 0; font-size: 14px; color: #C2410C; }
.acc__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 14px 0 0; }
.acc__tlink { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14.5px; color: #4E5968; text-decoration: underline; cursor: pointer; }
.acc__inapp { margin: 14px 0 0; padding: 14px; border: 1px solid #E5E8EB; border-radius: 12px; background: #F7F8FA; }
.acc__inapp-text { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.acc__u14 .acc__h1 { margin-top: 24px; }
.acc__ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.acc__ticks li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.acc__ticks li::before { content: "\2713"; position: absolute; left: 4px; top: 6px; font-weight: 800; color: var(--navy-deep); }
.acc__lab { display: block; margin: 0 0 6px; font-size: 14px; color: #4E5968; }
.acc__in { width: 100%; min-height: 48px; margin: 0 0 12px; padding: 0 14px; border: 1px solid #C9CFD6; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; box-sizing: border-box; }
.acc-merge { margin: 0 0 22px; padding: 18px; border: 1px solid #D7DCE5; border-radius: 12px; background: #F7F8FA; }
.acc-merge__h { margin: 0 0 8px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.acc-merge__n { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.acc-merge__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.acc__setup { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #D7DCE5; border-radius: 12px; background: #F7F8FA; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.acc__setup p { margin: 0; flex: 1 1 220px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.acc__merge { margin-top: 10px; }
.acc__ok { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.acc__tick { font-weight: 800; color: var(--navy-deep); }
.hx-mine { align-self: flex-start; font-size: 11.5px; font-weight: 900; color: var(--navy-deep); background: var(--hl); border-radius: 999px; padding: 1px 9px; }
.hf__ev.is-mine { box-shadow: inset 3px 0 0 var(--hl); }
.acc-set__card { margin: 0 0 14px; padding: 18px; border: 1px solid #D7DCE5; border-radius: 12px; }
.acc-set__ch { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.acc-set__card p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.acc-set__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.acc--setup .acc__age label { cursor: pointer; }
.acc-school { margin: 0 0 8px; }
.acc-school li { list-style: none; }
.acc-school__pick { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 1px solid #EEF0F3; background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.acc-school__pick:hover { background: #F2F4F8; }
.acc__age label input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy-deep, #0F1E46); }
.acc__h1:focus { outline: none; }
.acc__small[hidden] { display: none; }

/* U191 / U197: 내 정원 (EXP, one plant per subject): the plant pictures, /me/grow/, the 4-week calendar, the header and the result line (only drawn when config site.grow is true) */
.acc-sprout { display: block; flex: none; }
.acc-sprout--hdr { width: 28px; height: 28px; }
.hdr__av .acc-sprout--hdr { width: 26px; height: 26px; }
.acct-grow { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.acct-grow__tx { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.45; min-width: 0; }
.acct-grow__tx b { font-size: 14px; color: var(--navy-deep); }
.acct-grow__nw { display: inline-block; white-space: nowrap; }
.acc--grow { max-width: 1104px; }
.acc--grow .acc__small, .acc-gcard .acc__small, .acct-sheet__grow .acc__small { text-align: left; }
.acc-grow__bar { height: 10px; border-radius: 999px; background: #E3DCCB; overflow: hidden; }
.acc-grow__bar i { display: block; height: 100%; background: #6BAA3F; border-radius: 999px; }   /* the green is part of the sprout picture (the one colour exception) */
.acc-grow__bar--thin { height: 6px; background: #E3E6EB; }
.acc-grow__next { margin: 0; font-size: 14px; color: #4E5968; text-align: left; }
.acc-grow__next b { color: var(--navy-deep); }
.acc-grow__h { margin: 30px 0 10px; font-size: 17px; color: var(--navy-deep); }
.acc-grow__sub { margin-left: 6px; font-size: 13px; font-weight: 500; color: #6B7684; }
.acc-grow__local { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.acc-grow__pathwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acc-grow__path { display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; text-align: center; }
.acc-grow__path li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 8px; border-bottom: 3px solid transparent; }
.acc-grow__path li.is-now { border-bottom-color: #6BAA3F; }
.acc-grow__path li.is-next img { opacity: .35; }
.acc-grow__path b { font-size: 13.5px; white-space: nowrap; color: var(--navy-deep); }
.acc-grow__need { font-size: 12.5px; white-space: nowrap; color: #6B7684; }
.acc-grow__cols { display: grid; grid-template-columns: 1fr; gap: 0 36px; }
.acc-grow__how { width: 100%; border-collapse: collapse; font-size: 15px; }
.acc-grow__how th, .acc-grow__how td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.acc-grow__how td { text-align: right; font-weight: 800; color: var(--navy-deep); white-space: nowrap; }
.acc-grow__recent { list-style: none; margin: 0; padding: 0; }
.acc-grow__recent li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.acc-grow__date { font-size: 13.5px; color: #6B7684; }
.acc-grow__plus { text-align: right; font-weight: 800; color: var(--navy-deep); }
.acc-calwrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-start; text-align: left; }
.acc-calwrap__side { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.acc-calwrap__big { font-size: 30px; font-weight: 900; line-height: 1.2; color: var(--navy-deep); }
.acc-calwrap__lab { font-size: 14px; color: #4E5968; }
.acc-calwrap__week { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.acc-gslot[hidden] { display: none; }
.acc-gslot { margin: 0 0 22px; }
.acc-gcard { display: block; padding: 18px 18px 16px; border-radius: 16px; background: #F4F1E8; color: var(--ink); text-decoration: none; text-align: left; }
.acc-gcard__top { display: flex; gap: 16px; align-items: center; }
.acc-gcard__tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.acc-gcard__lv { font-size: 13px; font-weight: 700; color: #4E5968; }
.acc-gcard__exp { font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--navy-deep); }
.acc-gcard__streak { margin: 14px 0 8px; font-size: 14px; color: #4E5968; text-align: left; }
.acc-gcard__streak b { color: var(--navy-deep); }
.acc-gcard .acc-cal__legend { margin-top: 8px; }
.acc-cal__grid { display: grid; grid-template-columns: repeat(7, 26px); gap: 4px; }
.acc-cal__c { position: relative; display: block; width: 26px; height: 26px; border-radius: 6px; background: #EEF1F5; }
.acc-cal__c--1 { background: #C9D3EC; }
.acc-cal__c--2 { background: #8EA0D4; }
.acc-cal__c--3 { background: #3D56A6; }
.acc-cal__c.is-today { outline: 2px solid #111; outline-offset: 0; }
.acc-cal__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acc-cal__legend { margin: 8px 0 0; }
.acc-grow[hidden] { display: none; }
.acct-sheet__grow { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.acct-sheet__gain { display: flex; gap: 14px; align-items: center; margin: 0; color: var(--ink); text-decoration: none; min-height: 44px; }
.acct-sheet__gtx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-sheet__gtx b { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--navy-deep); }
.acct-sheet__why { font-size: 13.5px; color: #4E5968; }
.acct-sheet__up { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--navy-deep); }
.acct-sheet__grow .acc__small { margin: 8px 0 0; }
.acc-garden__lead { margin: 4px 0 18px; font-size: 15px; color: #4E5968; text-align: left; }
.acc-pots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 16px; }
.acc-pot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 22px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.acc-pot[aria-pressed="true"] { border: 2px solid var(--navy-deep); padding: 21px 15px 15px; }
.acc-pot.is-empty { background: #F7F8FA; }
.acc-pot.is-empty .acc-sprout { opacity: .45; }
.acc-pot__name { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--navy-deep); }
.acc-pot__exp { font-size: 13px; color: #4E5968; }
.acc-pot__none { margin-top: 6px; font-size: 13px; color: #6B7684; }
.acc-pot .acc-grow__bar { align-self: stretch; margin-top: 6px; }
.acc-gtwo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin: 0 0 8px; align-items: start; }
.acc-gdetail, .acc-gstreak { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; min-width: 0; }
.acc-gdetail__lab { display: block; font-size: 12.5px; font-weight: 700; color: #4E5968; }
.acc-gdetail__h { margin: 4px 0 4px; font-size: 22px; line-height: 1.3; color: var(--navy-deep); }
.acc-gdetail__exp { margin: 0 0 12px; font-size: 14px; color: #4E5968; }
.acc-gdetail .acc-grow__bar { margin-top: 8px; }
.acc-gdetail__go { display: inline-flex; margin-top: 14px; }
.acc-gdetail .acc-grow__path { grid-template-columns: repeat(7, minmax(58px, 1fr)); }
.acc-gstreak .acc__small { margin: 0 0 12px; }
.acc-gstreak .acc-gdetail__exp { margin: 12px 0 0; }
.acc-gcard__plants { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.acc-gcard__pl { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: #4E5968; }
@media (min-width: 700px) {
  .acc-grow__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .acc-pots { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .acc-pot { padding: 16px 10px 12px; }
  .acc-pot[aria-pressed="true"] { padding: 15px 9px 11px; }
  .acc-gtwo { grid-template-columns: 1fr; }
  .acc-cal__grid { grid-template-columns: repeat(14, 1fr); }
  .acc-cal__c { width: auto; height: auto; aspect-ratio: 1; }
  .acc-calwrap { display: block; }
  .acc-calwrap .acc-cal { width: 100%; }
  .acc-calwrap__side { margin-top: 14px; }
  .acc-grow__path { grid-template-columns: repeat(7, minmax(64px, 1fr)); }
  .acc-grow__path .acc-sprout { width: 40px; height: 40px; }
  .acc-grow__path .is-now .acc-sprout { width: 46px; height: 46px; }
}

/* U201: the login introduction on the home pages (config site.home_login_intro): the banner's picture (.hl-art) and the scroll section (.hl). Plain HTML/CSS, labelled as an example; the only images are the plants.
   Signed in: the section is hidden. Motion (home.js): .hl--pre while the section is below the fold, then .hl--go; reduced motion and no script show the end state. */
.hl { padding: 44px 0 10px; }
.hl__in { max-width: 1104px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hl__head h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.3; color: var(--navy-deep); }
.hl__lead { margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: #4E5968; }
.hl__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hl__card { display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--line, #E3E6EB); border-radius: 18px; background: #fff; min-width: 0; }
.hl__lab { font-size: 12.5px; font-weight: 800; color: var(--navy-deep); }
.hl__card h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.35; color: var(--navy-deep); }
.hl__card p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: #4E5968; }
.hl__pic { margin-top: auto; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.hl__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.hl__btn { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; border: 2px solid var(--navy-deep); border-radius: 12px; background: #fff; color: var(--navy-deep); font-size: 16px; font-weight: 800; text-decoration: none; }
.hl__btn:hover { background: #F4F6FB; text-decoration: none; }
.hl__note { font-size: 14.5px; color: #6B7684; }
.hl__ex { margin: 10px 0 0; font-size: 12.5px; color: #6B7684; }
html[data-auth="in"] .hl { display: none; }
.hl-bar { display: block; height: 8px; border-radius: 999px; background: #E3E6EB; overflow: hidden; }
.hl-bar i { display: block; height: 100%; background: var(--navy-deep); border-radius: inherit; }
.hl-bar--g { background: #E3DCCB; } .hl-bar--g i { background: #6BAA3F; }                  /* the green is only on a plant and its EXP bar */
.hl-dev { display: flex; align-items: center; gap: 6px; }
.hl-dev__d { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border: 2px solid #C9D3E8; border-radius: 12px; background: #fff; }
.hl-dev__d small { font-size: 11px; font-weight: 700; color: #6B7684; }
.hl-dev__d b { font-size: 12.5px; line-height: 1.3; color: var(--navy-deep); }
.hl-dev__d em { font-style: normal; font-size: 11.5px; color: #6B7684; }
.hl-dev__ln { flex: 0 0 16px; height: 2px; background: #C9D3E8; }
.hl-rows { list-style: none; margin: 0; padding: 0; }
.hl-rows li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #E3E6EB; font-size: 14px; color: #1F2329; }
.hl-rows li:first-child { border-top: 0; }
.hl-rows i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1F3C88; }
.hl-rows span { flex: 1; min-width: 0; }
.hl-rows b { font-size: 14px; color: var(--navy-deep); }
.hl-test { display: flex; align-items: center; gap: 14px; }
.hl-test__chip { flex: none; padding: 10px 14px; border-radius: 12px; background: #E8EEFB; font-size: 22px; font-weight: 900; color: var(--navy-deep); }
.hl-test__row { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hl-test__row b { font-size: 15px; color: var(--navy-deep); } .hl-test__row small { font-size: 13px; color: #6B7684; }
.hl-garden { display: flex; flex-direction: column; gap: 10px; }
.hl-garden__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; padding-bottom: 6px; border-bottom: 2px solid #E3E6EB; }
.hl-garden__p { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: #4E5968; text-align: center; }
.hl-garden__p.is-off { opacity: .35; }
/* U203: each plant has its own two lines: the name (bold) and 「subject · Lv n」 (grey) */
.hl-garden__p b { font-size: 12.5px; font-weight: 800; color: var(--navy-deep); }
.hl-garden__p small { font-size: 11px; font-weight: 600; color: #6B7684; white-space: nowrap; }
.hl-garden__p { min-width: 0; flex: 1; }
.hl-garden__t { font-size: 13px; color: #4E5968; }
.hl-pl { display: block; flex: none; }
.hl-cal { display: flex; align-items: center; gap: 18px; }
.hl-cal__g { display: grid; grid-template-columns: repeat(7, 22px); gap: 4px; }
.hl-c { display: block; width: 22px; height: 22px; border-radius: 5px; background: #EEF1F5; }
.hl-c--1 { background: #C9D3EC; } .hl-c--2 { background: #8EA0D4; } .hl-c--3 { background: #3D56A6; }
.hl-c.is-today { outline: 2px solid #111; }
.hl-cal__s { display: flex; flex-direction: column; gap: 2px; } .hl-cal__s b { font-size: 26px; font-weight: 900; line-height: 1.2; color: var(--navy-deep); } .hl-cal__s span { font-size: 13px; color: #4E5968; }
/* the banner's picture */
.hl-art .hl-k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; color: #4E5968; }
.hl-a1__big { display: block; font-size: 44px; font-weight: 900; line-height: 1.05; color: var(--navy-deep); }
.hl-a1__sub { display: block; margin: 2px 0 12px; font-size: 12.5px; color: #4E5968; }
.hl-a1__p { display: flex; justify-content: center; margin: 0 0 4px; }
.hl-a1__n { display: block; margin-bottom: 8px; font-size: 15px; color: var(--navy-deep); }
.hl-a2__s { display: block; margin-bottom: 8px; font-size: 17px; color: var(--navy-deep); }
.hl-art .hl-cal__g { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; } .hl-art .hl-c { width: auto; aspect-ratio: 1 / 1; height: auto; border-radius: 3px; }
.hl-art .hl-dev { flex-direction: column; gap: 4px; align-items: stretch; } .hl-art .hl-dev__ln { flex: none; width: 2px; height: 12px; margin: 0 auto; }
.hl-art .hl-dev__d { padding: 6px 10px; gap: 2px; } .hl-art .hl-dev__d b { font-size: 11.5px; } .hl-art .hl-dev__ln { height: 8px; }
.hl-a3__r { display: flex; align-items: center; gap: 10px; font-size: 15px; } .hl-a3__r i { width: 8px; height: 8px; border-radius: 50%; background: #1F3C88; } .hl-a3__r b { flex: 1; } .hl-a3__r em { font-style: normal; font-weight: 700; color: #6B7684; }
.hb__btn[data-in] { display: none; } html[data-auth="in"] .hb__btn[data-in] { display: inline-flex; } html[data-auth="in"] .hb__btn[data-out] { display: none; }
/* motion: once, when the section scrolls into view */
.hl--pre .hl__card { opacity: 0; transform: translateY(18px); }
.hl--go .hl__card { transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * .1s); }
.hl--pre .hl__fill { transform: scaleX(0); transform-origin: left; }
.hl--go .hl__fill { transition: transform .7s ease; transition-delay: .6s; transform-origin: left; }
.hl--pre .hl-garden__p { opacity: .08; }
.hl--go .hl-garden__p { transition: opacity .4s ease; transition-delay: calc(.5s + var(--p) * .15s); }
.hl--pre .hl-c { opacity: 0; }
.hl--go .hl-c { transition: opacity .25s ease; transition-delay: calc(.6s + var(--c) * .03s); }
.hl--pre .hl-rows li { opacity: 0; }
.hl--go .hl-rows li { transition: opacity .35s ease; transition-delay: calc(.5s + var(--r) * .12s); }
@media (prefers-reduced-motion: reduce) { .hl--pre .hl__card, .hl--pre .hl__fill, .hl--pre .hl-garden__p, .hl--pre .hl-c, .hl--pre .hl-rows li { opacity: 1; transform: none; } .hl * { transition: none !important; } }
@media (max-width: 860px) {
  .hl { padding: 30px 0 6px; } .hl__in { padding: 0 16px; }
  .hl__head h2 { font-size: 23px; } .hl__lead { font-size: 15px; }
  .hl__cards { grid-template-columns: 1fr; gap: 14px; }
  .hl__card { padding: 18px 18px 16px; } .hl__pic { min-height: 0; margin-top: 4px; }
  .hl-cal { gap: 14px; }
}
/* U202: the garden card on /me/ when nothing is planted yet: one sentence and this language's faded seeds */
.acc-gcard__empty { margin: 8px 0 12px; font-size: 14px; line-height: 1.55; color: #4E5968; text-align: left; }
.acc-gcard__plants--seeds { gap: 14px; margin-top: 0; }
.acc-gcard__pl--seed img { opacity: .35; }

/* The 「핵심 정리」 box of an explanation and its highlight, shared by every subject (docs/design_system.md §3; first used by 운전면허 V049).
   A page sets its field colours with --field, --field-tint and --field-ink; without them the site navy is used. No dark mode. */
.ex-key { background: var(--field-tint, #EEF2F9); border-left: 3px solid var(--field, #1F3C88); border-radius: 0 8px 8px 0; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px; color: #1F2329; overflow-wrap: anywhere; }
.ex-key p { margin: 0; font-size: 15px; line-height: 1.75; word-break: keep-all; }
.ex-key .ex-key__h { font-size: 13px; font-weight: 800; color: var(--field-ink, #0F1E46); }
.ex-mark { background: #FFF1A8; color: inherit; border-radius: 2px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
