/*
 * East Coast MX NL (ECMX): "Island Dirt" layout and components, from the designer handoff ECMX-Island-Dirt
 * (concept 3: a Newfoundland motocross club bulletin built around a screen-printed race poster).
 * Colours and fonts come from css/theme.css. Customer layer: LiveLaps overwrites css/site.css and
 * css/imported.css, never this file.
 *
 * Wide screens (1100 px and up) show the navy rail on the left: the shared header, restyled. The rail rules are
 * scoped to html[data-ecmx-rail], which only this site's pages carry, and to the participant app's Shop pages
 * (my.<host>/<lang>/shop..., marked [data-site-area="shop"]), which copy the header rules: there
 * --site-header-placement: start makes the app lay the header out as a rail and start the page
 * --site-header-rail-width in. The participant app's other pages keep the navy top bar (its dashboard has a
 * sidebar of its own). Narrow screens use the top bar too.
 */

/* ------------------------------------------------------------------ base */
:root { --rail-w: 255px; --site-header-rail-width: var(--rail-w); --col-pad: 16px; --col-max: 1400px; --site-header-row-height: 4.5rem; }
@media (min-width: 700px) { :root { --col-pad: 32px; } }
@media (min-width: 1100px) { :root { --col-pad: 49px; } }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground); font: 17px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
*:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--action-peach); color: #112e43; border: 2px solid #112e43; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.065em; }
h3 { font-size: 21px; letter-spacing: -.04em; line-height: 1.12; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
.arr { font-family: Arial, sans-serif; font-weight: 400; margin-left: 8px; }
.label { font: 500 12px/1.5 var(--font-mono); letter-spacing: .02em; }
.copy { max-width: 70ch; }
.copy :is(ul, ol) { padding-left: 1.3em; margin: 0 0 12px; }
.copy li { margin-bottom: 6px; }
.copy a, .textlink { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.copy a:hover, .textlink:hover { color: var(--vermilion); }
.copy h2 { margin-top: 28px; font-size: clamp(26px, 2.6vw, 32px); }
.copy ul:not(.checklist) { list-style: disc; }
.copy ol { list-style: decimal; }

/* the column every page's content sits in */
.col { width: min(100% - 2 * var(--col-pad), var(--col-max)); margin-inline: auto; }

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-flex; align-items: center; gap: 4px; padding: 13px 19px; border: 2px solid #112e43; box-shadow: 3px 3px 0 #112e43;
  background: var(--action-peach); color: #112e43; font: 700 16px var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.button:hover { background: #f79b78; }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #112e43; }
.button--blue { background: var(--caption-blue); }
.button--blue:hover { background: #bcdcdc; }
.button--paper { background: var(--ticket-paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 20px; }

/* ------------------------------------------------------------------ bulletin bar (top of the column, every page) */
.bulletin { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; border-bottom: 2px solid var(--ink); }
.bulletin__name { font: 700 21px var(--font-sans); letter-spacing: -.035em; margin: 0; }
.bulletin__links { display: flex; gap: 22px; align-items: center; font: 700 15px var(--font-sans); }
.bulletin__links a { text-decoration: none; }
.bulletin__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) { .bulletin { height: 58px; } .bulletin__name { font-size: 18px; } }

/* ------------------------------------------------------------------ the poster (home hero, page titles) */
.poster { margin-top: 23px; border: 3px solid var(--ink); background: var(--poster-stock); box-shadow: 5px 5px 0 var(--ink); }
.poster__title { padding: 24px 32px 20px; position: relative; overflow: hidden; }
.kicker { font: 700 14px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.poster h1 { font-size: clamp(54px, 7.2vw, 109px); line-height: .95; letter-spacing: -.074em; margin: 4px 0 8px; }
.poster h1 .dot, .poster h1 + .dot { color: var(--vermilion); }
.poster__lede { font: 700 18px var(--font-sans); letter-spacing: .003em; max-width: 46em; padding-right: 110px; }
.poster__lede p { margin: 0; }
.stripes { position: absolute; right: 28px; bottom: 29px; display: flex; gap: 8px; transform: skew(-22deg); }
.stripes i { width: 16px; height: 52px; background: var(--vermilion); }
.stripes i:nth-child(2) { background: var(--stripe-blue); }
.stripes i:nth-child(3) { background: #112e43; }
.dark .stripes i:nth-child(3) { background: var(--paper); }
.poster__art { margin: 0; height: clamp(260px, 30vw, 476px); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.poster__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-height: 59px; padding: 10px 30px; background: var(--caption-blue); color: #112e43; }
.caption strong { font: 21px var(--font-display); letter-spacing: -.04em; }
.caption a { font: 700 16px var(--font-sans); text-decoration: none; }
.caption a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* inner pages: the poster title without the art */
.poster--page h1 { font-size: clamp(44px, 5.6vw, 84px); }
.poster--page .poster__lede { font-weight: 400; font-size: 19px; line-height: 1.45; }
@media (max-width: 699px) {
  .poster__title { padding: 18px 18px 16px; }
  .kicker { font-size: 12px; }
  .poster__lede { font-size: 16px; padding-right: 64px; }
  .stripes { right: 16px; bottom: 18px; gap: 6px; }
  .stripes i { width: 11px; height: 36px; }
  .poster__art img { object-position: 74% 0%; }
  .caption { padding: 12px 16px; }
  .caption strong { font-size: 17px; }
}

/* ------------------------------------------------------------------ sections */
.block { margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 22px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.block-head h2 { margin: 0; }
.block-head .lede { flex-basis: 100%; max-width: 62ch; margin-top: 6px; }
.lede { font-size: 19px; line-height: 1.45; }
.callout { display: flex; align-items: center; gap: 34px; margin-top: 37px; border-top: 2px solid var(--ink); padding-top: 25px; }
.callout h2 { margin: 0; white-space: nowrap; }
.callout p { margin: 0; max-width: 40ch; }
.callout .button { margin-left: auto; }
@media (max-width: 899px) { .callout { flex-direction: column; align-items: flex-start; gap: 12px; } .callout h2 { white-space: normal; } .callout .button { margin-left: 0; } }
.split { display: grid; gap: 28px 48px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

/* three ruled columns */
.three { display: grid; list-style: none; margin: 0; padding: 0; }
.three > li { padding: 4px 26px 6px 0; }
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .three > li + li { border-left: 1px solid var(--rule-soft); padding-left: 26px; } }
@media (max-width: 899px) { .three > li + li { border-top: 1px solid var(--rule-soft); padding-top: 16px; margin-top: 14px; } }
.three p { font-size: 16px; }

/* boxed cards with the hard shadow */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cards > li { display: flex; }
.card { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 2px solid var(--ink); background: var(--poster-stock); box-shadow: 4px 4px 0 var(--ink); }
.card p { font-size: 16px; }
.card .textlink { margin-top: auto; padding-top: 8px; }

/* race calendar: plain paper, navy rules, clear race details */
.calendar { width: 100%; border-collapse: collapse; font-size: 16px; }
.calendar th { text-align: left; font: 500 12px var(--font-mono); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); }
.calendar td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.calendar td:first-child { font: 22px var(--font-display); letter-spacing: -.04em; width: 70px; }
@media (max-width: 699px) { .calendar th:nth-child(3), .calendar td:nth-child(3) { display: none; } }
.note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; background: var(--poster-stock); border: 2px solid var(--ink); padding: 16px 20px; }
.note > div { flex: 1 1 26rem; }
.upcoming { margin-bottom: 22px; }

/* numbered steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.steps > li::before { content: counter(step); grid-row: span 2; font: 38px/1 var(--font-display); letter-spacing: -.05em; color: var(--vermilion); }
.steps h3 { margin: 0; }
.steps p { font-size: 16px; margin: 0; }
.steps a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.steps a:hover { color: var(--vermilion); }
/* the promoter's app store badges (js/livelaps.js "promoter-apps"; hidden while the promoter has no app) */
.steps .app-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.app-links [data-slot="card-header"] { display: none; }
.app-links [data-slot="card"], .app-links [data-slot="card-content"] { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.app-links img { height: 44px; width: auto; }
@media (min-width: 900px) { .steps--wide > li { grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.3fr); align-items: baseline; } .steps--wide > li::before { grid-row: auto; } }

/* checklists: the three-stripe mark */
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 14px; background: linear-gradient(90deg, var(--vermilion) 0 30%, transparent 30% 35%, var(--stripe-blue) 35% 65%, transparent 65% 70%, #112e43 70%); transform: skew(-22deg); }

/* story card (news) */
.story { display: grid; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--poster-stock); }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.story__art img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: 70% 30%; }
@media (min-width: 900px) { .story__art { border-right: 3px solid var(--ink); } }
@media (max-width: 899px) { .story__art { border-bottom: 3px solid var(--ink); } }
.story__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.story__body h3 { font-size: 30px; letter-spacing: -.055em; line-height: 1.02; margin: 0; }
.story__body .textlink { margin-top: auto; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }

/* FAQ */
.faq { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.faq > li { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font: 19px var(--font-display); letter-spacing: -.035em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 28px/1 var(--font-sans); color: var(--vermilion); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 0 20px; }

/* Our roots: eras on a navy rule */
.eras { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--ink); display: grid; gap: 30px; }
.eras > li { position: relative; }
.eras > li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; background: var(--vermilion); border: 3px solid var(--ink); transform: rotate(45deg); }
.era__when { margin: 0 0 4px; }
.era h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.05em; }
.era .copy p { font-size: 17px; }
.pullquote { align-self: start; margin: 0; padding: 22px 26px; border: 3px solid var(--ink); background: var(--caption-blue); color: #112e43; box-shadow: 5px 5px 0 var(--ink); font: clamp(22px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -.045em; }
.ask { border: 2px dashed var(--ink); padding: 18px 22px; background: var(--poster-stock); }

/* ------------------------------------------------------------------ home: Platinum sponsor and member benefits */
/* The sponsor card: the logos on white (in both modes, the logos are made for white), the words on poster stock. */
.platinum__card { display: grid; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--poster-stock); }
@media (min-width: 900px) { .platinum__card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.platinum__logos { display: flex; flex-direction: column; background: #fff; color: #112e43; }
@media (min-width: 900px) { .platinum__logos { border-right: 3px solid var(--ink); } }
@media (max-width: 899px) { .platinum__logos { border-bottom: 3px solid var(--ink); } }
.platinum__logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(22px, 4vw, 48px); }
.platinum__logo img { display: block; width: min(100%, 580px); height: auto; }
/* Honda and Kawasaki, under the dealer's logo */
.platinum__brands { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 2px solid #112e43; }
.platinum__brands > li + li { border-left: 1px solid #b4aba0; }
.platinum__brands a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 92px; padding: 14px 20px; box-sizing: border-box; }
.platinum__brands img { display: block; width: auto; height: auto; max-height: 62px; max-width: min(100%, 190px); }
:is(.platinum__logo, .platinum__brands a):hover { background: #fffaf0; }
.platinum__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.platinum__body h3 { font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.06em; line-height: 1; margin: 0; }
.platinum__address { margin: 2px 0 0; }
.platinum__body .actions { margin-top: auto; padding-top: 10px; }
@media (max-width: 699px) { .platinum__body { padding: 20px 18px; } .platinum__brands a { min-height: 76px; padding: 12px 14px; } .platinum__brands img { max-height: 50px; } }
/* the offers: one boxed card each, the headline figure in the poster face */
.perks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 600px) { .perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .perks__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.perks__list > li { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; border: 2px solid var(--ink); background: var(--poster-stock); box-shadow: 4px 4px 0 var(--ink); }
/* cards side by side share their rows, so a headline on two lines keeps the rules under the headlines level */
@supports (grid-template-rows: subgrid) {
  .perks__list > li { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}
.perks__list p { font-size: 16px; margin: 0; }
.perks__list .perks__stat { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: clamp(30px, 2.8vw, 40px)/1 var(--font-display); letter-spacing: -.06em; color: var(--vermilion); }
.dark .perks__list .perks__stat { color: var(--action-peach); }
/* the membership price and the fine print */
.perks__note { margin-top: 28px; }
.perks__price { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.perks__price-amount { font: clamp(46px, 4.6vw, 64px)/.9 var(--font-display); letter-spacing: -.07em; }

/* contact form */
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form :is(input, textarea) { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); background: var(--ticket-paper); color: #112e43; border-radius: 0; }
.dark .contact-form :is(input, textarea) { background: var(--card); color: var(--foreground); }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form :is(input, textarea):focus { outline: 3px solid var(--vermilion); outline-offset: 0; }
.contact-form .req { color: var(--vermilion); }
[data-contact-status]:not(:empty) { margin-top: 14px; padding: 12px 16px; border: 2px solid var(--ink); background: var(--caption-blue); color: #112e43; font-weight: 700; }

/* the shared racing pages: their page title in the poster face */
[data-cms-section="page-heading"] h1 { font-family: var(--font-display); font-weight: 400 !important; letter-spacing: -.06em; }

/* ------------------------------------------------------------------ header: navy top bar (also the participant app) */
header[data-site-header] {
  --background: #112e43; --foreground: #fff2d7; --muted: #1d3f57; --muted-foreground: #cbdbdb; --accent: #1d3f57; --accent-foreground: #fff2d7;
  --border: #48616b; --input: #1d3f57; --ring: #f58459; --popover: #112e43; --popover-foreground: #fff2d7; --primary: #f58459; --primary-foreground: #112e43;
  color-scheme: dark; background: #112e43 !important; color: #fff2d7 !important; border-bottom: 4px solid #0b293d !important;
}
.dark header[data-site-header] { --background: #0b1c2a; --popover: #0b1c2a; background: #0b1c2a !important; border-bottom-color: #050f17 !important; }
header[data-site-header] [data-header-container] { padding-inline: var(--col-pad, 16px); max-width: 92rem; margin-inline: auto; }
/* the logo ticket */
header[data-site-header] [data-header-brand], header[data-site-header] [data-probe-brand] {
  margin: 0; padding: 5px 10px; background: #fffaf0; border: 3px solid #112e43; outline: 1px solid #f6eacf; transform: rotate(-3deg); align-self: center; line-height: 0;
}
header[data-site-header] [data-header-brand] img, header[data-site-header] [data-probe-brand] img { height: 2.6rem; width: auto; max-width: none; }
header[data-site-header] :is([data-nav-item] > a, [data-probe-item] > span, [data-more-item] > button, [data-probe-more] > span) {
  background: transparent; color: inherit; height: 2.5rem; padding: .5rem .75rem; border-radius: 0; font: 700 1rem/1 var(--font-sans);
}
header[data-site-header] [data-nav-item] > a:hover { background: rgba(255, 242, 215, .08); }
header[data-site-header] [data-nav-item] > a[data-active]::after { background: #9dcbd0; height: 3px; inset-inline: .75rem; bottom: .1rem; opacity: 1; }
header[data-site-header] :is([data-header-actions] a, [data-probe-actions] > span) {
  height: 2.5rem; padding: 0 1rem; border-radius: 0; font: 700 .95rem/1 var(--font-sans); display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
}
header[data-site-header] :is([data-header-actions] a.bg-primary, [data-probe-actions] > span.bg-primary) { background: #f58459 !important; color: #112e43 !important; border: 2px solid #fff2d7; box-shadow: 3px 3px 0 #0b293d; }
header[data-site-header] :is([data-header-actions] a:not(.bg-primary), [data-probe-actions] > span:not(.bg-primary)) { border: 2px solid transparent; color: inherit; }
header[data-site-header] :is([data-header-menu], [data-header-utilities] button) { color: inherit; }
header[data-site-header] [data-header-menu] { height: 2.75rem; min-width: 2.75rem; padding: 0 1rem; border: 2px solid currentColor; border-radius: 0; background: transparent; font: 700 1rem/1 var(--font-sans); gap: .5rem; align-items: center; }
header[data-site-header] [data-header-menu]:hover { background: #fff2d7; color: #112e43; }
header[data-site-header][data-layout="stacked"] [data-header-nav] { display: none; }
header[data-site-header][data-layout="stacked"] [data-header-menu] { display: inline-flex; grid-area: menu; }
header[data-site-header][data-layout="stacked"] [data-header-grid] { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "brand actions utilities menu"; grid-template-rows: var(--site-header-row-height); }
@media (max-width: 30rem) { header[data-site-header] [data-header-actions] a:not(.bg-primary) { display: none; } header[data-site-header] [data-header-brand] img { height: 2.15rem; } }
header[data-site-header] a { text-decoration: none; }
header[data-site-header] .rail-end { display: none; }

/* ------------------------------------------------------------------ header: the navy rail (wide screens, this site only) */
@media (min-width: 1100px) {
  html[data-ecmx-rail] { --site-header-height: 0px !important; scroll-padding-top: 1.5rem; }
  html[data-ecmx-rail] .ecmx-shell { padding-left: var(--rail-w); }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] {
    --site-header-placement: start; position: fixed !important; top: 0; left: 0; bottom: 0; width: var(--rail-w); z-index: 50; overflow-y: auto;
    border-bottom: 0 !important; border-right: 4px solid #0b293d;
  }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-container] { min-height: 100%; display: flex; flex-direction: column; padding: 38px 23px 30px; max-width: none; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-grid] { display: flex !important; flex-direction: column; align-items: stretch; flex: 1; height: auto; gap: 0; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-brand] { order: 0; width: 202px; height: 101px; display: flex; align-items: center; justify-content: center; padding: 0; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-nav] { order: 1; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-actions] { order: 2; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-utilities] { order: 3; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-brand] img { width: 174px; height: auto; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-nav] { display: block !important; margin-top: 56px; max-width: none; width: 100%; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-list] { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-item] { display: block !important; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-more-item], :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-sublist], :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-menu] { display: none !important; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-item] > a {
    display: flex; justify-content: space-between; align-items: center; width: 100%; height: auto; padding: 17px 12px; border-bottom: 1px solid #48616b; font: 700 18px var(--font-sans); white-space: nowrap;
  }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-item] > a[data-active] { background: #9dcbd0; color: #102e42; border-bottom-color: transparent; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-item] > a::after { display: none; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-nav-item] > a[data-active]::before { content: "\2192"; order: 2; font: 21px/1 Arial, sans-serif; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-actions] { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  html[data-ecmx-rail] header[data-site-header] [data-header-actions] a:not(.bg-primary):not([data-cms]) { display: none; }
  [data-site-area="shop"] header[data-site-header] [data-header-actions] a:not(.bg-primary) { border-color: #48616b; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-actions] a { justify-content: center; height: 2.75rem; font-size: 1rem; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-actions] a[data-cms]:not([hidden]) { border: 2px solid #48616b; }
  :is(html[data-ecmx-rail], [data-site-area="shop"]) header[data-site-header] [data-header-utilities] { margin-top: auto; padding-top: 22px; justify-content: flex-start; }
  html[data-ecmx-rail] header[data-site-header] .rail-end { display: block; padding: 14px 10px 0; }
}
.rail-end .gridflag { display: block; width: 72px; height: 16px; background: repeating-conic-gradient(#d3e3d6 0 25%, transparent 0 50%) 0 0/16px 16px; }
.rail-end p { font: 500 12px/1.65 var(--font-mono); color: #cbdbdb; margin: 14px 0 0; }

/* ------------------------------------------------------------------ footer: the bulletin sign-off */
.ecmx-footer { margin-top: 72px; background: var(--background); color: var(--foreground); }
.ecmx-footer > .col { border-top: 2px solid var(--ink); padding: 26px 0 0; }
.footer-grid { display: grid; gap: 26px 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { width: 190px; height: auto; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; font-size: 15px; }
.ecmx-footer h2 { font: 19px var(--font-display); letter-spacing: -.04em; margin: 0 0 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social:empty { display: none; }
.footer-social a { display: inline-flex; align-items: center; gap: .4rem; padding: 6px 12px; border: 2px solid var(--ink); text-decoration: none; font-weight: 700; }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding: 14px 0 28px; border-top: 1px solid var(--rule-soft); font: 500 12px/1.6 var(--font-mono); }
.footer-bar p { margin: 0; }
.footer-bar a { text-decoration: none; }
.footer-bar .ll-legal { display: inline-flex; gap: 14px; }

/* ------------------------------------------------------------------ print */
@media print {
  header[data-site-header], .ecmx-footer, .bulletin__links, .stripes, .actions, [data-livelaps], [data-chatwoot-launcher] { display: none !important; }
  html[data-ecmx-rail] .ecmx-shell { padding-left: 0; }
  .poster, .card, .story { box-shadow: none; }
}
