/* Topic hub v3: F4 contact band, F6 explore, F7 advantages, F8 Get in Touch form, F9 FAQ, mobile sticky bar. */

/* ---------- F4 contact band (slim) ---------- */
.topic-v3 .v3-section.tv3-band-wrap { padding: 24px 0; }
.topic-v3 .tv3-band { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-panel); background: var(--l100); }
.topic-v3 .tv3-band-h { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; font-weight: 600; }
.topic-v3 .tv3-band-text, .topic-v3 .tv3-band-text p { margin-top: 6px; font-size: 17px; color: var(--mute); }
.topic-v3 .tv3-band-actions { display: grid; gap: 12px; }
.topic-v3 .tv3-band-actions .v3-btn { background: var(--white); word-break: break-word; }
@media (min-width: 768px) {
    .topic-v3 .tv3-band { grid-template-columns: minmax(0, 1fr) auto; padding: 32px 40px; }
    .topic-v3 .tv3-band-actions { grid-auto-flow: column; }
}
@media (min-width: 1024px) { .topic-v3 .v3-section.tv3-band-wrap { padding: 40px 0; } }

/* ---------- F6 other topics + partners ---------- */
.topic-v3 .tv3-tgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.topic-v3 .tv3-tgrid > li { display: flex; }
.topic-v3 .tv3-tile { flex: 1 1 auto; justify-content: center; position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 88px; padding: 20px 52px 20px 22px; text-decoration: none; color: var(--ink); }
.topic-v3 .tv3-tile-name { font-family: var(--v3-head); font-size: 18px; font-weight: 600; line-height: 1.3; }
.topic-v3 .tv3-tile-count { font-size: 16px; color: var(--mute); }
.topic-v3 .tv3-tile-arrow { position: absolute; right: 20px; top: 50%; margin-top: -8px; color: var(--brand-deep); transition: transform var(--t-fast) var(--ease); }
@media (pointer: fine) { .topic-v3 .tv3-tile:hover .tv3-tile-arrow { transform: translateX(3px); } }
.topic-v3 .tv3-topic-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.topic-v3 .tv3-topic-row .v3-link { font-size: 18px; }
.topic-v3 .tv3-topic-count { color: var(--mute); }
.topic-v3 .tv3-partners { margin-top: 48px; }
.topic-v3 .tv3-partners .v3-head { margin-bottom: 20px; }
.topic-v3 .tv3-logos { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-v3 .tv3-logos li { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; padding: 10px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-card); }
.topic-v3 .tv3-logos img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter var(--t-base) ease, opacity var(--t-base) ease; }
.topic-v3 .tv3-logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 768px) { .topic-v3 .tv3-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .topic-v3 .tv3-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topic-v3 .tv3-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) and (min-height: 620px) {
    .topic-v3 .v3-fold .tv3-partners { margin-top: clamp(24px, 6vh, 64px); }
    .topic-v3 .v3-fold .tv3-partners .v3-head { margin-bottom: clamp(10px, 2vh, 20px); }
    .topic-v3 .v3-fold .tv3-tile { min-height: 0; padding-top: clamp(12px, 1.8vh, 20px); padding-bottom: clamp(12px, 1.8vh, 20px); }
    .topic-v3 .v3-fold .tv3-logos li { aspect-ratio: auto; height: clamp(52px, 7.4vh, 80px); }
}

/* ---------- F7 advantages ---------- */
.topic-v3 .tv3-agrid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.topic-v3 .tv3-acard { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.topic-v3 .tv3-aicon { width: 44px; height: 44px; }
.topic-v3 .tv3-aicon img { width: 24px; height: 24px; object-fit: contain; }
.topic-v3 .tv3-aname { font-size: 20px; line-height: 1.25; font-weight: 600; }
.topic-v3 .tv3-atext, .topic-v3 .tv3-atext p { font-size: 16px; line-height: 1.6; color: var(--mute); }
@media (min-width: 768px) { .topic-v3 .tv3-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    /* 3 columns; a short last row is centred (3 + 2 for the default five blocks) */
    .topic-v3 .tv3-agrid { display: flex; flex-wrap: wrap; justify-content: center; }
    .topic-v3 .tv3-agrid > li { flex: 0 1 calc((100% - 40px) / 3); }
}
@media (min-width: 1024px) and (min-height: 620px) {
    .topic-v3 .v3-fold .tv3-acard { padding: clamp(18px, 2.6vh, 26px); }
}

/* ---------- F8 Get in Touch ---------- */
.topic-v3 .tv3-git-grid { display: grid; gap: 24px; }
.topic-v3 .tv3-git-card { padding: 28px; display: grid; gap: 10px; align-content: start; }
.topic-v3 .tv3-git-h2 { margin: 0 0 6px; color: var(--on-dark); }
.topic-v3 .tv3-git-h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); line-height: 1.2; font-weight: 600; color: var(--on-dark); }
.topic-v3 .tv3-git-sub, .topic-v3 .tv3-git-sub p { font-size: 18px; color: var(--on-dark-2); }
.topic-v3 .tv3-git-list { display: grid; gap: 4px; margin-top: 8px; }
.topic-v3 .tv3-git-list li { display: flex; align-items: center; gap: 10px; color: var(--l300); }
.topic-v3 .tv3-git-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; word-break: break-word; }
.topic-v3 .tv3-git-form { padding: 24px; }
@media (min-width: 1024px) {
    .topic-v3 .tv3-git-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: stretch; }
    .topic-v3 .tv3-git-card { padding: 40px 36px; align-content: center; }
    .topic-v3 .tv3-git-form { padding: 28px 32px; }
}

/* Form: the old #contact_form markup, restyled. Never set display on .input-fields (Company rows keep their inline display:none). */
.topic-v3 .tv3-form p, .topic-v3 .tv3-form label { margin: 0; }
.topic-v3 .tv3-form .funding > p { font-size: 16px; font-weight: 600; letter-spacing: .06em; color: var(--mute); margin-bottom: 10px; }
.topic-v3 .tv3-form .funding > p span { color: var(--danger); }
.topic-v3 .tv3-fund-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topic-v3 .tv3-form .select-name { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 2px solid var(--l200); border-radius: var(--r-choice); background: var(--white); cursor: pointer; text-align: center; transition: border-color var(--t-base) ease, background var(--t-base) ease; }
.topic-v3 .tv3-form .select-name:hover { border-color: var(--l300); }
.topic-v3 .tv3-form .select-name .select-hide { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.topic-v3 .tv3-form .select-name p { font-size: 16px; font-weight: 500; color: var(--ink); }
.topic-v3 .tv3-form .select-name.select-active { border-color: var(--brand); background: var(--l100); box-shadow: 0 0 0 1px var(--brand) inset; }
.topic-v3 .tv3-form .select-name:has(input:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }
.topic-v3 .tv3-form .funding label .error, .topic-v3 .tv3-form .funding p .error { display: none; }
.topic-v3 .tv3-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 16px; margin-top: 18px; }
.topic-v3 .tv3-form .input-fields { position: relative; width: 100%; margin: 0; }
.topic-v3 .tv3-form .input-fields > img { width: 8px; height: 8px; margin: 0 6px 2px 0; vertical-align: middle; }
.topic-v3 .tv3-form .input-fields > label { font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.topic-v3 .tv3-form .input-fields > input:not([type=hidden]), .topic-v3 .tv3-form .input-fields > textarea, .topic-v3 .tv3-form .mob {
    width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--l300); border-radius: 12px;
    background: var(--white); font-size: 16px; color: var(--ink); outline: none; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.topic-v3 .tv3-form .input-fields > input:focus, .topic-v3 .tv3-form .input-fields > textarea:focus, .topic-v3 .tv3-form .mob:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 53, 233, .14); }
.topic-v3 .tv3-form .mob { position: relative; padding: 0 14px; }
.topic-v3 .tv3-form .phonecode-field { display: flex; align-items: center; width: 100%; min-height: 45px; }
.topic-v3 .tv3-form .phonecode-field .country-code { width: 56px; min-height: 44px; border: 0; background: transparent; font-size: 16px; color: var(--ink-2); outline: none; }
.topic-v3 .tv3-form .phonecode-field .prefix { min-width: 44px; padding: 0 6px 0 10px; border-left: 1px solid var(--l200); font-size: 16px; color: var(--mute); }
.topic-v3 .tv3-form .phonecode-field input { margin: 0; min-height: 44px; padding: 0; border: 0; box-shadow: none; }
.topic-v3 .tv3-form .phonecode-field input:focus { box-shadow: none; }
.topic-v3 .tv3-form .input-message { margin-top: 14px; }
.topic-v3 .tv3-form textarea { min-height: 0; height: auto; resize: none; }
.topic-v3 .tv3-form ::placeholder { color: #8A7DA0; opacity: 1; }
.topic-v3 .tv3-form .is-invalid { border-color: var(--danger) !important; }
.topic-v3 .tv3-form label.error, .topic-v3 .tv3-form .error { font-size: 16px !important; }
.topic-v3 .tv3-form .form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.topic-v3 .tv3-form .form-consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.topic-v3 .tv3-form .form-consent label { font-size: 16px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.topic-v3 .tv3-form .consent-error { display: none; }
.topic-v3 .tv3-form .consent-error p { margin-top: 8px; font-size: 16px; color: var(--danger); }
.topic-v3 .tv3-form .buttons { margin-top: 18px; }
.topic-v3 .tv3-form .buttons .btn-primary.v3-btn { width: 100%; padding: 12px 22px; border-radius: 14px; background: var(--amber); color: var(--ink); font-size: 17px; }
.topic-v3 .tv3-form .buttons .btn-primary.v3-btn:hover { background: var(--amber-hover); }
@media (min-width: 640px) { .topic-v3 .tv3-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .topic-v3 .tv3-form .buttons .btn-primary.v3-btn { width: auto; min-width: 220px; }
}
@media (min-width: 1024px) and (min-height: 620px) {
    .topic-v3 .v3-fold .tv3-fields { margin-top: 14px; gap: 10px 16px; }
    .topic-v3 .v3-fold .tv3-form .input-message { margin-top: 10px; }
    .topic-v3 .v3-fold .tv3-form .form-consent { margin-top: 12px; }
    .topic-v3 .v3-fold .tv3-form .buttons { margin-top: 14px; }
}

/* ---------- F9 FAQ ---------- */
.topic-v3 .tv3-faq-wrap { max-width: calc(var(--measure) + 64px); }
.topic-v3 .tv3-faq-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.topic-v3 .tv3-faq-all { font-size: 16px; }
.topic-v3 .tv3-faq-list { border-top: 1px solid var(--l200); }
.topic-v3 .tv3-q { border-bottom: 1px solid var(--l200); }
.topic-v3 .tv3-q-h { margin: 0; font-size: inherit; }
.topic-v3 .tv3-q-btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px; padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.topic-v3 .tv3-q-text { font-family: var(--v3-head); font-size: 18px; line-height: 1.4; font-weight: 600; }
.topic-v3 .tv3-q-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--l100); transition: background var(--t-base) ease, transform var(--t-slow) var(--ease); }
.topic-v3 .tv3-q-icon::before, .topic-v3 .tv3-q-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand-deep); transition: transform var(--t-slow) var(--ease); }
.topic-v3 .tv3-q-icon::after { transform: rotate(90deg); }
.topic-v3 .tv3-q-btn[aria-expanded="true"] .tv3-q-icon { background: var(--brand); }
.topic-v3 .tv3-q-btn[aria-expanded="true"] .tv3-q-icon::before, .topic-v3 .tv3-q-btn[aria-expanded="true"] .tv3-q-icon::after { background: var(--white); }
.topic-v3 .tv3-q-btn[aria-expanded="true"] .tv3-q-icon::after { transform: rotate(0deg); }
@media (pointer: fine) { .topic-v3 .tv3-q-btn:hover .tv3-q-text { color: var(--brand-deep); } }
/* base.css hides every [hidden] with !important; until-found must stay findable (content-visibility instead of display) */
.topic-v3 .tv3-a[hidden="until-found"] { display: block !important; content-visibility: hidden; }
.topic-v3 .tv3-a-inner { padding: 0 52px 24px 0; }
.topic-v3 .tv3-a.is-opening .tv3-a-inner { animation: tv3AnswerIn 320ms var(--ease) both; }
@keyframes tv3AnswerIn { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .topic-v3 .tv3-a-inner { padding-right: 0; } }

/* ---------- Mobile sticky bar (<768px; motion.js) ---------- */
.topic-v3 .tv3-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--white); box-shadow: 0 -1px 0 rgba(31, 3, 45, .08), 0 -10px 28px -10px rgba(31, 3, 45, .3);
    transform: translateY(110%); visibility: hidden; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.topic-v3 .tv3-sticky.is-visible { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease), visibility 0s linear 0s; }
.topic-v3 .tv3-sticky .v3-btn { min-height: 48px; padding: 10px 14px; }
.topic-v3 .tv3-sticky-main { flex: 1.6 1 0; min-width: 0; }
.topic-v3 .tv3-sticky-call { flex: 1 1 0; min-width: 0; background: var(--white); }
@media (min-width: 768px) { .topic-v3 .tv3-sticky { display: none; } }
@media (forced-colors: active) { .topic-v3 .tv3-sticky { border-top: 1px solid CanvasText; } }

/* ---------- QA fixes (28 Nov 2026) ---------- */
/* One or two other topics: centred tiles (the same component as the 3x2 grid), never a lone text link */
@media (min-width: 768px) {
    .topic-v3 .tv3-tgrid-few { margin: 0 auto; }
    .topic-v3 .tv3-tgrid-1 { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
    .topic-v3 .tv3-tgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
}
/* Partner logos: one optical size. Each logo sits in the same box, capped by height AND width, at full strength
   greyscale, so small wordmarks are not faint and bold marks do not dominate. */
.topic-v3 .tv3-logos li { aspect-ratio: auto; height: 64px; padding: 12px 14px; }
@media (min-width: 1024px) { .topic-v3 .tv3-logos li { height: 80px; } }
.topic-v3 .tv3-logos img { width: auto; height: auto; max-width: 78%; max-height: 40px; filter: grayscale(1) contrast(1.1); opacity: .85; mix-blend-mode: multiply; }
@media (min-width: 1024px) and (min-height: 620px) {
    .topic-v3 .v3-fold .tv3-logos li { height: 80px; }
}
/* The contact band takes the surface of the fold above it: on the lavender surface its panel turns white so it still reads as a panel */
.topic-v3 .v3-l100 .tv3-band { background: var(--white); box-shadow: var(--shadow-card); }
