/* Shared look for the guide pages: KoJi site header and footer, one readable article column. */
:root {
  --bg: #faf8f1; --surface: #ffffff; --sunk: #f4f1e8; --fg: #081c25; --muted: #5d6468; --line: #e9e4d9;
  --accent: #f05216; --accent-2: #ff8e51; --gold: #f1b449; --mid-soft: #fbeccb; --shade: rgba(8, 28, 37, .35);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #030d17; --surface: #081c25; --sunk: #05141d; --fg: #eef2f4; --muted: #9fb0bb; --line: #17323e; --mid-soft: #3a2b0e; --shade: rgba(0, 0, 0, .6); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #030d17; --surface: #081c25; --sunk: #05141d; --fg: #eef2f4; --muted: #9fb0bb; --line: #17323e; --mid-soft: #3a2b0e; --shade: rgba(0, 0, 0, .6); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand-mark { position: relative; width: 34px; height: 32px; display: inline-block; flex: none; }
.brand-mark::before { content: ""; position: absolute; left: 9px; top: 0; width: 25px; height: 30px; background: var(--accent); border-radius: 0 50% 50% 0; }
.brand-mark::after { content: ""; position: absolute; width: 11px; height: 27px; bottom: 0; left: 0; background: var(--fg); border-radius: 0 8px 0 0; }
.site-head { height: 66px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 15; }
.site-nav { height: 100%; width: min(1480px, 100%); margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; gap: 28px; }
.site-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 25px; line-height: 1; letter-spacing: -0.055em; font-weight: 800; white-space: nowrap; color: var(--fg); text-decoration: none; }
.site-tool { font-size: 15px; font-weight: 700; color: var(--accent); padding-left: 14px; border-left: 1px solid var(--line); line-height: 26px; white-space: nowrap; text-decoration: none; }
.site-links { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.site-links a { color: var(--fg); text-decoration: none; padding: 10px 12px; border-radius: 99px; }
.site-links a:hover { color: var(--accent); }
.site-links .nav-member { display: none; }
.member { display: inline-flex; align-items: center; border: 1px solid var(--accent-2); border-radius: 99px; padding: 10px 20px; background: linear-gradient(110deg, #fc601c, #e7450c); color: #ffffff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-toggle { display: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--fg); background: none; color: var(--fg); font-size: 18px; cursor: pointer; }

.wrap { width: min(760px, 100%); margin-inline: auto; padding: 32px 20px 64px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 19px; margin: 26px 0 6px; }
p, li { color: var(--fg); }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 26px 0; }
.cta p { margin: 0; flex: 1 1 260px; font-size: 15px; color: var(--muted); }
.cta p b { color: var(--fg); display: block; font-size: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; padding: 12px 24px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: #ffffff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 20px -10px var(--accent); white-space: nowrap; }
.note { background: var(--mid-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 20px 0; font-size: 15px; }
.note p { margin: 0; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.faq h3 { margin-top: 22px; }
.faq p { margin: 4px 0 0; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 15px; line-height: 1.4; }
.related a span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.related a:hover { border-color: var(--accent); }

.site-foot { background: #081c25; color: #ffffff; padding: 32px 0 22px; position: relative; overflow: hidden; }
.site-foot::before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: linear-gradient(90deg, var(--accent) 50%, var(--gold) 50%); right: -10px; bottom: -120px; }
.site-foot::after { content: ""; position: absolute; right: 90px; top: 0; height: 100%; width: 2px; background: var(--gold); }
.foot-wrap { width: min(1180px, 90%); margin-inline: auto; position: relative; z-index: 1; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-right: 80px; padding-bottom: 22px; flex-wrap: wrap; }
.foot-top .site-logo { color: #ffffff; font-size: 24px; }
.foot-top .site-logo .brand-mark::after { background: #ffffff; }
.foot-top p { font-size: 12px; margin: 10px 0 0; color: #c6cdd0; max-width: 30ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 28px 56px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.foot-col b { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.foot-col a { font-size: 14px; line-height: 1.3; color: #c9d4d8; text-decoration: none; }
.foot-col a:hover { color: #ffffff; }
.foot-bottom { border-top: 1px solid #79878b60; padding-top: 15px; width: 88%; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #d6dfe2; }

@media (max-width: 1100px) { .site-links { gap: 0; } .site-links a { padding: 10px 8px; } }
@media (max-width: 899px) {
  .site-head { height: 58px; }
  .site-nav { padding-inline: 16px; gap: 12px; }
  .site-logo { font-size: 21px; }
  .site-tool { font-size: 13px; padding-left: 10px; }
  .site-toggle { display: grid; place-items: center; margin-left: auto; }
  .member { padding: 8px 14px; font-size: 12px; }
  .site-links { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: 0 20px 30px -20px var(--shade); }
  .site-head.open .site-links { display: flex; }
  .site-links a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .foot-top { padding-right: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .wrap { padding: 24px 16px 56px; }
}
@media (max-width: 420px) { .member { display: none; } .site-logo { font-size: 18px; } .site-id { gap: 10px; } .site-links .nav-member { display: block; color: var(--accent); font-weight: 700; } }
