/* pagiro.app. One stylesheet, no framework, self-hosted open fonts.
   Palette from the app: sage #9EB484 (was lime #C4EA6C until 2026-10-15), iris #B8A7FF, ink #1F2420, paper #F7F9F3, dark #0F1210. */

/* Fonts, as on tdhsoft.com: Nunito (body) and Baloo 2 (headings), both SIL OFL 1.1, self-hosted (the CSP allows
   no other origin). Variable fonts, one file per subset (latin, latin-ext, vietnamese); licences in assets/fonts/. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/nunito-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/nunito-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/baloo2-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/baloo2-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/baloo2-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --bg: #F7F9F3;
  --surface: #FFFFFF;
  --surface-2: #EEF2E6;
  --text: #1F2420;
  --muted: #4A524B;
  --line: #D9DFD0;
  --link: #3D5A00;
  --lime: #9EB484;
  --lime-ink: #1F2420;
  --iris: #B8A7FF;
  --iris-ink: #1F2420;
  --tile: #F7F9F3;
  --focus: #5B45D6;
  --hero-fade: linear-gradient(90deg, #F7F9F3 0%, rgba(247, 249, 243, .92) 34%, rgba(247, 249, 243, 0) 64%);
  /* Corners as in the app (moderate, 2026-10-16): small items 4-6, fields and chips 8, cards and buttons 12 (no pill
     buttons), sheets and large panels 16. --radius-round only for things that are truly round (bars, dots). */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-field: 8px;
  --radius-chip: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-round: 999px;
  --wrap: 72rem;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1210;
    --surface: #171B18;
    --surface-2: #1D221E;
    --text: #EEF1EA;
    --muted: #B5BDB3;
    --line: #2C332D;
    --link: #9EB484;
    --tile: #F7F9F3;
    --focus: #B8A7FF;
    --hero-fade: linear-gradient(90deg, #0F1210 0%, rgba(15, 18, 16, .9) 34%, rgba(15, 18, 16, 0) 64%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25em; }
li + li { margin-top: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: var(--radius-field); font-weight: 700;
}
.skip:focus { top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 4px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }

/* Language menu: <details>, works without JavaScript */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-chip);
  font-weight: 600; display: inline-flex; gap: 6px; align-items: center; min-height: 40px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "\25BE"; font-size: .8em; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 12rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.lang li + li { margin: 0; }
.lang a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.lang a:hover { background: var(--surface-2); }
.lang a[aria-current="true"] { font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero__body { position: relative; padding: 40px 0 36px; }
.hero__body .wrap > div { max-width: 36rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.hero .lead { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); font-weight: 700; margin: 0;
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.hero__facts li { margin: 0; padding: 4px 12px; border-radius: var(--radius-chip); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

@media (max-width: 759px) {
  .hero__art { aspect-ratio: 4 / 3; max-height: 300px; width: 100%; }
}
@media (min-width: 760px) {
  .hero { min-height: 520px; display: flex; align-items: center; }
  .hero__art { position: absolute; inset: 0; }
  .hero__art::after { content: ""; position: absolute; inset: 0; background: var(--hero-fade); }
  .hero__body { padding: 72px 0; width: 100%; z-index: 1; }
}

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 44rem; margin-bottom: 28px; }
.section__head p { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: .5em 0 0; color: var(--muted); }

.tile { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.tile__icon { width: 56px; height: 56px; padding: 8px; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--line); }
.tile__icon img { width: 100%; height: 100%; }
.tile h3 { margin: 0 0 .2em; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.ext { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.tools li { margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.tools img { width: 40px; height: 40px; padding: 5px; border-radius: var(--radius-field); background: var(--tile); flex: none; }
.tools__group { margin: 28px 0 12px; font-size: 1.05rem; }
.pro {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--iris); color: var(--iris-ink);
  font-size: .75rem; font-weight: 800; letter-spacing: .03em; line-height: 1.6; vertical-align: middle;
}
.tools .pro { margin-left: auto; }

.split { display: grid; gap: 24px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

.promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.promise li { margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--lime); }
.promise strong { display: block; font-size: 1.1rem; margin-bottom: .2em; }
.promise span { color: var(--muted); }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-bottom: 20px; }
.plan { position: relative; }
.plan--featured { border: 2px solid var(--iris); }
.plan__tag { position: absolute; top: -12px; left: 18px; }
.note { color: var(--muted); font-size: .95rem; }

/* FAQ and support */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; transition: background-color .15s; }
.faq details[open] { background: var(--surface-2); border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px 16px 20px; font-weight: 700; min-height: 56px; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0 4px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--link); }
.faq details > :not(summary) { padding: 0 20px; margin: 0 0 .8em; }
.faq details > :last-child { padding-bottom: 18px; margin-bottom: 0; }
.faq details[open] > summary { padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details { transition: none; } }
.doc.faq h2 { display: flex; align-items: center; gap: 10px; margin: 2.2em 0 .8em; }
.doc.faq h2::before { content: ""; width: 6px; height: 1.1em; border-radius: var(--radius-round); background: var(--lime); flex: none; }
.pagelinks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.25em 0 0; }
.pagelinks li { margin: 0; }
.pagelinks a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-chip);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none;
}
.pagelinks a:hover { border-color: var(--link); }
.contact-card {
  display: grid; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--lime);
}
.contact-card p { margin: 0; }
.contact-card .muted { color: var(--muted); }
@media (min-width: 640px) { .contact-card { grid-template-columns: 1fr auto; } }

/* Text pages (privacy, terms, support) */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: var(--wrap); }
/* Pages share the header's container, so the title starts under the logo; running text keeps a readable measure,
   wide blocks (tables, plan cards, guide sections) get more room. */
.doc .wrap > *, .guide .wrap > * { max-width: 48rem; }
.doc .wrap > :is(.table-wrap, .plans, .guide-cards, .gsec, .guide-pager, .guide-toc, .pagelinks),
.guide .wrap > :is(.table-wrap, .plans, .guide-cards, .gsec, .guide-pager, .guide-toc, .pagelinks) { max-width: 64rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: 16px; }
.doc .updated { color: var(--muted); }
.callout { padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); border-left: 6px solid var(--iris); margin: 1.25em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
th { background: var(--surface-2); }
.toc { padding: 14px 18px 14px 2.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* 404 */
.notfound { padding: 72px 0; text-align: center; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: var(--radius-lg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav li { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer address { font-style: normal; }

[dir="rtl"] .lang ul { right: auto; left: 0; }
[dir="rtl"] .tools .pro { margin-left: 0; margin-right: auto; }
[dir="rtl"] .plan__tag { left: auto; right: 18px; }
[dir="rtl"] .callout { border-left: 0; border-right: 6px solid var(--iris); }
@media (min-width: 760px) { [dir="rtl"] .hero__art img { transform: scaleX(-1); } [dir="rtl"] .hero__art::after { transform: scaleX(-1); } }
.after { margin-top: 20px; }
.cta--center { justify-content: center; }
#pro .split { grid-template-columns: 1fr; gap: 8px; }
#pro .split > div:first-child { max-width: 46rem; }

/* User guide */
.guide { padding: 32px 0 64px; }
.guide .wrap { max-width: var(--wrap); }
.guide .lead { max-width: 46rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.guide-toc { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc li { margin: 0; }
.guide-toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: var(--radius-chip);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem;
}
.guide-toc a:hover { border-color: var(--link); }
.gsec { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 20px; align-items: start; }
.gsec:first-of-type { border-top: 0; }
.gsec h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); scroll-margin-top: 16px; }
.gsec h3 { margin-top: 1.2em; }
.gsec ol, .gsec ul { padding-left: 1.4em; }
.gsec ol > li::marker { font-weight: 800; color: var(--muted); }
@media (min-width: 860px) { .gsec { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
.shot { margin: 0; justify-self: center; width: 100%; max-width: min(300px, 78%); }
@media (min-width: 860px) { .shot { max-width: 300px; } }
.shot img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.path { font-weight: 700; white-space: normal; }
.tip { padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); border-left: 5px solid var(--lime); margin: 1em 0; font-size: .97rem; }
[dir="rtl"] .tip { border-left: 0; border-right: 5px solid var(--lime); }
.guide-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 24px 0; }
.guide-card { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.guide-card:hover { border-color: var(--link); }
.guide-card strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .2em; }
.guide-card span { color: var(--muted); font-size: .97rem; }
.guide-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Free vs Pro and file formats */

.scroll-hint { display: none; font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 720px) { .scroll-hint { display: block; } }
.table-wrap:focus-visible { outline-offset: 2px; }
table caption { text-align: left; font-weight: 700; padding: 0 0 8px; caption-side: top; }
.cmp { min-width: 0; }
.cmp td.c, .cmp th.c { text-align: center; width: 6.5rem; }
@media (max-width: 560px) {
  .cmp { font-size: .92rem; }
  .cmp th, .cmp td { padding: 8px 8px; }
  .cmp td.c, .cmp th.c { width: 3.6rem; font-size: .85rem; }
  .cmp tr.grp th { font-size: 1rem; }
}
.cmp tr.only-pro th[scope="row"] { box-shadow: inset 4px 0 0 var(--iris); }
.cmp tbody th { font-weight: 600; background: var(--surface); }
.cmp tr.grp th { background: var(--surface-2); font-family: var(--font-head); font-size: 1.05rem; }
.cmp .yes { color: var(--link); font-weight: 800; }
.cmp .no { color: var(--muted); }
.fmt { min-width: 60rem; font-size: .95rem; }
.fmt th[scope="row"] { width: 9rem; }
.fmt small { display: block; color: var(--muted); font-size: .85rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.legend li { margin: 0; }

/* User guide: list of pages on the left, content on the right (wide screens) */
.guide-side { display: none; }
@media (min-width: 1000px) {
  .guide .wrap.guide-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 48px; align-items: start; }
  .guide-side {
    display: block; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 8px 4px 16px 0; border-right: 1px solid var(--line); font-size: .95rem;
  }
  [dir="rtl"] .guide-side { border-right: 0; border-left: 1px solid var(--line); padding: 8px 0 16px 4px; }
  .guide-side__title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
  .guide-side ol { list-style: none; margin: 0; padding: 0; }
  .guide-side li { margin: 0; }
  .guide-side a {
    display: block; padding: 7px 12px; border-radius: var(--radius-field); color: var(--text); text-decoration: none; line-height: 1.35;
  }
  .guide-side a:hover { background: var(--surface); color: var(--link); }
  .guide-side .is-current > a { background: var(--surface-2); font-weight: 800; }
  .guide-side__sections { margin: 4px 0 8px 12px !important; border-left: 2px solid var(--line); }
  [dir="rtl"] .guide-side__sections { margin: 4px 12px 8px 0 !important; border-left: 0; border-right: 2px solid var(--line); }
  .guide-side__sections a { padding: 5px 12px; font-size: .9rem; color: var(--muted); border-radius: 0 var(--radius-field) var(--radius-field) 0; }
  [dir="rtl"] .guide-side__sections a { border-radius: var(--radius-field) 0 0 var(--radius-field); }
  .guide-main { min-width: 0; }
  .guide .crumbs, .guide .guide-toc { display: none; }
}
.guide-main > * { max-width: 48rem; }
.guide-main > :is(.table-wrap, .plans, .guide-cards, .gsec, .guide-pager, .guide-toc) { max-width: 64rem; }

/* Blog (tools/build.mjs): the list of posts and one post. Text column as wide as the guide's; pictures are 1200x630. */
.blog .post-feed { margin: 4px 0 24px; font-size: .95rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card a:hover strong, .post-card a:focus-visible strong { text-decoration: underline; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; background: var(--surface-2); }
.post-card__text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.post-card__text strong { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; }
.post-card__text > span:not(.post-meta) { color: var(--muted); }
.post-meta { color: var(--muted); font-size: .9rem; }
.post .wrap > * { max-width: 46rem; }
.post .wrap > .post-more { max-width: 72rem; }
.post .crumb { margin: 0 0 4px; font-size: .95rem; }
.post-hero { margin: 16px 0 28px; }
.post-hero img, .pic img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; }
.post-body { font-size: 1.06rem; line-height: 1.7; }
.post-body h2 { margin-top: 2em; }
.post-body .shot { margin: 28px auto; display: block; }
.pic { margin: 28px 0; }
.pic figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.post-cta { margin: 40px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.post-cta p { margin: 4px 0; }
.post-more { margin-top: 48px; }
.post-list--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
