/*
Theme Name: LLA Draft
Description: Custom theme porting the approved Little League Alberta draft design (navy/red, Barlow Condensed + Source Sans 3). Built from the September 2026 draft artifact.
Version: 1.7.22
Author: Little League Alberta
*/

    :root {
      color-scheme: light dark;
      --navy: #071b3b;
      --navy-2: #0d2d58;
      --red: #c8102e;
      --red-dark: #981027;
      --sky: #dceef8;
      --paper: #f7f8f5;
      --surface: #ffffff;
      --surface-2: #edf3f7;
      --ink: #10233c;
      --muted: #526277;
      --line: #cad6df;
      --white: #ffffff;
      --shadow: 0 18px 44px rgba(7,27,59,.11);
      --radius-sm: 8px;
      --radius-md: 16px;
      --radius-lg: 28px;
      --focus: #f4b740;
      --field: #167446;
    }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--paper); }
    body {
      margin: 0;
      min-width: 280px;
      background: var(--paper);
      color: var(--ink);
      font-family: "Source Sans 3", sans-serif;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    button, a { -webkit-tap-highlight-color: transparent; }
    a { color: inherit; }
    img { display: block; max-width: 100%; }
    button, input { font: inherit; }
    .skip-link {
      position: fixed; left: 12px; top: -100px; z-index: 100;
      background: var(--focus); color: #151515; padding: 10px 14px; font-weight: 800;
    }
    .skip-link:focus { top: 12px; }
    .site-nav {
      position: sticky; top: 0; z-index: 40;
      background: rgba(7,27,59,.97);
      color: var(--white);
      border-bottom: 3px solid var(--red);
    }
    .nav-inner {
      max-width: 1240px; margin: 0 auto; min-height: 66px; padding: 0 24px;
      display: flex; align-items: center; justify-content: space-between; gap: 22px;
    }
    .nav-mark {
      text-decoration: none; display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
      font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.05rem;
    }
    .nav-mark svg { width: 27px; height: 27px; }
    .nav-list { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
    .nav-link {
      display: flex; align-items: center; min-height: 63px; padding: 0 11px;
      text-decoration: none; font-size: .88rem; font-weight: 700; color: #e9f0f7;
      border-bottom: 3px solid transparent; margin-bottom: -3px;
    }
    .nav-link:hover { background: rgba(255,255,255,.07); }
    .nav-link[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
    .menu-button {
      display: none; border: 1px solid rgba(255,255,255,.42); background: transparent; color: #fff;
      border-radius: var(--radius-sm); padding: 8px 11px; font-weight: 700;
    }
    main { min-height: 70vh; }
    .wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
    .narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
    .hero {
      background: var(--navy); color: var(--white); overflow: hidden; position: relative;
      border-bottom: 8px solid var(--red);
    }
    .hero::after {
      content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px;
      border: 38px solid rgba(255,255,255,.05); border-radius: 50%;
    }
    .hero-grid {
      width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 570px;
      display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 72px;
      padding: 72px 0 78px; position: relative; z-index: 1;
    }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--red);
      font-size: .92rem; letter-spacing: .03em;
    }
    .hero .eyebrow, .banner .eyebrow { color: #ff6e7d; }
    .eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
    h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; line-height: .98; margin: 0; }
    h1 { font-size: clamp(3.3rem, 7vw, 6.4rem); max-width: 760px; letter-spacing: -.035em; }
    h2 { font-size: clamp(2.3rem, 4.5vw, 4rem); letter-spacing: -.02em; }
    h3 { font-size: 1.55rem; }
    .lead { font-size: 1.22rem; max-width: 650px; color: #d7e3ee; margin: 24px 0 30px; }
    .actions { display: flex; gap: 12px; flex-wrap: wrap; }
    .button {
      display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
      border-radius: 9px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800;
      border: 2px solid var(--red); gap: 9px;
    }
    .button:hover { background: var(--red-dark); border-color: var(--red-dark); }
    .button.secondary { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
    .button.secondary:hover { background: rgba(255,255,255,.09); border-color: #fff; }
    .button.ink { background: var(--navy); border-color: var(--navy); color: #fff; }
    .button.light { background: var(--surface); border-color: var(--surface); color: var(--navy); }
    .hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.hero-photos img { display: block; width: 100%; height: 172px; object-fit: cover; border-radius: 12px; }
.hero-badge {
      position: relative; background: #fff; border-radius: 34px 34px 12px 34px; padding: 38px 28px 26px;
      box-shadow: 0 25px 70px rgba(0,0,0,.28); transform: rotate(1.5deg);
    }
    .hero-badge img { width: 100%; height: auto; }
    .hero-badge::after {
      content: "ALBERTA"; position: absolute; left: 24px; bottom: -20px; background: var(--red); color: #fff;
      font: 800 1rem/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; padding: 12px 17px;
    }
    .quick-paths {
      margin-top: -34px; position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3,1fr);
      background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius-md); overflow: hidden;
    }
    .quick-path {
      padding: 26px 28px; text-decoration: none; border-right: 1px solid var(--line); min-height: 130px;
      display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px;
    }
    .quick-path:last-child { border-right: 0; }
    .quick-path:hover { background: var(--surface-2); }
    .quick-path svg { width: 38px; height: 38px; color: var(--red); }
    .quick-path strong { display: block; font: 800 1.45rem/1.05 "Barlow Condensed", sans-serif; }
    .quick-path span { display: block; color: var(--muted); font-size: .92rem; margin-top: 5px; }
    .section { padding: 92px 0; }
    .section.tight { padding: 68px 0; }
    .section.sky { background: var(--sky); }
    .section.navy { background: var(--navy); color: #fff; }
    .section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
    .section-head p { max-width: 560px; color: var(--muted); margin: 0; font-size: 1.04rem; }
    .section.navy .section-head p { color: #cddae6; }
    .stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.22); }
    .stat { padding: 36px 28px 28px 0; }
    .stat strong { font: 800 clamp(2.5rem,5vw,4.3rem)/1 "Barlow Condensed",sans-serif; color: #fff; }
    .stat span { display: block; margin-top: 8px; color: #cfdbe8; max-width: 250px; }
    .source-note { margin-top: 22px; font-size: .82rem; color: var(--muted); }
    .section.navy .source-note { color: #aebfd0; }
    .cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
    .card {
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px;
      color: var(--ink);
    }
    .card-number { font: 800 2.6rem/1 "Barlow Condensed",sans-serif; color: var(--red); }
    .card p { color: var(--muted); margin: 13px 0 0; }
    .card-link { display: inline-flex; margin-top: 18px; color: var(--red); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
    .feature-split { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 430px; }
    .feature-graphic {
      background: var(--red); color: #fff; padding: 48px; position: relative; overflow: hidden;
      display: flex; flex-direction: column; justify-content: space-between;
    }
    .feature-graphic .date { font: 800 clamp(3rem,6vw,5.4rem)/.85 "Barlow Condensed",sans-serif; letter-spacing: -.03em; }
    .feature-graphic .date .date-range { white-space: nowrap; font-size: .62em; }
    .feature-graphic .date .date-year { font-size: .55em; }
    .feature-graphic .champ-logo { width: 100%; max-width: 240px; height: auto; align-self: center; }
    .feature-graphic svg { position: absolute; width: 230px; right: -38px; bottom: -40px; opacity: .13; }
    .feature-copy { padding: 56px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; }
    .feature-copy p { color: var(--muted); font-size: 1.12rem; max-width: 620px; }
    .page-head { background: var(--navy); color: #fff; padding: 72px 0 58px; border-bottom: 7px solid var(--red); }
    .page-head p { color: #ccdae6; font-size: 1.16rem; max-width: 720px; margin: 18px 0 0; }
    .content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
    .prose h2 { margin: 0 0 20px; }
    .prose h3 { margin-top: 34px; }
    .prose p, .prose li { color: var(--muted); font-size: 1.06rem; }
    .prose ul { padding-left: 20px; }
    .callout {
      background: var(--surface-2); border-radius: 12px; padding: 28px; border-top: 5px solid var(--red);
    }
    .callout h3 { margin-bottom: 12px; }
    .callout p { margin: 0; color: var(--muted); }
    .district-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
    .district {
      background: var(--surface); border: 1px solid var(--line); padding: 26px 22px; min-height: 150px;
      display: flex; flex-direction: column; justify-content: space-between; border-radius: 12px;
    }
    .district strong { font: 800 2rem/1 "Barlow Condensed",sans-serif; }
    .district span { color: var(--muted); font-size: .9rem; }
    .district.featured { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
    .district.featured span { color: #d2deea; }
    .step-list { counter-reset: steps; display: grid; gap: 18px; margin-top: 36px; }
    .step {
      counter-increment: steps; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
      background: var(--surface); border: 1px solid var(--line); padding: 24px; border-radius: 12px;
    }
    .step::before {
      content: counter(steps); width: 46px; height: 46px; display: grid; place-items: center;
      background: var(--red); color: #fff; border-radius: 50%; font: 800 1.4rem/1 "Barlow Condensed",sans-serif;
    }
    .step h3 { margin-top: 2px; }
    .step p { margin: 8px 0 0; color: var(--muted); }
    .program-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
    .program {
      background: var(--surface); border: 1px solid var(--line); padding: 34px; min-height: 235px; position: relative;
      border-radius: 16px; overflow: hidden;
    }
    .program::after { content: ""; position: absolute; height: 9px; left: 0; right: 0; bottom: 0; background: var(--red); }
    .program:nth-child(2n)::after { background: var(--navy-2); }
    .program svg { width: 42px; height: 42px; color: var(--red); margin-bottom: 22px; }
    .program p { color: var(--muted); }
    .resource-list { display: grid; gap: 12px; }
    .resource-row {
      display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px;
      background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; border-radius: 10px;
    }
    .resource-row svg { width: 30px; height: 30px; color: var(--red); }
    .resource-row strong { display: block; }
    .resource-row span { color: var(--muted); font-size: .9rem; }
    .status { font-size: .78rem !important; font-weight: 800; color: var(--navy) !important; background: var(--sky); padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
    .empty-state {
      background: var(--surface); border: 2px dashed var(--line); padding: 38px; border-radius: 14px; text-align: center;
    }
    .empty-state svg { width: 54px; height: 54px; color: var(--red); margin: 0 auto 18px; }
    .empty-state p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
    .event-card {
      display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--line);
      border-radius: 14px; overflow: hidden; margin-bottom: 18px;
    }
    .event-date { background: var(--red); color: #fff; padding: 26px; display: grid; place-content: center; text-align: center; }
    .event-date strong { font: 800 2rem/.95 "Barlow Condensed",sans-serif; }
    .event-body { padding: 26px 28px; }
    .event-body p { color: var(--muted); margin-bottom: 0; }
    .contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
    .contact-panel > div { padding: 42px; }
    .contact-panel > div:first-child { background: var(--navy); color: #fff; }
    .contact-panel p { color: var(--muted); }
    .contact-panel > div:first-child p { color: #cedae6; }
    .handle { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--red); }
    footer { background: #06152d; color: #e5edf5; padding: 44px 0 28px; }
    .footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 56px; }
    .footer-logo { display: block; width: 100%; max-width: 340px; height: auto; background: #fff; padding: 14px; border-radius: 8px; }
    .footer-note { color: #aebed0; max-width: 420px; margin: 18px 0 0; }
    .footer-social { display: flex; gap: 6px; margin-top: 18px; }
    .footer-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: #cfe0f2; text-decoration: none; }
    .footer-social a:hover { background: rgba(255,255,255,.14); color: #fff; }
    .footer-social svg { width: 17px; height: 17px; display: block; }
    .footer-heading { color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
    .footer-links { display: block; align-content: start; }
    .footer-links a { display: block; color: #dbe7f5; text-decoration: none; padding: 5px 0; }
    .footer-links a:hover { text-decoration: underline; color: #fff; }
    .footer-contact p { margin: 0 0 10px; }
    .footer-contact a { color: #dbe7f5; text-decoration: none; }
    .footer-contact a:hover { text-decoration: underline; color: #fff; }
    .footer-contact address { font-style: normal; color: #aebed0; line-height: 1.65; margin: 14px 0 0; }
    .footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid #2c4058; color: #91a4b8; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
    .footer-legal a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
    .footer-legal a:hover { color: #ffd9de; }
    :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
    @media (max-width: 1060px) {
      .menu-button { display: inline-flex; }
      .nav-list {
        display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--navy);
        padding: 10px 18px 18px; flex-direction: column; border-bottom: 3px solid var(--red); box-shadow: 0 12px 25px rgba(0,0,0,.2);
      }
      .nav-list.open { display: flex; }
      .nav-link { min-height: 44px; padding: 0 10px; border-bottom: 0; margin: 0; border-left: 3px solid transparent; }
      .nav-list > li > a.nav-link { max-width: none; justify-content: flex-start; text-align: left; }
      .nav-link[aria-current="page"] { border-left-color: var(--red); background: rgba(255,255,255,.07); }
      .hero-grid { grid-template-columns: 1fr .7fr; gap: 38px; min-height: 520px; }
      .district-grid { grid-template-columns: repeat(3,1fr); }
    }
    @media (max-width: 780px) {
      .wrap, .narrow, .hero-grid { width: min(100% - 32px, 1180px); }
      .nav-inner { padding: 0 16px; }
      .hero-grid { grid-template-columns: 1fr; padding: 56px 0 74px; gap: 42px; }
      .hero-badge { max-width: 500px; transform: none; }
      .quick-paths { grid-template-columns: 1fr; margin-top: -26px; }
      .quick-path { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
      .quick-path:last-child { border-bottom: 0; }
      .section { padding: 66px 0; }
      .section.tight { padding: 52px 0; }
      .section-head { align-items: start; flex-direction: column; margin-bottom: 30px; }
      .cards, .stats, .program-grid { grid-template-columns: 1fr; }
      .stat { border-bottom: 1px solid rgba(255,255,255,.15); }
      .feature-split { grid-template-columns: 1fr; }
      .feature-copy { padding: 40px 28px; }
      .feature-graphic { min-height: 320px; padding: 36px 28px; }
      .content-grid { grid-template-columns: 1fr; gap: 34px; }
      .district-grid { grid-template-columns: repeat(2,1fr); }
      .event-card { grid-template-columns: 1fr; }
      .event-date { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
      .contact-panel { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; gap: 36px; }
      .footer-bottom { flex-direction: column; }
    }
    @media (max-width: 480px) {
      .nav-mark span { display: none; }
      .hero-grid { padding-top: 42px; }
      h1 { font-size: 3.25rem; }
      .lead { font-size: 1.06rem; }
      .actions { flex-direction: column; }
      .button { width: 100%; }
      .hero-badge { padding: 28px 18px 20px; border-radius: 22px 22px 8px 22px; }
      .quick-path { padding: 22px 20px; }
      .district-grid { grid-template-columns: 1fr; }
      .resource-row { grid-template-columns: 38px 1fr; }
      .resource-row .status { grid-column: 2; justify-self: start; }
      .contact-panel > div { padding: 30px 24px; }
      .footer-links { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============ WordPress integration (not part of the draft) ============ */
/* Keep the sticky nav below the WP admin bar for logged-in editors */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

/* WordPress menu output mapped onto the draft's nav styles */
.nav-list { list-style: none; }
.nav-list li { display: flex; align-items: stretch; }
/* ============ Two-line top-level menu labels ============ */
.nav-list > li > a.nav-link { max-width: 138px; justify-content: center; text-align: center; line-height: 1.25; }
/* ============ Dropdown sub-menus ============ */
.nav-list > li { position: relative; }
.nav-list .menu-item-has-children > a.nav-link::after { content: '\25be'; margin-left: 7px; font-size: .72em; opacity: .85; }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #0a2242; border-top: 3px solid var(--red); border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); z-index: 70; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu li { display: block; }
.nav-list .sub-menu .nav-link { min-height: 0; padding: 11px 14px; margin: 0; border-bottom: 0; border-radius: 8px; white-space: nowrap; font-size: .92rem; }
.nav-list .sub-menu .nav-link:hover { background: rgba(255,255,255,.1); }
.nav-list .sub-menu .nav-link[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 1060px) {
  .nav-list .sub-menu { position: static; display: block; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 4px 16px; min-width: 0; }
  .nav-list .sub-menu .nav-link { padding: 10px 12px; }
  .nav-list .menu-item-has-children > a.nav-link::after { content: ''; margin: 0; }
}

/* Core block compatibility for editor-managed pages */
.prose .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 9px;
  background: var(--red); color: #fff !important; text-decoration: none;
  font-weight: 800; border: 2px solid var(--red);
}
.prose .wp-block-button__link:hover { background: var(--red-dark); border-color: var(--red-dark); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--red) !important; }
.prose a { color: var(--red); }
.prose a:hover { color: var(--red-dark); }

/* ============ Flipped hero: logo left, headline right (desktop) ============ */
.hero-grid { grid-template-columns: .8fr 1.2fr; }
.hero-grid > .hero-copy { order: 2; }
.hero-grid > .hero-brand { order: 1; }
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: .7fr 1fr; }
}
@media (max-width: 780px) {
  .hero-grid > .hero-copy, .hero-grid > .hero-brand { order: 0; }
}

/* ============ Front-page news carousel ============ */
.news-carousel { max-width: 1080px; margin: 0 auto; }
.news-track { position: relative; }
.news-slide { display: none; }
.news-slide.is-active { display: block; animation: lla-fade .45s ease; }
@keyframes lla-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.news-slide .event-card { margin-bottom: 0; box-shadow: var(--shadow); }
.news-head-actions { display: flex; align-items: center; gap: 16px; }
.news-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.news-prev, .news-next {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--navy); font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.news-prev:hover, .news-next:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-dots { display: flex; gap: 8px; }
.news-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.news-dot.is-active { background: var(--red); }
@media (max-width: 780px) {
  .news-head-actions { flex-direction: column; align-items: flex-start; }
}

/* ============ Hero brand column: badge + tagline ============ */
.hero-brand { display: flex; flex-direction: column; gap: 30px; transform: translateY(-16px); }
.hero-tagline .eyebrow { text-transform: uppercase; }
.hero-tagline h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -.02em; margin: 12px 0 14px; }
.hero-tagline p { color: #d7e3ee; font-size: 1.05rem; line-height: 1.55; margin: 0; max-width: 400px; }
@media (max-width: 780px) { .hero-brand { transform: none; } }

/* ============ Bylaws page: left TOC + right content ============ */
.bylaws-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; align-items: start; }
.bylaws-toc { position: sticky; top: 110px; background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 14px; padding: 22px 22px 18px; }
.bylaws-toc strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; color: #0d2a4d; margin-bottom: 10px; }
.bylaws-toc ol { margin: 0; padding-left: 22px; }
.bylaws-toc li { margin: 7px 0; font-size: .93rem; line-height: 1.4; }
.bylaws-toc a { color: #33475f; text-decoration: none; }
.bylaws-toc a:hover { color: #c8102e; text-decoration: underline; }
.bylaws-body section { scroll-margin-top: 110px; }
.bylaws-draft { background: #fff7e8; border: 1px solid #f0d48a; border-left: 5px solid #d9a521; border-radius: 8px; padding: 14px 18px; }
.bylaws-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 10px; padding: 16px 20px; margin: 24px 0 8px; font-size: .95rem; }
.bylaws-meta div span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6b80; margin-bottom: 2px; }
.bylaws-body h2 { color: #0d2a4d; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.01em; margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 3px solid #c8102e; }
.bylaws-body h3 { color: #0d2a4d; font-size: 1.25rem; margin: 1.6em 0 .5em; }
.bylaws-body p, .bylaws-body li { color: #2c3e52; line-height: 1.65; }
.bylaws-body ul.bl { list-style: none; margin: 0 0 1em; padding: 0; }
.bylaws-body ul.bl > li { margin: .45em 0; }
.bylaws-body ul.bl ul.bl { margin: .3em 0 .3em 1.6em; }
.bylaws-body del { color: #8a94a3; }
.bylaws-signers p { margin: .6em 0; }
@media (max-width: 900px) {
  .bylaws-layout { grid-template-columns: 1fr; }
  .bylaws-toc { position: static; }
  .bylaws-meta { grid-template-columns: 1fr; }
}

/* ============ Utility bars under header ============ */
.utility-social { background: #0a2242; }
.utility-social-inner { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
.utility-label { color: #9db4d0; font-size: .8rem; letter-spacing: .04em; margin-right: 8px; }
.utility-social-inner a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: #cfe0f2; text-decoration: none; }
.utility-social-inner a:hover { background: rgba(255,255,255,.14); color: #fff; }
.utility-social-inner svg { width: 16px; height: 16px; display: block; }
.finder-bar { background: #c8102e; }
.finder-bar a { display: block; text-align: center; color: #fff; text-decoration: none; font-size: .95rem; padding: 9px 16px; }
.finder-bar a:hover { text-decoration: underline; }
.finder-bar strong { font-weight: 700; }
@media (max-width: 720px) { .utility-social-inner { justify-content: center; } .utility-label { display: none; } }

/* ============ News cards: bigger, with photo ============ */
.news-card { display: grid; grid-template-columns: 42% 1fr; background: #0d2a4d; border: 1px solid #1b3a5c; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; min-height: 300px; }
a.news-card:hover .news-body h3 { color: #fff; text-decoration: underline; }
.news-photo { background: linear-gradient(135deg, #0d2a4d 0%, #1b4a7a 60%, #c8102e 130%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 280px; }
.news-photo svg { width: 72px; height: 72px; }
.news-photo-logo { background: #fff; padding: 28px; }
.news-photo-logo img { max-width: 100%; max-height: 224px; width: auto; height: auto; }
.news-photo span { color: #9db4d0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.news-body { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; background: #0d2a4d; }
.news-kicker { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.news-kicker strong { color: #ff6b5e; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.news-kicker span { color: #9db4d0; font-size: .9rem; }
.news-body h3 { font-size: 1.65rem; margin: 0 0 10px; color: #fff; letter-spacing: -.01em; }
.news-body p { color: #d7e3f2; font-size: 1.05rem; margin: 0 0 14px; }
@media (max-width: 720px) {
  .news-card { grid-template-columns: 1fr; min-height: 0; }
  .news-photo { min-height: 190px; }
  .news-body { padding: 26px 24px; }
  .news-body h3 { font-size: 1.4rem; }
}

/* ============ Homepage Safe band ============ */
.safe-band-head { align-items: center; }
.safe-shield-badge { flex: 0 0 auto; background: #fff; border: 1px solid #e2e9f1; border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 22px rgba(13,42,77,.10); }
.safe-shield-badge img { display: block; width: 104px; height: auto; }
.safe-band { background: #fff; }
.safe-lede { max-width: 780px; font-size: 1.1rem; color: #3c4f66; margin: 0 0 6px; }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.safe-card { background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 14px; padding: 22px 24px; }
.safe-card.safe-urgent { border-left: 5px solid #c8102e; }
.safe-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: #0d2a4d; }
.safe-card p { margin: 0; font-size: .96rem; color: #3c4f66; line-height: 1.6; }
.safe-card a { color: #c8102e; font-weight: 600; }
@media (max-width: 860px) { .safe-grid { grid-template-columns: 1fr; } }

/* ============ Safe page ============ */
.safe-lede { font-size: 1.15rem; color: #3c4f66; max-width: 800px; }
.safe-emergency { background: #fdf0f0; border: 1px solid #f0c0c0; border-left: 5px solid #c8102e; border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.safe-emergency h3 { margin: 0 0 8px; color: #0d2a4d; }
.safe-emergency p { margin: .4em 0; }
.safe-emergency a { color: #c8102e; }
.safe-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0 8px; }
.safe-pillar { background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 14px; padding: 22px 24px; }
.safe-pillar h3 { margin: 0 0 8px; color: #0d2a4d; }
.safe-pillar p { margin: 0 0 10px; font-size: .96rem; color: #3c4f66; }
.safe-pillar ul { margin: 0; padding-left: 20px; font-size: .93rem; color: #3c4f66; }
.safe-pillar li { margin: 4px 0; }
.safe-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 8px; }
.safe-route { background: #fff; border: 1px solid #dbe3ee; border-top: 4px solid #0d2a4d; border-radius: 12px; padding: 20px 22px; }
.safe-route-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; color: #c8102e; }
.safe-route h3 { margin: 6px 0 8px; color: #0d2a4d; }
.safe-route p { margin: .4em 0; font-size: .94rem; color: #3c4f66; }
.safe-route a { color: #c8102e; font-weight: 600; }
.safe-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 20px 0 8px; }
.safe-step { background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 12px; padding: 16px 18px; }
.safe-step h3 { margin: 0 0 6px; font-size: 1.02rem; color: #0d2a4d; }
.safe-step p { margin: 0; font-size: .88rem; color: #3c4f66; line-height: 1.55; }
.safe-step a { color: #c8102e; font-weight: 600; }
.safe-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 8px 0; }
.safe-sub { font-size: 1rem; color: #6b7c93; font-weight: 400; }
.safe-list { margin: 0; padding-left: 22px; color: #2c3e52; }
.safe-list li { margin: 7px 0; line-height: 1.55; }
.safe-training { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 8px; }
.safe-training-card { background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 14px; padding: 22px 24px; }
.safe-training-card h3 { margin: 0 0 8px; color: #0d2a4d; font-size: 1.1rem; }
.safe-org { font-size: .92rem; color: #6b7c93; font-weight: 400; }
.safe-training-card p { font-size: .94rem; color: #3c4f66; }
.safe-source { font-size: .85rem; color: #6b7c93; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
@media (max-width: 960px) {
  .safe-pillars, .safe-routes, .safe-training { grid-template-columns: 1fr 1fr; }
  .safe-steps { grid-template-columns: 1fr 1fr; }
  .safe-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .safe-pillars, .safe-routes, .safe-training, .safe-steps { grid-template-columns: 1fr; }
}

/* ============ Safe section image banner ============ */
.page-head--safe { background: linear-gradient(120deg, #0d2a4d 0%, #163e6e 65%, #0d2a4d 100%); }
.safe-banner-grid { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.safe-banner-logo { display: block; width: 190px; height: auto; margin-bottom: 16px; }
.safe-banner-badge { background: #fff; border-radius: 18px; padding: 18px 28px; box-shadow: 0 14px 34px rgba(0,0,0,.28); transform: rotate(1.5deg); }
.safe-banner-badge img { display: block; width: 220px; height: auto; }
@media (max-width: 720px) {
  .safe-banner-grid { grid-template-columns: 1fr; gap: 26px; }
  .safe-banner-badge { justify-self: start; }
  .safe-banner-badge img { width: 168px; }
  .safe-banner-logo { width: 150px; margin-bottom: 12px; }
}
/* ============ Safe hub cards ============ */
.safe-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.safe-hub-card { display: block; background: #f3f6fb; border: 1px solid #dbe3ee; border-radius: 16px; padding: 26px 28px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.safe-hub-card:hover { border-color: #c8102e; box-shadow: var(--shadow); }
.safe-hub-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; color: #c8102e; }
.safe-hub-card h3 { margin: 8px 0; color: #0d2a4d; font-size: 1.45rem; }
.safe-hub-card p { color: #3c4f66; margin: 0 0 12px; }
.back-link { display: inline-block; color: #0d2a4d; font-weight: 600; text-decoration: none; }
.back-link:hover { color: #c8102e; text-decoration: underline; }
@media (max-width: 720px) { .safe-hub-grid { grid-template-columns: 1fr; } }

/* ============ Homepage program logos row ============ */
.hero-programs { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 18px; margin-top: 20px; }
.hero-programs img { width: 110px; height: auto; display: block; flex: 0 0 auto; }
.hero-programs img:first-child { width: 128px; }
