/*
 * Pipe help center. Same identity as the landing page (apps/site): moss/cream tokens,
 * IBM Plex, floating pill header, pill buttons, moss gradient hero, night footer.
 * Light theme only. No inline styles anywhere (nginx CSP).
 */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg-soft: #f6f5f0; --bg-soft-2: #eeece4; --card: #ffffff;
  --line: #e2e0d8; --line-strong: #cfccbf;
  --ink: #111111; --ink-2: #55544d; --ink-3: #6b6a62;
  --moss: #4a5d23; --moss-deep: #3a4a1a; --moss-tint: #edf0e1; --moss-line: #cfd9b4;
  --terra: #c4442e; --terra-tint: #f9eae6; --info: #2e4a5d;
  --night: #16190f; --night-line: #2f3423; --night-ink: #f2f1ec; --night-ink-2: #b4b6a8;
  --sh-1: 0 1px 2px rgba(17,17,17,.05), 0 1px 3px rgba(17,17,17,.04);
  --sh-2: 0 12px 32px -14px rgba(17,17,17,.22);
  --sh-moss: 0 10px 24px -12px rgba(74,93,35,.55);
  --wrap: 1120px; --wrap-art: 1280px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--moss-deep); }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; letter-spacing: -.012em; line-height: 1.12; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .ft :focus-visible, .hdr__panel :focus-visible { outline-color: #d6e4a4; }
::selection { background: var(--moss); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--moss); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
section[id], h2[id], h3[id] { scroll-margin-top: 96px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--moss); color: #fff; box-shadow: var(--sh-moss); }
.btn--primary:hover { background: var(--moss-deep); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--night { background: rgba(255,255,255,.06); color: var(--night-ink); border-color: rgba(255,255,255,.2); }
.btn--night:hover { background: rgba(255,255,255,.12); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .875rem; }

/* ------------------------------------------------------------- header */
.hdr { position: sticky; top: 12px; z-index: 60; padding-inline: 16px; margin-top: 12px; }
.hdr__bar { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 20px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(17,17,17,.45); }
.hdr__logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.hdr__img { height: 24px; width: auto; }
.hdr__tag { padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1.2; }
.hdr__nav { display: none; gap: 24px; margin-left: 12px; }
.hdr__nav a { font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .18s; }
.hdr__nav a:hover { color: var(--ink); }
.hdr__act { display: none; gap: 8px; margin-left: auto; }
.hdr__toggle { margin-left: auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); }
.hdr__toggle svg { width: 22px; height: 22px; }
.hdr__panel { max-width: var(--wrap); margin: 8px auto 0; padding: 14px; border-radius: var(--r-lg); background: rgba(22,25,15,.98); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 42px -20px rgba(17,17,17,.6); }
.hdr__panel a:not(.btn) { display: block; padding: 11px 14px; border-radius: var(--r-sm); color: #d7d8cb; text-decoration: none; font-weight: 500; }
.hdr__panel a:not(.btn):hover { background: rgba(255,255,255,.06); color: #fff; }
.hdr__panel .btn { width: 100%; margin-top: 8px; }
.hdr__panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 12px 0 6px; }
@media (min-width: 1000px) {
  .hdr__nav, .hdr__act { display: flex; align-items: center; }
  .hdr__toggle { display: none; }
  .hdr__panel { display: none !important; }
}
@media (max-width: 420px) { .hdr__tag { display: none; } }

/* --------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -74px; padding-top: 74px; color: #f2f1ec; background: radial-gradient(60% 70% at 85% 0%, rgba(168,190,107,.38), transparent 66%), radial-gradient(50% 60% at 0% 100%, rgba(196,68,46,.20), transparent 70%), linear-gradient(160deg, #3a4a1a 0%, #4a5d23 48%, #2f3b15 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(242,241,236,.14) 1.3px, transparent 1.5px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%); mask-image: linear-gradient(115deg, transparent 20%, #000 75%); }
.hero__in { padding-block: 40px 52px; }
.hero--home .hero__in { padding-block: 64px 120px; text-align: center; }
.hero h1 { margin-top: 18px; color: #fff; letter-spacing: -.024em; line-height: 1.04; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem); }
.hero--home h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4rem); }
.hero h1 em { font-style: normal; color: #d6e4a4; }
.hero__sub { margin-top: 16px; max-width: 54ch; font-size: 1.0625rem; color: #dfe3cc; }
.hero--home .hero__sub { margin-inline: auto; font-size: 1.125rem; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 7px 16px 7px 12px; border-radius: 999px; border: 1px solid rgba(242,241,236,.28); background: rgba(242,241,236,.08); font-size: .8125rem; font-weight: 500; color: #e6e8d6; }
.pill__ico { width: 15px; height: 15px; color: #c1d488; }
.hero .breadcrumbs ol, .hero .breadcrumbs [aria-current] { color: #dfe3cc; }
.hero .breadcrumbs a { color: #e6e8d6; }
.hero .breadcrumbs li + li::before { color: #aeb894; }

/* search */
.search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 4px 4px 16px; color: var(--ink); }
.search__ico { flex: none; width: 20px; height: 20px; color: var(--moss); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; outline: 0; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { outline: 3px solid var(--moss); outline-offset: 2px; }
.hero .search:focus-within { outline-color: #d6e4a4; }
.hero .search { margin-top: 26px; max-width: 520px; box-shadow: 0 12px 28px -14px rgba(0,0,0,.6); border-color: transparent; }
.search--big { max-width: 680px !important; margin-inline: auto; padding: 8px 8px 8px 22px; margin-top: 34px !important; }
.search--big .search__ico { width: 24px; height: 24px; }
.search--big input { font-size: 1.0625rem; padding: 12px 6px; }
.popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: .875rem; color: #dfe3cc; }
.popular a { padding: 5px 14px; border-radius: 999px; background: rgba(15,20,8,.28); border: 1px solid rgba(242,241,236,.2); color: #f2f1ec; text-decoration: none; }
.popular a:hover { background: rgba(242,241,236,.14); }
@media (max-width: 560px) { .search .btn { padding-inline: 14px; } .hero--home .hero__in { padding-block: 44px 110px; } .search--big { padding-left: 14px; } .search--big .search__ico { display: none; } }

/* ------------------------------------------------------------- home */
.cats { position: relative; margin-top: -72px; }
.category-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.category-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); color: var(--ink); text-decoration: none; transition: transform .18s, border-color .18s; }
.category-card:hover { transform: translateY(-3px); border-color: var(--moss); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: var(--moss-tint); color: var(--moss); }
.card-icon svg { width: 26px; height: 26px; }
.category-card strong { font: 700 1.3rem/1.15 var(--cond); letter-spacing: -.01em; }
.category-card__d { color: var(--ink-2); font-size: .9375rem; flex: 1; }
.category-card__n { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--moss-deep); }
.category-card__go { width: 16px; height: 16px; transition: transform .18s; }
.category-card:hover .category-card__go { transform: translateX(4px); }
.home-section { margin-top: 72px; }
.kicker, .eyebrow { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.sec-h { margin-top: 12px; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -.02em; }
.results { margin-top: 40px; }
.results h2 { font-size: 1.6rem; margin-bottom: 16px; }
.results:not([hidden]) + .cats { margin-top: 40px; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.logos a { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-1); font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s; }
.logos a:hover { border-color: var(--moss); transform: translateY(-2px); }
.logos img { width: 52px; height: 52px; }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px dashed var(--line-strong); }
.more a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.more a:hover { border-color: var(--ink-3); }
.more__ico { width: 18px; height: 18px; color: var(--moss); }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(5, 1fr); gap: 16px; } .logos li:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 1000px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .category-grid { grid-template-columns: 1fr; } .category-card { padding: 18px; } }

/* ---------------------------------------------------------- lists/cards */
.article-list { display: grid; gap: 10px; }
.article-list a { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.article-list a:hover { border-color: var(--moss); box-shadow: var(--sh-2); }
.article-list strong { font-weight: 600; }
.article-list a span { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 800px) { .article-list--2 { grid-template-columns: 1fr 1fr; } }
.home-section .article-list { margin-top: 26px; }
.list-h { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }

/* ------------------------------------------------ breadcrumbs + subbar */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; color: var(--ink-2); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin-inline: 8px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { font-weight: 500; }
.subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 28px 8px; }
.subbar .search { width: 100%; max-width: 320px; }
.art-layout, .subbar { max-width: var(--wrap-art); }
@media (max-width: 700px) { .subbar .search { max-width: none; } }

/* ----------------------------------------------------------- category */
.cat-layout { display: grid; gap: 28px; padding-block: 40px 20px; }
@media (min-width: 900px) { .cat-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } .cat-side { position: sticky; top: 96px; align-self: start; } }
.side__h { font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.side ul { display: grid; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.side a:hover { background: var(--bg-soft); color: var(--ink); }
.side a[aria-current] { background: var(--moss-tint); color: var(--moss-deep); font-weight: 600; }
.side__ico { width: 20px; height: 20px; flex: none; color: var(--moss); }
@media (max-width: 899px) { .side ul { display: flex; flex-wrap: wrap; gap: 8px; } .side a { border: 1px solid var(--line); } }
.page-body { padding-block: 40px 20px; max-width: 860px; }
.glossary { display: grid; gap: 12px; }
.glossary div { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.glossary dt { font: 700 1.2rem var(--cond); }
.glossary dd { margin-top: 4px; color: var(--ink-2); }

/* ------------------------------------------------------------ article */
.art-layout { display: grid; gap: 20px; padding-block: 12px 40px; }
@media (min-width: 1000px) {
  .art-layout { grid-template-columns: 248px minmax(0, 1fr) 224px; gap: 44px; padding-block: 24px 40px; align-items: start; }
  .art-nav, .art-toc { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; }
  .navbox--inline { display: none; }
}
@media (max-width: 999px) { .art-toc { display: none; } .art-nav { order: -1; } }
.navbox { font-size: .9rem; }
.navbox summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 600; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); }
.navbox summary::-webkit-details-marker { display: none; }
.navbox summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .18s; }
.navbox[open] summary::after { transform: rotate(-135deg); }
.navbox__ico { width: 20px; height: 20px; color: var(--moss); flex: none; }
.navbox__n { margin-left: auto; padding: 0 8px; border-radius: 999px; background: var(--moss-tint); color: var(--moss-deep); font-size: .75rem; line-height: 1.7; }
.navbox__n + * { margin-left: 0; }
.navbox ul, .navbox ol { display: grid; gap: 1px; margin-top: 10px; border-left: 2px solid var(--line); }
.navbox li a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.navbox li a:hover { color: var(--ink); }
.navbox li a[aria-current] { border-left-color: var(--moss); color: var(--moss-deep); font-weight: 600; background: var(--moss-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.navbox__all { display: inline-block; margin: 12px 0 0 14px; font-weight: 600; font-size: .85rem; }
.navbox--toc summary { background: transparent; border: 0; padding: 0 0 6px; font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.navbox--toc summary::after { display: none; }
@media (max-width: 999px) { .navbox--toc summary { padding: 10px 14px; border: 1px solid var(--line); background: var(--bg-soft); font: 600 .9rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); } .navbox--toc summary::after { display: block; } .navbox--inline { margin-bottom: 8px; } }
@media (min-width: 1000px) { .navbox--toc summary, .art-toc .navbox summary { pointer-events: none; } }

.art { min-width: 0; max-width: 760px; width: 100%; margin-inline: auto; }
.art h1 { margin-top: 10px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.02em; line-height: 1.08; }
.lead { margin: 14px 0 26px; font-size: 1.125rem; color: var(--ink-2); }
.art p, .art li { max-width: 72ch; }
.art p { margin-block: 12px; }
.art a { text-underline-offset: 3px; }
.art h2 { font-size: 1.65rem; margin: 0 0 10px; }
.art h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.art code { font: .875em var(--mono); background: var(--bg-soft-2); padding: 2px 6px; border-radius: 6px; }
.art ul:not(.cards) { display: grid; gap: 10px; margin-block: 10px; padding-left: 4px; }
.art ul:not(.cards) > li { position: relative; padding-left: 22px; }
.art ul:not(.cards) > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }
.art-sec { margin-block: 26px; scroll-margin-top: 96px; }
.art-sec--plain { margin-top: 40px; }
.art-sec--prereq, .art-sec--result, .art-sec--trouble { padding: 18px 22px; border-radius: var(--r-md); border: 1px solid var(--moss-line); background: var(--moss-tint); }
.art-sec--result { border-color: var(--moss-line); background: #f1f5e6; }
.art-sec--trouble { border-color: #ecc9c0; background: var(--terra-tint); }
.art-sec--prereq h2, .art-sec--result h2, .art-sec--trouble h2, .art-sec--steps h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.art-sec--steps h2 { font-size: 1.65rem; margin-bottom: 14px; }
.h-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--moss); }
.art-sec--trouble .h-ico { color: var(--terra); }
.h-ico svg { width: 19px; height: 19px; }
.art-sec--prereq ul, .art-sec--result p:first-of-type, .art-sec--trouble ul { margin-top: 12px; }
.art-sec--trouble strong { color: #8e2f1e; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 4px; margin-block: 8px; }
.steps > li { position: relative; counter-increment: step; padding: 6px 0 14px 54px; max-width: none; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--moss); color: #fff; font: 700 .95rem var(--cond); box-shadow: 0 0 0 5px var(--moss-tint); }
.steps > li::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 2px; width: 2px; background: var(--moss-line); }
.steps > li:last-child::after { display: none; }

/* screenshots */
.shot { margin: 26px 0; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-soft); overflow: hidden; box-shadow: var(--sh-2); cursor: zoom-in; }
.zoom::before { content: ""; display: block; height: 28px; background: #ecebe4; border-bottom: 1px solid #d8d6cc; }
.zoom::after { content: "Ampliar"; position: absolute; right: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(17,17,17,.78); color: #fff; font-size: .75rem; font-weight: 600; opacity: 0; transition: opacity .18s; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.zoom img { width: 100%; margin: 0; border: 0; border-radius: 0; }
.zoom i { display: none; }
.shot figcaption { margin-top: 10px; text-align: center; color: var(--ink-3); font-size: .875rem; }
.lightbox { max-width: min(96vw, 1400px); max-height: 94vh; padding: 14px; border: 0; border-radius: var(--r-md); background: #fff; }
.lightbox::backdrop { background: rgba(17,20,10,.82); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox p { margin-top: 8px; text-align: center; color: var(--ink-2); font-size: .875rem; }
.lightbox__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17,17,17,.78); color: #fff; font-size: 1.5rem; line-height: 1; z-index: 1; }

/* faq, feedback, related */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-2); }
.feedback { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.feedback h2 { font: 600 1.05rem var(--sans); margin: 0; }
.feedback__btns { display: flex; gap: 8px; }
.feedback__thanks { margin: 0 !important; color: var(--moss-deep); font-weight: 600; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.4rem; margin-bottom: 14px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); }
.cards a:hover { border-color: var(--moss); box-shadow: var(--sh-2); }
.cards__cat { font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.cards strong { font-weight: 600; }
.cards a > span:last-child { color: var(--ink-2); font-size: .9rem; }

/* ------------------------------------------------------------- footer */
.ft { background: var(--night); color: var(--night-ink-2); margin-top: 72px; }
.ft__grid { display: grid; gap: 34px; padding-block: 52px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ft__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ft__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }
.ft__img { height: 26px; width: auto; }
.ft__brand p { margin-top: 16px; font-size: .875rem; max-width: 32ch; }
.ft__h { font: 600 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; color: #9a9d8c; margin-bottom: 14px; }
.ft nav { display: grid; gap: 10px; }
.ft nav a { font-size: .875rem; color: inherit; text-decoration: none; }
.ft nav a:hover { color: var(--night-ink); }
.ft__bar { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--night-line); font-size: .75rem; color: #9a9d8c; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------- tables, callouts, section kinds */
.tbl { margin: 18px 0; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--card); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 480px; }
.tbl th, .tbl td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.tbl thead th { background: var(--moss-tint); color: var(--moss-deep); font: 600 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--moss-line); }
.tbl tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: #fbfaf6; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--moss-line); border-left-width: 5px; background: var(--moss-tint); }
.callout p { margin: 0 !important; max-width: none; }
.callout__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--moss); }
.callout__ico svg { width: 18px; height: 18px; }
.callout--warn { border-color: #ecc9c0; border-left-color: var(--terra); background: var(--terra-tint); }
.callout--warn .callout__ico { color: var(--terra); }
.callout--warn strong:first-child { color: #8e2f1e; }
.callout--note { border-color: #cdd8e0; border-left-color: var(--info); background: #eef3f6; }
.callout--note .callout__ico { color: var(--info); }
.callout--note strong:first-child { color: var(--info); }
.art-sec--when, .art-sec--tips, .art-sec--example, .art-sec--limits, .art-sec--next { padding: 18px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-soft); }
.art-sec--when { border-color: var(--moss-line); background: var(--moss-tint); }
.art-sec--limits { border-color: #ecc9c0; background: #fcf4f1; }
.art-sec--limits .h-ico { color: var(--terra); }
.art-sec--when h2, .art-sec--tips h2, .art-sec--example h2, .art-sec--limits h2, .art-sec--next h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.art-sec--example { background: #fff; border-style: dashed; border-color: var(--line-strong); }
.art-sec--when .h-ico, .art-sec--tips .h-ico, .art-sec--example .h-ico, .art-sec--next .h-ico { background: #fff; }
.art-sec--when ul, .art-sec--tips ul, .art-sec--limits ul, .art-sec--next ul, .art-sec--example ul { margin-top: 12px; }
.art h3 { padding-top: 6px; }
.art img { max-width: 100%; height: auto; }

@media print {
  .hdr, .ft, .art-nav, .art-toc, .navbox, .feedback, .subbar, .search, .skip, .lightbox, .zoom::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .art-layout { display: block; }
  .art { max-width: none; }
  .art a { color: #000; text-decoration: none; }
  .art-sec, .callout, .tbl, .shot { break-inside: avoid; box-shadow: none; }
  .art-sec--prereq, .art-sec--result, .art-sec--trouble, .art-sec--when, .art-sec--limits, .callout { background: #fff !important; border-color: #999 !important; }
  .steps > li::after { display: none; }
}

/* category subsections, empty state */
.subsec { margin-bottom: 34px; }
.subsec__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 1.3rem/1.2 var(--cond); letter-spacing: -.01em; }
.subsec__h span { padding: 0 9px; border-radius: 999px; background: var(--moss-tint); color: var(--moss-deep); font: 600 .75rem/1.8 var(--sans); }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-soft); }
.empty strong { font: 700 1.2rem var(--cond); }
.empty p { margin: 6px 0 0; color: var(--ink-2); }
.page-body .article-list { margin-top: 14px; }
.page-body .list-h { margin-top: 36px; }
@media (max-width: 600px) { .tbl table { min-width: 0; font-size: .875rem; } .tbl th, .tbl td { padding: 9px 11px; } .tbl tbody th { white-space: normal; } }
