/* Explo info pages (FAQ, changelog). Same look as support.html and the blog: light page, navy ink, Satoshi (max Medium 500),
   lime only as a filled button / chip with navy ink. No pure white anywhere. Generated into website/faq/faq.css and
   website/changelog/changelog.css by the build scripts: edit scripts/site-pages/*.css, not the output. */
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f7f7f2;
  --fg: #041122;
  --muted: #465260;
  --line: rgba(2, 13, 27, 0.16);
  --soft: rgba(2, 13, 27, 0.06);
  --soft-2: rgba(2, 13, 27, 0.035);
  --link: #4a6400;
  --link-hover: #364a00;
  --night: #041122;
  --cream: #d8d8cb;
  --lime: #c6f24e;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 18px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; }
strong { font-weight: 500; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible, .btn:focus-visible, summary:focus-visible, .jump a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 20; background: var(--night); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--cream); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(238, 238, 229, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: 22px; line-height: 1; }
.brand:hover { color: var(--fg); }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { color: var(--fg); text-decoration: none; font-size: 17px; }
.bar nav a:not(.btn):hover, .bar nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); color: var(--night); text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1; padding: 13px 22px; border-radius: 999px; transition: background .2s ease; white-space: nowrap; }
.btn:hover { background: #d4f76e; color: var(--night); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(2, 13, 27, 0.35); }
.btn-ghost:hover { background: var(--soft); color: var(--fg); }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 20px; }
.tag { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-weight: 500; font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; margin: 0 0 18px; text-wrap: balance; letter-spacing: -0.01em; }
.dek { font-size: 22px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; max-width: 640px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* jump links (chips) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1; transition: background .2s ease, border-color .2s ease; }
.jump a:hover { background: var(--soft); border-color: rgba(2, 13, 27, 0.3); color: var(--fg); }

/* two-column groups: sticky heading left, content right */
.grp { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 48px; margin: 0; padding: 44px 0 0; }
.grp > h2, .grp > h3 { grid-column: 1; align-self: start; position: sticky; top: 96px; font-weight: 500; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; margin: 0; padding-top: 14px; text-wrap: balance; }
.grp > .body { grid-column: 2; min-width: 0; }

/* accordion */
.q { border-top: 1px solid var(--line); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; font-weight: 500; font-size: 20px; line-height: 1.3; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); transition: background .2s ease; }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--fg); border-radius: 1px; }
.q summary i::after { transform: rotate(90deg); transition: transform .25s ease; }
.q summary:hover i { background: var(--soft); }
.q[open] summary i::after { transform: rotate(0deg); }
.q .a { padding: 0 2px 8px; max-width: 660px; }
.q .a p { margin: 0 0 14px; }
.q:target summary span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.q strong { font-weight: 500; }

/* status chips */
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; }
.chip-next { background: var(--lime); color: var(--night); }
.chip-web { background: var(--night); color: var(--cream); }
.chip-wip { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(2, 13, 27, 0.4); }
.chip-topic { background: var(--soft); color: var(--muted); }

/* night card (contact / suggest) */
.contact { padding-top: 56px; padding-bottom: 8px; }
.card-night { margin: 0 auto; max-width: 1080px; padding: 44px 40px; border-radius: 28px; background: var(--night); color: var(--cream); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.card-night h2 { margin: 0 0 12px; font-weight: 500; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; text-wrap: balance; }
.card-night p { margin: 0 0 22px; color: rgba(216, 216, 203, 0.78); font-size: 17px; line-height: 1.6; max-width: 520px; }
.card-night .btn { background: var(--cream); color: var(--night); }
.card-night .btn:hover { background: #c9c9bb; color: var(--night); }
.card-night .addr { margin: 16px 0 0; font-size: 15px; color: rgba(216, 216, 203, 0.7); }
.card-night a:not(.btn) { color: var(--cream); }
.incl { border-left: 1px solid rgba(216, 216, 203, 0.22); padding-left: 32px; }
.incl ul { margin: 0; padding: 0; list-style: none; }
.incl .tag { color: rgba(216, 216, 203, 0.6); margin-bottom: 16px; }
.incl li { position: relative; padding-left: 26px; margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: rgba(216, 216, 203, 0.9); }
.incl li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 6px; border-left: 1.5px solid var(--cream); border-bottom: 1.5px solid var(--cream); transform: rotate(-45deg) translateY(-3px); opacity: .85; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 72px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; max-width: 360px; }
.foot-brand .brand { font-size: 20px; }
.foot-brand .brand img { width: 28px; height: 28px; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-content: flex-start; font-size: 16px; }
.foot nav a { color: var(--fg); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .grp { grid-template-columns: 1fr; padding-top: 36px; }
  .grp > h2, .grp > h3 { position: static; padding-top: 0; margin: 0 0 14px; }
  .grp > .body { grid-column: 1; }
  .card-night { grid-template-columns: 1fr; padding: 34px 26px; gap: 28px; }
  .incl { border-left: 0; padding-left: 0; border-top: 1px solid rgba(216, 216, 203, 0.22); padding-top: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding-top: 48px; }
  .dek { font-size: 20px; }
  .bar nav { gap: 14px; }
  .bar nav a:not(.btn) { font-size: 16px; }
  .btn { padding: 12px 18px; font-size: 15px; }
  .q summary { font-size: 19px; }
  .card-night { border-radius: 24px; }
}
@media (max-width: 400px) {
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .bar nav { gap: 12px; }
  .bar .btn { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
::selection { background: var(--lime); color: #020d1b; }

/* Visa alerts page only */
.panel { padding-top: 8px; padding-bottom: 8px; max-width: 760px; }
.card { background: var(--soft-2); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: block; }
.card:focus { outline: none; }
.card h2 { margin: 0 0 10px; font-weight: 500; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; text-wrap: balance; }
.card p { margin: 0 0 16px; }
.field { margin: 0 0 20px; }
.field label, .only summary { display: block; font-weight: 500; font-size: 16px; margin: 0 0 8px; }
.field select, .field input, .add input { width: 100%; min-height: 52px; padding: 0 16px; font: 400 18px/1.2 var(--font); color: var(--fg); background: var(--bg); border: 1px solid rgba(2, 13, 27, 0.35); border-radius: 14px; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select:focus-visible, .field input:focus-visible, .add input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #a4262c; }
.only { margin: 0 0 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.only summary { cursor: pointer; margin: 0; list-style: none; display: flex; align-items: baseline; gap: 8px; }
.only summary::-webkit-details-marker { display: none; }
.only summary::before { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: rotate(-45deg); transition: transform .2s ease; align-self: center; margin-right: 4px; }
.only[open] summary::before { transform: rotate(45deg); }
.only summary span { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 16px; margin: 10px 0 12px !important; }
.add { display: flex; gap: 10px; }
.add .btn { flex: none; min-height: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--soft); font-size: 16px; font-weight: 500; }
.chips button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); font: 400 20px/1 var(--font); cursor: pointer; }
.chips button:hover { background: rgba(2, 13, 27, 0.12); }
.chips button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.btn.big { width: 100%; min-height: 56px; font-size: 18px; border: 0; cursor: pointer; font-family: var(--font); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
button.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { cursor: pointer; font-family: var(--font); border: 0; }
.err { margin: 8px 0 0 !important; color: #a4262c; font-size: 16px; }
.fine { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.how { padding-top: 56px; max-width: 760px; }
.how h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; margin: 0 0 18px; }
.steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; margin: 0 0 18px; padding-left: 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 500; }

@media (max-width: 720px) {
  .card { padding: 24px 20px; border-radius: 20px; }
  .add { flex-direction: column; }
  .add .btn { width: 100%; }
}
