/* KochiWin: calm, readable study surfaces. Shared by generated and static pages. */
:root { --radius: 14px; --faint: #969696; --border: #292929; --border-lt: #444; }
html { scroll-padding-top: 104px; }
[hidden] { display: none !important; }
body { font-size: 16px; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, .btn { touch-action: manipulation; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid #fafafa; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 10px 18px; background: #fafafa; color: #111; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.page, .wrap { max-width: 1200px; padding-left: 36px; padding-right: 36px; }
.page { padding-bottom: 32px; }
.topnav { background: rgba(10,10,10,.97); }
.topnav .in { max-width: 1320px; min-height: 80px; padding: 14px 32px; gap: 28px; }
.topnav .logo { font-size: 21px; letter-spacing: -.05em; }
.topnav .logo span { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .12em; margin: 0; text-transform: uppercase; color: #aaa; }
.topnav .links { position: static; padding: 0; border: 0; background: transparent; backdrop-filter: none; gap: 2px; overflow: visible; }
.topnav .links a { padding: 10px; font-size: 13px; border-radius: 7px; }
.topnav .links a.on { background: #242424; color: #fff; }
.topnav .find { width: 196px; flex: 0 0 196px; }
.topnav .find input { min-height: 42px; font-size: 13px; border-color: #333; }
.nav-toggle { display: none; min-height: 42px; padding: 7px 14px; border: 1px solid var(--border-lt); border-radius: 8px; background: transparent; color: var(--fg); }
.sugg { left: auto; width: max(100%, 340px); max-width: calc(100vw - 32px); max-height: 360px; overflow-y: auto; overscroll-behavior: contain; border-color: #4a4a4a; }
.sugg a { align-items: flex-start; padding: 14px 16px; }
.sugg a span { min-width: 0; }
.sugg a small { max-width: 46%; white-space: normal; text-align: right; font-size: 11px; }
.bigfind .sugg { width: 100%; left: 0; right: auto; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--faint); line-height: 1.5; }
.home-hero { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); align-items: center; gap: 72px; padding: 68px 0 54px; }
.home-hero .eyebrow { margin: 0 0 24px; }
.home-hero h1 { font-size: clamp(34px,4.25vw,56px); line-height: 1.3; letter-spacing: -.055em; font-weight: 750; }
.home-hero h1 em { color: #aaa; font-weight: inherit; display: block; }
.home-hero .hero-description { font-size: 15px; line-height: 1.9; margin-top: 22px; }
.bigfind { margin-top: 30px; }
.bigfind input { min-height: 58px; padding: 16px 18px; font-size: 14px; background: #191919; border-color: #444; border-radius: 10px; }
input::placeholder { color: #969696; opacity: 1; }
.hotkw { margin-top: 14px; gap: 8px; font-size: 11px; }
.hotkw > span { margin-right: 2px; }
.hotkw a { border: 0; border-radius: 0; padding: 3px 0; margin-right: 8px; border-bottom: 1px solid #444; font-size: 12px; }
.start-card { border: 1px solid #363636; border-radius: 16px; background: #141414; padding: 26px; }
.start-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: #aaa; margin-bottom: 22px; }
.free-badge { border: 1px solid #3a3a3a; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.start-card h2 { font-size: 30px; line-height: 1.45; letter-spacing: -.035em; }
.start-card > p { font-size: 13px; margin: 10px 0 22px; }
.start-steps { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; font-size: 13px; color: #c5c5c5; }
.start-steps span { font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .05em; color: #999; margin-right: 12px; }
.start-card .btn { display: flex; justify-content: space-between; padding: 13px 16px; min-height: 48px; font-size: 14px; }
.start-secondary { display: block; text-align: center; font-size: 11px; color: #aaa; margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 28px 0; margin: 0; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.kpis > span { display: flex; flex-direction: column; gap: 4px; font-size: 12px; padding-left: 32px; border-left: 1px solid #333; }
.kpis > span:first-child { padding-left: 0; border-left: 0; }
.kpis b { font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1.3; }
.kpis > span:last-child b { font-size: 22px; line-height: 1.6; }
.resume-box:empty { display: none; }
.rcard { padding: 22px 24px; }
.rcard .eyebrow { display: block; margin-bottom: 6px; }
.rcard .t small { margin-top: 5px; }
.resume-action { display: flex; align-items: center; gap: 20px; }
.library { margin-top: 64px; }
.library-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.library-head h2 { font-size: 27px; letter-spacing: -.04em; margin-top: 9px; }
.library-head p:not(.eyebrow) { color: #aaa; font-size: 13px; margin-top: 8px; }
.library-count { font-size: 12px; color: #aaa; white-space: nowrap; padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #333; }
.library-tools .chips { gap: 5px; margin: 0; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 9px 12px; border-radius: 7px; min-height: 42px; border-color: transparent; color: #bbb; }
.chip.on { background: #fafafa; color: #111; }
.filter-field { width: 245px; flex-shrink: 0; }
.filter-field input { width: 100%; min-height: 44px; background: #141414; border: 1px solid #3a3a3a; border-radius: 8px; padding: 10px 13px; color: #fafafa; font-size: 13px; }
.cat-sec { margin: 30px 0 38px; padding-top: 0; border: 0; }
.cat-label { font-size: 17px; margin-bottom: 14px; gap: 12px; font-weight: 600; letter-spacing: 0; }
.cat-label small { font-size: 11px; color: #999; }
.rows { border-radius: 12px; }
.erow, .rowhead { grid-template-columns: 55px minmax(170px,1.25fr) minmax(0,1.8fr) 66px; column-gap: 18px; padding: 20px; }
.rowhead { padding-top: 10px; padding-bottom: 10px; background: #1b1b1b; font-size: 10px; }
.rowhead .rh-name { grid-column: 1 / 3; }
.rowhead .facts { grid-column: 3; }
.erow .facts, .rowhead .facts { grid-template-columns: 58px 58px minmax(0,1fr); gap: 12px; }
.erow .facts > span:last-child, .rowhead .facts > span:last-child { display: none; }
.erow .code { padding: 4px 6px; border-color: #393939; font-size: 10px; letter-spacing: .03em; }
.erow .name { font-size: 14px; line-height: 1.7; font-weight: 600; overflow-wrap: anywhere; }
.erow .facts b { font-size: 18px; font-weight: 600; }
.erow .facts i { font-size: 12px; }
.erow .facts span { font-size: 11px; line-height: 1.75; }
.erow .go { font-size: 11px; color: #bbb; text-align: right; }
.newtag { font-size: 9px; color: #aaa; border-color: #444; padding: 1px 4px; margin-left: 6px; vertical-align: 1px; }
.nores { padding: 40px 20px; margin-top: 24px; border: 1px dashed #444; text-align: center; border-radius: 12px; }
.nores b { color: #fafafa; font-size: 17px; }.nores p { margin: 8px 0 20px; }
.note-box { max-width: none; padding: 24px; background: #141414; border: 1px solid #333; border-radius: 12px; }
.note-box b { display: block; color: #eee; font-size: 15px; margin-bottom: 8px; }
footer { margin-top: 48px; color: #999; font-size: 11px; }
.page-intro { padding-top: 52px; margin-bottom: 28px; }
.page-intro h1.pg { font-size: clamp(26px,3vw,36px); letter-spacing: -.035em; margin: 12px 0; }.page-intro .lead { font-size: 14px; }
.crumb { margin: 30px 0 22px; font-size: 12px; }
.hub-head { align-items: center; }.hub-head h1.pg { font-size: 34px; letter-spacing: -.035em; }.hub-head + .lead { font-size: 14px; }
.facts-bar { margin-top: 28px; }.facts-bar div { padding: 22px; }.facts-bar small { font-size: 11px; margin-bottom: 6px; }.facts-bar b { font-size: 22px; font-weight: 600; }
.sec-h { margin-top: 40px; }.sec-h h2 { font-size: 22px; font-weight: 600; margin-top: 6px; }
.quick { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.qk { padding: 20px; }.qk b { font-size: 15px; }.qk span { font-size: 12px; }.qk .n { font-size: 18px; }
.builder { margin-top: 20px; padding: 28px; }
.builder-title { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.builder-title h3 { font-size: 18px; }.builder-title p { font-size: 12px; color: #aaa; }
.brow { grid-template-columns: 84px minmax(0,1fr); padding: 20px 0; }
.seg button { border-radius: 8px; font-size: 13px; min-height: 44px; }
.bgo { padding-top: 4px; }.bgo .btn { font-size: 14px; }.bgo .cnt { font-size: 12px; }
.tbox { overflow-x: auto; }.papers th, .papers td { font-size: 13px; }.papers th { font-size: 11px; }.papers td.y { white-space: normal; min-width: 120px; }
.sample { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.sample .qcard { margin: 0; }.sample .qcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
.qz-top { min-height: 76px; gap: 16px; padding: 14px max(20px,calc((100vw - 1180px)/2)); }
.qz-back { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid #333; border-radius: 8px; }
.qz-title b { font-size: 15px; }.qz-title span { margin-top: 5px; font-size: 11px; }.qz-stat { font-size: 12px; }
.qz-ibtn { min-height: 42px; padding: 8px 13px; font-size: 12px; }.qz-prog { top: 76px; height: 3px; }
.qz-main { max-width: 870px; padding-top: 38px; padding-bottom: 48px; }.qz-card { padding: 34px; border-color: #363636; }
.qz-meta { font-size: 11px; margin-bottom: 24px; }.qz-stem { font-size: 19px; line-height: 1.95; margin-bottom: 26px; }
.opt { padding: 16px; font-size: 16px; background: #191919; border-color: #363636; border-radius: 9px; }.opt .k { border-radius: 7px; font-size: 12px; width: 28px; height: 28px; }
.qz-nav { top: auto; min-height: 82px; gap: 12px; }.qz-nbtn { min-width: 145px; font-size: 14px; padding: 12px 20px; }.qz-nbtn.primary { min-width: 240px; }
.qz-fb { margin-top: 24px; padding-top: 24px; }.qz-exp { font-size: 15px; }.qz-drawer-in { padding: 24px; }.cell { height: 44px; }.qz-hint { font-size: 12px; }
#modes { margin-top: 24px; gap: 16px; }#modes .card { padding: 24px; cursor: pointer; }#modes .card h3 { font-size: 16px; }#modes .card p { font-size: 13px; }
.fc-stage { margin-bottom: 50px; }.fc { min-height: 300px; padding: 40px; border-radius: 16px; border-color: #444; }.fc .front { line-height: 1.8; font-size: 23px; }.fc-ctrl { gap: 12px; margin-top: 20px; }
.law-search { min-height: 52px; font-size: 15px; }.article { padding: 24px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .erow:hover { background: #202020; }
  .btn, .chip, .qk, .qz-ibtn, .navlink { transition: background-color 140ms ease, border-color 140ms ease; }
  .qk:hover, .card:hover { border-color: #666; }.opt:not(.right):not(.wrong):hover { border-color: #777; }
}
@media (max-width: 1100px) {
  .topnav .in { justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 14px 28px; }
  .nav-toggle { display: block; order: 3; }.topnav .find { margin-left: auto; width: 240px; flex-basis: 240px; order: 2; }
  .topnav .links { display: none; order: 4; flex-basis: 100%; flex-wrap: wrap; gap: 4px; padding-top: 8px; }.topnav.menu-open .links { display: flex; }.topnav .links a { padding: 12px 16px; font-size: 14px; }
  .home-hero { gap: 36px; }.library-tools { flex-wrap: wrap; }.filter-field { width: 100%; }.quick { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }.page, .wrap { padding-left: 20px; padding-right: 20px; }
  .topnav .in { min-height: 68px; padding: 12px 20px; gap: 12px; }.topnav .logo { font-size: 20px; }
  .topnav .find { order: 4; flex-basis: 100%; width: 100%; display: none; }.topnav.menu-open .find { display: block; }.topnav .links { order: 5; }.topnav .links a { flex: 1 0 30%; padding: 10px 8px; text-align: center; font-size: 13px; }.nav-toggle { margin-left: auto; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 32px; }.home-hero .eyebrow { font-size: 10px; margin-bottom: 18px; }.home-hero h1 { font-size: clamp(32px,8.4vw,48px); }.home-hero .hero-description { font-size: 14px; }
  .bigfind { margin-top: 24px; }.bigfind input { font-size: 16px; padding: 14px; }
  .start-card { padding: 24px; }.start-card h2 { font-size: 27px; }.start-card h2 br, .start-card > p br { display: none; }.start-label { margin-bottom: 16px; }.start-steps { gap: 10px; margin-bottom: 22px; }
  .kpis { grid-template-columns: repeat(2,1fr); gap: 24px 0; padding: 24px 0; }.kpis > span { padding-left: 24px; }.kpis > span:nth-child(3) { padding-left: 0; border-left: 0; }.kpis b { font-size: 25px; }
  .library { margin-top: 40px; }.library-head { display: block; margin-bottom: 18px; }.library-head h2 { font-size: 24px; }.library-count { display: block; margin-top: 12px; }.library-tools { gap: 16px; }
  .library-tools .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; width: 100%; scrollbar-width: thin; }.chip { white-space: nowrap; flex-shrink: 0; }.filter-field input { font-size: 16px; }
  .rowhead { display: none; }.erow { grid-template-columns: 48px minmax(0,1fr) auto; gap: 8px 12px; padding: 18px 16px; }
  .erow .code { grid-column: 1; grid-row: 1; max-width: 48px; font-size: 9px; }.erow .name { grid-column: 2; grid-row: 1; font-size: 15px; }.erow .go { grid-column: 3; grid-row: 1; font-size: 11px; }
  .erow .facts { grid-column: 2 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }.erow .facts b { font-size: 15px; }
  .erow .facts b::before { content: '題庫 '; font-size: 11px; font-weight: 400; color: #999; }.erow .facts i::before { content: '歷屆 '; font-size: 11px; font-weight: 400; color: #999; }.erow .facts i:not(.has)::before { content: ''; }
  .erow .facts > span:not(:last-child) { flex-basis: 100%; font-size: 11px; }.cat-label { flex-wrap: wrap; gap: 4px 12px; }.resume-action { width: 100%; justify-content: space-between; }.rcard .bar { width: 100px; }
  .page-intro { padding-top: 34px; }.hub-head h1.pg { font-size: 28px; }.hub-head .btn { width: 100%; text-align: center; }.facts-bar div { padding: 18px; }.facts-bar b { font-size: 20px; }
  .quick { gap: 10px; }.qk { padding: 16px; }.qk b { font-size: 14px; }.builder { padding: 20px 16px; }.builder-title { display: block; }.builder-title p { margin-top: 5px; }.brow { grid-template-columns: 1fr; gap: 10px; }.seg { gap: 6px; }.seg button { padding: 9px 12px; }.bgo .btn { width: 100%; text-align: center; }.sample { grid-template-columns: 1fr; }
  .qz-top { padding: 10px 12px; min-height: 108px; gap: 8px; flex-wrap: wrap; }.qz-back { min-width: 36px; }.qz-title { flex-basis: calc(100% - 52px); }.qz-stat { flex: 1; margin-left: 4px; }.qz-title b { font-size: 14px; }.qz-ibtn { padding: 8px 10px; min-height: 40px; font-size: 12px; }#b-set { display: inline-block; }.qz-prog { top: 108px; }
  .qz-main { padding: 20px 12px 38px; }.qz-card { padding: 22px 18px; }.qz-stem { font-size: 18px; line-height: 1.9; }.qz-meta { margin-bottom: 18px; }.opt { font-size: 16px; padding: 14px 12px; }
  .qz-nav { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); min-height: 76px; gap: 8px; flex-wrap: nowrap; overflow: visible; }.qz-nbtn, .qz-nbtn.primary { min-width: 0; padding: 12px 8px; font-size: 13px; flex: 1; }.qz-nbtn.primary { flex: 1.25; }
  .fc { min-height: 290px; padding: 28px 24px; }.fc .front { font-size: 20px; }.fc-ctrl .btn { padding: 12px; font-size: 13px; }.article { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}
