/* Shopper Panel USA - shared stylesheet
   Mobile-first. No external resources. */

:root {
  --ink: #101a1e;
  --ink-2: #2c3c43;
  --muted: #5f7077;
  --line: #e0e6e8;
  --line-strong: #c8d3d6;
  --bg: #ffffff;
  --surface: #f5f8f8;
  --surface-2: #eef3f3;
  --accent: #17585f;
  --accent-dark: #0e4046;
  --accent-soft: #e4efef;
  --danger: #a3262c;
  --danger-soft: #fbeceb;
  --radius: 10px;
  --radius-sm: 7px;
  --maxw: 68rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 20;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { display: block; flex: none; }
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.06rem;
  letter-spacing: .005em;
}
.wordmark-sub {
  font-size: .625rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: .875rem;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Main / hero ---------- */

main { flex: 1 0 auto; }

.hero {
  padding: 2.6rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .85rem;
}

.hero h1 { max-width: 20ch; }

.lede {
  font-size: 1.03rem;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 0;
}

.page-head {
  padding: 2.4rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}
.page-head p:last-child { margin-bottom: 0; }
.updated {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Info cards ---------- */

.section { padding: 2.4rem 0; }
.section-sep { border-top: 1px solid var(--line); }

.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1rem;
  background: var(--bg);
}
.card h3 { margin-bottom: .4rem; font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }
.card .num {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .5rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ---------- Application panel ---------- */

.apply { background: var(--surface); border-top: 1px solid var(--line); }

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.4rem;
  max-width: 40rem;
}

.panel-intro { margin-bottom: 1.35rem; }
.panel-intro h2 { margin-bottom: .35rem; }
.panel-intro p { margin: 0; font-size: .92rem; color: var(--muted); }

/* progress */

.progress { margin-bottom: 1.5rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.progress-meta strong { color: var(--ink); font-weight: 600; }
.progress-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .28s ease;
}

/* fieldsets */

.step { border: 0; padding: 0; margin: 0; }
.step[hidden] { display: none !important; }

.q { margin: 0 0 1.6rem; border: 0; padding: 0; }
.q:last-of-type { margin-bottom: 1.2rem; }

.q > legend, .field-label {
  padding: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .15rem;
  display: block;
}
.q-hint {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 .7rem;
}
.q > legend + .options { margin-top: .7rem; }

.options { display: grid; gap: .5rem; }
.options.cols-2 { grid-template-columns: 1fr; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
  cursor: pointer;
  background: var(--bg);
  font-size: .93rem;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt input {
  flex: none;
  margin: .18rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* text inputs */

.field { margin-bottom: 1.1rem; }
.field:last-of-type { margin-bottom: 1.3rem; }

.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
  margin-top: .4rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: var(--accent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

textarea.input { min-height: 7.5rem; resize: vertical; }

/* errors */

.field-error {
  display: block;
  color: var(--danger);
  font-size: .84rem;
  line-height: 1.4;
  margin: .45rem 0 0;
  font-weight: 500;
}
.field-error[hidden] { display: none !important; }

.q[data-invalid="true"] > legend { color: var(--danger); }

/* buttons */

.actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.btn {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .72rem 1.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.form-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* confirmation */

.confirm { text-align: left; }
.confirm[hidden] { display: none !important; }
.confirm-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.confirm h2 { margin-bottom: .45rem; }
.confirm p { color: var(--ink-2); }
.confirm .ref {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Legal / prose pages ---------- */

.prose { padding: 2rem 0 3rem; max-width: 46rem; }
.prose h2 { font-size: 1.22rem; margin-top: 2.2rem; }
.prose h2:first-of-type { margin-top: 1.4rem; }
.prose h3 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-top: 1.5rem; margin-bottom: .35rem; }
.prose p, .prose li { font-size: .95rem; }
.prose .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem;
  margin: 1.6rem 0 .5rem;
}
.prose .toc h2 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
  font-weight: 600;
}
.prose .toc ol { margin: 0; padding-left: 1.15em; }
.prose .toc li { font-size: .9rem; margin-bottom: .25em; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: .9rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: .92rem; }

.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border-radius: 4px;
  padding: .08em .35em;
  color: var(--ink);
  word-break: break-word;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.4rem;
  font-size: .9rem;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: .6rem .7rem .6rem 0;
}
table.data th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}
.table-scroll { overflow-x: auto; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin: 1.6rem 0 0;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.contact-card h3 {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .5rem;
}
.contact-card p { margin: 0; font-size: .95rem; }
.contact-card address { font-style: normal; font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0 2.4rem;
  margin-top: auto;
  font-size: .85rem;
  color: var(--muted);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
}
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { padding-top: 1.1rem; }
.footer-bottom p { margin: 0 0 .4rem; }
.footer-bottom p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (min-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.55rem; }
  .options.cols-2 { grid-template-columns: 1fr 1fr; }
  .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .name-row .field { margin-bottom: 1.1rem; }
  .panel { padding: 1.8rem 1.7rem 1.9rem; }
  .hero { padding: 3.4rem 0 2.8rem; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2.6rem; }
  .wrap { padding: 0 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
  .hero { padding: 4.2rem 0 3.4rem; }
  .section { padding: 3.2rem 0; }
  .apply-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 26rem);
    gap: 3rem;
    align-items: start;
  }
  .apply-aside { position: sticky; top: 2rem; }
  .panel { max-width: none; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
}

/* ---------- Select control ---------- */

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f7077' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* ---------- Aside ---------- */

.apply-aside {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.apply-aside h3 {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .7rem;
}
.apply-aside ul { padding-left: 1.1em; }
.apply-aside li { font-size: .9rem; color: var(--muted); }
.apply-aside li strong { color: var(--ink-2); }

@media (min-width: 900px) {
  .apply-aside { margin-top: 0; border-top: 0; padding-top: 0; }
}

/* Programmatic focus on the confirmation container should not draw a ring. */
.confirm[tabindex="-1"]:focus { outline: none; }

/* ---------- Navigation density (5 items) ---------- */

.site-nav {
  flex-wrap: wrap;
  gap: .35rem .9rem;
  row-gap: .1rem;
}

@media (min-width: 600px) {
  .site-nav { gap: 1.25rem; }
}

/* ---------- Wide prose / content pages ---------- */

.prose-wide { max-width: 52rem; }

.lede + .lede-more {
  margin-top: 1.1rem;
  font-size: .97rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 0;
}

.section-lede {
  max-width: 62ch;
  margin-top: -.2rem;
  color: var(--muted);
  font-size: .97rem;
}

.section-title h2 { margin-bottom: .35rem; }

.eyebrow-line {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 .7rem;
}

/* ---------- Definition rows (facts without decoration) ---------- */

.facts {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 0;
  padding: 0;
}
.facts > div {
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  display: grid;
  gap: .15rem;
  grid-template-columns: 1fr;
}
.facts dt {
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.facts dd {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .facts > div { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* ---------- Study entries ---------- */

.study {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  margin: 0 0 1.1rem;
  background: var(--bg);
}
.study:last-child { margin-bottom: 0; }
.study > h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.study p, .study li { font-size: .93rem; }
.study p:last-child, .study ul:last-child { margin-bottom: 0; }
.study .study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin: 0 0 .9rem;
  padding: 0;
  list-style: none;
}
.study .study-meta li {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .25rem .65rem;
}
.study h4 {
  margin: 1.1rem 0 .3rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 700px) {
  .study { padding: 1.5rem 1.6rem 1.6rem; }
}

/* ---------- FAQ (native details, no JavaScript) ---------- */

.faq-group { margin: 0 0 2.4rem; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 {
  font-size: 1.18rem;
  margin-bottom: .3rem;
}
.faq-group > p.section-lede { margin-bottom: 1rem; }

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: .95rem 2rem .95rem 0;
  position: relative;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  line-height: 1.45;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq-item[open] > summary { color: var(--accent); }
.faq-answer { padding: 0 0 1.15rem; }
.faq-answer p, .faq-answer li { font-size: .93rem; color: var(--ink-2); }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }

/* ---------- Two-column content split ---------- */

.split { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.split > .split-side h3 {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .6rem;
}
.split > .split-side p, .split > .split-side li { font-size: .9rem; color: var(--muted); }
.split > .split-side { border-top: 1px solid var(--line); padding-top: 1.3rem; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr minmax(0, 20rem); gap: 3rem; align-items: start; }
  .split > .split-side { border-top: 0; padding-top: 0; }
}

/* ---------- Plain link list ---------- */

.next-links {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .55rem;
}
.next-links li { margin: 0; }
.next-links a { font-size: .93rem; }
.next-links span { display: block; font-size: .87rem; color: var(--muted); }

/* ---------- Address block ---------- */

address.postal {
  font-style: normal;
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------- Photography ---------- */

.figure {
  margin: 0;
}
.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-figure { margin-top: 2rem; }

.section-figure { margin: 1.9rem 0 0; }

.prose .figure { margin: 1.7rem 0 2rem; }

@media (min-width: 900px) {
  .hero-figure { margin-top: 2.6rem; }
  .section-figure { margin-top: 2.4rem; }
}
