:root {
    --paper: #f3efe6;
    --paper-2: #fbf8f1;
    --paper-3: #ece7db;
    --ink: #1b211f;
    --ink-soft: #35403b;
    --muted: #6d756e;
    --muted-2: #8a9089;
    --line: #d7d0c2;
    --line-strong: #b8ae9b;
    --rust: #a8452a;
    --rust-dark: #86331e;
    --teal: #245b50;
    --gold: #8a6a27;
    --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --shadow: 0 1px 0 rgba(27, 33, 31, .04);
    --max: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .35;
    background-image: radial-gradient(rgba(27, 33, 31, .12) .55px, transparent .55px);
    background-size: 5px 5px;
}

::selection {
    background: var(--rust);
    color: #fffaf1;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: .01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
figure { margin: 0; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

.narrow { max-width: 860px; }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
}

.skip:focus { left: 12px; top: 12px; }

.ico { display: inline-block; vertical-align: -2px; flex: none; }

/* ---------- top line ---------- */

.topline {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--muted);
}

.topline-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 36px;
}

.topline p { white-space: nowrap; }
.topline .sep { margin: 0 8px; color: var(--line-strong); }
.topline-note { flex: 1; text-align: center; letter-spacing: .08em; }
.topline-links { display: flex; gap: 18px; }
.topline-links a:hover { color: var(--rust); }

/* ---------- masthead ---------- */

.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.masthead-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: none;
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    transform: rotate(0.01deg);
}

.brand-mark i {
    display: block;
    border: 1.5px solid var(--ink);
    background: transparent;
}

.brand-mark i:nth-child(2) { background: var(--rust); border-color: var(--rust); }
.brand-mark i:nth-child(3) { background: var(--ink); }

.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .02em;
}
.brand-type em {
    margin-top: 8px;
    font-style: normal;
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    align-self: stretch;
}

.nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    font-size: 14px;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    transition: color .16s ease, border-color .16s ease;
}

.nav a:hover { color: var(--rust); }
.nav a.on { color: var(--ink); border-bottom-color: var(--rust); }

.head-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.search-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 12px;
    color: var(--muted);
}

.search-open:hover { border-color: var(--line-strong); color: var(--ink); }

.menu-toggle {
    display: none;
    padding: 9px;
    border: 1px solid var(--line);
    background: transparent;
}

/* ---------- search modal ---------- */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(27, 33, 31, .66);
    padding: 10vh 22px 22px;
    overflow-y: auto;
}

.search-modal[hidden] { display: none; }

.search-panel {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--paper-2);
    border: 1px solid var(--ink);
    padding: 38px 34px 30px;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .16);
}

.search-kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--rust);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.search-panel form {
    display: flex;
    border-bottom: 2px solid var(--ink);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    padding: 12px 2px;
    border: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: 26px;
    outline: none;
}

.search-panel form button {
    border: 0;
    background: transparent;
    padding: 0 6px 0 20px;
    font-size: 13px;
    color: var(--rust);
}

.search-tip {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

.search-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
}

.search-close:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- generic ---------- */

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--rust);
    text-transform: uppercase;
}

.kicker > span {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--rust);
}

.kicker.light { color: #e4b9a5; }
.kicker.light > span { background: #e4b9a5; }
.kicker a:hover { text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.3;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.btn-solid { background: var(--ink); color: var(--paper-2); }
.btn-solid:hover { background: var(--rust); border-color: var(--rust); color: #fffaf1; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--rust); color: var(--rust); }
.btn-line.light { border-color: rgba(251, 248, 241, .5); color: var(--paper-2); }
.btn-line.light:hover { background: var(--paper-2); color: var(--ink); }

.section { padding: 76px 0; }
.section-tight { padding: 42px 0 66px; }
.section-last { border-top: 1px solid var(--line); }

.sec-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding-top: 16px;
    margin-bottom: 34px;
    border-top: 2px solid var(--ink);
}

.sec-no {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--rust);
    letter-spacing: .08em;
    padding-bottom: 4px;
}

.sec-title h2 { font-size: 34px; }
.sec-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.sec-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    padding-bottom: 5px;
}
.sec-more:hover { color: var(--rust); }

/* ---------- hero ---------- */

.hero {
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: 64px;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 64px;
}

.hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(48px, 6.4vw, 76px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 700;
}

.hero-copy h1::after {
    content: "";
    display: block;
    width: 46px;
    height: 5px;
    margin-top: 22px;
    background: var(--rust);
}

.hero-lede {
    max-width: 590px;
    margin-top: 22px;
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-small {
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--muted);
}

.bootmap {
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 10px 10px 0 var(--paper-3);
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.bootmap-head {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--paper-2);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
}

.bootmap ol { padding: 2px 18px; }

.bootmap li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.bootmap li:last-child { border-bottom: 0; }

.bm-no {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--rust);
    align-self: start;
    padding-top: 3px;
}

.bootmap strong { display: block; font-family: var(--serif); font-size: 17px; }
.bootmap p { margin-top: 3px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.bootmap li > a {
    font-size: 11px;
    color: var(--teal);
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.bootmap li > a:hover { color: var(--rust); border-color: var(--rust); }

.bootmap-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--paper-3);
    font-size: 11.5px;
    color: var(--ink-soft);
}
.bootmap-foot span { color: var(--rust); }

/* ---------- scenarios ---------- */

.scenarios {
    padding: 40px 0 46px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.scenarios-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.scenarios-head > p:last-child {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.scenario {
    position: relative;
    padding: 20px 0 0;
    border-top: 3px solid var(--rust);
}

.scenario-mark {
    position: absolute;
    top: 10px;
    right: 0;
    font-family: var(--serif);
    font-size: 58px;
    line-height: 1;
    color: var(--paper-3);
    z-index: 0;
    pointer-events: none;
}

.scenario h2 {
    position: relative;
    z-index: 1;
    max-width: 310px;
    font-size: 21px;
    line-height: 1.45;
}

.scenario > p {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.scenario ul {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.scenario li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--teal);
    border-bottom: 1px solid var(--line-strong);
}
.scenario li a:hover { color: var(--rust); border-color: var(--rust); }

/* ---------- resource cards ---------- */

.res-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.res-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 21px 21px 18px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.res-card:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--paper-3);
}

.res-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.res-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.res-icon-system { background: #e5ecea; color: var(--teal); }
.res-icon-boot { background: #f0e4dc; color: var(--rust); }
.res-icon-tools { background: #ece8d9; color: var(--gold); }

.res-license {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .03em;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 2px 6px;
    white-space: nowrap;
}

.res-cat {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    color: var(--rust);
    margin-bottom: 5px;
}

.res-name { font-size: 21px; line-height: 1.35; }
.res-name a:hover { color: var(--rust); }
.res-name span {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--muted-2);
}

.res-sum {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--ink-soft);
}

.res-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.res-meta dt { font-size: 9.5px; color: var(--muted-2); letter-spacing: .08em; }
.res-meta dd { margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }

.res-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 11.5px;
    color: var(--teal);
}
.res-link:hover { color: var(--rust); }

.res-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- process ---------- */

.process {
    background: var(--ink);
    color: var(--paper-2);
    padding: 64px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.process-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 48px;
    align-items: end;
    margin-bottom: 34px;
}

.process-head .kicker { grid-column: 1 / -1; }
.process-head h2 { font-size: 40px; color: var(--paper-2); }
.process-head > p:last-child { justify-self: end; max-width: 370px; font-size: 13px; color: #aab3ac; text-align: right; }

.process-list {
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(251, 248, 241, .22);
    padding-top: 20px;
}

.process-list li:not(.pl-sep) { flex: 1; min-width: 0; }
.process-list li > a { display: block; padding-right: 12px; }
.pl-no {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: #d8957c;
    letter-spacing: .08em;
}
.process-list strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.process-list em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; line-height: 1.55; color: #98a39b; }
.process-list a:hover strong { color: #e4b9a5; }

.pl-sep {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #59655e;
}

/* ---------- guides ---------- */

.guide-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }

.guide-list { border-top: 1px solid var(--line-strong); }

.guide-row {
    display: grid;
    grid-template-columns: 48px 86px minmax(0, 1fr) 58px 20px;
    gap: 13px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.guide-row time {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted-2);
    letter-spacing: .02em;
}

.guide-cat {
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--teal);
    border: 1px solid var(--line);
    padding: 1px 5px;
    justify-self: start;
    white-space: nowrap;
}
.guide-cat.cat-repair { color: var(--rust); }
.guide-cat.cat-hardware { color: var(--gold); }

.guide-row h3 {
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
    transition: color .15s ease;
}

.guide-row:hover h3 { color: var(--rust); }
.guide-read { font-size: 10px; color: var(--muted-2); text-align: right; white-space: nowrap; }
.guide-arrow { color: var(--muted-2); text-align: right; }
.guide-row:hover .guide-arrow { color: var(--rust); }

.guide-list-all .guide-row { grid-template-columns: 48px 86px minmax(0, 1fr) 58px 20px; padding: 20px 0; }
.guide-list-all .guide-row h3 { font-size: 19px; }

.guide-side { display: flex; flex-direction: column; gap: 24px; }

.side-box {
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

.side-kicker {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    color: var(--rust);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.side-box h2 { font-size: 24px; }

.side-list { margin-top: 14px; }
.side-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.65;
}
.side-list span { font-family: var(--mono); font-size: 10px; color: var(--rust); padding-top: 2px; }
.side-list a:hover { color: var(--rust); }

.side-note {
    padding: 16px 0 0 18px;
    border-left: 3px solid var(--rust);
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}
.side-note a { color: var(--teal); display: inline-block; margin-top: 7px; }
.side-note a:hover { color: var(--rust); }

.side-text { margin-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* ---------- library ---------- */

.section-library { border-top: 1px solid var(--line); }

.library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }

.lib-head { display: flex; gap: 13px; align-items: flex-start; padding-bottom: 13px; border-bottom: 1px solid var(--line-strong); }
.lib-icon { color: var(--rust); padding-top: 3px; }
.lib-head h3 { font-size: 20px; }
.lib-head h3 a:hover { color: var(--rust); }
.lib-head p { margin-top: 5px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.lib-col ul { margin-top: 4px; }
.lib-col li a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.lib-col li a:hover span { color: var(--rust); }
.lib-col li em { font-style: normal; font-size: 10px; color: var(--muted-2); white-space: nowrap; }

.lib-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    font-size: 11px;
    color: var(--teal);
}
.lib-more:hover { color: var(--rust); }

/* ---------- principles ---------- */

.principles {
    background: var(--rust-dark);
    color: var(--paper-2);
    padding: 64px 0;
}

.principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.principles-copy h2 { font-size: 40px; color: var(--paper-2); margin-top: 14px; line-height: 1.35; }
.principles-copy > p:not(.kicker) { margin-top: 18px; max-width: 440px; font-size: 13px; line-height: 1.9; color: #f0d9cf; }
.principles-copy .btn { margin-top: 24px; }

.principle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.principle-list li { padding-top: 13px; border-top: 1px solid rgba(251, 248, 241, .3); }
.principle-list span { font-family: var(--mono); font-size: 9.5px; color: #f0c3b2; letter-spacing: .08em; }
.principle-list strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.principle-list p { margin-top: 7px; font-size: 11.5px; line-height: 1.8; color: #f0d9cf; }

/* ---------- page head ---------- */

.page-head {
    border-bottom: 1px solid var(--line);
    padding: 56px 0 36px;
}

.page-head-in h1 { margin-top: 14px; font-size: clamp(38px, 4.8vw, 54px); letter-spacing: -.025em; }
.page-lede { max-width: 740px; margin-top: 14px; font-size: 15.5px; line-height: 1.85; color: var(--muted); }

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    font-size: 11.5px;
    color: var(--ink-soft);
    background: transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

.count-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.filter-search {
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--line-strong);
    padding: 4px 2px;
    color: var(--muted);
}
.filter-search input {
    width: 230px;
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-size: 12px;
    outline: none;
}

.filter-empty { margin-top: 30px; font-size: 13px; color: var(--muted); }

.inline-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 34px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    font-size: 12px;
    line-height: 1.8;
    color: var(--ink-soft);
}
.inline-note > span { color: var(--rust); padding-top: 1px; }
.inline-note a { color: var(--teal); border-bottom: 1px solid var(--line-strong); }

/* ---------- breadcrumbs ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 22px 0;
    font-size: 11px;
    color: var(--muted);
}
.crumbs a:hover { color: var(--rust); }
.crumbs em { font-style: normal; color: var(--ink-soft); }
.crumb-sep { color: var(--line-strong); }

/* ---------- resource detail ---------- */

.res-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
    align-items: start;
    padding-bottom: 20px;
}

.res-detail-head { padding: 6px 0 28px; border-bottom: 2px solid var(--ink); }
.res-detail-head .kicker { margin-bottom: 16px; }
.res-title-row { display: flex; align-items: center; gap: 18px; }
.res-title-row .res-icon { width: 68px; height: 68px; }
.res-detail-head h1 { font-size: clamp(36px, 4.4vw, 50px); letter-spacing: -.025em; }
.res-en { margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: .03em; }
.res-lede { margin-top: 18px; max-width: 720px; font-size: 17px; line-height: 1.85; color: var(--ink-soft); }

.res-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.res-badges span {
    font-size: 10.5px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 2px 7px;
}

.res-body { padding-top: 30px; }

.checklist {
    margin-top: 34px;
    padding: 21px 22px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
}
.checklist h2 { font-size: 20px; margin-bottom: 10px; }
.checklist li { display: flex; gap: 9px; padding: 6px 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.checklist li .ico { color: var(--teal); margin-top: 3px; }

.official-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 20px 22px;
    background: var(--paper-2);
    border-top: 3px solid var(--rust);
    border-bottom: 1px solid var(--line);
}
.official-block p { font-family: var(--mono); font-size: 9.5px; color: var(--rust); letter-spacing: .12em; text-transform: uppercase; }
.official-block strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 18px; }
.official-block span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

.res-disclaimer {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}
.res-disclaimer .ico { margin-top: 2px; color: var(--gold); }

.res-aside { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 18px; }

.download-box {
    background: var(--ink);
    color: var(--paper-2);
    padding: 22px;
    border: 1px solid var(--ink);
}

.dl-kicker {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .2em;
    color: #d8957c;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 14px;
    background: var(--rust);
    color: #fff8ef;
    border: 1px solid var(--rust);
    font-size: 13px;
    transition: background .16s ease;
}
.dl-btn:hover { background: #bd5336; border-color: #bd5336; }

.dl-note { margin-top: 9px; font-size: 10px; line-height: 1.6; color: #9da8a1; text-align: center; }

.dl-meta { margin-top: 18px; border-top: 1px solid rgba(251, 248, 241, .2); }
.dl-meta > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(251, 248, 241, .12); font-size: 11px; }
.dl-meta dt { color: #98a39b; }
.dl-meta dd { text-align: right; color: var(--paper-2); }

.dl-check { margin-top: 14px; font-size: 10.5px; line-height: 1.7; color: #aab3ac; }
.dl-check a { color: #e4b9a5; border-bottom: 1px solid #6f5f54; }

.aside-note { padding: 17px 18px; border: 1px solid var(--line); background: var(--paper-2); }
.aside-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--rust); text-transform: uppercase; margin-bottom: 7px; }
.aside-note p:not(.aside-h) { font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.aside-note a { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--teal); }
.aside-note a:hover { color: var(--rust); }

.mini-guide {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    transition: border-color .16s ease;
}
.mini-guide:hover { border-color: var(--ink); }
.mini-cat { font-family: var(--mono); font-size: 9.5px; color: var(--rust); letter-spacing: .08em; }
.mini-guide h3 { margin-top: 8px; font-size: 21px; line-height: 1.45; }
.mini-guide p { margin-top: 8px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.mini-guide em { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-style: normal; font-size: 10.5px; color: var(--teal); }

/* ---------- article ---------- */

.article-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 56px;
    align-items: start;
    padding-bottom: 30px;
}

.article-head { padding: 16px 0 0; }
.article-head h1 { margin-top: 14px; font-size: clamp(36px, 4.7vw, 50px); letter-spacing: -.025em; line-height: 1.32; }
.article-dek { margin-top: 16px; max-width: 760px; font-size: 17px; line-height: 1.85; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 10.5px; color: var(--muted-2); }
.article-meta span, .article-meta time { position: relative; }
.article-meta span::before { content: "/"; margin-right: 16px; color: var(--line-strong); }

.article-rule { margin: 26px 0 30px; border-top: 1px solid var(--line-strong); position: relative; }
.article-rule span { position: absolute; left: 0; top: -2px; width: 64px; height: 3px; background: var(--rust); }

.article-prose { max-width: 780px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-tags span { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; }

.article-end { margin-top: 26px; padding: 16px 18px; background: var(--paper-2); border-left: 3px solid var(--line-strong); font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.article-end a { color: var(--teal); border-bottom: 1px solid var(--line-strong); }

.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}
.article-pager a { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); background: var(--paper-2); }
.article-pager a:hover { border-color: var(--ink); }
.article-pager a.next { text-align: right; }
.article-pager span { font-size: 9.5px; color: var(--muted-2); }
.article-pager strong { font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.55; }

.article-aside { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 22px; }

.toc { border-left: 2px solid var(--line-strong); padding-left: 18px; }
.toc-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--rust); margin-bottom: 9px; text-transform: uppercase; }
.toc li { padding: 4px 0; font-size: 11.5px; line-height: 1.6; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--rust); }

.side-related { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.side-related a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-related span { display: block; font-family: var(--mono); font-size: 9px; color: var(--rust); letter-spacing: .05em; }
.side-related strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 13px; font-weight: 500; line-height: 1.55; }
.side-related a:hover strong { color: var(--rust); }

/* ---------- prose ---------- */

.prose { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 2.1em 0 .7em; padding-top: .5em; font-size: 27px; color: var(--ink); border-top: 1px solid var(--line); }
.prose h3 { margin: 1.7em 0 .55em; font-size: 20px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .35em 0; padding-left: .15em; }
.prose li::marker { color: var(--rust); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--rust); border-color: var(--rust); }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--rust); color: var(--muted); font-size: 14.5px; }
.prose blockquote p { margin: 0; }
.prose code { padding: 1px 5px; background: var(--paper-3); font-family: var(--mono); font-size: .88em; color: var(--rust-dark); }
.prose pre { margin: 1.3em 0; padding: 16px 18px; overflow-x: auto; background: var(--ink); color: #e8e2d5; border-left: 3px solid var(--rust); }
.prose pre code { padding: 0; background: transparent; color: inherit; font-size: 12.5px; line-height: 1.7; white-space: pre; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.narrow .prose, .sheet .prose { max-width: 760px; }

.sheet { padding: 32px 36px; background: var(--paper-2); border: 1px solid var(--line); }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.about-main { max-width: 760px; }
.about-side { display: flex; flex-direction: column; gap: 20px; }

.stat-box { border: 1px solid var(--line); background: var(--paper-2); }
.stat-box > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.stat-box > div:last-child { border-bottom: 0; }
.stat-box strong { font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.stat-box span { font-size: 10.5px; color: var(--muted); }

.about-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 2px solid var(--ink); padding-top: 20px; }
.about-rule > span { font-family: var(--mono); font-size: 10px; color: var(--rust); }
.about-rule h2 { margin-top: 8px; font-size: 20px; }
.about-rule p { margin-top: 8px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.contact-main { max-width: 720px; }
.contact-intro { margin-bottom: 26px; }

.msg-form { border-top: 2px solid var(--ink); padding-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { margin-bottom: 17px; }
.fld label { display: block; margin-bottom: 5px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.fld input, .fld select, .fld textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    border-radius: 0;
    font-size: 13px;
    outline: none;
    transition: border-color .15s ease;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); }
.fld textarea { resize: vertical; line-height: 1.8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot span { font-size: 10.5px; color: var(--muted); }
.form-error { margin-bottom: 18px; padding: 10px 14px; border-left: 3px solid var(--rust); background: #f3e1d9; font-size: 12px; color: var(--rust-dark); }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.mail-big { margin-top: 8px; font-family: var(--serif); font-size: 20px; word-break: break-all; }
.mail-big a { border-bottom: 1px solid var(--line-strong); }
.mail-big a:hover { color: var(--rust); }

.dot-list { margin-top: 12px; }
.dot-list li { position: relative; padding: 6px 0 6px 14px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); border-top: 1px solid var(--line); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 4px; height: 4px; background: var(--rust); }

/* ---------- faq ---------- */

.faq-wrap { max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 2px solid var(--ink); }
.faq-item summary {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 19px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-family: var(--mono); font-size: 10px; color: var(--rust); padding-top: 6px; flex: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 22px 34px; max-width: 760px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.faq-a p { margin: 0 0 .9em; }
.faq-a a { color: var(--teal); border-bottom: 1px solid var(--line-strong); }

/* ---------- search ---------- */

.search-page-form { display: flex; margin-top: 24px; max-width: 660px; border-bottom: 2px solid var(--ink); }
.search-page-form input { flex: 1; min-width: 0; padding: 11px 2px; border: 0; background: transparent; font-family: var(--serif); font-size: 24px; outline: none; }
.search-page-form button { border: 0; background: transparent; padding: 0 4px 0 18px; color: var(--rust); font-size: 12px; }

.search-hint { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.search-results { margin-top: 6px; }
.search-result { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); }
.search-result:hover h2 { color: var(--rust); }
.search-result .sr-meta { display: flex; gap: 10px; font-family: var(--mono); font-size: 9.5px; color: var(--rust); letter-spacing: .05em; }
.search-result h2 { margin-top: 5px; font-size: 21px; }
.search-result p { margin-top: 5px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.search-result mark { background: #f0d7a8; color: var(--ink); padding: 0 1px; }

/* ---------- sitemap ---------- */

.sitemap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.map-sec h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); font-size: 23px; }
.map-sec h2 a:hover { color: var(--rust); }
.map-sec h2 span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.map-sec ul { margin-top: 5px; }
.map-sec li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.map-sec li a:hover { color: var(--rust); }
.map-sec li em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }

/* ---------- 404 / thanks ---------- */

.err { padding: 90px 32px 100px; max-width: 860px; }
.err-code { font-family: var(--mono); font-size: 12px; color: var(--rust); letter-spacing: .2em; }
.err h1 { margin-top: 8px; font-size: clamp(44px, 8vw, 72px); letter-spacing: -.04em; }
.err > p:not(.err-code) { margin-top: 14px; max-width: 520px; font-size: 14px; color: var(--muted); }
.err-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.thanks { max-width: 640px; margin: 20px auto; text-align: left; }
.thanks h1 { margin-top: 10px; font-size: 38px; }
.thanks > p:not(.kicker) { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.thanks .btn { margin-top: 24px; }

.empty { padding: 26px 0; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: var(--paper-2); margin-top: 20px; }
.foot-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px; padding-top: 52px; padding-bottom: 40px; }
.foot-logo { font-family: var(--serif); font-size: 24px; }
.foot-logo span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: #93a099; }
.foot-about { margin-top: 14px; max-width: 360px; font-size: 11.5px; line-height: 1.9; color: #aab3ac; }
.foot-note { margin-top: 12px; max-width: 380px; font-size: 10.5px; line-height: 1.8; color: #7f8b83; }
.foot-col h2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #93a099; text-transform: uppercase; margin-bottom: 10px; }
.foot-col li { padding: 4px 0; }
.foot-col a { font-size: 11.5px; color: #c6cec7; }
.foot-col a:hover { color: #e4b9a5; }

.foot-bar { border-top: 1px solid rgba(251, 248, 241, .15); }
.foot-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 16px; font-size: 10px; color: #7f8b83; }
.foot-bar-in a { color: #aab3ac; }
.foot-bar-in a:hover { color: #e4b9a5; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .wrap { padding: 0 26px; }
    .hero-grid { gap: 38px; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); }
    .hero-copy h1 { font-size: clamp(44px, 6vw, 64px); }
    .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .res-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guide-row { grid-template-columns: 44px 78px minmax(0, 1fr) 20px; }
    .guide-read { display: none; }
    .library { gap: 24px; }
    .process-list li > a { padding-right: 6px; }
    .about-rules { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}

@media (max-width: 920px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 26px 14px;
        background: var(--paper-2);
        border-bottom: 1px solid var(--ink);
        box-shadow: 0 8px 0 rgba(27, 33, 31, .06);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
    .nav a.on { border-bottom-color: var(--rust); }
    .menu-toggle { display: grid; place-items: center; }
    .head-tools { gap: 2px; }
    .search-open span { display: none; }
    .masthead-in { min-height: 72px; }

    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 46px; }
    .hero-copy h1 { font-size: clamp(42px, 8vw, 62px); }
    .bootmap { width: 100%; max-width: 620px; box-shadow: 7px 7px 0 var(--paper-3); }

    .scenario-grid { grid-template-columns: 1fr; gap: 24px; }
    .scenario h2 { max-width: none; }
    .scenario-mark { font-size: 48px; top: 4px; }

    .process-head { grid-template-columns: 1fr; }
    .process-head > p:last-child { justify-self: start; text-align: left; margin-top: 6px; }
    .process-list { flex-direction: column; border-top: 0; padding-top: 0; }
    .process-list li:not(.pl-sep) { border-top: 1px solid rgba(251, 248, 241, .2); }
    .process-list li > a { display: grid; grid-template-columns: 38px 1fr; gap: 0 10px; padding: 13px 0; }
    .pl-no { grid-row: 1 / 3; padding-top: 2px; }
    .process-list strong { margin-top: 0; font-size: 18px; }
    .process-list em { margin-top: 2px; }
    .pl-sep { display: none; }

    .guide-split { grid-template-columns: 1fr; gap: 38px; }
    .guide-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .guide-side .side-note { grid-column: 1 / -1; }

    .library { grid-template-columns: 1fr; gap: 30px; }
    .principles-grid { grid-template-columns: 1fr; gap: 38px; }
    .principles-copy h2 { font-size: 34px; }

    .res-detail-grid { grid-template-columns: 1fr; gap: 34px; }
    .res-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .download-box { grid-row: span 2; }
    .article-wrap { grid-template-columns: 1fr; gap: 38px; }
    .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .article-aside .toc { grid-column: 1 / -1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .contact-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .contact-side .side-note { grid-column: 1 / -1; }

    .foot-main { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-col li { display: inline-block; margin-right: 14px; }
    .foot-col ul { line-height: 1.9; }
}

@media (max-width: 680px) {
    .wrap { padding: 0 20px; }
    .topline-note { display: none; }
    .topline-in { min-height: 32px; }
    .topline-links { gap: 12px; }
    .brand-type strong { font-size: 21px; }
    .brand-type em { font-size: 9px; letter-spacing: .14em; }
    .brand-mark { width: 30px; height: 30px; }
    .masthead-in { min-height: 66px; }

    .hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
    .hero-lede { font-size: 14.5px; }
    .hero-actions .btn { flex: 1; }
    .hero-small { font-family: var(--sans); font-size: 10.5px; line-height: 1.8; }
    .bootmap li { grid-template-columns: 25px 1fr; }
    .bootmap li > a { display: none; }

    .scenarios { padding: 32px 0 36px; }
    .scenarios-head { flex-direction: column; gap: 4px; }

    .section { padding: 52px 0; }
    .section-tight { padding: 30px 0 50px; }
    .sec-head { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
    .sec-title h2 { font-size: 27px; }
    .sec-sub { font-size: 12px; }
    .sec-more { grid-column: 1 / -1; padding-top: 6px; }
    .res-grid, .res-grid-2, .res-grid-3 { grid-template-columns: 1fr; }
    .res-card { min-height: 0; }

    .process { padding: 46px 0; }
    .process-head h2 { font-size: 30px; }
    .principles { padding: 46px 0; }
    .principles-copy h2 { font-size: 29px; }
    .principle-list { grid-template-columns: 1fr; gap: 16px; }

    .page-head { padding: 38px 0 26px; }
    .page-head-in h1 { font-size: 34px; }
    .page-lede { font-size: 13.5px; }
    .filter-bar { align-items: flex-start; }
    .filter-search { width: 100%; }
    .filter-search input { width: 100%; flex: 1; }

    .guide-row, .guide-list-all .guide-row { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 10px; padding: 14px 0; }
    .guide-row time { grid-row: 1; }
    .guide-cat { display: none; }
    .guide-row h3, .guide-list-all .guide-row h3 { font-size: 15.5px; line-height: 1.55; }
    .guide-arrow { display: block; }
    .guide-side { grid-template-columns: 1fr; }
    .guide-side .side-note { grid-column: auto; }

    .res-detail-head h1 { font-size: 34px; }
    .res-title-row { gap: 12px; }
    .res-title-row .res-icon { width: 54px; height: 54px; }
    .official-block { flex-direction: column; align-items: flex-start; }
    .official-block .btn { width: 100%; }
    .res-aside { grid-template-columns: 1fr; }
    .download-box { grid-row: auto; }

    .article-head h1 { font-size: 33px; }
    .article-dek { font-size: 14.5px; }
    .prose { font-size: 15px; line-height: 1.95; }
    .prose h2 { font-size: 23px; }
    .prose h3 { font-size: 18px; }
    .article-aside { grid-template-columns: 1fr; }
    .article-pager { grid-template-columns: 1fr; }

    .sheet { padding: 24px 20px; }
    .about-side, .contact-side { grid-template-columns: 1fr; }
    .about-rules { grid-template-columns: 1fr; gap: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .faq-item summary { font-size: 17px; }
    .faq-a { padding-left: 0; }
    .search-panel { padding: 30px 20px 24px; }
    .search-panel input { font-size: 19px; }
    .search-page-form input { font-size: 19px; }
    .err { padding: 60px 20px 70px; }

    .foot-main { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-top: 38px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-col li { display: block; margin-right: 0; }
    .foot-bar-in { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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

@media print {
    .topline, .masthead, .site-foot, .article-aside, .article-pager, .search-modal, .hero-actions { display: none !important; }
    body { background: #fff; color: #000; }
    .article-wrap { display: block; }
    .prose { max-width: none; }
    a { text-decoration: underline; }
}
