/* VOICE everyday: a teacher's lab shelf, quiet and useful
   IDEA a periodic table: units are element tiles, items are their data sheets
   PICTURE the unit tile grid on a copper-sulfate-blue band
   COLOUR copper sulfate blue #1b4fd6 leads, white, ink navy, sodium-flame #ffc23d marks selection
   TYPE Outfit for symbols and numbers + IBM Plex Sans KR for text
   LAYOUT title + intro, course chips, tiles full width; list below. Phone: 2-col tiles */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;700&family=Outfit:wght@500;700&display=swap");
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#0c1222);--ink:light-dark(#0f1830,#e8ecf7);--mute:light-dark(#5a6378,#9aa4bd);--line:light-dark(#dfe3ec,#26304a);--panel:light-dark(#f4f6fb,#141c31);--blue:#1b4fd6;--blue2:light-dark(#163fae,#0f2a78);--soft:light-dark(#e6edff,#18275a);--flame:#ffc23d;--red:#c8371e;--tile:light-dark(#ffffff,#16224a)}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 "IBM Plex Sans KR",system-ui,sans-serif;overflow-x:clip;word-break:keep-all;overflow-wrap:break-word}
a{color:inherit}
:focus-visible{outline:3px solid var(--flame);outline-offset:2px}
.band{padding-block:clamp(28px,4vw,56px);padding-inline:max(5vw,16px)}
.wrap{max-width:1240px;margin:0 auto}

/* ---------- 대문 ---------- */
.top{color:#fff;background:linear-gradient(160deg,var(--blue) 0%,var(--blue2) 100%)}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:28px}
.brandname{font:700 clamp(44px,8vw,76px)/1 Outfit,sans-serif;letter-spacing:-.03em;margin:0}
.intro{margin:14px 0 0;color:#e3eaff;max-width:60ch;white-space:pre-line;font-size:17px}
.course{display:flex;flex-wrap:wrap;gap:8px}
.course button{font:inherit;font-size:15px;font-weight:500;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55);background:transparent;color:#fff;cursor:pointer}
.course button[aria-pressed=true]{background:#fff;color:var(--blue);border-color:#fff}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.tile{position:relative;text-align:left;font:inherit;color:var(--ink);background:var(--tile);border:0;border-radius:6px;padding:12px 14px 14px;min-height:150px;cursor:pointer;display:flex;flex-direction:column;box-shadow:0 2px 0 rgba(0,0,0,.18);transition:transform .15s}
.tile:hover{transform:translateY(-2px)}
.tile .no{font:500 14px Outfit,sans-serif;color:var(--mute)}
.tile .cnt{position:absolute;top:10px;right:12px;font:700 14px Outfit,sans-serif;background:var(--panel);border-radius:999px;padding:1px 9px}
.tile .sym{font:700 44px/1 Outfit,"IBM Plex Sans KR",sans-serif;letter-spacing:-.02em;margin:10px 0 6px;color:var(--blue)}
.tile .nm{font-weight:700;font-size:16px;line-height:1.3}
.tile .cr{font-size:13px;color:var(--mute);margin-top:auto;padding-top:6px}
.tile[aria-pressed=true]{background:var(--flame);color:#1a1300}
.tile[aria-pressed=true] .sym{color:#1a1300}
.tile[aria-pressed=true] .no,.tile[aria-pressed=true] .cr{color:#4a3a00}
.tile[aria-pressed=true] .cnt{background:rgba(255,255,255,.6)}
.tile.all{background:transparent;color:#fff;border:1.5px dashed rgba(255,255,255,.6);box-shadow:none}
.tile.all .sym,.tile.all .no,.tile.all .cr{color:#fff}
.tile.all .cnt{background:rgba(255,255,255,.18)}
.tile.all[aria-pressed=true]{background:rgba(255,255,255,.14);border-style:solid}
.bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}
.bar h2{font-size:28px;line-height:1.15;margin:0;letter-spacing:-.01em}
.q{font:inherit;font-size:16px;min-height:44px;width:min(320px,100%);padding:0 14px;border:1.5px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.list{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.item{display:grid;grid-template-columns:7.2em minmax(0,1fr) auto;gap:6px 18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.badge{justify-self:start;font-size:13px;font-weight:700;padding:3px 10px;border-radius:4px;white-space:nowrap;background:var(--panel);border-left:4px solid var(--blue)}
.it{font-weight:700;font-size:17px;line-height:1.4;text-decoration:none}
.it:hover{text-decoration:underline}
.meta{font-size:14px;color:var(--mute);margin-top:2px}
.desc{font-size:15px;margin-top:4px;white-space:pre-line}
.open{font:inherit;font-size:15px;font-weight:700;min-height:44px;padding:0 18px;border-radius:8px;background:var(--blue);color:#fff;text-decoration:none;display:inline-flex;align-items:center;white-space:nowrap}
.empty{padding:48px 0;color:var(--mute);text-align:center}
.foot{border-top:1px solid var(--line);color:var(--mute);font-size:14px}
.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.foot a{color:var(--mute)}
@media(max-width:600px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tile{min-height:124px}.tile .sym{font-size:36px}.item{grid-template-columns:minmax(0,1fr) auto}.item .badge{grid-column:1/-1;justify-self:start}}

/* ---------- 짧은 주소 페이지 /t/코드 ---------- */
.tpage{min-height:100svh;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--blue) 0 200px,var(--bg) 200px)}
.tbar{padding:18px max(5vw,16px);color:#fff}
.brand{font:700 26px Outfit,sans-serif;color:#fff;text-decoration:none;letter-spacing:-.02em}
.tcard{background:var(--bg);width:min(560px,calc(100% - 32px));margin:24px auto 0;border-radius:14px;padding:28px clamp(20px,5vw,36px) 26px;box-shadow:0 12px 40px rgba(8,20,60,.18);border:1px solid var(--line)}
.tcard h1{font-size:clamp(26px,5vw,34px);line-height:1.2;letter-spacing:-.02em;margin:4px 0 6px;text-wrap:balance}
.tcat{margin:0;font-size:14px;font-weight:700;color:var(--blue)}
.tmeta{margin:0;color:var(--mute);font-size:15px}
.tdesc{margin:14px 0 0;white-space:pre-line}
.tfile{display:flex;justify-content:space-between;gap:12px;margin:22px 0 0;padding:12px 14px;background:var(--panel);border-radius:8px;font-size:15px;overflow-wrap:anywhere}
.tsize{color:var(--mute);white-space:nowrap}
.tacts{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.tbtn{flex:1 1 160px;display:inline-flex;align-items:center;justify-content:center;min-height:52px;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;font-size:17px;text-decoration:none;padding:0 18px}
.tbtn.ghost{background:var(--panel);color:var(--ink)}
.tback{display:inline-block;margin-top:22px;font-size:14px;color:var(--mute)}
.tprivate{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#fff3cd;color:#5c4400;font-size:14px}
.tfoot{margin-top:auto;padding:28px 16px;text-align:center;color:var(--mute);font-size:13px}
@media(prefers-reduced-motion:reduce){.tile{transition:none}}
