/* 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; }

/* FAQ page only */
.upd { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.jump-wrap { padding-top: 8px; padding-bottom: 4px; }
.faq { padding-top: 0; padding-bottom: 8px; }
.card-night .more { margin: 0; padding: 0; list-style: none; }
.card-night .more li { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.card-night .more a { color: var(--cream); text-underline-offset: 4px; }
.card-night .more a:hover { text-decoration-thickness: 2px; }
