/* ==========================================================================
   AP Express - static rebuild stylesheet
   Same design language as the single-page build: brand values taken from the
   site's own custom CSS (#E47301 orange, #39C3EC blue, #303030 ink,
   #F7F9FC off-white) with Barlow Condensed headings over Hind body copy.
   ========================================================================== */

:root {
  --orange: #e47301;
  --orange-text: #a35100;   /* brand orange is 2.95:1 on white; this clears AA */
  --blue: #39c3ec;
  --ink: #303030;
  --muted: #5d6470;
  --dark: #262626;
  --dark-2: #303030;
  --off: #f7f9fc;
  --line: #dbdbdb;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Hind, "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1140px;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video { max-width: 100%; }
img, svg { height: auto; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.13;
  letter-spacing: .01em;
  margin: 0 0 .55em;
  color: inherit;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
section { padding: clamp(2.6rem, 6vw, 4.75rem) 0; }
section.bg-off { background: var(--off); }
.rule { width: 56px; height: 4px; background: var(--orange); border: 0; margin: 0 0 1.5rem; }

/* --------------------------------------------------------------- top strip */
.bar { height: 6px; background: var(--orange); }
.announce {
  background: var(--orange); color: #fff; text-align: center;
  padding: .55rem 1rem; font-size: .93rem; font-weight: 400;
}
.announce a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ header */
.site-head { background: var(--dark); color: #fff; }
.head-in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .9rem 1.25rem; flex-wrap: wrap;
}
.brand { flex: 0 0 auto; line-height: 0; }
.brand img { width: 190px; }
.nav { flex: 1 1 auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .2rem 1.15rem; justify-content: flex-end;
}
.nav a {
  color: rgba(255, 255, 255, .88);
  font-weight: 600; font-size: .84rem; text-transform: uppercase;
  letter-spacing: .05em; padding: .4rem 0; display: block;
}
.nav a:hover { color: var(--orange); text-decoration: none; }
.head-cta { flex: 0 0 auto; }

/* ----------------------------------------------------------------- buttons */
.btn, a.btn {
  display: inline-block; background: var(--orange); color: #fff !important;
  border: 2px solid var(--orange); padding: .72rem 1.45rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.3;
  text-decoration: none !important; transition: background-color .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--orange) !important; }
.btn-primary { background: var(--orange); }
/* second and later CTAs in a hero read as secondary */
.hero a.btn + a.btn {
  background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .32);
}
.hero a.btn + a.btn:hover { border-color: var(--orange); color: var(--orange) !important; }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--dark);
  background-image: linear-gradient(180deg, var(--dark-2), var(--dark) 70%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero.hero-sm { padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero a:not(.btn) { color: #fff; text-decoration: underline; }
.hero .prose > p:first-of-type { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,.72); }
.hero .card { background: rgba(255, 255, 255, .06); border-color: rgba(255,255,255,.14); }

/* highlight boxes from the site's own custom CSS, rebuilt */
.hl-wt, .hl-bl {
  display: inline-block; padding: 0 .35em; line-height: 1.25;
  color: var(--ink); font-family: var(--head); text-transform: uppercase;
}
.hl-wt { background: #fff; }
.hl-bl { background: var(--blue); }

/* ------------------------------------------------------------------- grids */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); align-items: start; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
}
.bg-off .card { background: #fff; }
.card > :first-child { margin-top: 0; }
.card img { margin: 0 0 1.1rem; }
.card h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.col > :first-child { margin-top: 0; }

/* Images keep their own aspect ratio and never exceed the column.
   Do NOT add width:auto here: several of these SVGs carry only a viewBox and
   no intrinsic width, so width:auto overrides their width attribute and lets
   them expand to fill the column (the step-number circles rendered ~340px). */
.card img { max-width: 100%; height: auto; }

/* Step lists inside cards: a numbered circle, a heading and a paragraph.
   Lay them out as number-beside-text, and drop the list marker - the circle
   already carries the number, so a bullet next to it is noise. */
.card ul { padding-left: 1.25em; margin: 0 0 1.1em; }
.card li { margin-bottom: .5em; }
.card li:has(img) {
  list-style: none;
  margin-left: -1.25em;
  margin-bottom: 1.6em;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .15rem 1.15rem;
}
.card li:has(img) > img { grid-column: 1; grid-row: 1 / -1; align-self: start; margin: 0; }
.card li:has(img) > * { grid-column: 2; }
.card li:has(img) > h2,
.card li:has(img) > h3 { font-size: 1.12rem; margin: 0 0 .35em; }
.card li:has(img) > p { margin: 0; }

/* The numbered step circles: 113x113 SVGs with no intrinsic width. */
img[src*="icon-num_"] { width: 72px; height: 72px; }

@media (max-width: 520px) {
  .card li:has(img) { grid-template-columns: 56px 1fr; gap: .15rem .9rem; }
  img[src*="icon-num_"] { width: 56px; height: 56px; }
}

/* -------------------------------------------------------- logo / badge strip */
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}
.logos img {
  width: auto; max-width: 170px; max-height: 58px; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s;
}
.logos img:hover { filter: none; opacity: 1; }
.hero .logos img { filter: grayscale(1) brightness(0) invert(1); opacity: .75; }

/* -------------------------------------------------------------------- prose */
.prose { max-width: 70ch; }
.hero .prose, .prose.full { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
/* Same reasoning as .card img: no width:auto, or viewBox-only SVGs blow up. */
.prose img { margin: 1.6rem 0; max-width: 100%; height: auto; }
.prose > a.btn { margin: .35rem .5rem .35rem 0; }
.prose blockquote {
  margin: 1.7rem 0; padding: 1rem 1.35rem;
  border-left: 4px solid var(--orange); background: var(--off);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.7rem 0; font-size: .95rem; }
.prose th, .prose td {
  border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top;
}
.prose th { background: var(--off); font-weight: 600; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.7rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ------------------------------------------------------- post listing cards */
.cards {
  display: grid; gap: clamp(1.5rem, 3vw, 2.15rem);
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
}
.pcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
}
.bg-off .pcard { background: #fff; }
.pcard-media { display: block; line-height: 0; overflow: hidden; }
.pcard-media img { width: 100%; height: 190px; object-fit: cover; margin: 0; }
.pcard-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pcard-date {
  margin: 0 0 .5rem; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.pcard h3 { font-size: 1.16rem; margin: 0 0 .6rem; }
.pcard h3 a { color: var(--ink); }
.pcard h3 a:hover { color: var(--orange-text); text-decoration: none; }
.pcard p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ notice */
.notice {
  border-left: 4px solid var(--orange); background: var(--off);
  padding: .95rem 1.15rem; font-size: .95rem; border-radius: 2px;
}
.notice b { font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: #1d1d1d; color: rgba(255, 255, 255, .6); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; }
.foot-top { display: grid; gap: 2.5rem; grid-template-columns: minmax(260px, 1.2fr) 2fr; }
.foot-brand img { width: 200px; margin-bottom: 1.2rem; }
.foot-brand p { font-size: .93rem; max-width: 46ch; }
.foot-contact a { color: rgba(255, 255, 255, .85); }
.foot-contact a:hover { color: var(--orange); }
.foot-links { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fgroup h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; margin-bottom: .7rem; }
.fgroup ul { list-style: none; margin: 0; padding: 0; }
.fgroup li { margin-bottom: .45rem; }
.fgroup a { color: rgba(255, 255, 255, .55); font-size: .93rem; }
.fgroup a:hover { color: var(--orange); text-decoration: none; }
.fine {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; color: rgba(255, 255, 255, .38);
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .head-in { gap: .85rem; }
  .nav ul { justify-content: flex-start; }
  .brand img { width: 168px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .head-in { flex-direction: column; align-items: stretch; }
  .nav ul { justify-content: center; gap: .1rem .9rem; }
  .head-cta { text-align: center; }
  .brand { text-align: center; }
  .brand img { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
