:root {
  --ink: #101915;
  --ink-soft: #26312b;
  --paper: #f4f2ec;
  --surface: #fcfbf7;
  --line: #d8d8cf;
  --muted: #69716c;
  --acid: #d9ff43;
  --danger: #ed573e;
  --white: #fff;
  --shadow: 0 18px 50px rgba(16, 25, 21, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { min-width: 320px; margin: 0; background: linear-gradient(rgba(16,25,21,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(16,25,21,.025) 1px, transparent 1px), var(--paper); background-size: 42px 42px; color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(74,109,0,.5); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--acid); color: var(--ink); font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.guide-header { min-height: 74px; padding: 12px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--white); }
.guide-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.guide-brand strong { color: var(--acid); }
.brand-mark { width: 32px; height: 32px; padding: 7px; display: flex; align-items: flex-end; gap: 3px; border: 1px solid rgba(255,255,255,.25); transform: skew(-8deg); }
.brand-mark i { width: 4px; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 75%; }
.brand-mark i:nth-child(3) { height: 100%; }
.back-link { padding: 9px 12px; border: 1px solid #49514d; color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { border-color: var(--acid); background: var(--acid); color: var(--ink); }

main { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(18px, 5vw, 72px) 80px; }
.guide-hero { min-height: 360px; padding: 65px 0 55px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: end; gap: 55px; }
.guide-kicker, .section-number, .guide-nav p { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.guide-kicker::before { content: ""; width: 28px; height: 2px; margin: 0 10px 3px 0; display: inline-block; background: var(--danger); }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; line-height: .94; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(65px, 9vw, 124px); letter-spacing: -.035em; }
h1 span { color: var(--danger); }
.language-panel { padding: 25px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.language-panel > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.language-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.language-switcher button { min-height: 52px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-weight: 800; letter-spacing: .1em; }
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--acid); }
.language-panel p { margin: 13px 0 0; color: var(--muted); font-size: 11px; }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(30px, 5vw, 72px); }
.guide-nav { position: sticky; top: 24px; padding: 22px; border-top: 5px solid var(--acid); background: var(--ink); color: var(--white); }
.guide-nav p { color: #99a39e; }
.guide-nav a { padding: 9px 0; display: block; border-bottom: 1px solid #344039; color: #d9dedb; font-size: 12px; text-decoration: none; }
.guide-nav a:hover { color: var(--acid); padding-left: 5px; }
.guide-article { min-width: 0; }
.guide-section { margin-bottom: 24px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 25px; }
.guide-section.operator-section { border-top: 6px solid var(--acid); background: var(--ink); color: var(--white); }
.guide-section.operator-section .section-number { color: var(--acid); }
.guide-section.operator-section .detail, .guide-section.operator-section > p { color: #b6bfba; }
.section-number { color: var(--danger); }
.guide-section h2 { max-width: 760px; margin: 0 0 22px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.02em; }
.guide-section h3 { margin: 32px 0 14px; font-size: 25px; letter-spacing: .01em; }
.guide-section > p:not(.section-number), .detail { color: var(--muted); }
.role-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { min-height: 190px; padding: 25px; border: 1px solid var(--line); background: var(--paper); }
.role-card.operator-card { background: var(--ink); color: var(--white); }
.role-card > span { color: var(--danger); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.role-card.operator-card > span { color: var(--acid); }
.role-card h3 { margin: 12px 0; font-size: 29px; }
.role-card p { margin: 0; color: var(--muted); font-size: 13px; }
.role-card.operator-card p { color: #aeb8b3; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.steps li { position: relative; min-height: 58px; padding: 4px 0 19px 58px; border-bottom: 1px solid var(--line); counter-increment: guide-step; }
.operator-section .steps li { border-color: #344039; }
.steps li + li { padding-top: 19px; }
.steps li::before { content: counter(guide-step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--acid); font: 800 16px "Barlow Condensed", sans-serif; }
.steps li + li::before { top: 15px; }
.operator-section .steps li::before { background: var(--acid); color: var(--ink); }
code { padding: 2px 5px; background: #e7e8df; color: var(--ink); font: 700 .88em "DM Sans", sans-serif; overflow-wrap: anywhere; }
.operator-section code { background: #344039; color: var(--acid); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: #637d00; font-weight: 800; }
.guide-note, .guide-warning { margin-top: 28px; padding: 20px 22px; border-left: 6px solid var(--acid); background: #edf3d4; color: var(--ink-soft); font-size: 13px; }
.guide-warning { border-color: var(--danger); background: #f8e4df; }
.operator-section .guide-note { background: #243028; color: #d5dcd8; }
.operator-section .guide-warning { background: #35201c; color: #f1d7d1; }
.guide-footer { min-height: 78px; padding: 18px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: #8f9994; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guide-footer span { color: var(--white); }
.guide-footer a { color: var(--acid); }

@media (max-width: 850px) {
  .guide-hero { min-height: 0; grid-template-columns: 1fr; gap: 35px; }
  .guide-layout { display: block; }
  .guide-nav { position: static; margin-bottom: 22px; padding: 14px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
  .guide-nav p { display: none; }
  .guide-nav a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #46524b; white-space: nowrap; }
  .guide-nav a:hover { padding-left: 12px; }
}

@media (max-width: 560px) {
  .guide-header { min-height: 64px; }
  .back-link { max-width: 130px; padding: 7px 8px; text-align: center; font-size: 8px; }
  main { padding-bottom: 50px; }
  .guide-hero { padding: 45px 0 35px; }
  h1 { font-size: clamp(58px, 20vw, 82px); }
  .language-panel { padding: 18px; }
  .guide-section { padding: 26px 20px; }
  .role-grid { grid-template-columns: 1fr; }
  .steps li { padding-left: 50px; }
  .guide-footer { flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
