/* Golden Grading pay pages (save, remove, 404). Built from goldengrading.com's
   own parts (Rock, 2026-09-29: the first version "looked AI-ish"): the gold
   header with the laurel logo, Core Sans D 77 Condensed Black headings and
   Core Sans D 35 body text (the site's own files, self-hosted: font-src and
   img-src stay 'self'), a white page, and the submission form's black step
   bars with gold numbers. Mobile first, 16px gutters. PayPal's card boxes are
   PayPal's iframes: they get the colors, not the fonts (save.js CARD_STYLE). */

@font-face {
  font-family: "GG Condensed";
  src: url("/fonts/CoreSansD77CnBlack.woff2") format("woff2"), url("/fonts/CoreSansD77CnBlack.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GG Sans";
  src: url("/fonts/CoreSansD35Regular.woff2") format("woff2"), url("/fonts/CoreSansD35Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #e5b510;
  --gold-hover: #f2c526;
  --gold-deep: #a8841c;
  --gold-soft: #faf8f2;
  --black: #141414;
  --text: #212529;
  --muted: #5a5a5a;
  --line: #d8d8d8;
  --page: #ffffff;
  --band: #ededed;
  --danger: #a4262c;
  --danger-soft: #fbeaea;
  --gutter: 16px;
  --condensed: "GG Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "GG Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 var(--sans);
}
main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: the site's gold bar and logo --------------------------------------- */

.site-head { background: var(--gold); }
.site-head__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-head__logo {
  display: block;
  width: 76px;
  height: 76px;
}
.site-head__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--condensed);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}
.site-head__lock { flex: none; }

/* Banners (demo and sandbox only) -------------------------------------------- */

.banner {
  max-width: calc(40rem - 2 * var(--gutter));
  margin: 16px var(--gutter) 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.banner p { margin: 0; }
.banner p + p { margin-top: 8px; }
.banner-demo {
  background: #fff4c8;
  color: #2a2100;
  border: 2px dashed var(--black);
}
.banner-test {
  background: var(--gold-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-deep);
}
@media (min-width: 42rem) {
  .banner { margin-left: auto; margin-right: auto; }
}
.demo-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.demo-pick {
  font: inherit;
  font-size: 0.875rem;
  padding: 4px 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--black);
  cursor: pointer;
}
.demo-pick[aria-pressed="true"] { background: var(--black); color: var(--gold); }

/* Page ---------------------------------------------------------------------- */

/* main.wrap: .wrap's own padding would otherwise win over a bare main rule. */
main.wrap { padding-top: 28px; padding-bottom: 12px; }

.panel { margin-bottom: 28px; }
/* Panels take focus only so screen readers follow the step change. */
.panel:focus { outline: none; }

h1, h2, h3 {
  font-family: var(--condensed);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
}
h1 {
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 24px 0 8px;
}
p { margin: 0 0 12px; }
strong { font-weight: 700; }
.lead { font-size: 1.1rem; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mono { font-family: "Courier New", Courier, monospace; font-weight: 700; letter-spacing: 0.05em; }

/* Email and submission ------------------------------------------------------- */

.facts {
  margin: 20px 0 8px;
  padding: 12px 16px;
  border: 2px solid var(--black);
  border-radius: 10px;
}
.facts div { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; }
.facts div + div { margin-top: 4px; }
.facts dt {
  min-width: 7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444444;
}
.facts dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
/* "Not your submission?": the one link inside the page. */
.not-yours { padding-left: 10px; border-left: 4px solid var(--black); }
main a { color: var(--black); text-underline-offset: 2px; }
main a:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* Steps: the submission form's black bars ------------------------------------ */

.step { margin-top: 24px; }
.step__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  background: var(--black);
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.step__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #ffffff;
  font-size: 0.9rem;
}
.step__box {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

/* Authorization -------------------------------------------------------------- */

.consent-text p { font-size: 0.97rem; }
.consent-version { font-size: 0.82rem; margin-bottom: 12px; }

.check {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--gold-soft);
  border: 2px solid var(--gold-deep);
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}
.check input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.check input:disabled, .check input:disabled + span { cursor: not-allowed; opacity: 0.6; }
.check input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

.locked-hint {
  margin: 0;
  padding: 14px;
  border: 1px dashed #b9b9b9;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

/* Card entry ------------------------------------------------------------------ */

.pay-area { transition: opacity 0.15s ease; }
.pay-area.is-locked { opacity: 0.4; filter: grayscale(0.7); }

.field { margin-bottom: 10px; min-width: 0; }
.field-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444444;
}
.pp-field { min-height: 50px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 22rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 9px;
  font-family: var(--condensed);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.btn-primary {
  margin-top: 8px;
  border: 2px solid var(--black);
  background: var(--gold);
  color: var(--black);
}
.btn-primary:not(:disabled):hover { background: var(--gold-hover); }
.btn-secondary {
  width: auto;
  display: inline-block;
  min-height: 48px;
  border: 2px solid var(--black);
  background: #ffffff;
  color: var(--black);
  font-size: 1.05rem;
}
.btn-secondary:hover { background: var(--gold-soft); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.paypal-button { min-height: 48px; }

.pay-loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 12px 0; }
.pay-loading p { margin: 0; }

.pay-status:not(:empty) {
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-deep);
}
.pay-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  color: #4a0f12;
}
.pay-error p { margin: 0; }
.pay-error .btn { margin-top: 10px; }

/* Mock-only pictures of fields. Deliberately not inputs. */
.mock-field {
  min-height: 50px;
  padding: 13px 12px;
  border: 1px dashed #8d8d8d;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #ffffff, #ffffff 8px, #f4f4f4 8px, #f4f4f4 16px);
  color: #777777;
  font-size: 0.95rem;
  user-select: none;
}
.mock-paypal {
  width: 100%;
  min-height: 48px;
  border: 1px dashed var(--black);
  border-radius: 6px;
  background: #ffc439;
  color: #111111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mock-paypal:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* Saved / removed ------------------------------------------------------------- */

.tick {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--black);
}
.tick::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 9px;
  width: 15px;
  height: 28px;
  border: solid var(--black);
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}

/* What happens next ----------------------------------------------------------- */

.next ol { margin: 0; padding-left: 1.3rem; }
.next li { margin-bottom: 8px; }
.next li:last-child { margin-bottom: 0; }
.next li::marker { color: var(--gold-deep); font-family: var(--condensed); }

/* Spinner --------------------------------------------------------------------- */

.spinner {
  width: 38px;
  height: 38px;
  margin: 8px auto 14px;
  border: 4px solid var(--line);
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.spinner.small { width: 20px; height: 20px; margin: 0; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The "still here?" line appears only if the script never replaces this panel. */
.slow { opacity: 0; animation: reveal 0s linear 10s forwards; }
@keyframes reveal { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .pay-area { transition: none; }
}

/* Footer: the site's black band ----------------------------------------------- */

.site-foot {
  margin-top: 12px;
  background: var(--black);
  color: #d6d6d6;
  font-size: 0.85rem;
}
.site-foot__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
}
.site-foot__name {
  margin: 0 0 6px;
  font-family: var(--condensed);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-foot p { margin: 0 0 4px; }
.site-foot .site-foot__links { margin-top: 10px; }
.site-foot a { color: var(--gold); text-underline-offset: 2px; }
.site-foot a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
