/* ==========================================================================
   Automobility Next — theme layer on top of Bootstrap 5
   Converted from the Adobe XD artboard "Automobility Next – 02" (1536 x 8888)
   Palette sampled from the rendered artboard.
   ========================================================================== */

:root {
  --an-navy: #001031;
  --an-navy-soft: #122140;
  --an-gold: #c4a058;
  --an-gold-dark: #a8873f;
  --an-cream: #f4f1ea;
  --an-lavender: #f3f1ff;
  --an-grey-bar: #f2f2f2;

  --an-ink: #0d1522;
  --an-body: #4a5560;
  --an-muted: #6b7683;
  --an-line: #e2e6ea;

  --an-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --an-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --an-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--an-sans);
  --bs-body-color: var(--an-body);
  --bs-body-font-size: 0.9375rem;
  --bs-link-color: inherit;
  --bs-link-hover-color: var(--an-gold-dark);
}

body {
  font-family: var(--an-sans);
  color: var(--an-body);
  -webkit-font-smoothing: antialiased;
}

/* The artboard content column is 1200px inside a 1536px canvas. */
.container { max-width: 1230px; }

a { text-decoration: none; color: inherit; }
a:hover { color: var(--an-gold-dark); }

h1, h2, h3, h4, .an-serif { font-family: var(--an-serif); color: var(--an-ink); }

.an-mono { font-family: var(--an-mono); }

/* ==========================================================================
   Utility bar
   ========================================================================== */

.an-utility {
  border-bottom: 1px solid var(--an-line);
  font-size: 0.8125rem;
}
.an-utility .an-date { color: var(--an-ink); font-weight: 500; }
.an-utility .an-sep { color: var(--an-line); }
.an-edition-pill {
  background: var(--an-navy);
  color: #fff;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.an-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--an-grey-bar);
  color: var(--an-ink);
  border: 0;
}
.an-icon-btn:hover { background: #e5e5e5; }
.an-signin {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--an-ink);
  text-transform: uppercase;
}
.an-join {
  background: var(--an-navy);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.an-join:hover { background: #06214d; color: #fff; }
.an-join .an-arrow { color: var(--an-gold); }

/* ==========================================================================
   Masthead + navigation
   ========================================================================== */

.an-masthead { padding: 26px 0 18px; text-align: center; }
.an-wordmark {
  font-family: var(--an-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--an-ink);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.an-wordmark svg { flex: none; }
.an-tagline {
  font-size: 0.9375rem;
  color: var(--an-ink);
  margin-top: 2px;
}

.an-mainnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.an-mainnav a,
.an-mainnav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--an-ink);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
}
.an-mainnav a:hover { color: var(--an-gold-dark); }
.an-mainnav a.active {
  border-bottom-color: var(--an-gold);
  color: var(--an-ink);
}
.an-mainnav .an-divider {
  width: 1px;
  height: 20px;
  background: var(--an-line);
  margin: 0 8px;
}
.an-mainnav .dropdown-toggle::after { display: none; }

/* Burger — only shown once the main nav collapses at 1024px */
.an-burger {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--an-line);
  border-radius: 4px;
  background: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.an-burger:hover { border-color: var(--an-gold); }
.an-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--an-ink);
  border-radius: 2px;
  margin: 0 auto;
}

.an-offcanvas { width: min(340px, 86vw); }
.an-offcanvas .offcanvas-header { border-bottom: 1px solid var(--an-line); }
.an-offcanvas__nav,
.an-offcanvas__topics { list-style: none; margin: 0; padding: 0; }
.an-offcanvas__nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--an-line);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--an-ink);
}
.an-offcanvas__nav a.active { color: var(--an-gold-dark); }
.an-offcanvas__label {
  font-family: var(--an-sans);
  font-size: 0.6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--an-muted);
  margin: 26px 0 12px;
}
.an-offcanvas__topics a {
  display: block;
  padding: 9px 0;
  font-size: 0.875rem;
  color: #2a3441;
}
.an-offcanvas__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--an-line);
}

/* ==========================================================================
   Search overlay
   ========================================================================== */

.an-search { position: fixed; inset: 0; z-index: 1080; }
.an-search[hidden] { display: none; }

.an-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, .55);
}
.an-search__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 26px 0 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.an-search__brand { text-align: center; margin-bottom: 22px; }
.an-search__brand .an-wordmark { font-size: 2rem; }

.an-search__form {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--an-line);
  padding-top: 18px;
}
.an-search__icon { color: var(--an-ink); flex: none; }
.an-search__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 0;
  font-family: var(--an-serif);
  font-size: 1.75rem;
  color: var(--an-ink);
  background: transparent;
}
.an-search__form input::placeholder { color: #b6bcc4; }
.an-search__form input::-webkit-search-cancel-button { display: none; }

.an-search__submit {
  flex: none;
  border: 2px solid var(--an-navy);
  background: #fff;
  color: var(--an-navy);
  border-radius: 999px;
  padding: 11px 34px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.an-search__submit:hover { background: var(--an-navy); color: #fff; }

.an-search__close {
  flex: none;
  border: 0;
  background: none;
  color: var(--an-ink);
  padding: 6px;
  line-height: 0;
}
.an-search__close:hover { color: var(--an-gold-dark); }

body.an-search-open { overflow: hidden; }

.an-subnav {
  background: var(--an-grey-bar);
  padding: 10px 0;
}
.an-subnav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-subnav li + li::before {
  content: "|";
  color: #c9c9c9;
  padding: 0 14px;
}
.an-subnav a { font-size: 0.8125rem; color: #2a3441; }

/* ==========================================================================
   Curated strip
   ========================================================================== */

.an-curated {
  border-bottom: 1px solid var(--an-line);
}
.an-curated__cell {
  padding: 18px 22px;
  border-left: 1px solid var(--an-line);
  height: 100%;
}
.an-curated__cell:first-child { border-left: 0; padding-left: 0; }
.an-curated__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--an-ink);
  letter-spacing: .01em;
}
.an-curated__sub { font-size: 0.75rem; color: var(--an-muted); }
.an-curated__cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--an-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.an-curated__headline {
  font-family: var(--an-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--an-ink);
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.an-section { padding: 34px 0; }

.an-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.an-sec-head h2 {
  font-family: var(--an-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0;
  color: var(--an-ink);
}
.an-sec-head::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--an-gold);
  flex: none;
  border-radius: 1px;
}
.an-sec-head .an-badge-mark { margin-right: 2px; }
.an-viewall {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--an-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.an-mark {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--an-navy);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: -.02em;
  flex: none;
}

/* ==========================================================================
   Article pieces
   ========================================================================== */

.an-chip {
  display: inline-block;
  border: 1px solid var(--an-line);
  padding: 3px 9px;
  font-size: 0.6875rem;
  color: var(--an-ink);
  background: #fff;
}
.an-chip--mono {
  font-family: var(--an-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.an-hed { font-family: var(--an-serif); color: var(--an-ink); line-height: 1.22; }
.an-hed-xl { font-size: 2.25rem; font-weight: 700; }
.an-hed-lg { font-size: 1.5rem; font-weight: 700; }
.an-hed-md { font-size: 1.125rem; font-weight: 700; }
.an-hed-sm { font-size: 1rem; font-weight: 700; }
.an-hed-xs { font-size: 0.9375rem; font-weight: 700; }
a:hover .an-hed { color: var(--an-gold-dark); }

.an-dek { font-size: 0.9375rem; line-height: 1.6; color: var(--an-body); }
.an-dek-sm { font-size: 0.875rem; line-height: 1.55; color: var(--an-body); }

.an-byline {
  font-size: 0.8125rem;
  color: var(--an-ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.an-byline .an-dot { color: var(--an-muted); }
.an-byline .an-meta { font-weight: 400; color: var(--an-body); }

.an-ratio-16x9 { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.an-ratio-4x3  { aspect-ratio: 4 / 3;  object-fit: cover; width: 100%; }
.an-ratio-3x2  { aspect-ratio: 3 / 2;  object-fit: cover; width: 100%; }
.an-ratio-1x1  { aspect-ratio: 1 / 1;  object-fit: cover; width: 100%; }

.an-rule { border-top: 1px solid var(--an-line); }

/* list rows with a thumbnail */
.an-listrow {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--an-line);
}
.an-listrow:first-child { border-top: 0; }
.an-listrow img { width: 84px; height: 58px; object-fit: cover; flex: none; }
.an-listrow--wide img { width: 120px; height: 82px; }

/* overlay cards (Quick Stories / AMN TV) */
.an-overlay {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
}
.an-overlay img { width: 100%; height: 100%; object-fit: cover; }
.an-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.78) 100%);
}
.an-overlay__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px;
  z-index: 1;
  color: #fff;
}
.an-overlay__kicker {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: #e8ecf2;
}
.an-overlay__hed {
  display: block;
  font-family: var(--an-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

/* ==========================================================================
   Panels
   ========================================================================== */

.an-panel-cream { background: var(--an-cream); padding: 26px 24px; }
.an-panel-lavender { background: var(--an-lavender); padding: 40px 24px; text-align: center; }
.an-panel-navy { background: var(--an-navy); color: #fff; }
.an-panel-navy .an-hed,
.an-panel-navy .an-byline { color: #fff; }
.an-panel-navy .an-dek { color: #c9d3e2; }
.an-panel-navy .an-byline .an-meta { color: #c9d3e2; }
.an-panel-navy .an-listrow { border-top-color: rgba(255,255,255,.16); }
.an-panel-navy .an-chip { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.an-panel-navy .an-sec-head h2 { color: #fff; }

.an-newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 22px auto 0;
}
.an-newsletter-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-right: 0;
  padding: 12px 16px;
  font-size: 0.875rem;
  background: #fff;
}
.an-newsletter-form input:focus { outline: 2px solid var(--an-gold); outline-offset: -2px; }
.an-newsletter-form button {
  background: var(--an-navy);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.an-newsletter-form button .an-arrow { color: var(--an-gold); }

.an-thinktank-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.05;
  font-size: 1.0625rem;
}
.an-thinktank-mark .an-tt-rule { width: 1px; height: 34px; background: #cfcfcf; }
.an-thinktank-mark .an-tt-think { color: var(--an-ink); }
.an-thinktank-mark .an-tt-tank { color: var(--an-gold-dark); }

.an-btn-navy {
  background: var(--an-navy);
  color: #fff;
  border: 0;
  padding: 13px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.an-btn-navy:hover { background: #06214d; color: #fff; }

.an-ad-strip {
  background: var(--an-grey-bar);
  text-align: center;
  padding: 34px 20px;
}
.an-ad-strip__label {
  font-size: 0.6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--an-muted);
  margin-bottom: 6px;
}
.an-ad-strip__brand { font-weight: 700; color: var(--an-navy); }

.an-event-card { background: #fff; height: 100%; display: flex; flex-direction: column; }
.an-event-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.an-event-meta { font-size: 0.8125rem; color: var(--an-ink); }
.an-register {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--an-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.an-footer { background: var(--an-navy); color: #dbe3ee; padding: 46px 0 0; }
.an-footer .an-wordmark { color: #fff; font-size: 2rem; }
.an-footer .an-tagline { color: #c9d3e2; font-size: 0.875rem; }
.an-footer h5 {
  font-family: var(--an-sans);
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fa0b8;
  margin-bottom: 16px;
}
.an-footer ul { list-style: none; padding: 0; margin: 0; }
.an-footer li { margin-bottom: 12px; }
.an-footer li a { color: #fff; font-size: 0.9375rem; font-weight: 500; }
.an-footer li a:hover { color: var(--an-gold); }
.an-footer__blurb { color: #c9d3e2; font-size: 0.9375rem; line-height: 1.65; max-width: 420px; }

.an-social { display: flex; gap: 12px; margin-top: 22px; }
.an-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.an-social a:hover { background: var(--an-gold); border-color: var(--an-gold); color: var(--an-navy); }

.an-subscribe-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 14px;
}
.an-subscribe { display: flex; gap: 14px; flex-wrap: wrap; }
.an-subscribe input {
  flex: 1;
  min-width: 220px;
  background: var(--an-navy-soft);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 14px 16px;
  font-size: 0.875rem;
}
.an-subscribe input::placeholder { color: #8fa0b8; }
.an-subscribe button {
  background: var(--an-gold);
  color: var(--an-navy);
  border: 0;
  padding: 14px 28px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.an-subscribe button:hover { background: #d8b76e; }

.an-footer__bottom {
  margin-top: 42px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 18px 0 22px;
  font-family: var(--an-mono);
  font-size: 0.8125rem;
  color: #c9d3e2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.an-footer__bottom a { color: #fff; }
.an-footer__bottom nav { display: flex; gap: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* The main nav folds into the burger from 1024px down. The masthead becomes a
   flex row so the burger takes its own column instead of sitting on top of the
   centred wordmark; the matching padding keeps the brand optically centred. */
@media (max-width: 1024px) {
  .an-burger { display: flex; }
  .an-mainnav { display: none; }
  .an-masthead { padding-top: 16px; }
  .an-masthead .container {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .an-masthead__brand {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding-right: 54px;
  }
  .an-masthead__brand .an-wordmark { font-size: 1.9rem; }
  .an-subnav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (min-width: 1024.02px) {
  /* Offcanvas is a small-screen affordance only. */
  .an-offcanvas { display: none !important; }
}

@media (max-width: 991.98px) {
  .an-hed-xl { font-size: 1.75rem; }
  .an-curated__cell { border-left: 0; padding: 12px 0; }
  .an-panel-lavender { padding: 30px 18px; }
}

@media (max-width: 767.98px) {
  .an-masthead__brand .an-wordmark { font-size: 1.5rem; }
  .an-masthead__brand .an-wordmark svg { width: 24px; height: 14px; }
  .an-masthead__brand .an-tagline { font-size: 0.8125rem; }
  .an-masthead__brand { padding-right: 50px; }
}

@media (max-width: 479.98px) {
  .an-masthead__brand .an-wordmark { font-size: 1.15rem; gap: 5px; }
  .an-masthead__brand .an-wordmark svg { width: 19px; height: 11px; }
  .an-masthead__brand .an-tagline { font-size: 0.75rem; }
  .an-masthead__brand { padding-right: 46px; }
  .an-burger { width: 38px; height: 38px; }
}

@media (max-width: 575.98px) {
  .an-search__brand .an-wordmark { font-size: 1.5rem; }
  .an-search__form { gap: 10px; flex-wrap: wrap; }
  .an-search__form input { font-size: 1.25rem; order: 1; flex-basis: calc(100% - 90px); }
  .an-search__icon { order: 0; }
  .an-search__close { order: 2; margin-left: auto; }
  .an-search__submit { order: 3; width: 100%; margin-top: 6px; }
}

/* A g-5 row carries -24px side margins but a Bootstrap container only has
   12px of padding, so the row overhangs by 12px a side. That is harmless once
   the container is capped at 1230px and the viewport is wide enough to absorb
   it (>= 1280px); below that it pushes the whole page sideways. */
@media (max-width: 1279.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 767.98px) {
  .an-newsletter-form { flex-direction: column; }
  .an-newsletter-form input { border-right: 1px solid #ddd; }
  .an-newsletter-form button { justify-content: center; }
  .an-footer__bottom { flex-direction: column; }
  .an-overlay { aspect-ratio: 4 / 3; }
}
