/* Category pages as a story (cms/hub.php, hub-pages skill; Brabbels design board C of 2026-10-15, same file).
   Loaded by View::extraCss() on hub pages only. Chapter and tile colours come in as --c (solid);
   soft backgrounds are mixed from it, so they work in dark mode too. */

.hb { padding-top: 20px; --c: var(--tint-ink); }
.hb-sec { margin-top: 64px; }
.hb-h, .hb-sec-h h2 { font-size: clamp(28px, 4.2vw, 36px); letter-spacing: -.02em; }
.hb-h { margin-bottom: 20px; }
.hb-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.hb-sec-h a { color: var(--tint-ink); font-size: 15px; font-weight: 600; }
.hb-sec-h a:hover { text-decoration: underline; }
.hb-noimg { display: block; background: color-mix(in srgb, var(--c) 16%, var(--bg)); }

/* top: title and lead next to the photo with its small card */
.hb-top { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hb-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.hb-top-txt { position: relative; min-width: 0; }
.hb-top .cms-crumbs { color: var(--tint-ink); font-weight: 600; }
.hb-top h1 { margin-top: 14px; font-size: clamp(46px, 8.5vw, 88px); line-height: .95; letter-spacing: -.04em; }
.hb-lead { margin-top: 20px; max-width: 32em; font-family: var(--serif); font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; color: var(--ink-2); }
.hb-lead > * + * { margin-top: .6em; }
.hb-lead a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hb-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 600; }
.hb-btn:hover { border-color: var(--ink-3); }
.hb-btn-main { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.hb-btn-main:hover { opacity: .9; }
.hb-top-img { position: relative; min-width: 0; margin: 0 18px 18px 0; }
.hb-top-img::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border-radius: 36px; background: color-mix(in srgb, var(--tint-ink) 14%, var(--bg)); }
.hb-top-img img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; }
.hb-top-img figcaption { position: absolute; left: -12px; bottom: 28px; padding: 12px 18px; border-radius: 18px; background: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.35; }
.hb-top-img figcaption b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.hb-top-img figcaption span { color: var(--ink-2); }

/* week and month journey: the structure as before, restyled */
.hb-tri { display: grid; gap: 14px; }
@media (min-width: 900px) { .hb-tri { grid-template-columns: 13fr 14fr 15fr; } .hb-tri.hb-tri-one { grid-template-columns: 1fr; } }
.hb-tri-c { min-width: 0; padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--tint-ink) 9%, var(--bg)); }
.hb-tri-c:nth-child(2) { background: color-mix(in srgb, var(--tint-ink) 13%, var(--bg)); }
.hb-tri-c:nth-child(3) { background: color-mix(in srgb, var(--tint-ink) 18%, var(--bg)); }
.hb-tri-c h3 { margin-bottom: 14px; font-size: 24px; }
.hb-tri-c h3 span { margin-left: 6px; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.hb-weeks, .hb-months { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hb-weeks { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.hb-weeks a { display: grid; place-items: center; height: 44px; border-radius: 99px; background: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-weeks a.hb-mark { background: var(--tint-ink); color: var(--bg); }
.hb-months { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.hb-months a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 72px; border-radius: 20px; background: var(--bg); line-height: 1.1; }
.hb-months b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.hb-months small { color: var(--ink-2); font-size: 12px; }
.hb-weeks a:hover, .hb-months a:hover { background: var(--ink); color: var(--bg); }
.hb-months a:hover small { color: var(--bg); }
.hb-journey-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.hb-journey-key span { display: inline-flex; align-items: center; gap: 8px; }
.hb-journey-key i { width: 14px; height: 14px; border-radius: 99px; background: var(--tint-ink); }
.hb-journey-key a { color: var(--tint-ink); font-weight: 600; }

/* tiles */
.hb-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.hb-tile { display: flex; align-items: center; gap: 14px; min-height: 88px; height: 100%; padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--c) 13%, var(--bg)); }
.hb-tile:hover { background: color-mix(in srgb, var(--c) 22%, var(--bg)); }
.hb-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 99px; background: var(--c); color: #fff; }
.hb-tile b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.15; }
.hb-tile small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.hb-tile-dark { background: var(--ink); color: var(--bg); }
.hb-tile-dark:hover { background: var(--ink); opacity: .92; }
.hb-tile-dark .hb-ico { background: var(--bg); color: var(--ink); }
.hb-tile-dark small { color: color-mix(in srgb, var(--bg) 80%, var(--ink)); }

/* in het kort */
.hb-kort { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.hb-kort h2 { grid-column: 1 / -1; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tint-ink); }
.hb-kort p { padding: 22px; border-radius: 22px; background: var(--soft); font-size: 16.5px; line-height: 1.55; }
.hb-kort a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* the hub's own timeline */
.hb-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hb-tl li { min-width: 0; }
.hb-tl-n { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--tint-ink) 14%, var(--bg)); color: var(--tint-ink); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.hb-tl-first .hb-tl-n { background: var(--tint-ink); color: var(--bg); }
.hb-tl b { display: block; margin-top: 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tint-ink); }
.hb-tl p { margin-top: 6px; font-size: 16px; line-height: 1.5; }

/* the story in chapters */
.hb-story { margin-top: 64px; }
.hb-ch { display: grid; gap: 18px 48px; padding: 48px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .hb-ch { grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 260px); } }
.hb-ch-h, .hb-ch-body, .hb-more { min-width: 0; }
.hb-ch h2 { font-size: clamp(27px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -.02em; }
.hb-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--c); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hb-label i { width: 10px; height: 10px; border-radius: 99px; background: var(--c); }
.hb .hb-ch-body { max-width: 640px; margin-top: 0; }
.hb-more > p { margin-bottom: 10px; color: var(--ink-3); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hb-more a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.hb-more a:hover span { color: var(--accent); }
.hb-more img, .hb-more .hb-noimg { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.hb-panel { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; margin: 8px 0; padding: 32px 24px; border: 0; border-radius: 32px; background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.hb-panel + .hb-ch { border-top: 0; }
@media (min-width: 760px) { .hb-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 48px; } }
.hb-panel h2 { font-size: clamp(30px, 3.8vw, 40px); }
.hb-panel .cms-body { margin-top: 16px; }
.hb-panel-txt { min-width: 0; }
.hb-panel-img { display: block; min-width: 0; }
.hb-panel-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.hb-panel-img span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 18px; }
.hb-panel-img:hover span { color: var(--accent); }
.hb-panel-more { margin-top: 16px; font-size: 15.5px; }
.hb-panel-more a { color: var(--accent); }
.hb-story .promo { margin: 8px auto 40px; }

/* new, most read, forum, A-Z */
.hb-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hb-cards a { display: block; }
.hb-cards img, .hb-cards .hb-noimg { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 20px; object-fit: cover; }
.hb-cards b { display: block; margin-top: 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; }
.hb-cards a:hover b { color: var(--accent); }
.hb-top6 { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hb-top6 li { min-width: 0; }
.hb-top6 a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hb-n { flex: none; width: 1.3em; text-align: center; font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; color: var(--c); }
.hb-top6 img, .hb-top6 .hb-noimg { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.hb-t { min-width: 0; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.hb-top6 a:hover .hb-t { color: var(--accent); }
.hb-forum ul { list-style: none; margin: 0; padding: 6px 20px; border-radius: 20px; background: var(--soft); }
.hb-forum li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 16px; }
.hb-forum li + li { border-top: 1px solid var(--line); }
.hb-forum li > a { min-width: 0; }
.hb-forum li span { flex: none; color: var(--ink-3); font-size: 14px; }
.hb-forum li a:hover { color: var(--accent); }
.hb-az { border-block: 1px solid var(--line); }
.hb-az summary { display: flex; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.hb-az summary::-webkit-details-marker { display: none; }
.hb-az summary h2 { flex: 1; font-size: clamp(21px, 2.6vw, 26px); }
.hb-az summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.hb-az[open] .cms-faq-pm::after { transform: rotate(0); }
.hb-az ul { list-style: none; margin: 0 0 20px; padding: 0; columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .hb-az ul { columns: 2; } }
@media (min-width: 1000px) { .hb-az ul { columns: 3; } }
.hb-az li { break-inside: avoid; padding: 6px 0; font-size: 15px; line-height: 1.4; }
.hb-az a:hover { color: var(--accent); }
.hb-tl-n i { width: 12px; height: 12px; border-radius: 99px; background: currentColor; }
.hb-tile > span:last-child { min-width: 0; overflow-wrap: break-word; }
.hb-tile b { hyphens: auto; }
@media (min-width: 900px) { .hb-ch-wide .hb-ch-body { grid-column: 2 / -1; max-width: 720px; } }

/* ---- the week picker (week hub and /pregnancy; CmsWeeks), as Brabbels' journey ---- */
.hb-tri { display: grid; gap: 14px; }
@media (min-width: 900px) { .hb-tri { grid-template-columns: 13fr 14fr 15fr; } }
.hb-tri-c { min-width: 0; padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--tint-ink) 9%, var(--bg)); }
.hb-tri-c:nth-child(2) { background: color-mix(in srgb, var(--tint-ink) 13%, var(--bg)); }
.hb-tri-c:nth-child(3) { background: color-mix(in srgb, var(--tint-ink) 18%, var(--bg)); }
.hb-tri-c h3 { margin-bottom: 14px; font-size: 24px; }
.hb-tri-c h3 span { margin-left: 6px; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.hb-weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.hb-weeks a { display: grid; place-items: center; height: 44px; border-radius: 99px; background: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-weeks a.hb-mark { background: var(--tint-ink); color: var(--bg); }
.hb-weeks a:hover { background: var(--ink); color: var(--bg); }
.hb-journey-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.hb-journey-key span { display: inline-flex; align-items: center; gap: 8px; }
.hb-journey-key i { width: 14px; height: 14px; border-radius: 99px; background: var(--tint-ink); }
.hb-journey-key a { color: var(--tint-ink); font-weight: 600; }
