/*
 * SEN2gether website, version 3.1: the homepage's own elements on every other page (layout.php adds class "v3b" and
 * this file over v3.css while the hub's "Homepage look on every page" design is previewed or live; never on the
 * homepage). Quirky but friendly and professional (Max). Each page keeps its own colour (Max: not all the same); the
 * banner gets the homepage's collage (a light blob, a colour circle, the page's symbol in a white disc, a sticker);
 * cards get the homepage's tiles, tool cards, podcast cards and founder photos; the "Join free" card is the homepage's
 * yellow card. No underline strokes (Max). Text contrast AA; on narrow screens the shapes step back so text never
 * sits on them.
 */
html.v3b {
  --b3-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
}

/* ── The page banner: the page's own colour, the homepage's collage ───── */
html.v3b .banner h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; }
html.v3b .banner .crumbs [aria-current] { font-weight: 700; }
/* Narrow screens: one light shape in the corner (lighter behind the dark text, so contrast only rises). */
html.v3b .banner::before { right: -80px; top: -80px; width: 250px; opacity: .3; }
html.v3b .banner .orn { opacity: .55; }

/* Wide screens: the collage on the right. */
@media (min-width: 1100px) {
  html.v3b .banner-in { padding-right: 460px; min-height: 450px; } /* room for the collage (border-box: includes the padding) */
  html.v3b .banner::before { right: max(40px, calc((100% - 1180px) / 2 + 40px)); top: 50%; translate: 0 -54%; width: 320px; opacity: .55; }
  html.v3b .banner::after { content: ''; position: absolute; z-index: 0; right: max(300px, calc((100% - 1180px) / 2 + 300px)); bottom: calc(var(--v3-sl) + 14px);
    width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--v3-lemon); box-shadow: var(--v3-shadow-sm); pointer-events: none; }
  html.v3b .banner[style*="calm-yellow"]::after { background: var(--s2-calm-peach-bg); }
  html.v3b .banner .orn { --o: 196px; z-index: 1; right: max(120px, calc((100% - 1180px) / 2 + 120px)); bottom: auto; top: 50%; translate: 0 -58%;
    padding: 40px; border-radius: 50%; background: #fff; color: var(--accent); opacity: 1; transform: none; box-shadow: var(--v3-shadow); }
}

/* The sticker (b3_sticker()): wide screens only, by the disc. */
html.v3b .b3-sticker { position: absolute; z-index: 2; display: none; place-content: center; width: 116px; height: 116px; padding: 10px; border-radius: 50%;
  background: var(--v3-lemon); color: var(--s2-ink); text-align: center; text-transform: uppercase; line-height: 1; font-family: var(--v3-display); box-shadow: var(--v3-shadow-sm); transform: rotate(12deg); }
html.v3b .b3-sticker small { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; }
html.v3b .b3-sticker b { margin-top: 3px; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
html.v3b .banner[style*="calm-yellow"] .b3-sticker { background: #fff; }
@media (min-width: 1100px) {
  html.v3b .banner .b3-sticker { display: grid; right: max(40px, calc((100% - 1180px) / 2 + 40px)); top: 38px; }
}

/* ── The "Join free" card: the homepage's yellow card ─────────────────── */
html.v3b .closing { background: var(--v3-lemon); color: var(--s2-ink); }
html.v3b .closing h2 { color: var(--s2-ink); }
html.v3b .closing p { color: #3D3A2A; }
html.v3b .closing .orn { color: var(--s2-calm-pink-accent); }
html.v3b .closing .text-btn { color: var(--s2-ink); }
html.v3b .b3-sticker--join { display: none; }
@media (min-width: 720px) { html.v3b .b3-sticker--join { display: grid; right: clamp(20px, 22%, 280px); top: 24px; background: #fff; transform: rotate(-9deg); } }

/* ── Colour cards: the apps' soft tile colours ─────────────────────────── */
/* Cards (.card--soft, .person-card) keep their own soft colours, as the apps' Home tiles and cards with
   theme.soft_tiles on (Max, 20 Nov 2026: "the same colour as the app tiles ... any other similar cards aswell").
   They were repainted in the darker calm set here before. */

html.v3b .card--soft { border-radius: 26px; padding: 28px 28px 30px; box-shadow: none; rotate: -1.1deg; transition: rotate .25s var(--s2-ease-spring), translate .25s var(--s2-ease-spring), box-shadow .2s; }
html.v3b .card--soft:nth-child(3n+2) { rotate: 1deg; }
html.v3b .card--soft:nth-child(3n) { rotate: -.5deg; }
html.v3b .card--soft:hover { rotate: 0deg; translate: 0 -5px; box-shadow: var(--v3-shadow); }
html.v3b .card--soft .card-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
html.v3b .card--soft :is(p, .card-text, .kind-text) { color: inherit; }
/* Linked colour cards: the homepage's navy arrow disc, top right. */
html.v3b a.card--soft { padding-right: 64px; }
html.v3b a.card--soft::after { content: ''; position: absolute; z-index: 1; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--s2-ink) var(--b3-arrow) center / 18px no-repeat; transition: transform .2s; }
html.v3b a.card--soft:hover::after { transform: rotate(-35deg); }

/* ── App content cards (podcasts, topics, wellness, events, widgits): the homepage's podcast cards ── */
html.v3b .ccard { background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--s2-card-edge), var(--v3-shadow-sm); }
html.v3b .ccard-media, html.v3b .ccard .media { border-radius: 18px; box-shadow: 6px 6px 0 var(--b3-ring, var(--s2-calm-yellow-bg)); }
html.v3b .ccards > :nth-child(4n+2) { --b3-ring: var(--s2-calm-mint-bg); }
html.v3b .ccards > :nth-child(4n+3) { --b3-ring: var(--s2-calm-lavender-bg); }
html.v3b .ccards > :nth-child(4n) { --b3-ring: var(--s2-calm-pink-bg); }
html.v3b .ccard-title { font-weight: 800; letter-spacing: -.02em; }
html.v3b .ccards > :nth-child(odd) { rotate: -.6deg; }
html.v3b .ccards > :nth-child(even) { rotate: .5deg; }
html.v3b .ccards > :hover { rotate: 0deg; }

/* ── People: the homepage's founder photos (colour ring offset behind) ── */
html.v3b .person-card .avatar, html.v3b .person-photo { box-shadow: 0 0 0 4px #fff, 7px 6px 0 4px var(--bg, var(--s2-calm-yellow-bg)); }
html.v3b .person-card:nth-child(odd) .avatar { rotate: -3deg; }
html.v3b .person-card:nth-child(even) .avatar { rotate: 3deg; }

/* ── Link cards: the homepage's tool cards ────────────────────────────── */
html.v3b .link-card { background: #fff; padding: 18px 18px 16px; min-height: 160px; box-shadow: inset 0 0 0 1.5px var(--s2-card-edge), 0 3px 0 var(--s2-card-edge); }
html.v3b .link-card .disc { width: 48px; height: 48px; margin-bottom: 8px; }
html.v3b .link-card .disc .ms { font-size: 24px; }
html.v3b .link-card .card-title { font-size: 1.125rem; font-weight: 800; }
html.v3b .lc-go { margin-top: auto; padding-top: 10px; color: var(--s2-ink); }
html.v3b .lc-go .ms { font-size: 20px; transition: transform .15s; }
html.v3b .link-card:hover .lc-go .ms { transform: translateX(4px); }
html.v3b .card--tool .ink-disc { background: var(--v3-lemon); color: var(--s2-ink); }

/* ── Breathing room (Max: "text heavy, dense ... less overwhelming") ───── */
/* Sections twice as far apart, a clear gap under each title, wider gaps between cards, roomier cards and lists. */
html.v3b .section--tight { padding: 36px 0; }
@media (min-width: 900px) { html.v3b .section--tight { padding: 56px 0; } html.v3b .section { padding: 88px 0; } }
html.v3b .sec-title, html.v3b .sec-head { margin-bottom: 22px; }
html.v3b .sec-title + .lead-text { margin-top: -8px; }
html.v3b .lead-text { margin-bottom: 34px; line-height: 1.6; }
html.v3b .grid { gap: 22px; }
@media (min-width: 900px) { html.v3b .grid { gap: 30px; } }
html.v3b .kind-card { gap: 12px; }
html.v3b :is(.kind-text, .card--soft p) { line-height: 1.6; }
/* The corner ornament gets its own room under the words, so it never sits on them. */
html.v3b .kind-card:has(> .orn) { padding-bottom: 76px; }
html.v3b .kind-card .orn { width: 92px; height: 92px; right: -20px; bottom: -20px; }
/* Long reads */
html.v3b .prose > * + * { margin-top: 20px; }
html.v3b .prose h2 { margin-top: 52px; }
html.v3b .prose h3 { margin-top: 34px; }
html.v3b .prose li + li { margin-top: 10px; }
html.v3b .prose :is(h2, h3) + * { margin-top: 12px; }
/* Steps: roomier cards; side by side, each card fills its column (the shorter one no longer drops lower) */
html.v3b .step { padding-bottom: 28px; }
html.v3b .step-body { padding: 24px 26px 26px; gap: 10px; }
html.v3b .step-body p { line-height: 1.65; }
@media (min-width: 900px) {
  html.v3b .steps--row { gap: 30px; }
  html.v3b .steps--row .step { grid-template-rows: auto 1fr; }
}
/* Tick lists: more air between lines; the plain words lighter so only the bold lead-ins stand out */
html.v3b .checks { gap: 18px; margin-top: 26px; }
html.v3b .checks li { gap: 14px; font-weight: 500; line-height: 1.55; }
html.v3b .checks li strong { font-weight: 800; }
html.v3b .checks + p { margin-top: 30px; }

/* Quotes and SENChat groups: a gentle tilt like the homepage cards */
html.v3b .quote-card, html.v3b .chat-group { rotate: -.6deg; transition: rotate .25s var(--s2-ease-spring); }
html.v3b .quote-card:nth-child(even), html.v3b .chat-group:nth-child(even) { rotate: .6deg; }
html.v3b .quote-card:hover, html.v3b .chat-group:hover { rotate: 0deg; }

@media (prefers-reduced-motion: reduce) {
  html.v3b .card--soft, html.v3b .quote-card, html.v3b .chat-group, html.v3b .lc-go .ms, html.v3b a.card--soft::after { transition: none !important; }
  html.v3b .card--soft:hover { translate: none; }
}
