
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #faf6ef; --paper: #fffdf9; --card: #ffffff; --ink: #1f2a44; --ink2: #44506b; --mute: #67708a; --line: #d9cfbf; --soft: #ece4d6;
  --red: #c8102e; --red-ink: #ffffff; --red-soft: #fbe6e9; --green: #2e7d4f; --gold: #e3a33a; --blue: #2f5d9e; --focus: #2f5d9e; --warn: #b3261e; --go: #2e7d4f;
  --grid: rgba(31, 42, 68, .045); --shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 8px 24px -12px rgba(31, 42, 68, .25); --r: 16px; --r-sm: 10px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #161a24; --paper: #1c2130; --card: #212738; --ink: #f2eee6; --ink2: #cfd3de; --mute: #a3aabd; --line: #394157; --soft: #2b3245;
  --red: #ff5a6e; --red-ink: #1a1010; --red-soft: #3a1f26; --green: #5fc48c; --gold: #f2bd5c; --blue: #8fb0ff; --focus: #8fb0ff; --warn: #ff8a80; --go: #5fc48c;
  --grid: rgba(255, 255, 255, .035); --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #161a24; --paper: #1c2130; --card: #212738; --ink: #f2eee6; --ink2: #cfd3de; --mute: #a3aabd; --line: #394157; --soft: #2b3245;
    --red: #ff5a6e; --red-ink: #1a1010; --red-soft: #3a1f26; --green: #5fc48c; --gold: #f2bd5c; --blue: #8fb0ff; --focus: #8fb0ff; --warn: #ff8a80; --go: #5fc48c;
    --grid: rgba(255, 255, 255, .035); --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 12px 12px; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(23px, 2.8vw, 30px); margin-top: 1.7em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }


header.top { background: var(--paper); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
header.top::after { content: ""; display: block; height: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 16px); opacity: .85; }
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 700 24px/1 var(--display); color: var(--ink); flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--red); font-weight: 700; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--sans); color: var(--ink2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current=page] { color: var(--red); background: var(--red-soft); }
.nav .ic { width: 18px; height: 18px; }
.hbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; flex: none; }
.hbtn:hover { border-color: var(--ink2); }
.themebtn .sun { display: none; }
:root[data-theme=dark] .themebtn .sun { display: block; } :root[data-theme=dark] .themebtn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .themebtn .sun { display: block; } :root:not([data-theme=light]) .themebtn .moon { display: none; } }
@media (max-width: 860px) { .nav a span { display: none; } .nav a { padding: 9px; } .nav a[aria-current=page] span { display: inline; } }
@media (max-width: 600px) {
  header.top .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 8px; }
  .brand { margin-right: auto; }
  .nav { order: 3; flex: 1 0 100%; margin: 6px -16px 0; padding: 0 16px 8px; }
  .nav a span, .nav a[aria-current=page] span { display: inline; }
  .nav a { padding: 7px 10px; font-size: 14px; border: 1px solid var(--line); }
}


.b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 15px/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: border-color .12s, background .12s, transform .08s; }
.b:hover { border-color: var(--ink2); color: var(--ink); }
.b:active { transform: translateY(1px); }
.b.primary { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.b.primary:hover { filter: brightness(1.06); color: var(--red-ink); }
.b.ghost { background: transparent; }
.b.sm { min-height: 36px; padding: 6px 11px; font-size: 14px; border-radius: 10px; }
.b[disabled], .b[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; }
input[type=text], input[type=search], input[type=number], input[type=url], textarea, select { font: 500 16px/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
label { font-weight: 600; }


.stitched { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.stitched::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--line); border-radius: calc(var(--r) - 5px); pointer-events: none; }


.head { padding: 26px 0 8px; }
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--mute); }
.crumbs i { font-style: normal; margin: 0 6px; }
.lede { font-size: 19px; color: var(--ink2); max-width: 760px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.badges li { display: flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px dashed var(--line); }
.badges li .ic { color: var(--red); width: 17px; height: 17px; }
.jumpline { margin: -.4em 0 .4em; }
.jump { font-weight: 600; white-space: nowrap; }


.stagecard { margin: 14px 0 22px; min-height: 640px; }
.stagecard.tj-ready, .stagecard.sj-ready { min-height: 0 !important; }
@media (max-width: 600px) { .stagecard { min-height: 600px; } }
.stagecard noscript p { padding: 18px; border: 1px dashed var(--line); border-radius: var(--r); }


.why { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0 0 28px; }
.why div { display: flex; gap: 10px; background: var(--card); border-radius: var(--r); padding: 14px 15px; font-size: 15px; line-height: 1.45; box-shadow: var(--shadow); }
.why .ic { color: var(--red); margin-top: 2px; }


.cards-sec { margin: 8px 0 30px; }
.grouph { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.grouph h2 { margin: 0 0 6px; }
.grouph .more { font-weight: 600; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.card { position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; padding: 14px;
  border-radius: var(--r); background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s; min-height: 96px; }
.card::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed transparent; border-radius: calc(var(--r) - 4px); pointer-events: none; transition: border-color .12s; }
.card:hover { transform: translateY(-2px); color: var(--ink); }
.card:hover::before { border-color: var(--red); }
.card .thumb { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 12px; background: var(--paper); object-fit: cover; image-rendering: pixelated; }
.card b { font: 700 18px/1.2 var(--display); margin-top: 2px; }
.card span { font-size: 14px; line-height: 1.4; color: var(--ink2); margin-top: 3px; }


.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 14px 0 28px; }
.pcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; background: var(--paper); border-radius: 10px; }
.pcard b { font: 700 17px/1.2 var(--display); }
.pcard .meta { font-size: 13px; color: var(--mute); }
.pcard .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }


.below { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
@media (min-width: 1000px) { .below { grid-template-columns: minmax(0, 1fr) 300px; } }
.content { max-width: 760px; }
.content h2:first-child { margin-top: .4em; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .35em; }
.howto { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 10px; }
.howto li { counter-increment: s; position: relative; padding: 13px 15px 13px 60px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.howto li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); border: 1.5px dashed var(--red); font: 700 17px/1 var(--display); }
.howto li b { display: block; }
.scroll { overflow-x: auto; margin: 0 0 1.2em; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.tbl th { background: var(--paper); font-weight: 700; }
.tbl caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--mute); padding-top: 6px; }
.faq details { background: var(--card); border-radius: var(--r-sm); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 22px/1 var(--display); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 16px 14px; margin: 0; }
.side { display: grid; gap: 16px; align-content: start; }
.sidebox { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.sidebox h3 { margin-bottom: 10px; }
.sidebox ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.sidebox li a { display: flex; gap: 8px; align-items: center; padding: 6px 4px; text-decoration: none; font-weight: 600; color: var(--ink); }
.sidebox li a:hover { color: var(--red); }
.facts { display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }
.facts div { display: flex; gap: 9px; }
.facts .ic { color: var(--red); }
.hint { font-size: 14px; color: var(--mute); }
.notice { border-left: 3px solid var(--soft); padding-left: 10px; }


footer { background: var(--paper); padding: 30px 0 22px; margin-top: 30px; box-shadow: 0 -1px 0 var(--line); }
.fgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fgrid h3 { font-size: 16px; }
.fgrid a { display: block; padding: 4px 0; font-size: 15px; text-decoration: none; color: var(--ink2); }
.fgrid a:hover { color: var(--red); }
.fbase { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--mute); }


.searchdlg { position: fixed; inset: 0; z-index: 90; background: rgba(22, 26, 36, .55); display: grid; place-items: start center; padding: 70px 16px 16px; }
.searchbox { width: min(620px, 100%); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.searchbox ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.searchbox li a { display: block; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.searchbox li a:hover, .searchbox li a[aria-selected=true] { background: var(--red-soft); }
.searchbox li span { display: block; font-size: 13px; color: var(--mute); }
.searchbox .none { padding: 10px; color: var(--mute); font-size: 15px; }


.ad { margin: 24px 0; min-height: 280px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.ad-l { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 600px) { .head { padding-top: 16px; }
  .head .badges { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 0 16px 2px; }
  .head .badges::-webkit-scrollbar { display: none; } .head .badges li { flex: none; font-size: 13px; padding: 6px 10px; } .lede { font-size: 16.5px; } h1 { font-size: 30px; }
  .head .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .6em; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { header.top, footer, .why, .below, .cards-sec, .head .badges, .jumpline { display: none !important; } body { background: #fff; } }
