:root{--site-bg:#fbf4f3;--site-card:#ffffff;--site-type:#27161f;--site-muted:#67595f;--site-brand:#a8415b;--site-accent:#5f8a72;--site-rule:#dfd7d7;--site-corner:16px;--site-width:1080px;--site-f1:'Lato',system-ui,sans-serif;--site-f2:'Open Sans',system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:5rem} body{margin:0;background:var(--site-bg);color:var(--site-type);font:16px/1.65 var(--site-f2)}
img{max-width:100%;height:auto} a{color:var(--site-brand);text-underline-offset:3px}
input,select,textarea{max-width:100%;box-sizing:border-box}
input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week]{min-width:0;max-width:100%}
@supports (-webkit-touch-callout:none){input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week]{-webkit-appearance:none;appearance:none;min-height:2.75em} input::-webkit-date-and-time-value{text-align:left}}
h1,h2,h3{font-family:var(--site-f1);line-height:1.2;letter-spacing:-.01em;color:var(--site-type)}
h1{font-size:clamp(1.9rem,4.5vw,2.8rem);margin:.2em 0 .35em} h2{font-size:clamp(1.35rem,3vw,1.8rem);margin:2.20em 0 .6em} h3{font-size:1.15rem;margin:1.6em 0 .4em}
p,ul,ol{margin:0 0 1em}
.pg-column{max-width:var(--site-width);margin:0 auto;padding:0 1rem} .pg-article-area{max-width:var(--site-width);margin:0 auto;padding:1.2rem 1rem 3rem}
.pg-skip-link{position:absolute;left:-9999px} .pg-skip-link:focus{left:1rem;top:1rem;background:var(--site-card);padding:.5rem;z-index:99}
.pg-page-head__in{max-width:var(--site-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1rem;flex-wrap:wrap}
.pg-home-link{display:flex;align-items:center;gap:.6rem;font:800 1.15rem var(--site-f1);color:var(--site-type);text-decoration:none}
.pg-links{display:flex;gap:1rem;flex-wrap:wrap;align-items:center} .pg-links a{color:var(--site-type);text-decoration:none;font-weight:600;font-size:.95rem}
.pg-banner{background:var(--site-card);border-bottom:1px solid var(--site-rule)}  .pg-links a{border-bottom:2px solid transparent;padding-bottom:2px} .pg-links a:hover,.pg-links a[aria-current]{border-color:var(--site-brand)}
.pg-opener{margin:1rem 0 1.4rem} .pg-deck{font-size:1.12rem;max-width:46em;color:var(--site-muted)} .pg-opener{text-align:center} .pg-opener .pg-deck{margin-left:auto;margin-right:auto}
.pg-app{margin:1.4rem 0 2rem}
.pg-callout{margin:1.4em 0;padding:.9em 1.1em;background:var(--site-card);border-left:4px solid var(--site-accent);border-radius:0 var(--site-corner) var(--site-corner) 0}
.pg-math-box{margin:1.2em 0;padding:.9em 1.1em;font-family:ui-monospace,Consolas,monospace;background:var(--site-card);border:1px dashed var(--site-brand);border-radius:var(--site-corner);overflow-x:auto}
.pg-tbl-box{margin:1.2em 0;overflow-x:auto;border:1px solid var(--site-rule);border-radius:var(--site-corner);background:var(--site-card)}
.pg-data-table{width:100%;border-collapse:collapse;font-size:.95em;font-variant-numeric:tabular-nums} .pg-data-table th,.pg-data-table td{padding:.5em .75em;border-bottom:1px solid var(--site-rule);text-align:left}
.pg-data-table thead th{background:color-mix(in srgb,var(--site-rule) 60%,var(--site-card))}
ol.pg-procedure{padding-left:1.3em} ol.pg-procedure>li{margin:.5em 0}
.pg-illus{margin:1.6em 0;text-align:center} .pg-illus img{width:100%;max-width:720px;border-radius:var(--site-corner);border:1px solid var(--site-rule);background:#fff} .pg-illus figcaption{font-size:.9em;color:var(--site-muted)}
.pg-guide-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin:1.2em 0}
.pg-guide-card{display:block;padding:1.1rem;background:var(--site-card);border-radius:var(--site-corner);box-shadow:0 6px 24px rgba(0,0,0,.09);border:1px solid transparent;color:var(--site-type);text-decoration:none}
.pg-guide-card b{display:block;font-family:var(--site-f1);margin-bottom:.35rem} .pg-guide-card span{color:var(--site-muted);font-size:.92rem} .pg-guide-card:hover{border-color:var(--site-brand)}
.pg-guide-card--img{padding:0;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease} .pg-guide-card--img:hover{transform:translateY(-3px);box-shadow:0 10px 24px color-mix(in srgb,var(--site-type) 14%,transparent)}
.pg-tile__img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover} .pg-tile__txt{display:block;padding:1rem 1.1rem 1.1rem} .pg-tile__txt>span{display:block}
.pg-item__meta{display:block;margin-top:.6rem;font-size:.8rem;font-weight:700;letter-spacing:.04em;color:var(--site-brand)}
.pg-guide-list--feat{grid-template-columns:repeat(2,minmax(0,1fr))} .pg-guide-list--feat>.pg-guide-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr;align-items:center} .pg-guide-list--feat>.pg-guide-card:first-child b{font-size:1.35rem}
.pg-blist{display:grid;gap:1rem;margin:1.2em 0} .pg-brow{display:grid;grid-template-columns:240px 1fr;gap:1.1rem;align-items:center;background:var(--site-card);border:1px solid var(--site-rule);border-radius:var(--site-corner);overflow:hidden;color:var(--site-type);text-decoration:none}
.pg-blist a,.pg-brow,.pg-post__kicker{background:none}   /* 13.10: без !important — дизайнер сайта может дать карточкам фон */
.pg-brow .pg-tile__img{height:100%;aspect-ratio:auto;min-height:126px} .pg-brow b{display:block;font-family:var(--site-f1);font-size:1.12rem;margin-bottom:.3rem} .pg-brow .pg-tile__txt>span{color:var(--site-muted);font-size:.93rem} .pg-brow:hover{border-color:var(--site-brand)}
.pg-blist--min{list-style:none;padding:0;counter-reset:bl;gap:0} .pg-blist--min li{counter-increment:bl;border-top:1px solid var(--site-rule)} .pg-blist--min li:last-child{border-bottom:1px solid var(--site-rule)}
.pg-blist--min a{display:grid;grid-template-columns:4.2rem 1fr;column-gap:1rem;padding:1.1rem .2rem;color:var(--site-type);text-decoration:none} .pg-blist--min a::before{content:counter(bl,decimal-leading-zero);grid-row:1/4;font:800 2.4rem/1 var(--site-f1);color:var(--site-brand)}
.pg-blist--min b{font-family:var(--site-f1);font-size:1.15rem} .pg-blist--min span{color:var(--site-muted);font-size:.93rem} .pg-blist--min a:hover b{color:var(--site-brand)}
.pg-post__head--overlay{position:relative;margin:.6rem 0 1.6rem;border-radius:var(--site-corner);overflow:hidden} .pg-post__head--overlay>img{display:block;width:100%;height:auto;min-height:300px;object-fit:cover}
.pg-post__ov{position:absolute;inset:auto 0 0 0;padding:4rem 1.6rem 1.4rem;background:linear-gradient(transparent,color-mix(in srgb,#000 72%,transparent))} .pg-post__ov h1,.pg-post__ov .pg-post__meta,.pg-post__ov .pg-post__kicker{color:#fff}
.pg-post__head--band{background:var(--site-brand);color:#fff;padding:2.2rem 1.6rem;border-radius:var(--site-corner)} .pg-post__head--band h1,.pg-post__head--band .pg-post__meta,.pg-post__head--band .pg-post__kicker{color:#fff}
.pg-post__head--split{display:grid;grid-template-columns:1.1fr 1fr;gap:1.6rem;align-items:center} .pg-post__head--split .pg-post__cover{margin:0}
.pg-jump-list--chips ol{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.45rem} .pg-jump-list--chips li{margin:0} .pg-jump-list--chips a{display:inline-block;padding:.3rem .75rem;border:1px solid var(--site-rule);border-radius:999px;background:var(--site-bg);text-decoration:none;font-size:.88rem}
.pg-jump-list--rail{background:none;border:0;border-left:3px solid var(--site-accent);border-radius:0;padding:.2rem 0 .2rem 1rem}
.pg-language--globe summary{display:flex;align-items:center;gap:.35rem} .pg-langpills{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.8rem} .pg-langpills a{padding:.25rem .7rem;border:1px solid var(--site-rule);border-radius:999px;text-decoration:none} .pg-langpills a[aria-current]{background:var(--site-brand);border-color:var(--site-brand);color:#fff}
@media (max-width:700px){.pg-guide-list--feat{grid-template-columns:1fr} .pg-guide-list--feat>.pg-guide-card:first-child{display:flex} .pg-brow{grid-template-columns:1fr} .pg-brow .pg-tile__img{min-height:0;aspect-ratio:1200/630} .pg-post__head--split{grid-template-columns:1fr} .pg-post__ov{position:static;background:var(--site-brand);padding:1.2rem} .pg-post__head--overlay>img{min-height:0}}
.pg-post{max-width:48rem;margin:0 auto} .pg-post__head{margin:.6rem 0 1.2rem} .pg-post__head h1{font-size:clamp(2rem,5vw,3rem);line-height:1.12;letter-spacing:-.01em}
.pg-post__kicker{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--site-brand);text-decoration:none}
.pg-upd{color:var(--site-muted);font-size:.9rem;margin:2rem 0 0} .pg-sign{font-style:italic;color:var(--site-muted)} .pg-post__meta{color:var(--site-muted);font-size:.92rem;margin:0} .pg-post__cover{margin:0 0 1.6rem} .pg-post__cover img{display:block;width:100%;height:auto;border-radius:var(--site-corner)}
.pg-post .pg-deck{font-size:1.2rem;color:var(--site-type)} .pg-post .pg-deck::first-letter{font-family:var(--site-f1);font-size:3.1em;float:left;line-height:.9;margin:.06em .1em 0 0;color:var(--site-brand)}
.pg-post .pg-jump-list--post{position:static!important;top:auto!important;z-index:auto;margin:0 0 1.8rem;padding:1rem 1.2rem;background:var(--site-card);border:1px solid var(--site-rule);border-left:4px solid var(--site-brand);border-radius:var(--site-corner);font-size:.95rem}
.pg-jump-list--post ol{margin:.4rem 0 0;padding-left:1.2rem;columns:1} .pg-jump-list--post li{margin:.2rem 0}
.pg-post h3{color:var(--site-brand)} .pg-post blockquote{margin:1.4em 0;padding:.4em 1.2em;border-left:4px solid var(--site-accent);font-size:1.1em}
.pg-faq-list h3{font-size:1.05rem;margin-top:1.3em}
.pg-path{font-size:.88rem;color:var(--site-muted);margin:.4rem 0 1rem} .pg-path a{color:var(--site-muted)}
.pg-next-step{margin:2.4rem 0;padding:1.4rem;background:var(--site-card);border-radius:var(--site-corner);box-shadow:0 6px 24px rgba(0,0,0,.09);border:1px solid transparent;text-align:center}
.pg-button{display:inline-block;padding:.7em 1.4em;background:var(--site-brand);color:#fff;border-radius:999px;font-weight:700;text-decoration:none}
.pg-colophon{border-top:1px solid var(--site-rule);margin-top:3rem;padding:1.6rem 0 2.4rem;font-size:.9rem;color:var(--site-muted);background:var(--site-card)}
.pg-colophon nav{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem} .pg-colophon a{color:var(--site-muted)} .pg-colophon{text-align:center} .pg-colophon nav{justify-content:center}
.pg-section{background:var(--site-card);box-shadow:0 6px 24px rgba(0,0,0,.09);border:1px solid transparent;border-radius:var(--site-corner);padding:.2rem 1.4rem 1rem;margin:1.6rem 0} .pg-section>h2{margin-top:1rem}

.pg-language{position:relative} .pg-language summary{cursor:pointer;list-style:none;padding:.25rem .6rem;border:1px solid var(--site-rule);border-radius:999px;font-size:.85rem}
.pg-i18n__list{position:absolute;right:0;top:120%;background:var(--site-card);border:1px solid var(--site-rule);border-radius:10px;padding:.4rem;display:grid;min-width:9rem;z-index:40}
.pg-i18n__list a{padding:.3rem .5rem;text-decoration:none;color:var(--site-type)} .pg-i18n__list a[aria-current]{font-weight:700;color:var(--site-brand)}
.pg-codes{display:flex;gap:.35rem;font-size:.8rem;font-weight:700} .pg-codes a{text-decoration:none;color:var(--site-muted);padding:.1rem .3rem;border-radius:4px} .pg-codes a[aria-current]{color:var(--site-brand);background:color-mix(in srgb,var(--site-brand) 12%,transparent)}
[data-zone]{margin:1rem auto;text-align:center;overflow:hidden;max-width:100%} [data-zone]:empty{margin:0}
[data-zone="mobile_sticky"]{position:fixed;left:0;right:0;bottom:0;margin:0;z-index:50;background:var(--site-card)}
[data-zone="sidebar_left"],[data-zone="sidebar_right"]{position:fixed;top:110px;width:160px;margin:0;z-index:20} [data-zone="sidebar_left"]{left:12px} [data-zone="sidebar_right"]{right:12px}
@media (max-width:1499px){[data-zone="sidebar_left"],[data-zone="sidebar_right"]{display:none}}
.pg-adx{float:right;border:0;background:transparent;font-size:1.2rem;cursor:pointer;color:var(--site-muted)}
.pg-button{border-radius:999px}
.pg-data-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--site-brand) 6%,transparent)}
.pg-section a:not(.pg-button):not(.pg-guide-card){text-decoration-thickness:2px}
:root{--site-f1:'Lato',system-ui,-apple-system,'Segoe UI',sans-serif;--site-f2:'Open Sans',system-ui,-apple-system,'Segoe UI',sans-serif} body{font-size:18px;font-kerning:normal;font-optical-sizing:auto;text-rendering:optimizeLegibility} h1,h2,h3{font-weight:700;letter-spacing:0;text-wrap:balance} .pg-home-link{font-weight:700} h1{font-size:clamp(1.85rem,4.6vw,2.56rem);line-height:1.08} h2{font-size:clamp(1.3rem,3vw,1.69rem);line-height:1.18} h3{font-size:1.30rem} .pg-post__head h1{font-size:clamp(1.95rem,5vw,2.72rem)} p,li{text-wrap:pretty} .pg-section>p,.pg-section>ul,.pg-section>ol,.pg-post p,.pg-post li{max-width:72ch} .pg-data-table,.pg-app output,.pg-app [class*=res],.pg-app [class*=val]{font-variant-numeric:tabular-nums lining-nums}  
@media (max-width:640px){.pg-page-head__in{gap:.5rem} .pg-links{gap:.8rem}}

/* Bra Size Calculator — tool styles. Archetype K (Clinic): calm tinted page, large rounded cards one under another,
   step cards "under the bust → across the fullest part", result = big size + measuring tape + six-system table.
   Only site tokens (+ color-mix). Every selector is scoped under .bsc (print mode opts in via body.bsc-print-mode). */

.bsc {
    --bsc-r: calc(var(--site-corner) + 16px);
    --bsc-rs: calc(var(--site-corner) + 6px);
    --bsc-soft: color-mix(in srgb, var(--site-brand) 9%, var(--site-card));
    --bsc-softer: color-mix(in srgb, var(--site-brand) 5%, var(--site-bg));
    --bsc-acc-soft: color-mix(in srgb, var(--site-accent) 14%, var(--site-card));
    --bsc-shadow: 0 1px 2px color-mix(in srgb, var(--site-type) 6%, transparent), 0 10px 28px -12px color-mix(in srgb, var(--site-type) 22%, transparent);
    --bsc-err: color-mix(in srgb, var(--site-brand) 82%, var(--site-type));
    color: var(--site-type);
    font-family: var(--site-f2);
    font-size: 16px;
    line-height: 1.5;
    color-scheme: inherit;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.bsc *, .bsc *::before, .bsc *::after { box-sizing: border-box; }
.bsc > * { min-width: 0; }
.bsc [hidden] { display: none !important; }
.bsc-vh {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bsc :where(button, input, select) { font: inherit; color: inherit; }
.bsc button { cursor: pointer; }
.bsc :focus-visible { outline: 3px solid color-mix(in srgb, var(--site-brand) 55%, transparent); outline-offset: 2px; }

/* ---------- mode tabs ---------- */
.bsc-tabs {
    display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; justify-self: start; max-width: 100%;
    background: var(--site-card); border-radius: 999px; box-shadow: var(--bsc-shadow);
}
.bsc-tab {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
    border: 0; border-radius: 999px; background: transparent; color: var(--site-muted); font-weight: 600;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.bsc-tab:hover { color: var(--site-type); background: var(--bsc-softer); }
.bsc-tab[aria-selected="true"] { background: var(--site-brand); color: var(--site-card); box-shadow: 0 4px 12px -6px var(--site-brand); }
.bsc-tab svg { flex: none; }

/* ---------- panels ---------- */
.bsc-panel { display: grid; gap: 16px; margin: 0; min-width: 0; animation: bsc-in .35s ease both; }
.bsc-how {
    margin: 0; color: var(--site-muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
}
.bsc-how b { color: var(--site-type); }
.bsc-how-i { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.bsc-how-n {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--bsc-soft); color: var(--site-brand); font-weight: 700; font-size: 13px;
}
.bsc-opts { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.bsc-opts > * { flex: none; }
.bsc-seg {
    display: inline-flex; flex-wrap: nowrap; gap: 3px; padding: 4px; border-radius: var(--bsc-rs);
    background: var(--site-card); box-shadow: inset 0 0 0 1px var(--site-rule); max-width: 100%;
}
.bsc-seg-opt { position: relative; display: inline-flex; min-width: 0; }
.bsc-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bsc-seg-opt span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: calc(var(--bsc-rs) - 4px);
    color: var(--site-muted); font-weight: 600; font-size: 15px; transition: background-color .2s ease, color .2s ease;
}
.bsc-seg-opt input:checked + span { background: var(--bsc-soft); color: var(--site-brand); }
.bsc-seg-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--site-brand) 55%, transparent); outline-offset: 1px; }

/* ---------- step cards ---------- */
.bsc-steps { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.bsc-step {
    position: relative; min-width: 0; padding: 20px 22px 22px; border-radius: var(--bsc-r);
    background: var(--site-card); box-shadow: var(--bsc-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.bsc-step:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--site-brand) 40%, transparent), var(--bsc-shadow); }
.bsc-step-art { display: block; width: 120px; height: 64px; margin: -4px 0 6px -4px; }
.bsc-art-loop { fill: none; stroke: var(--site-brand); stroke-width: 3; }
.bsc-art-loose { stroke-dasharray: 7 5; }
.bsc-art-tick { fill: none; stroke: color-mix(in srgb, var(--site-brand) 60%, var(--site-muted)); stroke-width: 2; stroke-linecap: round; }
.bsc-art-end { fill: none; stroke: var(--site-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bsc-art-dot { fill: var(--site-accent); }
.bsc-art-tape { fill: var(--bsc-soft); stroke: color-mix(in srgb, var(--site-brand) 35%, transparent); stroke-width: 1.5; }
.bsc-step-h { margin: 0 0 4px; font-family: var(--site-f1); font-weight: 700; font-size: 20px; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.bsc-step-n {
    flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--site-brand); color: var(--site-card); font-size: 16px;
}
.bsc-step-t { margin: 0 0 14px; color: var(--site-muted); font-size: 15px; }
.bsc-arrow { display: grid; place-items: center; color: color-mix(in srgb, var(--site-brand) 70%, var(--site-muted)); }
.bsc-lbl { display: block; margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.bsc-lbl-opt { margin-top: 14px; font-weight: 600; }
.bsc-optional { font-weight: 400; color: var(--site-muted); font-size: 14px; }
.bsc-field { position: relative; display: flex; align-items: stretch; min-width: 0; max-width: 260px; }
.bsc-field-sm { max-width: 220px; }
.bsc-field input {
    -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; width: 100%; min-height: 52px;
    padding: 10px 52px 10px 16px; border: 2px solid var(--site-rule); border-radius: var(--bsc-rs);
    background: var(--site-bg); color: var(--site-type); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bsc-field-sm input { min-height: 46px; font-size: 18px; }
.bsc-field input:hover { border-color: color-mix(in srgb, var(--site-brand) 35%, var(--site-rule)); }
.bsc-field input:focus { outline: none; border-color: var(--site-brand); background: var(--site-card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-brand) 16%, transparent); }
.bsc-field input[aria-invalid="true"] { border-color: var(--bsc-err); background: color-mix(in srgb, var(--site-brand) 6%, var(--site-card)); }
.bsc-field input::placeholder { color: var(--site-muted); font-weight: 400; }
.bsc-unit {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none;
    color: var(--site-muted); font-weight: 600; font-size: 15px;
}
.bsc-hint-s { margin: 6px 0 0; font-size: 14px; color: var(--site-muted); }
.bsc-err {
    margin: 8px 0 0; padding: 0 0 0 26px; position: relative; color: var(--bsc-err); font-size: 15px; font-weight: 600;
    animation: bsc-shake .32s ease;
}
.bsc-err::before {
    content: "!"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bsc-err); color: var(--site-card); font-size: 13px; font-weight: 800;
}

/* ---------- buttons ---------- */
.bsc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bsc-go {
    min-height: 52px; padding: 12px 30px; border: 0; border-radius: 999px; background: var(--site-brand); color: var(--site-card);
    font-weight: 700; font-size: 18px; box-shadow: 0 8px 20px -10px var(--site-brand);
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.bsc-go:hover { background: color-mix(in srgb, var(--site-brand) 88%, var(--site-type)); box-shadow: 0 10px 24px -10px var(--site-brand); }
.bsc-go:active { transform: translateY(1px) scale(.99); }
.bsc-reset {
    min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--site-muted);
    font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease;
}
.bsc-reset:hover { color: var(--site-type); }

/* ---------- convert ---------- */
.bsc-conv {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px; border-radius: var(--bsc-r);
    background: var(--site-card); box-shadow: var(--bsc-shadow);
}
.bsc-conv-f { min-width: 0; }
.bsc-conv select {
    -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; max-width: 100%; min-height: 52px;
    padding: 10px 40px 10px 14px; border: 2px solid var(--site-rule); border-radius: var(--bsc-rs);
    background-color: var(--site-bg); color: var(--site-type); font-size: 18px; font-weight: 700;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bsc-conv select:focus { outline: none; border-color: var(--site-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-brand) 16%, transparent); }

/* ---------- empty state ---------- */
.bsc-empty {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--bsc-r);
    background: var(--bsc-softer); border: 2px dashed color-mix(in srgb, var(--site-brand) 28%, transparent);
    color: var(--site-muted);
}
.bsc-empty-art { flex: none; width: 150px; height: 48px; }
.bsc-empty-t { margin: 0; font-size: 15px; }

/* ---------- result ---------- */
.bsc-res { display: grid; gap: 16px; min-width: 0; animation: bsc-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.bsc-card {
    min-width: 0; padding: 22px 24px 24px; border-radius: var(--bsc-r); background: var(--site-card); box-shadow: var(--bsc-shadow);
}
.bsc-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--site-brand) 10%, transparent), transparent 60%),
        var(--site-card);
}
.bsc-kicker { margin: 0; color: var(--site-muted); font-weight: 700; font-size: 15px; }
.bsc-size { margin: 2px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.bsc-size-v {
    display: inline-block; font-family: var(--site-f1); font-weight: 800; font-size: 72px; line-height: 1; color: var(--site-brand);
    font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; overflow-wrap: anywhere;
}
.bsc-size-sys { color: var(--site-muted); font-weight: 700; font-size: 18px; }
.bsc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.bsc-chip {
    min-width: 52px; min-height: 44px; padding: 6px 12px; border: 2px solid var(--site-rule); border-radius: 999px;
    background: var(--site-card); color: var(--site-type); font-weight: 700; font-size: 15px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.bsc-chip:hover { border-color: color-mix(in srgb, var(--site-brand) 45%, var(--site-rule)); }
.bsc-chip[aria-pressed="true"] { background: var(--site-brand); border-color: var(--site-brand); color: var(--site-card); }
.bsc-chip:active { transform: scale(.96); }
.bsc-explain { margin: 0 0 8px; font-size: 16px; max-width: 70ch; }
.bsc-hint, .bsc-note, .bsc-other {
    margin: 0 0 8px; padding: 9px 14px; border-radius: var(--bsc-rs); font-size: 15px; max-width: 70ch;
}
.bsc-hint { background: var(--bsc-acc-soft); color: var(--site-type); font-weight: 600; }
.bsc-note { background: var(--bsc-soft); color: var(--site-type); }
.bsc-other { background: var(--site-bg); color: var(--site-type); border-left: 4px solid var(--site-accent); border-radius: 0 var(--bsc-rs) var(--bsc-rs) 0; }
.bsc-next { margin: 8px 0 4px; font-weight: 600; max-width: 70ch; }
.bsc-disc { margin: 4px 0 0; font-size: 14px; color: var(--site-muted); }

/* measuring tape */
.bsc-tape-wrap { margin: 10px 0 6px; min-width: 0; }
.bsc-tape { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.bsc-t-body { fill: color-mix(in srgb, var(--site-accent) 12%, var(--site-card)); stroke: color-mix(in srgb, var(--site-accent) 45%, var(--site-rule)); stroke-width: 1.5; }
.bsc-t-fill { fill: color-mix(in srgb, var(--site-brand) 28%, transparent); }
.bsc-t-ticks line { stroke: color-mix(in srgb, var(--site-type) 55%, transparent); stroke-width: 1.4; }
.bsc-t-num { font: 600 13px var(--site-f2); fill: var(--site-type); }
.bsc-t-cup { font: 700 14px var(--site-f2); fill: var(--site-muted); }
.bsc-t-cup-long { font-size: 12px; }
.bsc-t-cup-on { font-size: 18px; fill: var(--site-brand); }
.bsc-t-mark line { stroke-width: 3; stroke-linecap: round; }
.bsc-t-mark text { font: 700 14px var(--site-f2); paint-order: stroke; stroke: var(--site-card); stroke-width: 4px; stroke-linejoin: round; }
.bsc-t-band line { stroke: var(--site-type); }
.bsc-t-band text { fill: var(--site-type); }
.bsc-t-bust line { stroke: var(--site-brand); }
.bsc-t-bust text { fill: var(--site-brand); }
.bsc-t-bust circle { fill: var(--site-brand); }

/* table */
.bsc-h { margin: 0 0 12px; font-family: var(--site-f1); font-size: 20px; line-height: 1.3; font-weight: 700; }
.bsc-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.bsc-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.bsc-tbl th, .bsc-tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--site-rule); }
.bsc-tbl thead th { color: var(--site-muted); font-size: 14px; font-weight: 700; border-bottom-width: 2px; }
.bsc-tbl tbody th { font-weight: 600; white-space: nowrap; }
.bsc-tbl-size { font-weight: 800; font-size: 18px; }
.bsc-tbl tbody tr { transition: background-color .25s ease; }
.bsc-tbl tbody tr.bsc-on { background: var(--bsc-soft); }
.bsc-tbl tbody tr.bsc-on .bsc-tbl-size { color: var(--site-brand); }
.bsc-tbl tbody tr:last-child th, .bsc-tbl tbody tr:last-child td { border-bottom: 0; }
.bsc-foot { margin: 10px 0 0; font-size: 14px; color: var(--site-muted); }
.bsc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.bsc-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
    border: 2px solid var(--site-brand); background: transparent; color: var(--site-brand); font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}
.bsc-btn:hover { background: var(--site-brand); color: var(--site-card); }
.bsc-toast {
    font-weight: 600; font-size: 15px; color: var(--site-accent); opacity: 0; transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}
.bsc-toast-on { opacity: 1; transform: none; }

/* sister ladder + fit check */
.bsc-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.bsc-ladder { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; position: relative; }
.bsc-ladder::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 24px; height: 3px; border-radius: 2px;
    background: color-mix(in srgb, var(--site-brand) 22%, var(--site-rule));
}
.bsc-rung { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; animation: bsc-pop .4s ease both; }
.bsc-rung:nth-child(2) { animation-delay: .05s; }
.bsc-rung:nth-child(3) { animation-delay: .1s; }
.bsc-rung:nth-child(4) { animation-delay: .15s; }
.bsc-rung:nth-child(5) { animation-delay: .2s; }
.bsc-rung-v {
    display: grid; place-items: center; min-width: 0; max-width: 100%; min-height: 48px; padding: 4px 8px; border-radius: var(--bsc-rs);
    background: var(--site-card); box-shadow: inset 0 0 0 2px var(--site-rule); font-weight: 800; font-size: 16px; overflow-wrap: anywhere;
}
.bsc-rung-on .bsc-rung-v { background: var(--site-brand); color: var(--site-card); box-shadow: none; }
.bsc-rung-l { font-size: 13px; color: var(--site-muted); line-height: 1.25; }
.bsc-rung-on .bsc-rung-l { color: var(--site-brand); font-weight: 700; }
.bsc-small { margin: 0 0 10px; font-size: 15px; color: var(--site-muted); }
.bsc-fit .bsc-small { color: var(--site-type); font-weight: 600; }
.bsc-fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bsc-fit-b {
    display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; text-align: left;
    border: 2px solid var(--site-rule); border-radius: var(--bsc-rs); background: var(--site-card); color: var(--site-type);
    font-size: 14px; font-weight: 600; line-height: 1.3;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.bsc-fit-b svg { flex: none; color: var(--site-brand); }
.bsc-fit-b:hover:not(:disabled) { border-color: color-mix(in srgb, var(--site-brand) 50%, var(--site-rule)); }
.bsc-fit-b[aria-pressed="true"] { border-color: var(--site-brand); background: var(--bsc-soft); }
.bsc-fit-b:disabled { opacity: .45; cursor: not-allowed; }
.bsc-fit-out {
    margin: 12px 0 0; padding: 12px 14px; border-radius: var(--bsc-rs); background: var(--bsc-acc-soft); font-size: 15px;
    animation: bsc-in .3s ease both;
}
.bsc-fit-out strong { font-size: 18px; color: var(--site-type); }

/* ---------- motion ---------- */
@keyframes bsc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bsc-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bsc-shake { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
    .bsc *, .bsc *::before, .bsc *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .bsc-steps { grid-template-columns: minmax(0, 1fr); }
    .bsc-arrow { transform: rotate(90deg); height: 24px; }
    .bsc-duo { grid-template-columns: minmax(0, 1fr); }
    .bsc-conv { grid-template-columns: minmax(0, 1fr); padding: 18px; }
}
@media (max-width: 480px) {
    .bsc { gap: 14px; }
    .bsc-tabs { display: flex; justify-self: stretch; }
    .bsc-tabs { flex-wrap: nowrap; }
    .bsc-tab { flex: 1 1 auto; min-width: 0; justify-content: center; text-align: center; line-height: 1.2; padding: 8px 10px; font-size: 15px; }
    .bsc-seg-opt span { padding: 6px 11px; font-size: 14px; }
    .bsc-tbl th:nth-child(n+3), .bsc-tbl td:nth-child(n+3) { display: none; }
    .bsc-ladder { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .bsc-ladder::before { display: none; }
    .bsc-rung { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; text-align: left; }
    .bsc-rung-v { order: 2; min-width: 96px; min-height: 40px; }
    .bsc-rung-l { order: 1; font-size: 14px; }
    .bsc-tab svg { display: none; }
    .bsc-step, .bsc-card { padding: 18px 16px 20px; }
    .bsc-field, .bsc-field-sm { max-width: none; }
    .bsc-size-v { font-size: 60px; }
    .bsc-chips { flex-wrap: nowrap; gap: 5px; }
    .bsc-chip { flex: 1 1 0; min-width: 0; padding: 6px 2px; font-size: 14px; }
    .bsc-fit-grid { grid-template-columns: minmax(0, 1fr); }
    .bsc-empty { flex-direction: column; align-items: flex-start; }
    .bsc-tbl th, .bsc-tbl td { padding: 9px 8px; }
    .bsc-go { flex: 1 1 auto; }
}

/* ---------- print: only the size card ---------- */
@media print {
    body.bsc-print-mode * { visibility: hidden !important; }
    body.bsc-print-mode .bsc-res, body.bsc-print-mode .bsc-res * { visibility: visible !important; }
    body.bsc-print-mode .bsc-res { position: absolute; left: 0; top: 0; width: 100%; }
    .bsc-tools, .bsc-fit, .bsc-chips, .bsc-tabs, .bsc-panel, .bsc-empty { display: none !important; }
    .bsc-card { box-shadow: none !important; border: 1px solid var(--site-rule); break-inside: avoid; }
    .bsc-res, .bsc-rung, .bsc-panel { animation: none !important; }
}

/* design: sites/<d>/design/site.css */
/* brasize-calculator.org — [K] Clinic, fitting-room calm.
   Soft dusty-rose tint over the whole page, white header, big white cards (24px) one under another.
   Signature: an abstract measuring tape — a tape loop beside the H1 and a tape-end tab before every section heading. */

:root {
  --site-bg: #fbf4f3;
  --site-card: #ffffff;
  --site-type: #27161f;
  --site-muted: #5f5157;
  --site-brand: #a8415b;
  --site-accent: #5f8a72;
  --site-rule: #ead9da;
  --k-rose-soft: #f6e6e9;
  --k-rose-mid: #ecd3d9;
  --k-sage-soft: #e3eee7;
  --k-card-r: 24px;
  --k-shadow: 0 1px 2px rgba(39, 22, 31, .04), 0 14px 34px -22px rgba(39, 22, 31, .28);
  --k-shadow-hi: 0 2px 4px rgba(39, 22, 31, .05), 0 20px 40px -22px rgba(168, 65, 91, .38);
}

body {
  background: var(--site-bg);
  color: var(--site-type);
  font-size: 17px;
  line-height: 1.68;
}

::selection { background: var(--k-rose-mid); color: var(--site-type); }

/* ---------- header: white, airy, logo disc in dusty rose ---------- */
.pg-banner {
  background: var(--site-card);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--site-rule), 0 8px 24px -20px rgba(39, 22, 31, .35);
  position: relative;
  z-index: 30;
}
.pg-page-head__in { padding: .85rem 1rem; min-height: 68px; }
.pg-home-link {
  gap: .7rem;
  font: 800 1.2rem/1.1 var(--site-f1);
  letter-spacing: 0;
  color: var(--site-type);
}
.pg-home-link svg {
  width: 40px; height: 40px; flex: none;
  filter: drop-shadow(0 6px 10px rgba(168, 65, 91, .28));
  transition: transform .25s ease;
}
.pg-home-link:hover svg { transform: rotate(-12deg); }
.pg-home-link span { padding-top: 1px; }
.pg-home-link:hover span { color: var(--site-brand); }

.pg-links { gap: .35rem 1.4rem; }
.pg-links > a {
  font: 700 .98rem/1.2 var(--site-f1);
  color: var(--site-type);
  padding: .55rem .1rem .45rem;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.pg-links > a:hover { color: var(--site-brand); border-color: var(--k-rose-mid); }
.pg-links > a[aria-current] { color: var(--site-brand); border-color: var(--site-brand); }

/* language switcher: a soft rose pill that belongs to the header */
.pg-language summary {
  display: flex; align-items: center; gap: .45rem;
  min-height: 40px;
  padding: .35rem .95rem .35rem .8rem;
  border: 0;
  border-radius: 999px;
  background: var(--k-rose-soft);
  color: var(--site-type);
  font: 700 .9rem/1 var(--site-f1);
  transition: background-color .2s ease;
}
.pg-language summary::-webkit-details-marker { display: none; }
.pg-language summary::before {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-card);
}
.pg-language summary::after {
  content: "";
  width: 7px; height: 7px; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
}
.pg-language summary:hover, .pg-language[open] summary { background: var(--k-rose-mid); }
.pg-i18n__list {
  top: calc(100% + 8px);
  min-width: 11rem;
  padding: .45rem;
  border: 0;
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 2px 6px rgba(39, 22, 31, .06), 0 22px 44px -18px rgba(39, 22, 31, .35);
}
.pg-i18n__list a { padding: .55rem .8rem; border-radius: 12px; color: var(--site-type); font-size: .95rem; }
.pg-i18n__list a:hover { background: var(--k-rose-soft); }
.pg-i18n__list a[aria-current] { color: var(--site-brand); background: var(--k-rose-soft); }

/* ---------- first screen: H1 on the tint, tape loop beside it ---------- */
.pg-article-area { padding-top: 1.6rem; }
.pg-opener {
  position: relative;
  margin: .6rem 0 1.4rem;
  padding: .4rem 0 .2rem;
  text-align: left;
}
.pg-opener .pg-deck { margin-left: 0; margin-right: 0; }
.pg-opener h1 {
  font: 800 clamp(1.9rem, 4vw, 2.6rem)/1.15 var(--site-f1);
  letter-spacing: 0;
  margin: 0 0 .45rem;
  max-width: 21em;
}
.pg-opener .pg-deck {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--site-muted);
  max-width: 40em;
  margin: 0;
}
@media (min-width: 980px) {
  .pg-opener {
    padding-right: 360px;
    min-height: 150px;
    background: url(/assets/img/d-tape-ribbon.svg) right 0 center / 350px auto no-repeat;
  }
}

/* tool frame: only outer spacing; keeps the tool's own 20px cards */
.pg-app { --site-corner: 4px; margin: 1.2rem 0 2.4rem; }

/* ---------- reading cards, one under another ---------- */
.pg-section {
  background: var(--site-card);
  border: 0;
  border-radius: var(--k-card-r);
  box-shadow: var(--k-shadow);
  padding: 1.9rem 2.4rem 1.6rem;
  margin: 1.4rem 0;
}
.pg-section > h2 {
  display: flex; align-items: center; gap: .8rem;
  margin: .1rem 0 .9rem;
  font: 800 clamp(1.4rem, 2.6vw, 1.75rem)/1.25 var(--site-f1);
  letter-spacing: 0;
  color: var(--site-type);
}
.pg-section > h2::before {
  content: "";
  flex: none;
  width: 44px; height: 14px;
  background: url(/assets/img/d-tape-tab.svg) center / contain no-repeat;
}
.pg-section h3 {
  font: 700 1.18rem/1.3 var(--site-f1);
  color: var(--site-type);
  margin: 1.6em 0 .35em;
}
.pg-section > p, .pg-section > ul, .pg-section > ol { max-width: 70ch; }
.pg-section p:last-child { margin-bottom: .2em; }
.pg-section strong { font-weight: 700; color: var(--site-type); }

.pg-section a:not(.pg-button):not(.pg-guide-card) {
  color: var(--site-brand);
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--site-brand) 35%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.pg-section a:not(.pg-button):not(.pg-guide-card):hover { text-decoration-color: var(--site-brand); }

/* steps as soft numbered discs */
ol.pg-procedure { list-style: none; padding: 0; counter-reset: kstep; max-width: 70ch; }
ol.pg-procedure > li {
  position: relative;
  counter-increment: kstep;
  padding: .1rem 0 .1rem 3rem;
  margin: .9em 0;
}
ol.pg-procedure > li::before {
  content: counter(kstep);
  position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--k-rose-soft);
  color: var(--site-brand);
  font: 800 .95rem/1 var(--site-f1);
}
.pg-section ul:not([class]) { padding-left: 1.2rem; }
.pg-section ul:not([class]) > li::marker { color: var(--site-accent); }

/* formula: a calm sage note instead of a dashed box */
.pg-math-box {
  border: 0;
  border-radius: 16px;
  background: var(--k-sage-soft);
  color: var(--site-type);
  padding: 1rem 1.25rem;
  font-size: .95rem;
  line-height: 1.7;
}
.pg-callout {
  border: 0;
  border-radius: 16px;
  background: var(--k-rose-soft);
  padding: 1rem 1.25rem;
}

/* figures sit on a soft tint panel inside the white card */
.pg-illus {
  margin: 1.8em 0 1.4em;
  padding: 1.1rem 1.1rem .7rem;
  background: var(--site-bg);
  border-radius: 18px;
}
.pg-illus img {
  border: 0;
  border-radius: 12px;
  background: var(--site-card);
  max-width: 720px;
}
.pg-illus figcaption {
  margin-top: .65rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--site-muted);
}

/* tables: rounded, rose header, sizes in tabular figures */
.pg-tbl-box {
  border: 0;
  border-radius: 16px;
  background: var(--site-card);
  box-shadow: inset 0 0 0 1px var(--site-rule);
  margin: 1.4em 0;
}
.pg-data-table { font-size: .96rem; }
.pg-data-table caption {
  caption-side: top;
  text-align: left;
  padding: .85rem 1rem .5rem;
  font: 700 1rem/1.3 var(--site-f1);
  color: var(--site-type);
}
.pg-data-table thead th {
  background: var(--k-rose-soft);
  color: var(--site-type);
  font: 700 .95rem/1.3 var(--site-f1);
  border-bottom: 0;
}
.pg-data-table th, .pg-data-table td { padding: .62em .95em; border-bottom: 1px solid var(--site-rule); vertical-align: top; }
.pg-data-table tbody tr:last-child td { border-bottom: 0; }
.pg-data-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--site-bg) 70%, var(--site-card)); }
.pg-data-table tbody tr:hover { background: var(--k-sage-soft); }
.pg-data-table td:first-child { font-weight: 600; }

/* ---------- guide cards (home + hub) ---------- */
.pg-guide-list { gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pg-guide-card {
  border: 0;
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 0 0 1px var(--site-rule), var(--k-shadow);
}
.pg-section .pg-guide-card { box-shadow: inset 0 0 0 1px var(--site-rule); }
.pg-guide-card--img:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--k-rose-mid), var(--k-shadow-hi); }
.pg-guide-card:hover { border-color: transparent; }
.pg-tile__img { background: var(--site-bg); }
.pg-tile__txt { padding: 1.1rem 1.25rem 1.3rem; }
.pg-guide-card b { font: 800 1.12rem/1.3 var(--site-f1); color: var(--site-type); margin-bottom: .45rem; }
.pg-guide-card--img:hover b { color: var(--site-brand); }
.pg-guide-card span { font-size: .95rem; line-height: 1.55; color: var(--site-muted); }
.pg-item__meta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .8rem;
  font: 700 .85rem/1 var(--site-f2);
  letter-spacing: 0;
  color: var(--site-accent);
}
.pg-item__meta::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}

/* hub page: the list itself is the card stack, so the section is not boxed */
.pg-section.pg-section--guides, .pg-article-area > .pg-section:has(> .pg-guide-list) {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.pg-article-area > h1 {
  font: 800 clamp(1.9rem, 4vw, 2.6rem)/1.15 var(--site-f1);
  letter-spacing: 0;
  margin: .2rem 0 .5rem;
}
.pg-article-area > .pg-deck { color: var(--site-muted); max-width: 44em; margin-bottom: 1.6rem; }

/* ---------- FAQ (plain) inside its card ---------- */
.pg-faq-list h3 {
  margin: 1.3em 0 .3em;
  padding-left: 1.3rem;
  position: relative;
  font: 700 1.1rem/1.35 var(--site-f1);
}
.pg-faq-list h3::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--site-brand);
  box-shadow: 0 0 0 4px var(--k-rose-soft);
}
.pg-faq-list h3 + p { padding-left: 1.3rem; color: var(--site-type); }
.pg-faq-list h2 + h3 { margin-top: .4em; }

/* ---------- buttons, CTA ---------- */
.pg-button {
  min-height: 48px;
  padding: .8em 1.7em;
  border: 0;
  border-radius: 999px;
  background: var(--site-brand);
  color: #fff;
  font: 700 1rem/1.2 var(--site-f1);
  box-shadow: 0 10px 22px -12px var(--site-brand);
  transition: background-color .2s ease, transform .15s ease;
}
.pg-button:hover { background: color-mix(in srgb, var(--site-brand) 86%, var(--site-type)); color: #fff; }
.pg-button:active { transform: translateY(1px); }
.pg-next-step {
  border: 0;
  border-radius: var(--k-card-r);
  background: var(--site-card);
  box-shadow: var(--k-shadow);
  padding: 1.8rem 1.4rem;
}

/* ---------- breadcrumbs ---------- */
.pg-path { font-size: .9rem; margin: .2rem 0 1.1rem; }
.pg-path a { color: var(--site-muted); text-decoration-color: var(--site-rule); }
.pg-path a:hover { color: var(--site-brand); text-decoration-color: currentColor; }

/* ---------- article ---------- */
.pg-post { max-width: 50rem; }
.pg-post__head--split { gap: 1.2rem 2rem; margin: .4rem 0 1.6rem; }
@media (min-width: 701px) { .pg-post__head--split { grid-template-columns: 1.15fr 1fr; } }
@media (max-width: 700px) { .pg-post__head--split { grid-template-columns: 1fr; } }
.pg-post__head h1 {
  font: 800 clamp(1.85rem, 4vw, 2.5rem)/1.15 var(--site-f1);
  letter-spacing: 0;
  margin: .35rem 0 .6rem;
}
.pg-post__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .9rem/1 var(--site-f1);
  letter-spacing: 0;
  text-transform: none;
  color: var(--site-brand);
}
.pg-post__kicker::before {
  content: "";
  width: 30px; height: 10px;
  background: url(/assets/img/d-tape-tab.svg) center / contain no-repeat;
}
.pg-post__meta { font-size: .92rem; color: var(--site-muted); }
.pg-post__cover img {
  border-radius: 22px;
  box-shadow: var(--k-shadow);
  background: var(--site-card);
}
.pg-post .pg-deck {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--site-type);
  margin: 0 0 1.4rem;
  max-width: 68ch;
}
.pg-post .pg-deck::first-letter { font-family: var(--site-f1); font-weight: 800; }
.pg-post .pg-section { padding: 1.8rem 2.2rem 1.5rem; }
.pg-post h3 { color: var(--site-brand); }
.pg-post blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.3rem;
  border: 0;
  border-radius: 16px;
  background: var(--k-sage-soft);
  font-style: italic;
}

/* article contents: chips in the flow, never sticky */
.pg-post .pg-jump-list--post {
  position: static !important;
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 0;
  border-radius: 20px;
  background: var(--site-card);
  box-shadow: var(--k-shadow);
}
.pg-jump-list--post strong { display: block; font: 700 1rem/1.3 var(--site-f1); margin-bottom: .2rem; }
.pg-jump-list--chips ol { gap: .5rem; margin-top: .5rem; padding: 0; }
.pg-jump-list--chips a {
  border: 0;
  background: var(--k-rose-soft);
  color: var(--site-type);
  padding: .42rem .9rem;
  font-size: .9rem;
  transition: background-color .2s ease, color .2s ease;
}
.pg-jump-list--chips a:hover { background: var(--site-brand); color: #fff; }

/* ---------- footer: white band, centred ---------- */
.pg-colophon {
  margin-top: 3.6rem;
  padding: 2.2rem 0 2.6rem;
  border-top: 0;
  background: var(--site-card);
  box-shadow: 0 -1px 0 var(--site-rule);
  color: var(--site-muted);
  font-size: .92rem;
}
.pg-colophon p { margin: 0 0 .8rem; }
.pg-colophon nav { gap: .5rem 1.3rem; }
.pg-colophon a { color: var(--site-muted); text-decoration-color: var(--site-rule); }
.pg-colophon a:hover { color: var(--site-brand); text-decoration-color: currentColor; }
.pg-footer__in::before {
  content: "";
  display: block;
  width: 44px; height: 14px;
  margin: 0 auto 1rem;
  background: url(/assets/img/d-tape-tab.svg) center / contain no-repeat;
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .pg-page-head__in { min-height: 56px; padding: .6rem 1rem; }
  .pg-home-link { font-size: 1.05rem; }
  .pg-home-link svg { width: 34px; height: 34px; }
  .pg-links { gap: .3rem 1rem; }
  .pg-language summary { min-height: 36px; padding: .3rem .75rem; }
  .pg-article-area { padding-top: 1rem; }
  .pg-section { padding: 1.3rem 1.1rem 1.1rem; border-radius: 20px; margin: 1.1rem 0; }
  .pg-post .pg-section { padding: 1.3rem 1.1rem 1.1rem; }
  .pg-section > h2 { gap: .6rem; }
  .pg-section > h2::before { width: 34px; height: 11px; }
  .pg-illus { padding: .6rem .6rem .5rem; margin-left: -.3rem; margin-right: -.3rem; }
  .pg-data-table { font-size: .9rem; }
  .pg-data-table th, .pg-data-table td { padding: .55em .65em; }
  .pg-post__cover img { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-home-link svg, .pg-guide-card--img, .pg-button, .pg-links > a, .pg-jump-list--chips a { transition: none; }
  .pg-home-link:hover svg, .pg-guide-card--img:hover { transform: none; }
}
