/* =====================================================================
   Sub-pages: About, Articles, single article, Links.
   Loaded after style.css and uses its tokens.
   ===================================================================== */

.container { padding-inline: var(--gutter); }
.page-section { padding-block: clamp(2.5rem, 6vw, 5rem) var(--sec); }
.page-title { font-size: clamp(2.5rem, 6.4vw, 5.6rem); max-width: 16ch; margin-block-end: clamp(2rem, 4vw, 3.5rem); text-wrap: balance; }

/* ---------- long-form text ---------- */
.prose { max-width: 68ch; font-size: 1.125rem; }
.prose > * + * { margin-block-start: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.15; margin-block-start: clamp(2.5rem, 5vw, 3.5rem); padding-block-start: 1.25rem; border-block-start: 1px solid var(--mist); }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-block-start: 2rem; }
[dir="rtl"] .prose h2, [dir="rtl"] .prose h3 { letter-spacing: 0; line-height: 1.5; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a:not(.btn) { color: var(--ink); border-block-end: 1px solid var(--violet); }
.prose a:not(.btn):hover { color: var(--violet); }
.prose .chips a { border: 0; }
.prose .chips a:hover { color: #fff; }
.prose blockquote { border-inline-start: 3px solid var(--violet); padding-inline-start: 1.1rem; font-family: var(--font-display); font-size: 1.3rem; }
.prose img { border-radius: var(--radius); }

/* Placeholder text still to be written by the owner */
.todo { background: var(--white); border: 1.5px dashed var(--mist); border-radius: 14px; padding: 0.9rem 1.1rem; font-size: 0.98rem; }
.prose p.todo { color: var(--violet-deep); }

.disclaimer { background: var(--mist-soft); border-radius: 14px; padding: 0.9rem 1.1rem; font-size: 0.98rem; }
.prose p.disclaimer { color: var(--ink); }

/* ---------- articles ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-block: -1.5rem 2rem; color: var(--ink-soft); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.article-meta a { color: var(--ink); border-block-end: 1px solid var(--violet); }
.article-summary { max-width: 68ch; margin-block-end: 2rem; background: var(--white); border-inline-start: 4px solid var(--violet); border-radius: 14px; padding: 1.2rem 1.4rem; }
.article-summary h2, .toc h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-block-end: 0.5rem; }
.article-summary p { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.toc { max-width: 68ch; margin-block-end: 2.5rem; padding-block: 1.1rem; border-block: 1px solid var(--mist); }
.toc ol { list-style: decimal; padding-inline-start: 1.4rem; display: grid; gap: 0.3rem; color: var(--ink-soft); }
.toc a { border-block-end: 1px solid transparent; }
.toc a:hover { color: var(--violet); border-color: currentColor; }
.prose h2[id], .prose h3[id] { scroll-margin-block-start: 6rem; }
.prose .faq h3 { margin-block-start: 1.6rem; }
.prose .faq h3 + p { margin-block-start: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: start; padding: 0.6rem 0.75rem; border-block-end: 1px solid var(--mist); }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-soft); }
.prose code { background: var(--mist-soft); border-radius: 6px; padding: 0.1rem 0.35rem; font-size: 0.92em; }
.prose pre { background: var(--ink); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-block-start: 1px solid var(--mist); margin-block: 2.5rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; max-width: 68ch; margin-block-end: 2rem; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.article-list a { background: var(--white); border-radius: 20px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 12rem; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.article-list a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(1, 3, 62, 0.08); }
.article-list time { color: var(--ink-soft); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.article-list h2, .article-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.5; }
.article-list p { margin-block-start: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- /links/ ---------- */
.page-bare main { min-height: 100vh; display: grid; place-items: start center; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3rem; }
.links-page { position: relative; width: 100%; max-width: 30rem; text-align: center; }
.links-lang { position: absolute; inset-block-start: 0; inset-inline-end: 0; color: var(--ink-soft); font-size: 0.95rem; padding: 0.4rem; }
.links-lang:hover { color: var(--ink); }
.links-lang[lang="ar"] { font-family: var(--font-arabic); }
.links-lang[lang="en"] { font-family: var(--font-body); }
.links-avatar { width: 8.25rem; height: 8.25rem; margin-inline: auto; border-radius: 50%; overflow: hidden; background: var(--mist); }
.links-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.links-name { margin-block-start: 1.25rem; font-weight: 600; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.25; display: flex; flex-direction: column; }
.links-name [lang="en"] { font-family: "Inter Tight", sans-serif; letter-spacing: -0.03em; }
.links-name [lang="ar"] { font-family: var(--font-arabic); font-weight: 700; }
.links-bio { margin-block-start: 0.6rem; color: var(--ink-soft); }
.links-list { display: grid; gap: 0.6rem; margin-block: 1.75rem; }
.link-btn { height: 3.5rem; width: 100%; justify-content: flex-start; padding-inline: 1.25rem; background: var(--white); font-size: 1.05rem; }
.link-btn svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--violet); transition: color 0.25s; }
.link-btn:hover { background: var(--ink); color: #fff; }
.link-btn:hover svg { color: #fff; }
.links-notice { background: var(--mist-soft); border-radius: 14px; padding: 0.9rem 1.1rem; font-size: 0.92rem; text-align: start; }

/* ---------- blog topics, companies, portfolio ---------- */
.page-title + .page-lead { margin-block-start: calc(clamp(2rem, 4vw, 3.5rem) * -0.6); }
.page-lead { max-width: 56ch; margin-block-end: 2rem; color: var(--ink-soft); font-size: 1.15rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1.25rem; font-size: 0.92rem; }
.crumbs a { background: var(--white); border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 500; }
.crumbs a:hover { background: var(--ink); color: #fff; }
.topic-chips { margin-block-end: 2rem; }
.chips a[aria-current] { background: var(--ink); color: #fff; }
.chips a[aria-current]::before { background: #fff; }
.empty { background: var(--white); border-radius: 20px; padding: 2rem 1.4rem; color: var(--ink-soft); max-width: 68ch; }
.after-list { margin-block-start: 1.5rem; max-width: 68ch; }
.badge { align-self: flex-start; margin-block-start: auto; background: var(--mist-soft); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; font-weight: 500; }
.ticker { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--violet); letter-spacing: 0.02em; }
.muted { color: var(--ink-soft); }
.sub-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-block: clamp(2.5rem, 5vw, 4rem) 1.25rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-block: 1.5rem 0; }
.facts dt { font-size: 0.88rem; color: var(--ink-soft); }
.facts dd { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-block-start: 2rem; }
.stat { background: var(--white); border-radius: 20px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat > span { font-size: 0.9rem; color: var(--ink-soft); }
.stat b { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; text-align: start; }
.stat b small { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.stat em { font-style: normal; font-weight: 600; font-size: 0.95rem; text-align: start; }
:root { --gain: #14744a; --loss: #b3261e; }
.stat.is-gain { background: #e6f3ec; } .stat.is-gain b, .stat.is-gain em, td.gain { color: var(--gain); }
.stat.is-loss { background: #fbe9e7; } .stat.is-loss b, .stat.is-loss em, td.loss { color: var(--loss); }
td.gain, td.loss { font-weight: 600; }
.fine-note { margin-block-start: 1rem; max-width: 80ch; font-size: 0.92rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: 20px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 40rem; }
.ledger th { text-align: start; font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); padding: 1rem 1.1rem 0.7rem; white-space: nowrap; }
.ledger td { padding: 0.85rem 1.1rem; border-block-start: 1px solid var(--mist-soft); vertical-align: top; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td.note { white-space: normal; min-width: 16rem; color: var(--ink-soft); }
.ledger a { border-block-end: 1px solid var(--violet); }
.type { display: inline-block; border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; font-weight: 500; background: var(--mist-soft); }
.type-buy { background: #e6f3ec; color: var(--gain); }
.type-sell { background: #fbe9e7; color: var(--loss); }
.method { max-width: 68ch; display: grid; gap: 0.5rem; color: var(--ink-soft); padding-inline-start: 1.2rem; list-style: disc; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.demo-banner { background: #fff4d6; color: #5c4300; border-radius: 14px; padding: 0.9rem 1.1rem; font-weight: 600; margin-block-end: 1rem; max-width: 68ch; }

/* ---------- portfolio page: a board of cards ---------- */
.pf .crumbs { align-items: center; }
.pf-sample { background: #fff4d6; color: #5c4300; border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem; font-weight: 600; }
.pf-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-block-end: clamp(1.25rem, 2.5vw, 2rem); }
.pf-top .page-title { margin: 0; font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.pf-lead { max-width: 52ch; color: var(--ink-soft); margin-block-start: 0.6rem; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-chips li { background: var(--white); border: 1px solid #dfe1ec; border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.9rem; color: var(--ink-soft); }
.pf-chips b { color: var(--ink); font-weight: 600; }

.pf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.pf-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.2rem, 2.2vw, 1.75rem); margin: 0; box-shadow: 0 1px 2px rgba(1, 3, 62, 0.04), 0 12px 32px -16px rgba(1, 3, 62, 0.12); }
.pf-card h2 { font-size: 1.5rem; margin-block-end: 1.1rem; }
.pf-lbl { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.pf .gain { color: var(--gain); }
.pf .loss { color: var(--loss); }
.pf-pill { display: inline-block; border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.9rem; font-weight: 600; background: #eef0f6; color: var(--ink); white-space: nowrap; }
.pf-pill.gain { background: #dff5ea; color: #08653f; }
.pf-pill.loss { background: #fde5e2; color: #a3271f; }

/* value + line chart */
.pf-hero { grid-column: span 8; }
.pf-hero-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pf-big { display: block; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.05; margin-block: 0.2rem 0.6rem; font-variant-numeric: tabular-nums; }
[dir="rtl"] .pf-big { text-align: end; }
.pf-big small { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); margin-inline-start: 0.5rem; }
.pf-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.pf-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.pf-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #eef0f6; }
.pf-seg button { padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.pf-seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(1, 3, 62, 0.15); }
.pf-chart { position: relative; margin-block-start: 1.1rem; touch-action: pan-y; }
.pf-chart svg { display: block; overflow: visible; }
.pf-chart text { font-size: 12px; fill: #7b7ea0; font-family: var(--font-body); }
.pf-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--white); border: 1px solid #dfe1ec; border-radius: 14px; padding: 0.65rem 0.9rem; white-space: nowrap; box-shadow: 0 10px 28px rgba(1, 3, 62, 0.16); line-height: 1.35; }
.pf-tip small { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.pf-tip b { display: block; font-family: "Inter Tight", sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.pf-tip span { display: block; font-size: 0.95rem; font-weight: 600; }
.pf-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-block-start: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.pf-key[hidden] { display: none; }
.pf-key li { display: flex; align-items: center; gap: 0.5rem; }
.pf-key i { width: 1.1rem; border-block-start: 2.5px solid #2f6fed; }
.pf-key li + li i { border-block-start: 2px dashed #7b7ea0; }
.pf-empty { margin-block-start: 1.5rem; color: var(--ink-soft); }

/* key figures */
.pf-side { grid-column: span 4; display: flex; flex-direction: column; gap: 1rem; }
.pf-figs { flex: 1; display: flex; flex-direction: column; justify-content: space-around; padding-block: 0.6rem; }
.pf-figs li { display: flex; align-items: center; gap: 0.85rem; padding-block: 0.85rem; border-block-start: 1px solid #eef0f6; }
.pf-figs li:first-child { border: 0; }
.pf-ic { width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; background: #eef0f6; display: grid; place-items: center; flex: none; }
.pf-ic svg { width: 1.25rem; height: 1.25rem; }
.pf-figs li > div b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.pf-figs li > div small { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.pf-figs li > div { flex: 1; min-width: 0; }
.pf-figs .pf-num { font-size: 1.35rem; white-space: nowrap; }
.pf-tile { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; min-height: 6.5rem; padding: 1.3rem; }
.pf-num { display: block; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
[dir="rtl"] .pf-num { text-align: end; }
.pf-num small { font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.pf-sub { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-block-start: 0.2rem; }
[dir="rtl"] .pf-tile .pf-sub[dir="ltr"] { text-align: end; }
.pf-tile-dark { grid-column: span 2; background: var(--ink); color: #fff; min-height: 8.5rem; }
.pf-tile-dark .pf-lbl, .pf-tile-dark .pf-sub, .pf-tile-dark .pf-num small { color: var(--on-dark-soft); }
.pf-tile-dark .pf-num { font-size: clamp(2rem, 3.2vw, 2.75rem); }

/* where the money is */
.pf-alloc { grid-column: span 4; }
.pf-ring { position: relative; width: min(100%, 17.5rem); margin: 1.25rem auto 2rem; }
.pf-ring svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.pf-ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.pf-ring-mid > span { font-size: 0.82rem; color: var(--ink-soft); }
.pf-ring-mid b { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 2.5rem; letter-spacing: -0.03em; }
.pf-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.25rem; font-size: 0.9rem; }
.pf-legend li { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pf-legend i { width: 0.65rem; height: 0.65rem; border-radius: 3px; flex: none; }
.pf-legend b { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* holdings */
.pf-hold { grid-column: span 8; }
.pf-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: center; padding-block: 0.85rem; border-block-start: 1px solid #eef0f6; }
.pf-row-head { border: 0; padding-block: 0 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }
.pf-row > :nth-child(n+3) { text-align: end; }
[dir="rtl"] .pf-row > [dir="ltr"]:nth-child(n+3) { text-align: start; }
.pf-who { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pf-av { width: 2.6rem; height: 2.6rem; border-radius: 0.85rem; display: grid; place-items: center; flex: none; color: #fff; font-style: normal; font-weight: 700; font-size: 0.72rem; }
.pf-who b { display: block; font-weight: 600; line-height: 1.3; }
.pf-who b a:hover { color: var(--violet); }
.pf-who small { display: block; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; }
.pf-bar { display: flex; align-items: center; gap: 0.65rem; }
.pf-bar i { flex: 1; height: 8px; border-radius: 99px; background: #eef0f6; overflow: hidden; }
.pf-bar u { display: block; height: 100%; border-radius: 99px; }
.pf-bar b { font-size: 0.9rem; font-weight: 600; min-width: 3.2rem; text-align: end; font-variant-numeric: tabular-nums; }
.pf-val b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-val small, .pf-pl small { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.pf-pl small { margin-block-start: 0.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pf-note { margin-block-start: 1.25rem; max-width: 90ch; font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .pf-hero, .pf-side, .pf-alloc, .pf-hold { grid-column: 1 / -1; }
  .pf-tile-dark { min-height: 0; }
}
@media (max-width: 700px) {
  .pf-ctl { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; }
  .pf-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; }
  .pf-row > .pf-bar, .pf-row-head > :nth-child(2) { display: none; }
  .pf-who small { display: none; }
}
[dir="rtl"] .pf-figs li > div small[dir="ltr"] { text-align: end; }

/* try it with your own numbers */
.pf-calc { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.pf-calc-lead { color: var(--ink-soft); margin-block: -0.5rem 1.25rem; max-width: 36ch; }
.pf-field { display: block; margin-block-start: 1.1rem; }
.pf-field > span:first-child { display: block; font-size: 0.9rem; font-weight: 600; margin-block-end: 0.4rem; }
.pf-input { display: flex; align-items: center; gap: 0.5rem; background: #f5f6fa; border: 1.5px solid #dfe1ec; border-radius: 16px; padding-inline: 1rem; direction: ltr; transition: border-color 0.2s, background-color 0.2s; }
.pf-input:focus-within { border-color: var(--violet); background: var(--white); }
.pf-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; padding-block: 0.7rem; font-variant-numeric: tabular-nums; }
.pf-input i { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }
.pf-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.5rem; direction: ltr; }
[dir="rtl"] .pf-picks { justify-content: flex-end; }
.pf-picks button { border: 1px solid #dfe1ec; border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.pf-picks button:hover { border-color: var(--ink); color: var(--ink); }
.pf-calc-out { background: #f5f6fa; border-radius: 20px; padding: clamp(1.1rem, 2vw, 1.6rem); min-width: 0; }
.pf-calc-out .pf-big { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.pf-calc-note { font-size: 0.8rem; color: var(--ink-soft); margin-block-start: 0.9rem; max-width: 80ch; }
@media (max-width: 900px) { .pf-calc { grid-template-columns: 1fr; } }
.pf-calc-form { min-width: 0; }
.pf-input input { width: 100%; }
.pf-calc-stats { display: grid; grid-template-columns: 1.3fr 1.15fr 1.15fr auto; gap: 0.6rem; margin-block-end: 0.5rem; }
.pf-calc-stats > div { background: var(--white); border-radius: 16px; padding: 0.9rem 1rem; min-width: 0; }
.pf-calc-stats > .main { background: var(--ink); color: #fff; }
.pf-calc-stats dt { font-size: 0.82rem; color: var(--ink-soft); margin-block-end: 0.25rem; }
.pf-calc-stats > .main dt, .pf-calc-stats > .main small { color: var(--on-dark-soft); }
.pf-calc-stats dd { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
[dir="rtl"] .pf-calc-stats dd { text-align: end; }
.pf-calc-stats > .main dd { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.pf-calc-stats dd small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.pf-calc-stats .pf-pill { font-size: 1rem; }
.pf-calc-h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-block: 1.4rem 0.6rem; }
.pf-calc-table { background: var(--white); border-radius: 16px; max-height: 21rem; overflow: auto; }
.pf-calc-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.pf-calc-table th, .pf-calc-table td { padding: 0.6rem 1rem; text-align: end; white-space: nowrap; border-block-start: 1px solid #eef0f6; font-weight: 500; }
[dir="rtl"] .pf-calc-table td { text-align: start; }
.pf-calc-table th:first-child { text-align: start; }
.pf-calc-table thead th { position: sticky; top: 0; background: var(--white); border: 0; font-size: 0.8rem; color: var(--ink-soft); box-shadow: 0 1px 0 #eef0f6; }
.pf-calc-table td.strong { font-weight: 600; }
@media (max-width: 1100px) { .pf-calc-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .pf-calc-stats { grid-template-columns: 1fr; } }
