@font-face { font-family: "GenSenRoundedTW"; src: url("/assets/assets/fonts/GenSenRoundedTW-M-AllBop-Subset.otf") format("opentype"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "GenSenRoundedTW"; src: url("/assets/assets/fonts/GenSenRoundedTW-B-AllBop-Subset.otf") format("opentype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "GenSenRoundedTW"; src: url("/assets/assets/fonts/GenSenRoundedTW-H-AllBop-Subset.otf") format("opentype"); font-weight: 800 1000; font-display: swap; }
/* Characters only these pages use (tooling/subset_client_fonts.sh). */
@font-face { font-family: "GenSenRoundedTWSite"; src: url("/site/fonts/GenSenRoundedTW-M-Site.otf") format("opentype"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "GenSenRoundedTWSite"; src: url("/site/fonts/GenSenRoundedTW-B-Site.otf") format("opentype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "GenSenRoundedTWSite"; src: url("/site/fonts/GenSenRoundedTW-H-Site.otf") format("opentype"); font-weight: 800 1000; font-display: swap; }

/* Static guide pages (tool/public_site_pages.dart). Same tokens and look as
   landing.css; no script, no ads. */
:root {
  --ink: #17233b;
  --paper: #f5f0e6;
  --white: #fffdf8;
  --coral: #ff654f;
  --lime: #cbf43c;
  --blue: #819cff;
  --focus: #315be8;
  --muted: #5b6274;
  --line: 2px solid var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font: 500 17px/1.75 "GenSenRoundedTW", "GenSenRoundedTWSite", "PingFang TC", "Microsoft JhengHei", sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--ink); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.site-skip { position: absolute; left: 12px; top: -80px; padding: 12px 16px; background: var(--lime); border: var(--line); }
.site-skip:focus { top: 12px; }

.site-nav, .footer-main, .footer-legal, .site-language { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-language { margin-top: 0; margin-bottom: 0; text-align: right; font-size: 14px; }
.site-language a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 700; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; border-bottom: var(--line); }
.site-brand { display: inline-flex; min-height: 48px; gap: 10px; align-items: center; font-size: 25px; font-weight: 900; letter-spacing: -0.05em; text-decoration: none; }
.site-brand-dot { width: 16px; height: 16px; border: var(--line); border-radius: 50%; background: var(--coral); box-shadow: 7px 0 0 var(--lime); }
.site-nav-links { display: flex; gap: 28px; }
.site-nav-links a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.site-nav-links a[aria-current] { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 88%, transparent 88%); text-decoration: none; }

/* Text column stays within ~40 CJK characters per line. */
.article { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding-block: 40px 96px; }
.article-kicker { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border: var(--line); background: var(--lime); font-size: 14px; font-weight: 900; }
.article h1 { margin: 0; font-size: clamp(44px, 8vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.article-lead { margin: 20px 0 0; font-size: 19px; font-weight: 600; }
/* The start button on the first screen, for visitors who never scroll. */
.article-lead-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 28px 0 7px; }
.article-lead-cta > span { font-size: 15px; font-weight: 700; }
.article h2 { margin: 0 0 12px; font-size: 28px; font-weight: 900; line-height: 1.3; }
.article h3 { margin: 24px 0 4px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.article p { margin: 10px 0; }
.article ul { margin: 10px 0; padding-left: 1.3em; }
.article li + li { margin-top: 8px; }
.article section { margin-top: 56px; padding-top: 32px; border-top: var(--line); }


.article-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.article-steps > li { counter-increment: step; margin-top: 32px; }
.article-steps p { white-space: pre-line; }
.article-steps h3::before { content: "0" counter(step) "　"; font-weight: 900; }
.article figure { margin: 16px 0 0; border: var(--line); border-radius: 4px; background: var(--white); box-shadow: 7px 7px 0 var(--blue); overflow: hidden; }
.article img { display: block; width: 100%; height: auto; }

.article section.article-box { padding: 28px 32px; border: var(--line); border-radius: 4px; background: var(--white); box-shadow: 9px 9px 0 var(--coral); }

.article table { width: 100%; margin: 12px 0; border-collapse: collapse; background: var(--white); }
.article th, .article td { padding: 10px 14px; border: var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--lime); font-weight: 900; }
.article td:first-child { width: 34%; font-weight: 800; }

.article-cta { margin-top: 64px; padding: 40px 32px; border-radius: 4px; color: var(--white); background: var(--ink); text-align: center; }
.article-cta p { margin: 0 0 24px; font-size: 19px; font-weight: 750; }
.site-enter { display: inline-flex; min-width: 230px; min-height: 64px; padding: 14px 18px 14px 24px; align-items: center; justify-content: space-between; gap: 24px; border: var(--line); border-radius: 4px; color: var(--ink); background: var(--lime); box-shadow: 7px 7px 0 var(--coral); font-size: 20px; font-weight: 850; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.site-enter svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.site-enter:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--coral); }
.article-cta :focus-visible { outline-color: var(--lime); }

.article .article-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; border-top: var(--line); border-left: var(--line); list-style: none; }
.article .article-cards li { margin: 0; }
.article-cards a { display: block; height: 100%; min-height: 48px; padding: 18px 20px; border-right: var(--line); border-bottom: var(--line); background: var(--white); text-decoration: none; }
.article-cards a:hover { background: var(--lime); }
.article-cards strong { display: block; font-size: 19px; font-weight: 900; }
.article-cards span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; }

.article-related { margin-top: 56px; }
.article-related ul { display: flex; flex-wrap: wrap; gap: 0 24px; padding: 0; list-style: none; }
.article-related li + li { margin-top: 0; }
.article-related a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 800; }

/* Footer: brand, three link columns, then copyright and policy links, on
   plain paper (same as landing.css). */
.site-footer { padding-block: 40px 20px; border-top: var(--line); background: var(--paper); line-height: 20px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-logo { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: -0.05em; line-height: 32px; }
.footer-tagline { margin: 4px 0 12px; font-size: 14px; }
.footer-heading { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.footer-col a, .footer-social { display: block; padding-block: 6px; font-size: 14px; font-weight: 400; }
.footer-social { display: inline-flex; gap: 8px; align-items: center; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-social .footer-social-dot { fill: currentColor; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(23, 35, 59, 0.15); color: var(--muted); font-size: 12px; }
.footer-legal nav { display: flex; flex-wrap: wrap; }
.footer-legal a { display: inline-block; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
/* An inline-block separator stays out of the link's hover underline. */
.footer-legal a + a::before { content: "・"; display: inline-block; }

@media (prefers-reduced-motion: reduce) { .site-enter { transition: none; } .site-enter:hover { transform: none; } }

@media (max-width: 400px) {
  .site-nav-links { gap: 16px; }
}

@media (max-width: 620px) {
  .site-nav, .footer-main, .footer-legal, .site-language, .article { width: min(100% - 32px, 1180px); }
  .site-nav { min-height: 72px; }
  .article { padding-block: 24px 72px; }
  .article .article-cards { grid-template-columns: 1fr; }
  .article section.article-box { padding: 20px; }
  /* Tables stack on phones, like the policy pages. */
  .article thead { display: none; }
  .article table, .article tbody, .article tr, .article td { display: block; width: 100%; }
  .article tr { padding: 10px 14px; border: var(--line); border-top: 0; }
  .article tr:first-child { border-top: var(--line); }
  .article td, .article td:first-child { width: 100%; padding: 2px 0; border: 0; }
  .article td:not(:first-child)::before { content: attr(data-label) "："; font-weight: 800; }
  .article-cta { padding: 32px 20px; }
}

@media (max-width: 767px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo { padding-block: 6px; }
  /* Phones: every footer link is at least 44px tall. */
  .footer-col a, .footer-social, .footer-legal a { padding-block: 12px; }
  .footer-legal { flex-direction: column-reverse; align-items: start; }
  /* Five links wrap to two balanced rows; a separator would start row two. */
  .footer-legal nav { display: block; text-wrap: balance; }
  .footer-legal a { margin-right: 12px; }
  .footer-legal a + a::before { content: none; }
}
