/* Shared skeleton for the five prototype archetypes.
 *
 * Not loaded by the three original media: product_catalog has no archetype
 * stylesheet, so site.css remains exactly what it was.
 *
 * Every colour here resolves through theme.css, which is generated from each
 * site's config.yaml. That is what lets five visually distinct media share
 * one layout skeleton — the shapes are common, the palette and type are not.
 */

.ax-wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.ax-eyebrow,
.ax-issue {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.ax-h1 {
  margin: 16px 0 20px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.ax-h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3.2vw, 35px);
  letter-spacing: -0.035em;
}

.ax-lead, .ax-deck { margin: 0; max-width: 620px; font-size: 14px; color: var(--muted); }
.ax-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.ax-section { padding: 56px 0; }
.ax-section + .ax-section { padding-top: 0; }
.ax-hero { padding: 60px 0 34px; }
.ax-hero-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 52px; align-items: center; }

/* ------------------------------------------------------------- header */

.ax-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.ax-header-inner { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.ax-logo { font-size: 21px; font-weight: 900; letter-spacing: -0.04em; --lockup: 30px; }
/* A site that has committed its own lockup shows the artwork here instead of
   its name set in the archetype's type. --lockup is the height of the whole
   image, and each archetype sets its own: the five marks sit at different
   heights above their wordmarks, so a single number would leave one brand's
   lettering twice the size of another's on the same 68px row. */
.ax-lockup { display: block; height: var(--lockup); width: auto; }
.ax-nav { margin-left: auto; display: flex; gap: 20px; font-size: 12px; }
.ax-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.ax-header-actions { display: flex; align-items: center; gap: 12px; }
.ax-icon { display: inline-flex; color: var(--muted); }

/* ------------------------------------------------------------- buttons */

.ax-btn, .ax-button, .ax-cta, .ax-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast, #fff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ax-btn:hover, .ax-button:hover, .ax-cta:hover, .ax-go:hover { filter: brightness(1.07); }
.ax-btn--lg { margin-top: 26px; padding: 14px 22px; font-size: 13px; }
.ax-btn--block, .ax-button { width: 100%; }
.ax-btn--ghost, .ax-button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.ax-more { display: inline-block; margin-top: 22px; font-size: 12px; font-weight: 800; color: var(--accent); }
.ax-quiet { font-size: 12px; font-weight: 700; text-decoration: underline; }

/* --------------------------------------------------- listings & rows */

.ax-options { display: grid; gap: 10px; margin-top: 24px; }
.ax-option {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.ax-option h3 { margin: 4px 0; font-size: 19px; }
.ax-option-cat { margin: 0; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.ax-option-side { display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: right; }
.ax-price { margin: 0; font-size: 19px; font-weight: 800; }
.ax-basis { margin: 0; font-size: 11px; color: var(--muted); }

.ax-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ax-tags li {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft, var(--surface-alt));
  font-size: 10px;
  color: var(--accent-ink, var(--text));
}
/* A muted palette turns muddy when several soft fills stack, so this
   archetype outlines its tags instead of filling them. */
.archetype-local_directory .ax-tags li {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* An offer nobody has verified yet has no destination, so the card says so
   rather than rendering a button that goes nowhere (design v2 §4.1). */
.ax-pending {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .04em;
}

.ax-rows, .ax-table, .ax-matrix { margin-top: 22px; border-top: 1px solid var(--border); }

.ax-lines { margin-top: 20px; border-top: 1px solid var(--border); }
.ax-line {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.ax-line small, .ax-line > span { font-size: 10.5px; color: var(--muted); }
.ax-line > span { text-align: right; }
.ax-line h3 { margin: 0; font-size: 18px; }
.ax-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.ax-row strong { font-size: 14px; font-weight: 700; }
.ax-row strong small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.ax-row-tag, .ax-badge {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

/* ------------------------------------------------------------- footer */

.ax-footer { margin-top: 60px; border-top: 1px solid var(--border); padding: 44px 0 40px; }
.ax-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.ax-footer-brand { margin: 0; font-size: 18px; font-weight: 800; --lockup: 24px; }
.ax-footer-lead { margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 32ch; }
.ax-footer-heading { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ax-footer-cols ul { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.ax-footer-base {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.ax-disclosure { margin: 0 0 8px; line-height: 1.7; }

/* --------------------------------------------------------- assessment */

.assess-head { padding: 52px 0 8px; }
.assess-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.assess-title { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.04em; }
.assess-intro { margin: 0; max-width: 640px; font-size: 14px; color: var(--muted); }
.assess-meta { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

.assess-form { display: grid; gap: 14px; padding: 26px 0 10px; }
.assess-q { margin: 0; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.assess-q legend { padding: 0; font-size: 16px; font-weight: 700; }
.assess-q-num { margin-right: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.assess-q-help { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.assess-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 16px; }
.assess-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.assess-option:hover { border-color: var(--accent); }
.assess-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft, var(--surface-alt));
}
.assess-progress { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }

.assess-results { padding: 30px 0 60px; }
.assess-results-head { display: flex; align-items: baseline; gap: 12px; }
.assess-results-head h2 { font-size: 23px; }
.assess-results-count { margin: 0; font-size: 12px; font-weight: 700; color: var(--accent); }
.assess-results-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.assess-empty {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.assess-list { display: grid; gap: 10px; margin-top: 20px; }
.assess-card {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.assess-card[hidden] { display: none; }
.assess-card h3 { margin: 4px 0; font-size: 19px; }
.assess-card-category { margin: 0; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.assess-card-line { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.assess-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assess-tags li {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft, var(--surface-alt));
  font-size: 10px;
  color: var(--accent-ink, var(--text));
}
.assess-card-side { display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: right; }
.assess-card-price { margin: 0; font-size: 18px; font-weight: 800; }
.assess-card-goal { margin: 0; font-size: 11px; color: var(--muted); }
.assess-card-pending { margin: 0; font-size: 10.5px; color: var(--muted); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .ax-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .ax-footer-cols { grid-template-columns: 1fr 1fr; }
  .ax-nav { display: none; }
}

@media (max-width: 640px) {
  /* The lockups are wide — Plain Money's runs 7:1 — so on a narrow screen the
     brand gives up height rather than pushing the header actions off-screen.
     Selected on the ancestor to outweigh the per-archetype heights, which are
     plain .ax-logo rules in a stylesheet that loads after this one. */
  .ax-header .ax-logo { min-width: 0; --lockup: 24px; }
  .ax-footer .ax-footer-brand { --lockup: 20px; }
  .ax-lockup { max-width: 100%; object-fit: contain; object-position: left center; }
  .ax-option, .assess-card { grid-template-columns: 1fr; }
  .ax-option-side, .assess-card-side { text-align: left; }
  .ax-row { grid-template-columns: 1fr; }
  .ax-row-tag, .ax-badge { justify-self: start; }
  .ax-line { grid-template-columns: 1fr; gap: 4px; }
  .ax-line > span { text-align: left; }
  .ax-footer-cols { grid-template-columns: 1fr; }
  .ax-section, .ax-hero { padding: 40px 0; }
}
