:root { color-scheme: light; --bg: #f7f5f0; --surface: #fffdf8; --text: #302e2a; --muted: #7c7264; --line: #ded9ce; --accent: #b65c40; --code: #eee7db; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.8; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #934a34; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.guide-skip { position: fixed; top: -100px; left: 16px; padding: 10px 18px; background: var(--accent); color: #fffaf2; z-index: 3; }
.guide-skip:focus { top: 10px; }
.guide-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 18px max(24px, calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--line); background: #f7f5f0f5; }
.guide-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; font-weight: 750; letter-spacing: 1.5px; line-height: 1.3; text-decoration: none; }
.guide-mark { display: grid; place-items: center; width: 38px; height: 40px; border: 1px solid #ac573e; border-radius: 10px; color: #fffbf4; background: var(--accent); font-size: 24px; font-weight: 500; letter-spacing: 0; }
.guide-brand-detail { display: block; margin-top: 6px; color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .7px; }
.guide-header nav { display: flex; gap: 25px; align-items: center; font-size: 12px; }
.guide-header nav a { text-decoration: none; }
.guide-header nav a:last-child { padding: 8px 13px; border: 1px solid #d3c0a8; border-radius: 6px; background: #fcf8f1; }
.guide-layout { display: grid; grid-template-columns: 225px minmax(0, 800px); gap: 64px; max-width: 1200px; margin: 0 auto; padding: 52px 24px 70px; }
.guide-sidebar { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; padding-right: 10px; font-size: 12px; }
.guide-sidebar summary { cursor: pointer; color: #8d7358; font-size: 11px; font-weight: 600; letter-spacing: .6px; margin-bottom: 17px; }
.guide-sidebar ol { list-style: none; margin: 0; padding: 0; }
.guide-sidebar li { margin: 0 0 11px; line-height: 1.6; }
.guide-sidebar a { display: block; text-decoration: none; color: var(--muted); }
.guide-sidebar a:hover { color: var(--accent); }
.guide-sidebar .guide-toc-depth-3 { padding-left: 13px; font-size: 11px; }
.guide-article { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.guide-article:focus { outline: none; }
.guide-article h1, .guide-article h2, .guide-article h3 { color: #3b3024; line-height: 1.3; letter-spacing: -.025em; scroll-margin-top: 118px; }
.guide-article h1 { font: 400 clamp(34px, 4vw, 48px)/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; margin: 0 0 29px; max-width: 750px; }
.guide-article h2 { font: 400 30px/1.3 Georgia, serif; margin: 52px 0 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide-article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 14px; }
.guide-article h2:target, .guide-article h3:target { color: var(--accent); }
.guide-article p { margin: 0 0 20px; color: #6f5d46; }
.guide-article strong { color: #463726; font-weight: 650; }
.guide-article ul, .guide-article ol { padding-left: 25px; margin: 0 0 25px; }
.guide-article li { padding-left: 4px; margin: 10px 0; color: #6f5d46; }
.guide-article li::marker { color: #b38050; }
.guide-article code { font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code); color: #93602f; border-radius: 4px; padding: 3px 5px; word-break: break-word; }
.guide-article pre { max-width: 100%; overflow-x: auto; margin: 25px 0 30px; padding: 22px 24px; background: #f0e9de; border: 1px solid #ded1be; border-radius: 9px; line-height: 1.65; tab-size: 2; overflow-wrap: normal; }
.guide-article pre code { display: block; background: none; border-radius: 0; padding: 0; white-space: pre; word-break: normal; font-size: 12px; }
.guide-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1152px; margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.guide-footer > span { font-size: 10px; font-weight: 650; letter-spacing: 1px; }
.guide-footer a { text-decoration: none; }
@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 35px; }
  .guide-header { padding-left: 24px; padding-right: 24px; }
  .guide-footer { margin: 0 24px; }
  .guide-article { font-size: 15px; }
}
@media (max-width: 740px) {
  .guide-header { position: static; align-items: flex-start; flex-direction: column; gap: 19px; padding: 23px 20px; }
  .guide-header nav { width: 100%; justify-content: space-between; gap: 12px; }
  .guide-layout { display: block; padding: 30px 20px 45px; }
  .guide-sidebar { position: static; max-height: none; padding: 0 0 24px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
  .guide-sidebar nav { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .guide-sidebar nav > ol { columns: 2; column-gap: 25px; }
  .guide-sidebar li { break-inside: avoid; }
  .guide-sidebar summary { margin-bottom: 12px; }
  .guide-article h1 { font-size: 37px; }
  .guide-article h2 { font-size: 28px; margin-top: 40px; padding-top: 25px; }
  .guide-article h3 { font-size: 19px; }
  .guide-article pre { padding: 18px 16px; }
  .guide-footer { margin: 0 20px; align-items: center; }
  .guide-article h1, .guide-article h2, .guide-article h3 { scroll-margin-top: 20px; }
}
@media (max-width: 420px) {
  .guide-sidebar nav > ol { columns: 1; }
  .guide-article h1 { font-size: 34px; }
  .guide-header nav { font-size: 11px; }
  .guide-header nav a:last-child { padding: 7px 10px; }
  .guide-article pre code { font-size: 11px; }
  .guide-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; color: #111; }
  .guide-header, .guide-sidebar, .guide-footer, .guide-skip { display: none; }
  .guide-layout { display: block; max-width: none; padding: 0; }
  .guide-article { font-size: 10pt; line-height: 1.5; }
  .guide-article h1 { font-size: 24pt; }
  .guide-article h2 { font-size: 17pt; margin-top: 24px; padding-top: 12px; }
  .guide-article h3 { font-size: 13pt; }
  .guide-article p, .guide-article li, .guide-article strong, .guide-article h1, .guide-article h2, .guide-article h3, .guide-article code, .guide-article a { color: #111; }
  .guide-article h2, .guide-article h3 { break-after: avoid; }
  .guide-article pre { background: #f5f5f5; border-color: #ccc; overflow: visible; break-inside: avoid; padding: 10px; }
  .guide-article pre code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8pt; }
  .guide-article code { background: #f5f5f5; }
}

/* Submission is the main guide; reference material stays optional. */
.guide-layout { display: block; max-width: 1120px; padding-top: 60px; }
.submission-heading h1 { font: 400 clamp(34px, 5vw, 54px)/1.1 Georgia, serif; letter-spacing: -1.5px; margin: 0 0 16px; }
.submission-heading h1 span { color: var(--accent); }
.submission-heading p { color: var(--muted); font-size: 15px; margin: 0; }
.submission-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 36px 0 40px; padding: 0; }
.submission-steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.step-number { color: var(--accent); font: 12px ui-monospace, monospace; margin-bottom: 38px; }
.submission-steps h2 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
.submission-steps p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 28px; }
.submission-steps code { color: var(--text); font-size: 12px; }
.guide-button { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding: 10px 15px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.guide-button.primary { color: #fffdf8; background: var(--accent); border-color: var(--accent); }
.guide-button.primary:hover { background: #934a34; }
.guide-reference { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-reference > summary { padding: 23px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.reference-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 15px 0 35px; }
.guide-download { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 12px; }
.guide-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.guide-header nav a[aria-current] { color: var(--accent); font-weight: 600; }
@media (max-width: 740px) {
  .guide-layout { padding: 32px 20px; }
  .guide-header { flex-direction: row; align-items: center; gap: 15px; padding: 18px 20px; }
  .guide-header nav { width: auto; gap: 14px; font-size: 11px; }
  .guide-header nav a:last-child { padding: 0; background: none; border: 0; }
  .submission-steps { grid-template-columns: 1fr; gap: 12px; margin: 26px 0; }
  .submission-steps li { padding: 22px; }
  .step-number { margin-bottom: 18px; }
  .submission-steps p { margin-bottom: 18px; }
  .reference-layout { display: block; }
}
@media print {
  .submission-steps { display: block; }
  .submission-steps li { margin-bottom: 15px; }
}
