/* AstroCEO site footer (sitefoot.js). Same look on every public page. */
.sf { text-align: left; padding: 0; --bg: #070A18; --fg: #F1EDE2; --muted: #A4A9BF; --faint: #6F7693; --gold: #E0B15A; --gold2: #F4D58A; --line: #262E52;
  background: #060915; border-top: 1px solid rgba(224, 177, 90, .25); color: var(--muted); font-family: inherit; font-size: 15px; line-height: 1.6; margin-top: 60px }
.sf a { color: var(--muted); text-decoration: none } .sf a:hover { color: var(--fg) }
.sf-in { max-width: 1180px; margin: 0 auto; padding: 48px 24px 28px }
.sf-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px }
.sf-logo { display: flex; align-items: center; gap: 12px; color: var(--fg) }
.sf-mark { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(224, 177, 90, .35); display: grid; place-items: center; color: var(--gold); font-size: 24px; background: radial-gradient(circle at 50% 40%, rgba(224, 177, 90, .18), transparent 70%) }
.sf-name { font-family: "Marcellus", Georgia, serif; font-size: 1.5rem; line-height: 1 } .sf-name b { color: var(--gold); font-weight: 400 }
.sf-tag { display: block; font-size: .66rem; letter-spacing: .32em; color: var(--gold); margin-top: 6px; text-transform: uppercase }
.sf-blurb { margin: 18px 0 10px; max-width: 380px } .sf-blurb strong { color: var(--gold2); font-weight: 600 }
.sf-why { color: var(--gold) !important; font-size: .92rem }
.sf h4 { margin: 0 0 14px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700 }
.sf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px }
.sf-social { display: flex; gap: 10px; margin-top: 8px }
.sf-social a, .sf-social span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .03) }
.sf-social svg { width: 19px; height: 19px; fill: currentColor }
.sf-follow { margin-top: 22px }
.sf-countries { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 26px }
.sf-countries ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px 20px }
.sf-trust { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; font-size: .9rem }
.sf-trust b { color: var(--fg); font-weight: 600 } .sf-trust .mail { color: var(--gold) }
.sf-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem }
.sf-legal { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; text-align: center; color: var(--faint); font-size: .8rem; line-height: 1.7 }
.sf-legal a { color: var(--faint) } .sf-legal .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; font-size: .84rem }
.sf-legal .links a { color: var(--muted) }
@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 28px }
  .sf-brand { grid-column: 1 / -1 }
  .sf-countries ul { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .sf-trust { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 10px }
}

.sf { box-sizing: border-box; width: 100%; max-width: none !important; clear: both }
.sf *, .sf *::before, .sf *::after { box-sizing: border-box }
.sf h4, .sf p { text-align: inherit }
.sf-social span { color: var(--muted); cursor: default }
.sf-social a:hover { border-color: var(--gold); color: var(--gold) }
.sf[dir="rtl"] { text-align: right }
.sf[dir="rtl"] h4, .sf[dir="rtl"] .sf-tag { letter-spacing: 0 }
.sf[dir="rtl"] .sf-tag { font-size: .8rem }
.sf .sf-badge a { color: var(--muted) }
@media (max-width: 900px) { .sf[dir="rtl"] .sf-trust { align-items: flex-start } }
@media (max-width: 900px) { .sf .sf-in { padding-bottom: 96px } }
/* Phones: the page always fits the screen. No double-tap zoom, no sideways scrolling, and form fields at 16px so iPhone does not zoom in when one is tapped. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation }
html, body { max-width: 100%; overflow-x: clip }
@media (max-width: 700px) { input, select, textarea { font-size: max(16px, 1em) } }
/* Day mode: the footer turns light with the rest of the page */
html.day .sf { --fg: #1E2236; --muted: #4F5674; --faint: #747B98; --gold: #A8741C; --gold2: #8E5F12; --line: #E3E0EC; background: #F6F4FA; border-top-color: rgba(168, 116, 28, .25); color: var(--muted) }
html.day .sf-social a, html.day .sf-social span { background: #fff }
html.day .sf-mark { background: #fff }
/* Tap targets on phones and tablets (28 Nov 2026): at least 44 x 44 CSS px of hit area on every public page.
   Link lists get 44 px rows; single controls get an invisible ::after that grows the hit area only.
   Measured with tools/qa/tap-targets.js; the list is in tools/qa/TAP-TARGETS-2026-11-28.md. */
@media (max-width: 760px), (pointer: coarse) {
  /* form fields never under 16 px, whatever a page's own rule says (iPhone zooms in below that) */
  input:not(#_):not([type=checkbox]):not([type=radio]):not([type=range]), select:not(#_), textarea:not(#_) { font-size: max(16px, 1em) }
  .am-acc select { min-height: 44px }
  /* footer lists */
  .sf ul { row-gap: 0 } .sf ul a { display: flex; align-items: center; gap: .35em; min-height: 44px }
  .sf-why { display: inline-flex; align-items: center; min-height: 44px }
  .sf-social a { width: 44px; height: 44px }
  .sf-trust .mail { display: inline-block; line-height: 44px }
  .sf-trust .sf-badge a { display: inline-block; min-width: 44px; text-align: center; padding: 0 3px; position: relative }
  .sf-trust .sf-badge a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%) }
  .sf-trust .sf-badge:last-child { flex-wrap: wrap; row-gap: 23px }
  .sf-legal .links { gap: 0 6px } .sf-legal .links a { min-width: 44px; line-height: 44px; padding: 0 6px }
  /* page header (sitehead.js, blog.css): logo, the gold button and the menu button */
  .am-zoom button, .vh-top .vh-logo, .vh-top .vh-in, .vh-top .vh-btn, .nav .logo, .nav .btn.small, .sh-burger, .sh-x, .nav nav a, .tc-related > p > a, .tc-all, .box .btn.small, .vh-more a, .vh-all, .lgsw a, .navr .btn { position: relative }
  .am-zoom button::after, .vh-top .vh-logo::after, .vh-top .vh-in::after, .vh-top .vh-btn::after, .nav .logo::after, .nav .btn.small::after, .sh-burger::after, .sh-x::after, .nav nav a::after, .tc-related > p > a::after, .tc-all::after, .box .btn.small::after, .vh-more a::after, .vh-all::after, .navr .btn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%) }
  /* "Read also" lists under guides and calculators: one link per row, rows 44 px */
  .related a { display: flex; align-items: center; min-height: 44px; margin: 0 }
  /* narrow phones: the gold header button clips its label, so the box itself grows; landing header rows sit far enough apart */
  @media (max-width: 380px) { .nav.sh .btn.small { padding-block: 12px } }
  @media (max-width: 420px) { .nav:has(> .navr) { row-gap: 16px } .navr { row-gap: 12px } }
  /* language switches: taller area, same width, so neighbours never overlap */
  .lgsw a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%) }
  .lgsw a { min-width: 44px; text-align: center }
  .nav .logo::after { min-height: 46px }
  label.check { min-height: 44px; align-items: center }
  .vh-langs a { display: inline-block; min-width: 44px; line-height: 44px; padding: 0 4px }
}
