/* The /calculators hub and the hub links on the two calculator pages (lib_calculators_hub.mjs). Loaded only on those three
   pages; site.css is unchanged. Colours are the site tokens (site.css :root); the look follows the approved designer preview
   (packages/website-article-template-2026-11-21/calculators-hub-*.png, calculator-result-*.png). */

/* Hub */
main.calc-hub { padding: 0; }
.ch-band { position: relative; overflow: hidden; background: var(--mist); padding-block: 32px 56px; }
.ch-band::before, .ch-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ch-band::before { width: 300px; height: 300px; right: -200px; top: -210px; border: 28px solid var(--accent-container); opacity: .8; }
.ch-band::after { width: 220px; height: 220px; right: -140px; top: -160px; border: 1.5px solid #4d88cc; }
.ch-wrap { position: relative; z-index: 1; }
.ch-head { max-width: 760px; padding-right: 72px; }
.ch-head h1 { margin: 0 0 12px; font-size: 2.25rem; line-height: 2.75rem; font-weight: 600; letter-spacing: 0; color: var(--fg); }
.ch-intro { margin: 0; color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }
.ch-group { margin-top: 40px; }
.ch-group h2 { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; color: var(--fg); }
.ch-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ch-card { background: var(--lowest); border-radius: 28px; padding: 24px 20px; box-shadow: 0 1px 2px rgba(8, 31, 63, .06), 0 2px 8px rgba(8, 31, 63, .05); }
.ch-main { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.ch-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--accent); }
.ch-icon svg { width: 24px; height: 24px; }
.ch-text h3, .ch-quick h3 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; color: var(--fg); }
.ch-text p { margin: 0; color: var(--muted); line-height: 1.625rem; }
.ch-start { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 100px; background: var(--accent-container); color: var(--on-accent-container); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.ch-start:hover { background: color-mix(in srgb, var(--on-accent-container) 8%, var(--accent-container)); }
.ch-start .icon { width: 20px; height: 20px; }
.ch-guides { list-style: none; margin: 20px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; }
.ch-guides a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; line-height: 1.375rem; }
.ch-quick { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.ch-quick h3 { margin: 0; }
@media (min-width: 840px) {
  .ch-band { padding-block: 56px 80px; }
  .ch-band::before { width: 720px; height: 720px; right: -300px; top: -420px; border-width: 48px; }
  .ch-band::after { width: 520px; height: 520px; right: -170px; top: -300px; }
  .ch-head { padding-right: 0; }
  .ch-head h1 { font-size: 2.75rem; line-height: 3.25rem; }
  .ch-group { margin-top: 48px; }
  .ch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ch-card { padding: 28px; }
  .ch-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 32px; }
  .ch-wide .ch-guides { margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--line); align-content: start; }
  .ch-quick { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ch-quick .ch-start { grid-column: auto; }
}

/* Calculator pages: "All calculators" under the breadcrumb */
.calc-all { margin: 4px 0 0; }
.calc-all a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: .875rem; font-weight: 500; }
.calc-all .icon { width: 18px; height: 18px; }

/* Calculator pages: related guides (and, only at the both-stores gate, the app line) after the result console */
.calc-after { display: grid; gap: 24px; max-width: 720px; }
.calc-related ul { list-style: none; margin: 0; padding: 4px 20px; background: var(--lowest); border-radius: 24px; box-shadow: 0 1px 2px rgba(8, 31, 63, .06), 0 2px 8px rgba(8, 31, 63, .05); }
.calc-related li + li { border-top: 1px solid var(--line); }
.calc-related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-block: 8px; font-size: 1.0625rem; line-height: 1.5rem; }
.calc-related a .icon { width: 20px; height: 20px; }
.calc-top .calc-app-line p { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.75rem; }
.calc-app-line a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; font-size: 1.0625rem; }
.calc-app-line .icon { width: 20px; height: 20px; }
@media (min-width: 1000px) {
  .calc-after-app { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .calc-after-app .calc-app-line { padding-top: 24px; }
}
