/* 하위 페이지 공통(도구함 tools.html · 강의실 classroom.html · 소개 about.html) — 2026-10-22 재구성 1단계.
   메인(index.html)과 같은 site.css 위에 얹는다. 띠배너(toprec)가 없으므로 고정 메뉴 높이만큼만 띄운다. */
.sub-hero{ padding:calc(84px + clamp(44px,7vw,84px)) 0 clamp(28px,4vw,44px); }
.sub-hero .lead{ margin-top:18px; max-width:56ch; }
.sub-hero__row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.nav__links a.is-here{ color:var(--gold); }
.mobile-sheet a.is-here{ color:var(--gold); }

/* 상단 메뉴 — 다섯 개(홈·강의실·도구함·소개·문의). 좁은 화면은 햄버거 */
.mobile-sheet{ position:fixed; inset:0; z-index:99; background:var(--ink); transform:translateY(-100%); transition:transform .5s var(--ease); display:flex; flex-direction:column; justify-content:flex-start; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:104px var(--gutter) 48px; gap:6px; }
.mobile-sheet.open{ transform:none; }
.mobile-sheet a{ font-family:var(--sans); font-weight:600; font-size:1.18rem; letter-spacing:-.01em; padding:14px 0; border-bottom:1px solid var(--ink-line); color:var(--on-dark); }
.mobile-sheet a .n{ font-family:var(--sans); font-weight:700; font-style:normal; font-size:.8rem; color:var(--gold); margin-right:14px; }

/* 도구 상자 격자 — 메인 #qr 과 같은 모양(상자 전체가 눌린다) */
.qr-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.qr-teaser{ position:relative; display:flex; flex-direction:column; gap:10px; min-width:0; overflow:hidden; border:1px solid var(--paper-line); border-radius:18px; background:color-mix(in srgb, var(--paper-2) 55%, transparent); padding:18px; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.qr-teaser[hidden]{ display:none; }
.qr-teaser:hover, .qr-teaser:focus-within{ transform:translateY(-3px); border-color:var(--gold); box-shadow:0 16px 34px -22px rgba(40,20,10,.45); }
.qr-teaser-icon{ width:44px; height:44px; flex:none; border-radius:12px; background:var(--gold); color:var(--on-accent,#fff); display:grid; place-items:center; font-family:var(--latin); font-weight:800; font-size:.82rem; letter-spacing:-.02em; }
.qr-teaser-copy{ flex:1; min-width:0; min-height:0; overflow:hidden; }
.qr-teaser-copy h3{ margin:0 0 6px; font-size:1rem; font-weight:800; letter-spacing:-.02em; line-height:1.35; word-break:keep-all; }
.qr-teaser-copy p{ margin:0; font-size:.8rem; line-height:1.55; opacity:.78; word-break:keep-all; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.qr-teaser-btn{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; background:var(--gold); color:var(--on-accent,#fff); font-weight:800; font-size:.78rem; text-decoration:none; }
.qr-teaser-btn::after{ content:""; position:absolute; inset:0; border-radius:18px; }
.qr-teaser-btn:hover{ color:var(--on-accent,#fff); }
.qr-teaser .ext{ position:absolute; top:10px; right:10px; z-index:2; font-size:.72rem; font-weight:800; color:#fff; background:rgba(20,16,12,.62); border-radius:999px; padding:3px 8px; }
/* 상자 위 화면 그림 — 무엇을 하는 도구인지 한눈에(대표님 2026-10-23) */
.qr-shot{ position:relative; margin:-18px -18px 0; aspect-ratio:16/10; overflow:hidden; background:var(--ink-3); border-bottom:1px solid var(--paper-line); }
.qr-shot img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; transition:transform .5s ease; }
.qr-teaser:hover .qr-shot img{ transform:scale(1.04); }
.qr-shot.no-img img{ display:none; }
.qr-teaser-icon{ display:none; }   /* 이니셜 네모는 빼고 화면 그림으로만(대표님 2026-10-23 「눈이 아프다」) */
.qr-shot{ margin-bottom:4px; }
.qr-member{ position:absolute; left:10px; top:10px; z-index:2; background:#e0273a; color:#fff; font-size:.74rem; font-weight:900; letter-spacing:-.01em; padding:5px 10px; border-radius:999px; box-shadow:0 6px 16px -6px rgba(160,10,30,.7); }
.qr-lock{ position:absolute; left:10px; top:10px; z-index:2; background:rgba(20,16,12,.78); color:#fff; font-size:.72rem; font-weight:800; padding:5px 10px; border-radius:999px; }
.qr-teaser-btn{ margin-top:auto; }
.qr-open-toggle{ position:relative; z-index:3; margin-top:10px; padding:6px 12px; border-radius:999px; border:1px solid #ffd23f; background:#fff8d6; color:#111; font:inherit; font-size:.76rem; font-weight:800; cursor:pointer; }   /* 최고관리자 전용 공개 스위치 */
.qr-open-toggle:disabled{ opacity:.6; }
.tool-guide-link{position:relative;z-index:4;display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font-size:13px;font-weight:750;text-decoration:underline;text-underline-offset:4px;color:var(--ink,#1a1a1a)}
/* 즐겨찾기 별 — 상자 전체 링크 위에 올라와야 눌린다 */
.qr-fav{ position:absolute; right:12px; bottom:14px; z-index:3; width:38px; height:38px; border-radius:999px; border:1px solid var(--paper-line); background:var(--paper, #fff); color:#b8892a; font-size:1.15rem; line-height:1; cursor:pointer; display:grid; place-items:center; box-shadow:0 4px 12px -6px rgba(0,0,0,.35); }
.qr-fav:hover{ border-color:#e0a91b; }
.qr-fav.on{ background:#ffd23f; border-color:#e0a91b; color:#111; }
.tool-group--fav .qr-grid:empty{ display:none; }
.fav-hint{ margin:0; padding:18px; border:1px dashed var(--paper-line); border-radius:14px; font-size:.9rem; color:var(--on-paper-dim); }
@media (max-width:560px){ .qr-fav{ width:32px; height:32px; font-size:1rem; right:9px; bottom:10px; } }
@media (min-width:761px){ #homeTools{ grid-template-columns:repeat(4,minmax(0,1fr)); } }   /* 메인 「즐겨 찾는 8가지」는 4x2 */
#homeTools .qr-teaser[hidden]{ display:none; }
@media (max-width:560px){
  .qr-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .qr-teaser{ padding:13px; gap:8px; border-radius:14px; }
  .qr-shot{ margin:-13px -13px 0; }
  .qr-shot + .qr-teaser-icon{ margin-top:-24px; }
  .qr-member, .qr-lock{ font-size:.66rem; padding:4px 8px; left:7px; top:7px; }
  .qr-teaser-btn::after{ border-radius:14px; }
  .qr-teaser-icon{ width:36px; height:36px; font-size:.7rem; border-radius:10px; }
  .qr-teaser-copy h3{ font-size:.88rem; }
  .qr-teaser-copy p{ display:none; }   /* 폰에서는 제목만 */
  .qr-teaser-btn{ padding:6px 11px; font-size:.72rem; }
}

/* 도구함 — 묶음 제목·찾기 */
.tool-search{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:22px; }
.tool-search input{ flex:1; min-width:220px; max-width:420px; padding:13px 16px; border:1px solid var(--paper-line); border-radius:12px; font:inherit; font-size:1rem; background:color-mix(in srgb, var(--paper-2) 55%, transparent); color:inherit; }
.tool-search input:focus{ outline:2px solid var(--gold); outline-offset:1px; }
.tool-search .cnt{ font-size:.86rem; color:var(--on-paper-dim); }
.tool-group{ margin-top:clamp(34px,5vw,56px); scroll-margin-top:110px; }
.tool-group__h{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.tool-group__h h2{ margin:0; font-size:clamp(1.2rem,2.2vw,1.55rem); font-weight:800; letter-spacing:-.03em; }
.tool-group__h p{ margin:0; font-size:.9rem; color:var(--on-paper-dim); }
.tool-group[hidden]{ display:none; }
.tool-jump{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.tool-jump a{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; border:1px solid var(--paper-line); font-size:.86rem; font-weight:700; text-decoration:none; color:inherit; }
.tool-jump a:hover{ border-color:var(--gold); color:var(--gold); }
.tool-empty{ margin-top:28px; padding:36px; text-align:center; border:1px dashed var(--paper-line); border-radius:16px; color:var(--on-paper-dim); }

/* 강의실 — 큰 카드 4개 */
.bigcards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.bigcard{ position:relative; display:flex; flex-direction:column; gap:12px; padding:clamp(22px,3vw,30px); border-radius:20px; border:1px solid var(--ink-line); background:var(--ink-2); color:inherit; text-decoration:none; min-height:200px; transition:transform .18s ease, border-color .18s ease; }
.bigcard:hover{ transform:translateY(-3px); border-color:var(--gold); }
.bigcard .k{ font-size:.74rem; font-weight:800; letter-spacing:.14em; color:var(--gold); }
.bigcard h3{ margin:0; font-size:clamp(1.15rem,2vw,1.4rem); font-weight:800; letter-spacing:-.03em; line-height:1.3; word-break:keep-all; }
.bigcard p{ margin:0; font-size:.92rem; line-height:1.65; color:var(--on-dark-dim); word-break:keep-all; }
.bigcard .go{ margin-top:auto; font-weight:800; font-size:.88rem; color:var(--gold); }
.bigcard.is-hot{ background:linear-gradient(135deg, #7a0d19, #c3101f); border-color:transparent; color:#fff; }
.bigcard.is-hot p{ color:rgba(255,255,255,.82); }
.bigcard.is-hot .k, .bigcard.is-hot .go{ color:#ffe14a; }

/* 소개 — 함께하는 곳 */
.with{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.with a{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; border:1px solid var(--ink-line); text-decoration:none; color:inherit; transition:border-color .18s; }
.with a:hover{ border-color:var(--gold); }
.with a b{ display:block; font-size:.95rem; font-weight:800; }
.with a span{ display:block; font-size:.8rem; color:var(--on-dark-dim); margin-top:2px; }
.with a i{ flex:none; width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:var(--gold); color:var(--on-accent,#fff); font-style:normal; font-weight:800; font-size:.72rem; font-family:var(--latin); }
/* 「열기」 버튼은 빼고 상자 전체를 누르게(대표님 2026-10-24 「열기 표시가 많아 산만」) — 링크는 남겨 ::after 가 상자 전체를 덮는다 */
.qr-teaser-btn, .qr-teaser-btn:hover{ position:static; display:block; width:0; height:0; margin:0; padding:0 !important; background:none; font-size:0; overflow:visible; }
.qr-teaser-btn:focus-visible::after{ outline:3px solid var(--gold); outline-offset:-3px; }
/* 별은 그림 오른쪽 위로 — 아래 글과 겹치지 않게 */
.qr-fav{ top:10px; bottom:auto; right:10px; width:34px; height:34px; font-size:1rem; background:color-mix(in srgb, var(--paper,#fff) 88%, transparent); }
.qr-teaser .ext{ right:52px; }
@media (max-width:560px){ .qr-fav{ top:7px; bottom:auto; right:7px; width:30px; height:30px; } .qr-teaser .ext{ right:44px; } }
/* RSA 11기 토지 카드(준비 중) — 첫 화면·강의실 공용 */
.bigcard.is-soon{ cursor:default; } .bigcard.is-soon:hover{ transform:none; }
.bigcard.is-land{ background:linear-gradient(135deg, #1f4d2c, #3f7a3a); }
