/* ==================================================================
   STYLESHEET FOR THE PHP PAGES
   ==================================================================

   Two parts of the site are PHP rather than React — the job board
   (/jobs/) and the member login (/login/) — because they talk to the
   membership portal directly. They sit outside the React build and so
   cannot use Tailwind. This stylesheet is written by hand and
   deliberately mirrors the main site.

   IF YOU CHANGE THE SITE PALETTE in src/index.css, change the matching
   values in the :root block below or these pages will drift out of
   step with the rest of the site.

   SECTIONS, IN ORDER
     :root       colours, fonts, shadows   (mirrors src/index.css)
     base        body, headings, links, focus
     .wrap       the centred page container
     header      sticky bar with the logo and its links
     hero        the navy masthead with its angled base
     buttons     .btn plus .btn-flame / .btn-navy / .btn-ghost
     filter      the category chips on the listings page
     cards       .job, the individual listing cards
     form        the posting form on post.php
     login       the sign-in panel and its help column
     footer      contact details and the closing line
================================================================== */

:root {
  --navy-950: #00172e;
  --navy-900: #00254d;
  --navy-800: #003366;
  --navy-700: #00437f;
  --navy-500: #1268c3;
  --navy-300: #8fbdec;
  --navy-200: #c6dcf4;
  --navy-100: #d6e4f0;
  --navy-50: #eef4fb;

  --flame-800: #a13f07;
  --flame-700: #c44f08;
  --flame-600: #e8600a;
  --flame-500: #fb7317;
  --flame-400: #ff9247;
  --flame-300: #ffb37c;
  --flame-50: #fff4ea;

  --paper: #fbf8f4;
  --paper-deep: #f2ece4;
  --body: #37424e;

  --shadow-lift: 0 1px 2px rgba(0, 23, 46, .06), 0 12px 32px -12px rgba(0, 23, 46, .22);
  --shadow-pop: 0 2px 4px rgba(0, 23, 46, .08), 0 28px 60px -24px rgba(0, 23, 46, .42);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

a { color: var(--flame-700); }
p { text-wrap: pretty; }
::selection { background: var(--flame-600); color: #fff; }

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

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100; position: fixed;
  background: var(--flame-600); color: #fff; padding: .75rem 1.25rem;
  border-radius: 99px; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; font-size: .8rem; text-decoration: none;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0;
}

.kinetic {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg,
    rgba(255,255,255,.07) 0px, rgba(255,255,255,.07) 2px,
    transparent 2px, transparent 16px);
}

.glow { position: absolute; border-radius: 99px; pointer-events: none; filter: blur(120px); }
.glow-a { right: -6rem; top: -6rem; width: 30rem; height: 30rem; background: rgba(232,96,10,.20); }
.glow-b { left: -10rem; bottom: 0; width: 20rem; height: 20rem; background: rgba(18,104,195,.25); }

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

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,244,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,23,46,.1);
}
.head-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 26px; } }

/* THE MENU
   The same menu as the React pages, built from the same source — see
   _lib/nav.php. Wide screens get the horizontal menu with dropdowns;
   below 1280px it becomes a hamburger and a full-screen drawer. That
   cut-off matches the React header, and for the same reason: the logo,
   the five menu items and the button need about that much room. */

.head-nav { margin-left: auto; display: none; align-items: center; gap: .1rem; }
@media (min-width: 1280px) { .head-nav { display: flex; } }

.nav-item { position: relative; }
.nav-top {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: rgba(0,37,77,.75); padding: .65rem 1rem; border-radius: 99px;
  transition: color .3s; white-space: nowrap;
}
.nav-top:hover { color: var(--flame-700); }
.nav-top .chev { width: 13px; height: 13px; transition: transform .3s; }
.nav-item:hover .nav-top .chev { transform: rotate(180deg); }

/* The dropdown. Hidden by opacity rather than display, so it can fade, and
   made unclickable while hidden so it cannot swallow clicks on the page. */
.nav-drop {
  position: absolute; left: 50%; top: 100%; z-index: 10;
  width: 22rem; transform: translateX(-50%); padding-top: .75rem;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; pointer-events: auto; }
.nav-drop-inner {
  background: #fff; border: 1px solid rgba(0,23,46,.1); border-radius: 1rem;
  box-shadow: var(--shadow-pop); padding: .5rem;
  transform: translateY(.5rem); transition: transform .3s;
}
.nav-item:hover .nav-drop-inner, .nav-item:focus-within .nav-drop-inner { transform: translateY(0); }
.nav-sub {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem 1rem; border-radius: .75rem; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: rgba(0,37,77,.8);
  transition: background .25s, color .25s;
}
.nav-sub:hover { background: var(--flame-50); color: var(--flame-800); }
.nav-sub .out { opacity: .5; flex: none; }
.nav-cta { margin-left: .75rem; }

/* The hamburger. */
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  /* Never let the row squeeze the menu button: on a narrow phone a flex item
     with a width will still shrink, and a squeezed button is an unreachable
     menu. The logo above shrinks instead. */
  flex: 0 0 auto;
  width: 48px; height: 48px; border: 0; border-radius: 99px; padding: 0;
  background: none; color: var(--navy-900); cursor: pointer; transition: background .25s;
}
.nav-toggle:hover { background: rgba(0,37,77,.08); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
@media (min-width: 1280px) { .nav-toggle { display: none; } }

/* The drawer, for everything narrower. */
.nav-drawer {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  background: var(--navy-950); padding: 5.5rem 0 4rem;
}
.nav-drawer[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
@media (min-width: 1280px) { .nav-drawer { display: none; } }

.drawer-inner { position: relative; max-width: 36rem; margin: 0 auto; padding: 0 1.25rem; }
.drawer-group { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-row { display: flex; align-items: center; }
.drawer-top {
  flex: 1; padding: 1rem 0; text-decoration: none;
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em; color: #fff;
}
.drawer-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 99px; padding: 0;
  background: none; color: var(--flame-400); cursor: pointer; transition: background .25s;
}
.drawer-toggle:hover { background: rgba(255,255,255,.1); }
.drawer-toggle .chev { width: 20px; height: 20px; transition: transform .3s; }
.drawer-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer-sub { list-style: none; margin: 0; padding: 0 0 .75rem; }
.drawer-sub[hidden] { display: none; }
.drawer-sub a {
  display: block; padding: .6rem 0 .6rem 1rem;
  font-size: .98rem; color: var(--navy-200); text-decoration: none;
}
.drawer-sub a:hover { color: var(--flame-400); }
/* "Ask a question" — sits above the main button in the drawer. It is a
   button rather than a link because it opens the assistant in place. */
.drawer-chat {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; margin-top: 2rem; cursor: pointer;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 99px;
  padding: .85rem 1.5rem;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
.drawer-chat:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.drawer-chat svg { width: 16px; height: 16px; flex: none; }
/* The button above it already carries the top margin. */
.drawer-chat + .drawer-cta { margin-top: .6rem; }

.drawer-cta { display: flex; justify-content: center; margin-top: 2rem; width: 100%; }
.drawer-contact { margin-top: 2rem; text-align: center; font-size: .88rem; color: var(--navy-300); }
.drawer-contact a { color: var(--navy-300); text-decoration: none; }
.drawer-contact a:hover { color: var(--flame-400); }

/* A SECOND ROW, for an app's own pages — the job board uses it. */
.sub-head {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(242,236,228,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,23,46,.1);
}
.sub-inner { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.sub-link {
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: rgba(0,37,77,.7); padding: .45rem .8rem; border-radius: 99px;
  transition: color .25s, background .25s; white-space: nowrap;
}
.sub-link:hover { color: var(--flame-700); }
/* 68px is .head-inner's min-height, so this sits directly under the bar. */
.sub-link.is-active { color: var(--flame-700); background: var(--flame-50); }

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

.hero {
  position: relative; isolate: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, rgba(0,67,127,.8));
  color: #fff; padding: 3.5rem 0 4.5rem;
}
@media (min-width: 768px) { .hero { padding: 4.5rem 0 5.5rem; } }
.hero-inner { position: relative; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.02;
}
.hero .eyebrow { color: var(--flame-300); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.hero .rule { display: none; height: 1px; width: 2rem; background: rgba(255,146,71,.7); }
@media (min-width: 640px) { .hero .rule { display: block; } }
.hero .lede { max-width: 42rem; margin: 1.35rem 0 0; color: rgba(214,228,240,.85); font-size: 1.05rem; }

.crumbs { display: flex; gap: .45rem; align-items: center; font-size: .8rem; color: var(--navy-300); margin-bottom: 1.5rem; }
.crumbs a { color: var(--navy-300); text-decoration: none; }
.crumbs a:hover { color: var(--flame-400); }
.crumbs span[aria-hidden] { opacity: .5; }

.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4.5vw, 70px); }

/* ------------------------------------------------------------------ layout */

main { padding: 3rem 0 4.5rem; }
@media (min-width: 1024px) { main { padding: 4rem 0 6rem; } }

.section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); display: flex; align-items: baseline; gap: 1rem; }
.section-title::before { content: ""; width: .5rem; height: .5rem; background: var(--flame-600); transform: rotate(45deg); flex: none; }

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

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 99px; border: 0; cursor: pointer;
  transition: all .3s ease;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .75rem; }
.btn-flame { background: var(--flame-600); color: #fff; box-shadow: 0 10px 30px -12px rgba(232,96,10,.8); }
.btn-flame:hover { background: var(--flame-500); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(0,37,77,.25); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ------------------------------------------------------------------ filter */

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 2rem; }
.filter-label { font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-700); margin-right: .35rem; }
.chip {
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 99px; cursor: pointer;
  background: #fff; color: var(--navy-800);
  border: 1px solid rgba(0,23,46,.14); transition: all .25s ease;
}
.chip:hover { border-color: var(--flame-600); color: var(--flame-700); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.chip .count { opacity: .6; margin-left: .4rem; font-weight: 600; }

.result-note { font-size: .9rem; color: var(--body); margin: 0 0 1.5rem; }

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

.jobs { display: grid; gap: 1.25rem; }
.job {
  position: relative; background: #fff; border: 1px solid rgba(0,23,46,.1);
  border-radius: 1.25rem; box-shadow: var(--shadow-lift); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: rgba(232,96,10,.35); }

.job-head { padding: 1.5rem 1.5rem 0; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-start; justify-content: space-between; }
.job-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.job-org { margin: .35rem 0 0; font-weight: 600; color: var(--navy-700); }

.cat {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 99px; white-space: nowrap;
  background: var(--flame-50); color: var(--flame-800);
  border: 1px solid rgba(232,96,10,.2);
}

.job-body { padding: 1.25rem 1.5rem 0; display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .job-body { grid-template-columns: 1fr 1fr; } }

.field h3 {
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy-700);
  margin: 0 0 .4rem;
}
.field p, .field div { margin: 0; font-size: .97rem; line-height: 1.6; }
.field a { word-break: break-word; }

.job-foot {
  margin-top: 1.5rem; padding: 1rem 1.5rem; border-top: 1px solid rgba(0,23,46,.08);
  background: var(--paper); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  justify-content: space-between; font-size: .84rem; color: #6b7684;
}
.expired { color: var(--flame-800); font-weight: 700; }

.empty {
  background: #fff; border: 1px dashed rgba(0,23,46,.2); border-radius: 1.25rem;
  padding: 3rem 1.5rem; text-align: center;
}
.empty h2 { font-size: 1.3rem; margin-bottom: .6rem; }

/* -------------------------------------------------------------------- form */

.form-card { background: #fff; border: 1px solid rgba(0,23,46,.1); border-radius: 1.5rem; box-shadow: var(--shadow-lift); padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }

fieldset { border: 0; margin: 0 0 2rem; padding: 0; }
legend {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--flame-700);
  padding: 0; margin-bottom: 1rem;
}

.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: .35rem; }
.req { color: var(--flame-700); }

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--navy-900);
  background: var(--paper); border: 1px solid rgba(0,23,46,.18);
  border-radius: .75rem; padding: .7rem .85rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--flame-600);
  box-shadow: 0 0 0 3px rgba(232,96,10,.15);
}
input.invalid, select.invalid, textarea.invalid { border-color: #c0392b; background: #fdf3f2; }
.err { color: #c0392b; font-size: .82rem; margin: .3rem 0 0; min-height: 1rem; }

.hint { font-size: .87rem; color: #6b7684; margin: .4rem 0 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  border-left: 4px solid var(--flame-600); background: rgba(255,244,234,.7);
  border-radius: .9rem; padding: 1.1rem 1.25rem; margin: 0 0 2rem;
}
.note .eyebrow { color: var(--flame-800); margin-bottom: .4rem; }
.note p { margin: 0; font-size: .95rem; color: rgba(0,37,77,.8); }

.msg { border-radius: .9rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; display: none; }
.msg.ok { display: block; background: #e8f6ec; color: #1d6b33; border: 1px solid #b7e0c2; }
.msg.bad { display: block; background: #fdecea; color: #a5281b; border: 1px solid #f2bcb6; }

/* ------------------------------------------------------------------- login

   The sign-in page. Two columns on a wide screen: the panel on the left
   and the "not signing in?" column on the right. One column stacked on
   a phone, panel first.

   The panel holds all three forms — sign in, forgot password and
   one-time code — and the page's JavaScript shows one at a time. */

.login-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .login-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.login-grid .form-card h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.panel-lede { margin: .5rem 0 1.75rem; color: var(--body); font-size: .97rem; }

/* The panels are toggled with the hidden attribute. Because these rules
   set display, they would otherwise win over the browser's own
   [hidden] rule and the hidden panels would still show. */
.login-form[hidden], .login-alt[hidden], .msg[hidden] { display: none; }

.login-form { display: grid; gap: 1.1rem; }
.login-form .btn { justify-content: center; margin-top: .25rem; }
.login-form .note { margin: 0; }

/* "Forgot password" and "one-time code" — real buttons, styled as links,
   because they switch panels rather than going anywhere. */
.login-alt { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin-top: 1.5rem; }
.link-btn {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy-700);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--flame-700); }

.back-link {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--navy-700);
  background: none; border: 0; padding: 0; margin-bottom: 1rem; cursor: pointer;
}
.back-link:hover { color: var(--flame-700); }
.back-link[hidden] { display: none; }

.secure-note {
  margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(0,23,46,.1);
  font-size: .82rem; color: #6b7684;
}

/* The right-hand column. */
.login-aside h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.login-aside > p { font-size: .95rem; margin: 0 0 1.5rem; }
.login-aside .hint { margin-top: 1.5rem; }

.portal-links { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .75rem; }
.portal-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid rgba(0,23,46,.1); border-radius: 1rem;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--navy-900);
  box-shadow: var(--shadow-lift); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.portal-links a:hover { transform: translateY(-2px); border-color: rgba(232,96,10,.35); box-shadow: var(--shadow-pop); }
.portal-links strong { display: block; font-size: 1rem; }
.portal-links em { display: block; margin-top: .2rem; font-style: normal; font-size: .87rem; color: var(--body); }
.portal-links a > span[aria-hidden] { color: var(--flame-600); font-size: 1.1rem; }

/* ----------------------------------------------------------------- renewal

   Express renewal runs the portal's own flow inside a frame — see
   server/renewal/index.php for why. These rules are for the frame and
   what sits around it; the look of what is INSIDE it is set by
   _lib/portal-frame.css, which is injected into the portal's page. */

/* No min-height here: when the frame cannot load, the panel should shrink to
   the message rather than leave a tall empty box under it. The loading line
   below holds the space open while the frame is on its way. */
.frame-wrap { position: relative; }
.portal-frame {
  display: block; width: 100%; height: 30rem; border: 0;
  opacity: 0; transition: opacity .3s;
}
/* Revealed only once it has been styled, so the portal's sign-in page
   does not flash past first. */
.portal-frame.is-ready { opacity: 1; }
.portal-frame[hidden] { display: none; }

/* The numbered "how it works" list in the side column. */
.steps { list-style: none; counter-reset: step; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .9rem; }
/* Two columns: the number, then the text. Both the title and the line under
   it are placed in column 2 explicitly — left to place itself, the second
   one would drop into the number's column and wrap a word per line. */
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.75rem 1fr; gap: .2rem .75rem; align-items: baseline; }
.steps li > * { grid-column: 2; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 99px;
  background: var(--navy-900); color: #fff;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
}
.steps strong { display: block; font-family: var(--display); font-size: 1rem; color: var(--navy-900); }
.steps em { display: block; margin-top: .15rem; font-style: normal; font-size: .9rem; color: var(--body); }

/* ------------------------------------------------------------------ signup

   The sign-up page. Its layout matches the login page, so it borrows
   .login-aside, .portal-links, .note and .msg from above.

   THE SECOND HALF OF THIS SECTION IS UNUSUAL. The fields on that page
   are not written by us — they are fetched from the membership portal,
   which sends Bootstrap markup. Bootstrap is not loaded here, so those
   class names mean nothing until we give them meaning, which is what
   the rules below do. The upshot is that the portal's own form comes
   out in this site's design without a line of it being rewritten.

   If a sign-up field ever looks wrong, the likely cause is the portal
   sending a Bootstrap class that is not covered here. View source on
   the page, find the class, and add it. */

.signup-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.signup-grid .form-card + .form-card { margin-top: 1.5rem; }
.signup-grid .form-card h2 { font-size: 1.6rem; letter-spacing: -.02em; }

.step-mark {
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--flame-700);
  margin: 0 0 .75rem;
}

/* The three classification cards. A radio group that does not look like one. */
.class-picker { display: grid; gap: .75rem; margin-top: 1.5rem; }
.class-option { display: block; cursor: pointer; margin: 0; font-weight: 400; }
.class-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.class-body {
  display: block; border: 1px solid rgba(0,23,46,.14); border-radius: 1rem;
  padding: 1rem 1.25rem; background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.class-option:hover .class-body { border-color: rgba(232,96,10,.45); transform: translateY(-2px); }
.class-option input:focus-visible + .class-body { outline: 3px solid rgba(232,96,10,.35); outline-offset: 2px; }
.class-option input:checked + .class-body {
  border-color: var(--flame-600); background: var(--flame-50);
  box-shadow: inset 0 0 0 1px var(--flame-600);
}
.class-body strong { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--navy-900); }
.class-body em { display: block; margin-top: .25rem; font-style: normal; font-size: .9rem; color: var(--body); }

/* Shown while the sign-up fields or the renewal frame are on their way.
   The padding holds the panel open so it does not collapse and jump. */
.loading { color: #6b7684; font-size: .95rem; margin: 1rem 0; padding: 1.5rem 0; }

/* ---- from here down: giving the portal's Bootstrap class names a look ---- */

/* Its cards are section wrappers, not cards in our sense — the panel around
   them is already a card, so these are drawn as plain sections. */
#form_by_type .card { border: 0; background: none; margin-top: 1.5rem; }
#form_by_type .card-header {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--flame-700);
  padding: 0 0 1rem; border: 0; background: none;
}
#form_by_type .card-body { padding: 0; }
#form_by_type .card-footer {
  padding: 1.5rem 0 0; margin-top: 1.5rem; border: 0;
  border-top: 1px solid rgba(0,23,46,.1); background: none;
}

/* Bootstrap's floating labels put the label AFTER the input in the markup.
   Reversing the column puts it back on top, where this site keeps it. */
#form_by_type .form-floating { display: flex; flex-direction: column-reverse; }
#form_by_type .form-floating > label,
#form_by_type .form-label {
  display: block; font-weight: 600; font-size: .9rem;
  color: var(--navy-900); margin: 0 0 .35rem;
}
#form_by_type .form-control, #form_by_type .form-select {
  width: 100%; font: inherit; font-size: .97rem; color: var(--navy-900);
  background: var(--paper); border: 1px solid rgba(0,23,46,.18);
  border-radius: .75rem; padding: .7rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
#form_by_type .form-control:focus, #form_by_type .form-select:focus {
  outline: none; border-color: var(--flame-600);
  box-shadow: 0 0 0 3px rgba(232,96,10,.15);
}
#form_by_type .form-control.invalid { border-color: #c0392b; background: #fdf3f2; }
/* Filled in from the ZIP code or the school, not typed. */
#form_by_type .readonly, #form_by_type [readonly] { background: var(--paper-deep); color: var(--body); }
#form_by_type .is-waiting { opacity: .55; }
#form_by_type .text-capitalize { text-transform: capitalize; }
#form_by_type .req { color: var(--flame-700); }

/* Its 12-column grid, in just enough detail for these forms. */
#form_by_type .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 1rem; }
#form_by_type [class*="col-"] { grid-column: span 12; }
@media (min-width: 640px) {
  #form_by_type .col-6, #form_by_type .col-sm-6, #form_by_type .col-md-6 { grid-column: span 6; }
  #form_by_type .col-md-1 { grid-column: span 2; }
  #form_by_type .col-md-2 { grid-column: span 3; }
  #form_by_type .col-md-3 { grid-column: span 4; }
  #form_by_type .col-md-5 { grid-column: span 5; }
}

/* Spacing and alignment helpers, matched to Bootstrap's scale. */
#form_by_type .mb-3 { margin-bottom: 1.1rem; }
#form_by_type .mt-1 { margin-top: .25rem; }
#form_by_type .pt-2 { padding-top: .5rem; }
#form_by_type .p-3 { padding: 1.1rem 1.25rem; }
#form_by_type .mr-1, #form_by_type .mr-2 { margin-right: .35rem; }
#form_by_type .text-center { text-align: center; }
#form_by_type .text-right { text-align: right; }
#form_by_type .text-danger { color: var(--flame-800); font-size: .87rem; }
#form_by_type .pull-left { float: none; }

/* Its light panel is our note callout. */
#form_by_type .bg-light {
  background: rgba(255,244,234,.7); border-left: 4px solid var(--flame-600);
  border-radius: .9rem; text-align: left; font-size: .93rem;
  color: rgba(0,37,77,.8);
}

/* The submit button it sends is the page's main action. */
#form_by_type #btnSignUp {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 0; border-radius: 99px; padding: .85rem 1.75rem; cursor: pointer;
  background: var(--flame-600); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(232,96,10,.8);
  transition: background .25s;
}
#form_by_type #btnSignUp:hover { background: var(--flame-500); }
#form_by_type #btnSignUp[disabled] { opacity: .6; cursor: not-allowed; }

/* FontAwesome is not loaded, and the question-mark link opened a Bootstrap
   popover whose advice is on the page already. Both are dropped. */
#form_by_type .fas, #form_by_type .pop { display: none; }

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

.site-foot { position: relative; overflow: hidden; background: var(--navy-950); color: var(--navy-100); padding: 3rem 0 1.5rem; }
.foot-inner { position: relative; display: grid; gap: 2rem; }
@media (min-width: 768px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.foot-org { margin: 1rem 0 0; font-size: .92rem; color: rgba(198,220,244,.8); max-width: 24rem; }
.foot-contact, .foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.foot-contact a, .foot-links a { color: rgba(198,220,244,.85); text-decoration: none; }
.foot-contact a:hover, .foot-links a:hover { color: var(--flame-400); }
.foot-base {
  position: relative; margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap;
  gap: .5rem 1.5rem; justify-content: space-between; font-size: .84rem; color: var(--navy-300);
}
.foot-base p { margin: 0; }
.muted { color: #6f8bab; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
