/* =========================================================================
   HaKli HaNachon — "The Right Tool"
   A workshop pegboard (shadow board) for a cookware buyer's guide:
   graphite board, terracotta painted outlines, spec-sheet tables.
   RTL-first; logical properties throughout.
   ========================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Rubik"; src: url(../fonts/rubik-hebrew.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; src: url(../fonts/rubik-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; src: url(../fonts/heebo-hebrew.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url(../fonts/heebo-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Secular One"; src: url(../fonts/secular-hebrew.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Secular One"; src: url(../fonts/secular-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
    --hk-graphite: #3D405B;
    --hk-graphite-d: #2A2C40;
    --hk-graphite-dd: #1F2133;
    --hk-hole: #2C2E45;
    --hk-tool: #4A4E6E;
    --hk-steel: #C9CCE0;
    --hk-steel-d: #7E82A8;
    --hk-terra: #E07A5F;
    --hk-terra-d: #A8442A;
    --hk-terra-l: #FFB59F;
    --hk-terra-t: #FBEAE3;
    --hk-paper: #F6F3EE;
    --hk-paper-2: #EEE9E1;
    --hk-card: #FFFFFF;
    --hk-ink: #24263A;
    --hk-muted: #5B5E73;
    --hk-line: #E0DAD0;
    --hk-board-ink: #F4F1EC;

    --hk-f-body: "Rubik", "Arial Hebrew", Arial, sans-serif;
    --hk-f-head: "Heebo", "Rubik", Arial, sans-serif;
    --hk-f-logo: "Secular One", "Heebo", Arial, sans-serif;

    --hk-wrap: 1240px;
    --hk-gutter: clamp(16px, 4vw, 32px);
    --hk-radius: 10px;
    --hk-shadow: 0 1px 2px rgb(31 33 51 / .06), 0 8px 24px -12px rgb(31 33 51 / .18);
    --hk-ease: cubic-bezier(.2, .7, .2, 1);
    --hk-peg: radial-gradient(circle at center, var(--hk-hole) 0 2.6px, transparent 3.2px);
    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--hk-paper);
    color: var(--hk-ink);
    font: 400 1rem/1.7 var(--hk-f-body);
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--hk-terra-d); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--hk-f-head); color: var(--hk-graphite-d); line-height: 1.25; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--hk-terra-d); outline-offset: 2px; border-radius: 4px; }
.hk-sr { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hk-skip {
    position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100;
    background: var(--hk-graphite-d); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.hk-skip:focus { inset-block-start: 12px; outline-color: var(--hk-terra-l); }
.hk-wrap { inline-size: 100%; max-inline-size: var(--hk-wrap); margin-inline: auto; padding-inline: var(--hk-gutter); }
.hk-main { display: block; }
.hk-main:focus { outline: none; }
.hk-ico { flex: none; vertical-align: -.15em; }

/* ---------- Header ---------- */
.hk-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgb(246 243 238 / .96); backdrop-filter: saturate(1.2) blur(8px); border-block-end: 1px solid var(--hk-line); }
.hk-header__bar { display: flex; align-items: center; gap: 24px; min-block-size: 72px; }
.hk-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hk-graphite-d); flex: none; }
.hk-brand .hk-mark { border-radius: 10px; }
.hk-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.hk-brand__name { font-family: var(--hk-f-logo); font-size: 1.55rem; color: var(--hk-graphite); white-space: nowrap; }
.hk-brand__name span { color: var(--hk-terra-d); }
.hk-brand__tag { font-size: .78rem; color: var(--hk-muted); margin-block-start: 3px; white-space: nowrap; }
.hk-brand--light .hk-brand__name { color: #fff; }
.hk-brand--light .hk-brand__name span { color: var(--hk-terra-l); }

.hk-nav { margin-inline-start: auto; display: flex; align-items: center; }
.hk-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; }
.hk-nav__list a {
    display: inline-flex; align-items: center; min-block-size: 44px; text-decoration: none;
    font: 600 .93rem/1.2 var(--hk-f-head); color: var(--hk-ink); position: relative;
}
.hk-nav__list a::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: 8px; block-size: 2px;
    background: var(--hk-terra); transform: scaleX(0); transition: transform .2s var(--hk-ease);
}
.hk-nav__list a:hover::after, .hk-nav__list .current-menu-item > a::after, .hk-nav__list a[aria-current]::after { transform: scaleX(1); }
.hk-nav__all { display: none; }
.hk-header__tools { display: flex; gap: 6px; }
.hk-iconbtn {
    display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 10px;
    border: 1px solid var(--hk-line); background: var(--hk-card); color: var(--hk-graphite-d); cursor: pointer;
}
.hk-iconbtn:hover { border-color: var(--hk-graphite); }
.hk-iconbtn[aria-expanded="true"] { background: var(--hk-graphite); color: #fff; border-color: var(--hk-graphite); }
.hk-menubtn { display: none; }

.hk-searchbar { background: var(--hk-paper-2); border-block-start: 1px solid var(--hk-line); padding-block: 14px; }
.hk-search { display: flex; gap: 8px; max-inline-size: 640px; }
.hk-search__input {
    flex: 1; min-inline-size: 0; min-block-size: 46px; padding: 10px 14px; font: inherit; color: var(--hk-ink);
    background: var(--hk-card); border: 1.5px solid #B9B3A8; border-radius: 10px;
}
.hk-search__input:focus { border-color: var(--hk-graphite); outline: 3px solid rgb(61 64 91 / .25); outline-offset: 0; }
.hk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 46px; padding: 10px 18px;
    background: var(--hk-graphite); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
    font: 600 .95rem/1 var(--hk-f-head); text-decoration: none; white-space: nowrap;
}
.hk-btn:hover { background: var(--hk-graphite-d); }

@media (max-width: 1199px) {
    .hk-menubtn { display: inline-grid; }
    .hk-nav {
        position: absolute; inset-inline: 0; inset-block-start: 100%; display: none; flex-direction: column; align-items: stretch;
        background: var(--hk-paper); border-block-end: 1px solid var(--hk-line); box-shadow: 0 16px 24px -16px rgb(31 33 51 / .35);
        padding: 8px var(--hk-gutter) 18px; max-block-size: calc(100vh - 72px); overflow: auto;
    }
    .hk-nav.is-open { display: flex; }
    .hk-nav__list { flex-direction: column; gap: 0; }
    .hk-nav__list a { inline-size: 100%; min-block-size: 48px; border-block-end: 1px solid var(--hk-line); font-size: 1rem; }
    .hk-nav__list a::after { display: none; }
    .hk-nav__all { display: inline-flex; gap: 8px; align-items: center; margin-block-start: 14px; min-block-size: 48px; font: 700 1rem var(--hk-f-head); color: var(--hk-terra-d); text-decoration: none; }
    .hk-header__tools { margin-inline-start: auto; }
}
@media (max-width: 480px) {
    .hk-brand__tag { display: none; }
    .hk-brand__name { font-size: 1.35rem; }
    .hk-header__bar { gap: 12px; min-block-size: 64px; }
    .hk-brand .hk-mark { inline-size: 38px; block-size: 38px; }
}

/* ---------- Shared bits ---------- */
.hk-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin-block-end: 8px;
    font: 700 .8rem/1.2 var(--hk-f-head); letter-spacing: .04em; color: var(--hk-terra-d);
}
.hk-kicker::before {
    content: ""; inline-size: 28px; block-size: 8px; flex: none;
    background: repeating-linear-gradient(to left, currentColor 0 1.5px, transparent 1.5px 6px);
    border-block-end: 1.5px solid currentColor;
}
.hk-kicker--light { color: var(--hk-terra-l); }
.hk-plate {
    display: inline-block; padding: 3px 14px; border-radius: 4px; text-decoration: none;
    font: 600 .76rem/1.5 var(--hk-f-head); color: #fff;
    background:
        radial-gradient(circle at 6px 50%, var(--hk-steel-d) 0 1.6px, transparent 2px),
        radial-gradient(circle at calc(100% - 6px) 50%, var(--hk-steel-d) 0 1.6px, transparent 2px),
        var(--hk-graphite);
}
a.hk-plate:hover { background-color: var(--hk-graphite-d); }
.hk-more { display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem var(--hk-f-head); color: var(--hk-terra-d); text-decoration: none; min-block-size: 44px; }
.hk-more:hover { text-decoration: underline; }

.hk-avatar {
    display: inline-grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; border-radius: 50%;
    background: var(--hk-graphite); color: #fff; font: 700 .95rem/1 var(--hk-f-head);
    box-shadow: 0 0 0 2px var(--hk-paper), 0 0 0 4px var(--hk-terra);
}
.hk-avatar--lg { inline-size: 64px; block-size: 64px; font-size: 1.3rem; }

.hk-section { padding-block: clamp(48px, 7vw, 80px); }
.hk-section--tint { background: var(--hk-paper-2); }
.hk-section__head { margin-block-end: 28px; }
.hk-section__head--split { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hk-section__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }

/* ---------- Pegboard tools (shared drawing) ---------- */
.hk-tool { display: block; overflow: visible; }
.hk-tool__item, .hk-tool__outline { transform-box: view-box; transform-origin: 40px 12px; }
.hk-tool__item :is(path, circle, rect) { fill: var(--hk-tool); stroke: var(--hk-board-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hk-tool__item .o { fill: none; }
.hk-tool__outline :is(path, circle, rect) { fill: rgb(31 33 51 / .35); stroke: var(--hk-terra); stroke-width: 1.5; stroke-dasharray: 4 3; }
.hk-tool__outline .o { fill: none; stroke: none; }
.hk-tool__item { transition: transform .45s var(--hk-ease); }
.hk-tool--missing .hk-tool__item { display: none; }
.hk-tool--missing .hk-tool__outline :is(path, circle, rect) { fill: rgb(61 64 91 / .06); stroke: var(--hk-terra-d); }

/* ---------- Homepage pegboard ---------- */
.hk-board {
    color: var(--hk-board-ink);
    background-color: var(--hk-graphite);
    background-image: linear-gradient(180deg, rgb(255 255 255 / .05), transparent 40%), var(--hk-peg);
    background-size: auto, 28px 28px;
    background-position: 0 0, 14px 14px;
    padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px);
    border-block-end: 6px solid var(--hk-graphite-dd);
}
.hk-board__intro {
    max-inline-size: 760px; padding: clamp(20px, 3vw, 32px); border-radius: 14px;
    background: var(--hk-graphite); box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 20px 40px -24px rgb(0 0 0 / .6);
}
.hk-board__title { color: #fff; font-size: clamp(1.85rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; }
.hk-board__lead { margin-block-start: 14px; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: #E4E4EE; max-inline-size: 60ch; }
.hk-board__facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hk-board__facts li {
    padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18);
    font-size: .92rem; color: #E4E4EE; background: rgb(31 33 51 / .35);
}
.hk-board__facts strong { font: 800 1.05rem var(--hk-f-head); color: var(--hk-terra-l); margin-inline-end: 2px; }
.hk-board__label { margin-block: clamp(28px, 4vw, 44px) 12px; color: var(--hk-steel); font: 700 .9rem var(--hk-f-head); letter-spacing: .04em; }

.hk-pegs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; }
.hk-peg__link {
    position: relative; display: flex; flex-direction: column; align-items: center; block-size: 100%;
    padding: 14px 8px 0; border-radius: 12px; text-decoration: none; color: inherit;
}
.hk-peg__link:focus-visible { outline: 3px solid var(--hk-terra-l); outline-offset: 2px; }
.hk-peg__link .hk-tool { inline-size: 92px; block-size: 147px; }
.hk-peg__hook {
    position: absolute; inset-block-start: 23px; inset-inline-start: 50%; translate: 50% 0; z-index: 2;
    inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--hk-steel);
    box-shadow: 0 2px 0 var(--hk-graphite-dd);
}
.hk-pegs > li:nth-child(odd) .hk-tool__item { transform: rotate(4deg); }
.hk-pegs > li:nth-child(even) .hk-tool__item { transform: rotate(-4deg); }
.hk-peg__link:is(:hover, :focus-visible) .hk-tool__item { transform: rotate(16deg); }
.hk-pegs > li:nth-child(even) .hk-peg__link:is(:hover, :focus-visible) .hk-tool__item { transform: rotate(-16deg); }
.hk-peg__link:is(:hover, :focus-visible) .hk-tool__item :is(path, circle, rect) { stroke: var(--hk-terra-l); }
.hk-peg__label {
    margin-block-start: 12px; inline-size: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 10px 10px 9px; border-radius: 6px; text-align: center;
    background: var(--hk-paper); color: var(--hk-graphite-d);
    box-shadow: 0 2px 0 var(--hk-graphite-dd);
    border-block-start: 3px solid var(--hk-terra);
}
.hk-peg__name { font: 700 .98rem/1.25 var(--hk-f-head); }
.hk-peg__count { font-size: .8rem; color: var(--hk-muted); }
.hk-peg__link:has(.hk-tool--shelf) .hk-peg__hook { display: none; }
.hk-pegs > li .hk-tool--shelf .hk-tool__item { transform: none; }
.hk-pegs > li .hk-peg__link:is(:hover, :focus-visible) .hk-tool--shelf .hk-tool__item { transform: translateY(-6px); }
.hk-tool--shelf .hk-tool__outline { transform: none; }
.hk-peg__link:is(:hover, :focus-visible) .hk-peg__name { text-decoration: underline; text-decoration-color: var(--hk-terra); text-underline-offset: .2em; }

.hk-board__rules { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--hk-steel); font: 600 .92rem var(--hk-f-head); }
.hk-board__rules li { display: inline-flex; align-items: center; gap: 8px; }
.hk-board__rules li::before { content: ""; inline-size: 13px; block-size: 7px; border-left: 2.5px solid var(--hk-terra-l); border-bottom: 2.5px solid var(--hk-terra-l); transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 999px) {
    .hk-pegs { gap: 14px 8px; }
    .hk-peg__link .hk-tool { inline-size: 74px; block-size: 118px; }
    .hk-peg__hook { inset-block-start: 21px; inline-size: 8px; block-size: 8px; }
    .hk-peg__name { font-size: .88rem; }
}
@media (max-width: 699px) {
    .hk-pegs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
    .hk-peg__link .hk-tool { inline-size: 70px; block-size: 112px; }
    .hk-peg__name { font-size: .95rem; }
}

/* ---------- Cards ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.hk-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-radius); box-shadow: var(--hk-shadow);
    transition: transform .25s var(--hk-ease), box-shadow .25s var(--hk-ease), border-color .25s;
}
.hk-card:hover { transform: translateY(-3px); border-color: #CFC7BA; box-shadow: 0 1px 2px rgb(31 33 51 / .06), 0 16px 32px -16px rgb(31 33 51 / .28); }
.hk-card:focus-within { border-color: var(--hk-graphite); }
.hk-card__media { aspect-ratio: 3 / 2; background: var(--hk-paper-2); overflow: hidden; }
.hk-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hk-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 16px; flex: 1; }
.hk-card__title { font-size: 1.14rem; font-weight: 700; line-height: 1.35; }
.hk-card__title a { color: var(--hk-graphite-d); text-decoration: none; }
.hk-card__title a::after { content: ""; position: absolute; inset: 0; }
.hk-card__title a:focus-visible { outline: none; }
.hk-card:has(.hk-card__title a:focus-visible) { outline: 3px solid var(--hk-terra-d); outline-offset: 2px; }
.hk-card:hover .hk-card__title a { text-decoration: underline; text-decoration-color: var(--hk-terra); }
.hk-card__excerpt { color: var(--hk-muted); font-size: .95rem; line-height: 1.6; }
.hk-card__meta {
    margin-block-start: auto; inline-size: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-block-start: 14px;
    font-size: .82rem; color: var(--hk-muted);
    background: repeating-linear-gradient(to left, #CFC8BC 0 1px, transparent 1px 8px) top / 100% 5px no-repeat;
}

.hk-card--lead { display: grid; grid-template-columns: 1.15fr 1fr; }
.hk-card--lead .hk-card__media { aspect-ratio: auto; min-block-size: 100%; }
.hk-card--lead .hk-card__body { padding: clamp(20px, 3vw, 34px); gap: 14px; justify-content: center; }
.hk-card--lead .hk-card__title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; }
.hk-card--lead .hk-card__excerpt { font-size: 1.02rem; }
.hk-card--row { display: grid; grid-template-columns: 136px 1fr; }
.hk-card--row .hk-card__media { aspect-ratio: auto; min-block-size: 100%; }
.hk-card--row .hk-card__body { padding: 14px 16px; gap: 8px; }
.hk-card--row .hk-card__title { font-size: 1.02rem; }

.hk-start { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.hk-start__side { display: grid; gap: 24px; align-content: start; }
@media (max-width: 959px) {
    .hk-start { grid-template-columns: 1fr; }
    .hk-card--lead { grid-template-columns: 1fr; }
    .hk-card--lead .hk-card__media { aspect-ratio: 3 / 2; }
}
@media (max-width: 420px) {
    .hk-card--row { grid-template-columns: 104px 1fr; }
}

/* ---------- Front page spec sheet ---------- */
.hk-sheet { max-inline-size: 980px; }
.hk-sheet__head {
    padding: 18px clamp(20px, 3vw, 36px); border-radius: 14px 14px 0 0; color: #fff;
    background-color: var(--hk-graphite); background-image: var(--hk-peg); background-size: 22px 22px;
}
.hk-sheet__head .hk-kicker { color: var(--hk-terra-l); }
.hk-sheet__head .hk-section__title { color: #fff; }
.hk-prose--sheet {
    max-inline-size: none; padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--hk-line); border-block-start: 0;
    border-radius: 0 0 14px 14px; background: var(--hk-card);
}

/* ---------- Page heads ---------- */
.hk-pagehead { padding-block: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 40px); border-block-end: 1px solid var(--hk-line); background: linear-gradient(180deg, var(--hk-paper-2), var(--hk-paper)); }
.hk-pagehead__title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.hk-pagehead__lead { margin-block-start: 10px; color: var(--hk-muted); font-size: 1.08rem; max-inline-size: 64ch; }
.hk-crumbs { font-size: .86rem; color: var(--hk-muted); margin-block-end: 14px; }
.hk-crumbs a { color: var(--hk-muted); }
.hk-crumbs a:hover { color: var(--hk-terra-d); }
.hk-crumbs .breadcrumb_last { color: var(--hk-ink); }

/* Topic (category) band */
.hk-topic {
    color: var(--hk-board-ink);
    background-color: var(--hk-graphite); background-image: var(--hk-peg); background-size: 28px 28px; background-position: 14px 14px;
    border-block-end: 6px solid var(--hk-graphite-dd);
}
.hk-topic__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: clamp(28px, 5vw, 52px); }
.hk-topic__text { background: var(--hk-graphite); padding: 6px 0; border-radius: 10px; box-shadow: 0 0 0 14px var(--hk-graphite); max-inline-size: 760px; }
.hk-topic .hk-crumbs, .hk-topic .hk-crumbs a { color: var(--hk-steel); }
.hk-topic .hk-crumbs .breadcrumb_last { color: #fff; }
.hk-topic .hk-crumbs a:hover { color: var(--hk-terra-l); }
.hk-topic__title { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
.hk-topic__lead { margin-block-start: 12px; color: #E4E4EE; font-size: 1.06rem; max-inline-size: 66ch; }
.hk-topic__tool .hk-tool { inline-size: 120px; block-size: 192px; }
.hk-topic__tool .hk-tool__item { transform: rotate(-8deg); }
.hk-topic :focus-visible { outline-color: var(--hk-terra-l); }
@media (max-width: 699px) {
    .hk-topic__in { grid-template-columns: 1fr; }
    .hk-topic__tool { display: none; }
}

.hk-listing { padding-block: clamp(28px, 4vw, 44px) clamp(48px, 7vw, 80px); }
.hk-chips { margin-block-end: 26px; }
.hk-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hk-chips a {
    display: inline-flex; align-items: center; gap: 8px; min-block-size: 40px; padding: 6px 14px; border-radius: 999px;
    background: var(--hk-card); border: 1px solid var(--hk-line); color: var(--hk-graphite-d); text-decoration: none; font: 600 .9rem var(--hk-f-head);
}
.hk-chips a span { font-size: .78rem; color: var(--hk-muted); }
.hk-chips a:hover, .hk-chips a[aria-current] { border-color: var(--hk-graphite); background: var(--hk-graphite); color: #fff; }
.hk-chips a:hover span, .hk-chips a[aria-current] span { color: var(--hk-steel); }

.hk-route {
    margin-block-end: 30px; padding: 18px 22px; border-radius: var(--hk-radius); background: var(--hk-card);
    border: 1.5px dashed var(--hk-steel-d);
}
.hk-route__title { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--hk-f-head); color: var(--hk-graphite-d); margin-block-end: 6px; }
.hk-route__body p { color: var(--hk-ink); line-height: 1.8; }
.hk-route__body p + p { margin-block-start: .8em; }

.hk-empty { padding: 32px; text-align: center; background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-radius); display: grid; gap: 16px; justify-items: center; }
.hk-searchpanel { margin-block: 18px 30px; }
.hk-404 { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.hk-404__hook {
    padding: 10px 18px; border-radius: 14px;
    background-color: var(--hk-paper-2); background-image: radial-gradient(circle at center, #CFC8BC 0 2.4px, transparent 3px); background-size: 22px 22px;
}
.hk-404__hook .hk-tool { inline-size: 110px; block-size: 176px; }
.hk-404 .hk-searchpanel { margin-block-end: 0; }
@media (max-width: 599px) { .hk-404 { grid-template-columns: 1fr; } .hk-404__hook { justify-self: start; } }

/* ---------- Article ---------- */
.hk-article__head { padding-block: clamp(24px, 4vw, 44px) 28px; background: linear-gradient(180deg, var(--hk-paper-2), var(--hk-paper)); }
.hk-article__headin { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hk-article__headtext { max-inline-size: 860px; display: flex; flex-direction: column; align-items: flex-start; }
.hk-article__title { margin-block-start: 14px; font-size: clamp(1.75rem, 3.8vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.hk-article__lead { margin-block-start: 12px; font-size: 1.12rem; color: var(--hk-muted); max-inline-size: 62ch; }
.hk-article__tool {
    padding: 8px 22px 14px; border-radius: 14px;
    background-color: var(--hk-graphite); background-image: var(--hk-peg); background-size: 22px 22px; background-position: 11px 11px;
}
.hk-article__tool .hk-tool { inline-size: 84px; block-size: 134px; }
.hk-article__tool .hk-tool__item { transform: rotate(-7deg); }
@media (max-width: 859px) { .hk-article__headin { grid-template-columns: 1fr; } .hk-article__tool { display: none; } }

.hk-byline { display: flex; align-items: center; gap: 14px; margin-block-start: 22px; }
.hk-byline__text { display: flex; flex-direction: column; gap: 2px; }
.hk-byline__name { font: 700 1rem var(--hk-f-head); color: var(--hk-graphite-d); }
.hk-byline__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--hk-muted); }
.hk-byline__meta > span { display: inline-flex; align-items: center; gap: 6px; }

.hk-article__media { margin-block: 8px 0; max-inline-size: 1064px; }
.hk-article__media img { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--hk-paper-2); }

.hk-article__layout { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.hk-article__layout.has-toc { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
.hk-article__main { min-inline-size: 0; max-inline-size: 760px; inline-size: 100%; }
.hk-article__layout:not(.has-toc) .hk-article__main { margin-inline: auto; }

.hk-parts { position: sticky; inset-block-start: 96px; }
.hk-parts__box { background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-radius); overflow: hidden; }
.hk-parts__box summary {
    display: flex; align-items: center; gap: 8px; min-block-size: 48px; padding: 10px 16px; cursor: pointer; list-style: none;
    font: 700 .95rem var(--hk-f-head); color: #fff; background: var(--hk-graphite);
}
.hk-parts__box summary::-webkit-details-marker { display: none; }
.hk-parts__box summary::after { content: ""; margin-inline-start: auto; inline-size: 8px; block-size: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.hk-parts__box:not([open]) summary::after { transform: translateY(2px) rotate(-135deg); }
.hk-parts ol { list-style: none; margin: 0; padding: 8px 0; max-block-size: calc(100vh - 190px); overflow: auto; }
.hk-parts a {
    display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 7px 16px; text-decoration: none;
    font-size: .88rem; line-height: 1.45; color: var(--hk-ink); border-inline-start: 3px solid transparent;
}
.hk-parts a:hover { background: var(--hk-paper); }
.hk-parts a.is-current { border-inline-start-color: var(--hk-terra); background: var(--hk-terra-t); color: var(--hk-graphite-d); font-weight: 600; }
.hk-parts__n { font: 700 .8rem/1.9 var(--hk-f-head); color: var(--hk-terra-d); font-variant-numeric: tabular-nums; }
@media (max-width: 1079px) {
    .hk-article__layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hk-parts { position: static; max-inline-size: 760px; inline-size: 100%; margin-inline: auto; }
    .hk-article__main { margin-inline: auto; inline-size: 100%; }
}

/* ---------- Prose ---------- */
.hk-prose { font-size: 1.075rem; line-height: 1.85; max-inline-size: 72ch; overflow-wrap: break-word; }
.hk-prose > * + * { margin-block-start: 1.05em; }
.hk-prose h2 { margin-block-start: 2.1em; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; }
.hk-prose h3 { margin-block-start: 1.7em; font-size: 1.22rem; font-weight: 700; }
.hk-prose h2 + *, .hk-prose h3 + * { margin-block-start: .6em; }
.hk-prose > :first-child { margin-block-start: 0; }
.hk-article .hk-prose { counter-reset: part; }
.hk-article .hk-prose h2 { display: flex; gap: 12px; align-items: baseline; }
.hk-article .hk-prose h2::before {
    counter-increment: part; content: counter(part, decimal-leading-zero); flex: none;
    font: 700 .78rem/1 var(--hk-f-head); color: #fff; background: var(--hk-graphite); padding: 6px 7px; border-radius: 4px; translate: 0 -.25em;
    font-variant-numeric: tabular-nums;
}
.hk-prose ul, .hk-prose ol { padding-inline-start: 1.4em; }
.hk-prose li + li { margin-block-start: .45em; }
.hk-prose ul li::marker { color: var(--hk-terra); }
.hk-prose ol li::marker { color: var(--hk-terra-d); font-weight: 700; font-family: var(--hk-f-head); }
.hk-prose strong { color: var(--hk-graphite-d); font-weight: 700; }
.hk-prose blockquote { margin-inline: 0; padding: 4px 18px; border-inline-start: 4px solid var(--hk-terra); color: var(--hk-muted); }
.hk-prose img { border-radius: 10px; }
.hk-prose hr { border: 0; block-size: 6px; background: repeating-linear-gradient(to left, #CFC8BC 0 1px, transparent 1px 8px); }

/* Spec-sheet tables */
.hk-spec {
    overflow-x: auto; border: 1.5px solid var(--hk-graphite); border-radius: 10px; background: var(--hk-card);
    box-shadow: 0 2px 0 var(--hk-graphite);
}
.hk-spec:focus-visible { outline-offset: 3px; }
.hk-spec table { inline-size: 100%; min-inline-size: 560px; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.hk-spec th {
    background: var(--hk-graphite); color: #fff; font: 700 .9rem/1.35 var(--hk-f-head); text-align: start; padding: 12px 14px; vertical-align: bottom;
}
.hk-spec th + th { border-inline-start: 1px solid rgb(255 255 255 / .16); }
.hk-spec td { padding: 11px 14px; border-block-start: 1px solid var(--hk-line); vertical-align: top; text-align: start; }
.hk-spec td + td { border-inline-start: 1px dashed var(--hk-line); }
.hk-spec tbody td:first-child { background: #F5F1EA; color: var(--hk-graphite-d); font-weight: 600; }
.hk-spec tbody tr:first-child td { border-block-start: 0; }
.hk-spec tbody tr:hover td { background: var(--hk-terra-t); }

.hk-endnote {
    display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 8px;
    background: var(--hk-terra-t); border-inline-start: 4px solid var(--hk-terra); font-size: .98rem; color: var(--hk-ink);
}
.hk-endnote .hk-ico { color: var(--hk-terra-d); margin-block-start: .35em; }
.hk-readalso { padding: 12px 16px; border-radius: 8px; background: var(--hk-paper-2); }

/* Equipment-style label under every guide */
.hk-label { margin-block-start: 40px; border: 2px solid var(--hk-graphite); border-radius: 10px; overflow: hidden; background: var(--hk-card); }
.hk-label__title {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: #fff; font: 700 .95rem var(--hk-f-head);
    background:
        repeating-linear-gradient(-45deg, var(--hk-terra) 0 8px, var(--hk-graphite) 8px 16px) left / 64px 100% no-repeat,
        var(--hk-graphite);
}
.hk-label p:not(.hk-label__title) { padding: 14px 16px; font-size: .95rem; line-height: 1.7; }

.hk-authorbox { margin-block-start: 28px; display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--hk-radius); background: var(--hk-paper-2); }
.hk-authorbox__kicker { font-size: .82rem; color: var(--hk-muted); }
.hk-authorbox__name { font-size: 1.2rem; font-weight: 800; margin-block-end: 6px; }
.hk-authorbox__name a, .hk-authorbox__name span { color: var(--hk-graphite-d); }
.hk-authorbox p:last-child { font-size: .95rem; line-height: 1.7; }

/* Writers on the homepage */
.hk-writers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.hk-writer { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--hk-radius); background: var(--hk-card); border: 1px solid var(--hk-line); }
.hk-writer__name { font-size: 1.2rem; font-weight: 800; }
.hk-writer__name span, .hk-writer__name a { color: var(--hk-graphite-d); }
.hk-writer__count { font-size: .84rem; color: var(--hk-terra-d); font-weight: 600; margin-block: 2px 8px; }
.hk-writer__bio { font-size: .95rem; color: var(--hk-muted); line-height: 1.7; }

/* ---------- Static pages ---------- */
.hk-pagebody { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 80px); }
.hk-pagebody .hk-prose { margin-inline: auto; max-inline-size: 760px; }
/* ADX contact form: match the site palette (plugin exposes custom properties). */
body .adxc { --adxc-accent: #3D405B; --adxc-bg: #FFFFFF; --adxc-border: #B9B3A8; --adxc-radius: 12px; max-inline-size: 640px; }
body .adxc .adxc-submit { min-block-size: 46px; font-family: var(--hk-f-head); }
body .adxc .adxc-submit:hover { background: var(--hk-graphite-d); filter: none; }
body .adxc .adxc-field input:focus, body .adxc .adxc-field textarea:focus { outline: 3px solid rgb(61 64 91 / .3); outline-offset: 0; }
body .adxc.adxc-state-ok .adxc-msg { color: #1E6B3E; }
body .adxc.adxc-state-err .adxc-msg { color: #A3271B; }

/* ---------- Pagination ---------- */
.hk-pagination { margin-block-start: 40px; }
.hk-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hk-pagination .page-numbers {
    display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: 0 14px; border-radius: 10px;
    background: var(--hk-card); border: 1px solid var(--hk-line); color: var(--hk-graphite-d); text-decoration: none; font: 600 .95rem var(--hk-f-head);
}
.hk-pagination .page-numbers.current { background: var(--hk-graphite); border-color: var(--hk-graphite); color: #fff; }
.hk-pagination a.page-numbers:hover { border-color: var(--hk-graphite); }

/* ---------- Footer ---------- */
.hk-footer {
    color: #DCDDEA; background-color: var(--hk-graphite-dd);
    background-image: radial-gradient(circle at center, #171827 0 2.4px, transparent 3px); background-size: 26px 26px;
    border-block-start: 6px solid var(--hk-terra);
}
.hk-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.hk-footer__brand, .hk-footer__col { background: var(--hk-graphite-dd); padding: 4px; border-radius: 8px; }
.hk-footer__note { margin-block-start: 16px; font-size: .9rem; line-height: 1.75; color: #C9CAD8; max-inline-size: 48ch; }
.hk-footer__title { color: var(--hk-terra-l); font: 700 .95rem var(--hk-f-head); margin-block-end: 10px; }
.hk-footer__list { list-style: none; margin: 0; padding: 0; columns: 1; }
.hk-footer__list a { display: inline-flex; align-items: center; min-block-size: 40px; color: #E8E8F0; text-decoration: none; font-size: .93rem; }
.hk-footer__list a:hover { color: var(--hk-terra-l); text-decoration: underline; }
.hk-footer :focus-visible { outline-color: var(--hk-terra-l); }
.hk-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 24px; border-block-start: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: #B9BBCD; }
.hk-footer__base p { background: var(--hk-graphite-dd); }
@media (max-width: 859px) { .hk-footer__grid { grid-template-columns: 1fr 1fr; } .hk-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .hk-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
    .hk-card:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ---------- Print ---------- */
@media print {
    .hk-header, .hk-footer, .hk-parts, .hk-skip, .hk-article__tool, .hk-section--tint { display: none !important; }
    body { background: #fff; }
    .hk-article__layout.has-toc { display: block; }
}
