/* VVITTA website stylesheet.
   Contrast commitments (WCAG 2.2 AAA, 7:1 minimum for all text):
   Light theme: #1a1a1a on #ffffff = 16.9:1; #1F3A5F on #ffffff = 11.5:1;
                #1F3A5F on #F0F4F9 = 10.4:1; #ffffff on #1F3A5F = 11.5:1.
   Dark theme:  #F2F2F2 on #14181D = 15.9:1; #9CC3F0 on #14181D = 9.7:1;
                #C5D5EE headings on #14181D = 12.0:1.
   Buttons:     they carry their own pair, because the brand colour flips
                from navy to pale blue between the two themes and a fixed
                white label would vanish on the pale one.
   No animation or transition rules anywhere in this file, by design. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #F0F4F9;
  --text: #1a1a1a;
  --brand: #1F3A5F;
  --link: #1F3A5F;
  --border: #7A8CA6; /* 3.43:1 on white: a border you can actually see */
  --footer-bg: #1F3A5F;
  --footer-text: #ffffff;
  --current-bg: #1F3A5F;
  --current-text: #ffffff;
  --cta-bg: #1F3A5F;
  --cta-text: #ffffff;      /* 11.5:1 */
  --cta-bg-hover: #16293f;  /* 13.9:1 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181D;
    --bg-alt: #1C232B;
    --text: #F2F2F2;
    --brand: #C5D5EE;
    --link: #9CC3F0;
    --border: #64758C; /* 3.79:1 on the dark ground */
    --footer-bg: #1C232B;
    --footer-text: #F2F2F2;
    --current-bg: #C5D5EE;
    --current-text: #14181D;
    --cta-bg: #C5D5EE;
    --cta-text: #14181D;      /* 12.0:1 */
    --cta-bg-hover: #E3ECF8;  /* 15.1:1 */
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  /* An email address has nowhere to break. On a 320px phone with the system
     text set to 200 per cent, vicepresident@vvitta.au is 425px wide and drags
     the whole page sideways, so somebody who needs big text ends up scrolling
     left and right to read a paragraph. break-word only acts on a word that
     would otherwise overflow, so ordinary text is untouched. */
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
  color: var(--brand);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: 2.125rem;
  margin-top: 0.6em;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.25rem;
}

p, ul, ol {
  margin: 2.4em 0; /* WCAG 2.2 SC 1.4.8 item 5: 1.5 times the 1.6em line spacing */
}

li {
  margin: 0.35em 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.09em;
}

a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: visually hidden until focused. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 10;
  font-weight: bold;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  background: var(--bg);
  border-bottom: 4px solid var(--brand);
  padding: 1rem 1.25rem;
}

.header-inner {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-link img {
  height: 3.75rem;
  width: auto;
  min-width: 185px; /* brand rule: primary lockup never below 180px on screen */
  max-width: 100%;
}

.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.site-header nav a {
  display: inline-block;
  /* The 0.5rem TOP and BOTTOM still scale with the reader's text, which is
     what carries the 44px target. Only the sides are capped: 0.85rem is
     13.6px at the usual root, so min() changes nothing for most people,
     but at 200 per cent text it stops sixteen nav links each growing an
     extra 27px of side padding and pushing a 320px screen sideways. */
  padding: 0.5rem min(0.85rem, 14px); /* with 2rem line box this exceeds the 44px AAA target */
  border-radius: 8px;
  font-weight: bold;
}

.site-header nav a[aria-current="page"] {
  background: var(--current-bg);
  color: var(--current-text);
}

main {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  /* min() caps the SIDE padding only. At the usual 16px root, 1.25rem is
     exactly 20px and 1.4rem is 22.4px, so these change nothing at all for
     most people. They matter when somebody has set their text to 200 per
     cent: without the cap the indents double too, and on a phone the
     nested main, box and list indents together left about 150px for the
     words, which is under five characters a line. */
  padding: 1rem min(1.25rem, 20px) 3.5rem;
}

.lead {
  font-size: 1.375rem;
}

/* Notice box for date changes and important caveats.
   The border is reinforcement only; the text always states the point itself. */
.notice {
  background: var(--bg-alt);
  border-left: 8px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
}

.notice p {
  margin: 0;
}

/* SC 1.4.8 asks for space between paragraphs of at least 1.5 times the line
   spacing. Our line height is 1.6, so that is 2.4em. The box's own padding
   already handles the first and last paragraph, so only the gap BETWEEN
   paragraphs needs setting, which keeps a single-paragraph notice compact. */
.notice p + p {
  margin-top: 2.4em;
}

/* Link cards on the home page: a list of headed links, not click-traps. */
.cards {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
}

.cards li {
  margin: 0;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  /* Side padding capped like main, .hero, .toc and .notice. At 200 per cent
     text the uncapped 1.25rem became 40px a side and left a long heading word
     such as "Tournaments" with less room than the word itself needs. */
  padding: 1.1rem min(1.25rem, 20px);
}

/* A single word longer than the space it has must break rather than push the
   whole page sideways. Only bites at very large text on a narrow screen. */
.cards h2 a,
.cards h2 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cards h2 {
  margin: 0 0 0.35em;
  font-size: 1.375rem;
}

.cards p {
  margin: 0;
}

/* Club and event fact lists. */
.facts {
  list-style: none;
  padding: 0;
}

.facts li {
  margin: 0.3em 0;
}

.facts .label {
  font-weight: bold;
  color: var(--brand);
}

.formal-logo {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* The formal lockup is navy artwork with no reversed twin, so give it a
   permanent light plate rather than letting it disappear in dark mode. */
@media (prefers-color-scheme: dark) {
  .brand-plate {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
  }
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 4px solid var(--brand);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}

.site-footer .footer-inner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.site-footer a {
  color: inherit;
}

.site-footer a:focus-visible {
  outline-color: var(--footer-text);
}

.site-footer p {
  margin: 0.45em 0;
}

/* Home page: main goes full width so the hero can run edge to edge;
   .page-content restores the normal reading column below it. */
main.full-bleed {
  max-width: none;
  padding: 0;
}

.page-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  /* min() caps the SIDE padding only. At the usual 16px root, 1.25rem is
     exactly 20px and 1.4rem is 22.4px, so these change nothing at all for
     most people. They matter when somebody has set their text to 200 per
     cent: without the cap the indents double too, and on a phone the
     nested main, box and list indents together left about 150px for the
     words, which is under five characters a line. */
  padding: 1rem min(1.25rem, 20px) 3.5rem;
}

/* Hero band: fixed navy in both themes; white on #1F3A5F is 11.5:1 (AAA). */
.hero {
  background: #1F3A5F;
  color: #ffffff;
  /* Side padding capped the same way main and .toc are: at the usual 16px
     root this is identical to 1.25rem, but at 200 per cent text it stops the
     band adding 40px of side padding and pushing a 320px screen sideways. */
  padding: 3rem min(1.25rem, 20px);
}

.hero-inner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.75rem;
  margin: 0 0 0.4em;
}

.hero p {
  color: #ffffff;
  font-size: 1.375rem;
  max-width: 40rem;
}

.hero .button {
  background: #ffffff;
  color: #1F3A5F;
}

.hero .button:focus-visible {
  outline-color: #ffffff;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  font-weight: bold;
  padding: 0.85rem min(1.5rem, 24px);
  border-radius: 10px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  margin: 0.5rem 1rem 0.25rem 0;
}

/* Photo figures and the gallery grid. */
figure {
  margin: 1.5rem 0;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--text);
}

.photo-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.photo-grid figure {
  margin: 0;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.photo-grid img {
  border-radius: 8px;
  width: 100%;
}

/* "On this page" jump lists: one press to any section instead of arrowing through. */
.toc {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem min(1.25rem, 20px);
  margin: 1.5rem 0;
}

.toc h2 {
  margin: 0 0 0.4em;
  font-size: 1.375rem;
}

.toc ul {
  margin: 0;
  padding-left: min(1.4rem, 23px);
}

/* AAA target size: make each jump-list row a 44px-plus target. */
.toc li a {
  display: block;
  /* Plain fallback first for iPadOS before 14.5, which ignores padding-block. */
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-block: 0.55rem;
}

h2[id], h3[id], h4[id] {
  scroll-margin-top: 1rem;
}

/* Every "On this page" target heading carries tabindex="-1". Without it a
   jump link only scrolls: VoiceOver and TalkBack keep reading from the link
   that was pressed, so a blind reader who chose a section still has to arrow
   through everything above it. With it the browser moves focus to the heading
   itself and the reader continues from there. The heading is not in the Tab
   order. Keyboard users see the same 3px ring as every other focus stop;
   browsers hide it after a mouse or touch press through :focus-visible. */
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus,
h4[tabindex="-1"]:focus {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h2[tabindex="-1"]:focus:not(:focus-visible),
h3[tabindex="-1"]:focus:not(:focus-visible),
h4[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

h2[tabindex="-1"]:focus-visible,
h3[tabindex="-1"]:focus-visible,
h4[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* The embedded live scoreboard on live.html. */
.live-frame {
  width: 100%;
  height: 85vh;
  min-height: 520px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  display: block;
}

/* Native video players: no JavaScript, no autoplay, load only on demand. */
/* Portrait clips: cap to a phone-like width so the picture and the controls are
   on screen together. Unchanged on phones, where the clip is already narrower. */
video[height="1280"] {
  width: 24rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000000;
  display: block;
}

/* The line a browser shows when it cannot play the clip sits on the player's
   own black ground, and it does not inherit the page colour, so without this
   it is black on black in both themes. */
video > p {
  color: #ffffff;
  padding: 1rem 1.25rem;
}

.video-entry {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.video-entry h3 {
  margin-top: 0;
}

.video-meta {
  font-size: 1.125rem;
  margin-top: 0.5em;
}

/* Results tables: horizontal scroll stays inside the wrapper, never the page. */
.table-wrap:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* These wrappers carry tabindex so a keyboard can scroll a wide table.
   Every other focus stop on the site draws the same 3px ring; without the
   rule above these three fell back to whatever the browser happened to
   draw, which is not the same in every browser. */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1.125rem;
}

caption {
  text-align: left;
  font-weight: bold;
  color: var(--brand);
  padding-bottom: 0.5rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

th {
  background: var(--bg-alt);
  color: var(--brand);
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Windows High Contrast replaces our colours, so re-draw the things whose
   meaning lives in a background colour as borders instead. */
@media (forced-colors: active) {
  .site-header nav a[aria-current="page"] {
    border: 3px solid CanvasText;
    padding: calc(0.5rem - 3px) calc(min(0.85rem, 14px) - 3px);
  }

  .button,
  .skip-link {
    border: 2px solid LinkText;
  }

  .hero {
    border-bottom: 3px solid CanvasText;
  }

  .site-footer {
    border-top: 3px solid CanvasText;
  }
}

@media print {
  .skip-link, .site-header nav {
    display: none;
  }

  html {
    font-size: 12.8pt; /* so every rem size follows onto paper, not just body */
  }

  body {
    font-size: 1.25rem; /* 16pt, large print on paper as well */
    color: #000000;
    background: #ffffff;
  }

  /* Browsers do not print background colours by default, so white text on the
     navy hero would print white on white and the headline would vanish. */
  .hero {
    background: #ffffff;
    color: #000000;
    padding: 1rem 1.25rem;
  }

  .hero h1,
  .hero p {
    color: #000000;
  }

  .button,
  .hero .button {
    background: #ffffff;
    color: #000000;
    border: 2pt solid #000000;
  }

  .site-footer {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }
}


/* The one action a page exists for: the entry form link on enter.html.
   Sized well past the 44px minimum, and it stays a real link, so it
   works with a keyboard, a screen reader and no JavaScript at all. */
.cta { margin: 1.5em 0; }

/* A link that stands on its own line is a target in its own right, not a link
   inside a sentence, so the exemption for inline links does not cover it and it
   needs the full 44px. These are the three places on the site where that
   happens: the six cards on the home page, the download list on Results, and
   the download line under each video. Everywhere else the links genuinely do
   sit in a run of text, and padding those would only push the words apart. */
.cards li h2 a,
.file-list > li > a,
.video-entry p > a {
  display: inline-block;
  /* Plain fallback first for iPadOS before 14.5, which ignores padding-block
     and would leave these as 22px targets instead of 44px. */
  padding-top: 11px;
  padding-bottom: 11px;
  padding-block: 11px;
  min-height: 44px;
}

/* The links that step over an embedded app. Each one is on its own line, so
   the exemption for a link inside a sentence does not apply to it: 44px is
   the minimum, and this is the control somebody uses precisely because they
   do not want to travel through the frame. */
.skip-frame {
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  font-weight: bold;
}
.cta-link {
  display: inline-block;
  padding: 18px 28px;
  min-height: 44px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: bold;
  border-radius: 12px;
  text-decoration: underline;
}
.cta-link:hover, .cta-link:focus { background: var(--cta-bg-hover); color: var(--cta-text); }


/* The entry form sits in a fixed-height box, so the box has to be at least
   as tall as the form itself. If it is not, the last questions, the Send
   button, or the read back that the first press produces end up behind a
   second scrollbar inside the frame, which is awkward on a phone and easy to
   miss altogether. The form gets taller as the screen gets narrower, because
   every question wraps onto more lines, so the height steps up as the screen
   steps down. Measured off the real form in its tallest state, at the width
   the document actually gets - 4px narrower than the box, because the frame
   border eats it - plus 150px for longer wording. Anyone whose text is set
   larger than that allows still has the link under the frame, which opens the
   form as its own full page. */
.entry-frame { height: 2490px; min-height: 620px; }
@media (max-width: 739px) { .entry-frame { height: 2530px; } }
@media (max-width: 699px) { .entry-frame { height: 2600px; } }
@media (max-width: 659px) { .entry-frame { height: 2750px; } }
@media (max-width: 619px) { .entry-frame { height: 2890px; } }
@media (max-width: 579px) { .entry-frame { height: 2960px; } }
@media (max-width: 539px) { .entry-frame { height: 3050px; } }
@media (max-width: 499px) { .entry-frame { height: 3250px; } }
@media (max-width: 459px) { .entry-frame { height: 3400px; } }
@media (max-width: 429px) { .entry-frame { height: 3620px; } }
@media (max-width: 399px) { .entry-frame { height: 3820px; } }
@media (max-width: 379px) { .entry-frame { height: 3960px; } }
@media (max-width: 359px) { .entry-frame { height: 4190px; } }
@media (max-width: 339px) { .entry-frame { height: 4460px; } }
@media (max-width: 319px) { .entry-frame { height: 4730px; } }

/* The Nationals entry form is the longest thing on the site: twenty-four
   questions, more appear as they are answered, and pressing the button once
   reads the whole entry back before anything is sent. These heights were
   measured off the real form in that tallest state - read back showing, every
   optional section open - at the width the document actually gets, which is
   4px narrower than the box because of the frame border. Plus 220px for
   longer wording. Sized any shorter and the read back, which exists so an
   entrant can check a $120 entry before sending it, is what ends up behind a
   scrollbar inside the frame. */
.nationals-frame { height: 5300px; min-height: 620px; }
@media (max-width: 739px) { .nationals-frame { height: 5430px; } }
@media (max-width: 699px) { .nationals-frame { height: 5510px; } }
@media (max-width: 659px) { .nationals-frame { height: 5700px; } }
@media (max-width: 619px) { .nationals-frame { height: 5970px; } }
@media (max-width: 579px) { .nationals-frame { height: 6220px; } }
@media (max-width: 539px) { .nationals-frame { height: 6490px; } }
@media (max-width: 499px) { .nationals-frame { height: 6890px; } }
@media (max-width: 459px) { .nationals-frame { height: 7240px; } }
@media (max-width: 429px) { .nationals-frame { height: 7730px; } }
@media (max-width: 399px) { .nationals-frame { height: 8180px; } }
@media (max-width: 379px) { .nationals-frame { height: 8580px; } }
@media (max-width: 359px) { .nationals-frame { height: 9140px; } }
@media (max-width: 339px) { .nationals-frame { height: 9760px; } }
@media (max-width: 319px) { .nationals-frame { height: 10370px; } }

/* ------------------------------------------------------------------------
   Added 11 September 2026 after the cross-device and assistive-technology
   audit. Each rule below fixes a defect that was measured, not guessed.
   ------------------------------------------------------------------------ */

/* Two separate problems with phone numbers, both measured in a browser.
   First, they were breaking across lines mid-number, which a braille display
   shows as two unrelated fragments. Second, every tel link on the site was a
   32px-tall target. Strictly, SC 2.5.5 exempts a link that sits inside a run
   of text, and all 57 of ours do, so this is above the requirement rather
   than a conformance fix; members press these on phones, so it is worth it. */
a[href^="tel:"] {
  display: inline-block;
  white-space: nowrap;
  /* 6px top and bottom takes a 32px line box to exactly 44px at the usual
     text size, which is the AAA target minimum. Measured in the browser at
     100, 125, 150 and 200 per cent text: no row ever overlaps its neighbour
     and no page gains any horizontal overflow. */
  padding-top: 6px;
  padding-bottom: 6px;
  padding-block: 6px;
}


/* The one case where keeping a phone number on one line cannot win. At 200 per
   cent text a twelve character number is about 245px wide, and on a 320px screen
   there is not that much room left once anything indents it, so nowrap pushes the
   page sideways. Horizontal scrolling is a WCAG 1.4.10 failure; a line break is
   not. This query is in rem, so it scales with the READER'S text size rather than
   the screen: at the usual text size it only fires on a narrow phone, and at 200
   per cent it fires wherever the number has genuinely run out of room. Everywhere
   else the number still never breaks. */
@media (max-width: 26rem) {
  a[href^="tel:"] {
    white-space: normal;
  }
}

/* The callout box indents its contents, which is what leaves a long number with
   nowhere to go. Cap the side padding the way main, .hero and .toc already do. */
.notice {
  padding: 0.9rem min(1.25rem, 20px);
}

/* Safari before 15.4 does not understand :focus-visible and drops the whole
   rule, leaving those users with whatever ring the browser happens to draw.
   The plain :focus rules below give them the same 3px ring. Browsers that DO
   understand :focus-visible read the :not(:focus-visible) rule and remove it
   again for mouse clicks, so nothing changes for them. Older browsers drop
   that second rule as an unknown selector, which is exactly what we want. */
a:focus,
.table-wrap:focus,
main:focus {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
.table-wrap:focus:not(:focus-visible),
main:focus:not(:focus-visible) {
  outline: none;
}

/* main is the full width of the viewport, so an OUTSIDE ring is drawn off
   screen and clipped. It needs the inside offset in the old-browser fallback
   too, not only in the :focus-visible rule below. */
main:focus {
  outline-offset: -3px;
}

.site-footer a:focus {
  outline-color: var(--footer-text);
}

.hero .button:focus {
  outline-color: #ffffff;
}

/* main carries tabindex="-1" so the SKIP LINK lands somewhere deterministic in
   every browser. The escape route out of the embedded frames is separate: those
   links target the paragraph after each frame, and those paragraphs carry their
   own tabindex="-1" on enter-nationals.html and live.html. The negative offset
   keeps the ring inside the viewport instead of clipping. */
main:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

/* The video players are focus stops too. Without this they fall back to the
   browser's own thin ring, which is not the same 3px ring as everywhere else. */
video:focus,
video:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

video:focus:not(:focus-visible) {
  outline: none;
}

/* SC 3.1.4 Abbreviations. The default dotted underline reads as a spelling
   error to some sighted readers and is invisible to everyone else, so the cue
   is dropped and the title attribute does the work, which is what screen
   readers and WCAG technique H28 actually use. */
abbr[title] {
  text-decoration: none;
  border-bottom: 0;
  cursor: help;
}

/* Full text alternative for each video, for SC 1.2.8. <details> is native HTML,
   so this adds no JavaScript. The summary is a 44px target in its own right. */
.transcript {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem 1rem;
  margin: 1rem 0 1.5rem;
  background: var(--bg-alt);
}

.transcript summary {
  font-weight: bold;
  color: var(--brand);
  cursor: pointer;
  padding: 0.7rem 0;
}

.transcript summary:focus-visible,
.transcript summary:focus {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.transcript summary:focus:not(:focus-visible) {
  outline: none;
}

.transcript .facts li {
  margin: 0.45em 0;
}

/* The footer's site links, as a real navigation bar so the current page can be
   marked. That is what carries SC 2.4.8 Location on the pages that are not in
   the main navigation. */
.footer-nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  display: inline-block;
  padding-top: 11px;
  padding-bottom: 11px;
  padding-block: 11px;
}

.footer-nav a[aria-current="page"] {
  font-weight: bold;
  text-decoration-thickness: 0.16em;
}

/* An email address on its own labelled line ("Email: ...") is a target in its
   own right, like the phone number above it, so it gets the same 44px.
   overflow-wrap: anywhere lets a long address still break at 200 per cent text
   on a 320px phone instead of pushing the page sideways. */
.site-footer a[href^="mailto:"],
.facts a[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-block: 6px;
}

/* Breadcrumb: says where a page sits when it is not in the main navigation. */
.breadcrumb ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--muted, currentColor);
}

.breadcrumb a,
.breadcrumb span {
  display: inline-block;
  padding-top: 11px;
  padding-bottom: 11px;
  padding-block: 11px;
}
