/* Private radio metadata review; no processing records enter this stylesheet. */
.radio-review-heading { border-top: 10px solid #0867ae; border-image: linear-gradient(90deg, #271351, #078edf, #53ccff) 1; padding-top: 1rem; }
.radio-review-heading h1 { color: #06275c; }
.radio-review-list { padding-left: 1.25rem; }
.radio-review-list li { margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid #c5d8ec; overflow-wrap: anywhere; }
.radio-review-filters { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.radio-review-filters label { display: grid; gap: .3rem; max-width: 100%; }
.radio-review-filters select { max-width: 100%; padding: .4rem; font: inherit; }
.radio-review-item { border-left: 3px solid #168bd1; padding-left: 1rem; margin: 2rem 0; overflow-wrap: anywhere; }
.radio-review-item dt { font-weight: bold; margin-top: .65rem; }
.radio-review-item dd { margin-left: 0; }
.radio-review-heading ~ section code { overflow-wrap: anywhere; }
:root {
  color-scheme: light;
  --navy-950: #020817;
  --navy-900: #071c58;
  --navy-800: #072c7a;
  --blue-700: #0057b8;
  --blue-500: #1499df;
  --red-700: #a90f20;
  --red-600: #cc182b;
  --ink: #202936;
  --paper: #ffffff;
  --focus: #ffcf33;
  --rail-width: 13.6875rem;
  --feature-width: 11.75rem;
  --font-body: Arial, Verdana, sans-serif;
  font-family: var(--font-body);
  font-size: 100%;
}

* {
  box-sizing: border-box;
}

html {
  /* Fit the usable viewport even when a scrollbar leaves less than 320px. */
  min-width: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0.5rem 1rem 3rem;
  color: var(--ink);
  background-color: var(--navy-950);
  background-image: url("./images/legacy-blue-pattern.jpg");
  background-position: top center;
  background-repeat: repeat-x;
  background-size: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #003e9c;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.18rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #00143d;
  background: var(--focus);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 120ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding-inline: 1.78125rem;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 52%);
}

.legacy-masthead {
  position: relative;
  isolation: isolate;
  height: 9rem;
  min-height: 9rem;
  overflow: hidden;
  color: #fff;
  background-color: #087bc4;
  background-image:
    url("./images/masthead-legacy-left.gif"),
    url("./images/masthead-legacy-right.gif");
  background-position: left top, right top;
  background-repeat: no-repeat;
  background-size: 13.6875rem 9rem, 32.75rem 9rem;
}

.masthead-identity {
  position: absolute;
  z-index: 2;
  inset: 0 10rem 0 0;
  text-align: center;
  text-shadow: 0 0.12rem 0.2rem rgb(0 0 0 / 65%);
}

.masthead-flag {
  position: absolute;
  z-index: 1;
  top: 1.2rem;
  left: 8.65rem;
  width: 5rem;
  height: auto;
  margin: 0;
}

.masthead-flag-still {
  position: absolute;
  z-index: 1;
  top: 1.35rem;
  left: 8.7rem;
  display: none;
  width: max-content;
  padding: 0.35rem 0.55rem;
  color: #fff;
  background: #173a82;
  border: 0.15rem solid #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.site-domain {
  margin: 0;
}

.show-name {
  position: absolute;
  z-index: 1;
  top: 3.25rem;
  left: 13.6875rem;
  width: 17.6rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.legacy-page-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 47rem;
  grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--feature-width);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "primary main features"
    "utilities main features";
  background: #fff;
}

.legacy-page-grid::before {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  content: "";
  background-color: #080684;
  background-image:
    url("./images/legacy-left-rail.gif"),
    linear-gradient(90deg, #080684 0 65.75%, #fff 65.75% 100%);
  background-position: left top, left top;
  background-repeat: no-repeat, no-repeat;
  background-size: var(--rail-width) auto, 100% 100%;
}

.primary-nav,
.utility-nav {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  color: #fff;
}

.primary-nav {
  grid-area: primary;
  display: grid;
  min-height: 17.6875rem;
  align-content: start;
  gap: 0.06rem;
  padding: 1.75rem 4.7rem 1.25rem 1.35rem;
  background: transparent;
}

.primary-nav-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.22rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow:
    0.08rem 0.1rem 0.12rem #00133e,
    -0.04rem -0.04rem 0.08rem #00133e;
}

a.primary-nav-link:hover,
a.primary-nav-link[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 0.12rem;
  text-underline-offset: 0.18rem;
}

.primary-nav-link-planned {
  cursor: default;
}

.utility-nav {
  grid-area: utilities;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.6rem;
  padding: 0.8rem 4.55rem 3rem 1rem;
  background: transparent;
}

.utility-nav::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 9rem;
  height: 0.2rem;
  content: "";
  background: #fff;
}

.utility-link {
  position: relative;
  display: block;
  width: 7.1rem;
  min-height: 2.25rem;
  color: #111827;
  cursor: default;
}

.utility-button-image {
  width: 6.875rem;
  height: 2.1875rem;
  object-fit: fill;
  filter: drop-shadow(0 0.13rem 0.12rem rgb(0 0 0 / 48%));
}

.utility-button-still {
  display: none;
  width: 6.875rem;
  min-height: 2.1875rem;
  grid-template-columns: 2.15rem 1fr;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(#fff, #d9d9d9);
  border: 0.1rem solid #38205d;
  border-radius: 0.42rem;
  box-shadow: inset 0 0.1rem #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.utility-still-icon {
  color: #77541a;
  font-size: 1.35rem;
}

.archive-button-labels {
  position: absolute;
  left: 2.36rem;
  top: 0.39rem;
  width: 4.1rem;
  height: 1.45rem;
  color: #141414;
  background: linear-gradient(#f2f2f2, #ebebeb);
  text-align: center;
}

.archive-button-name,
.archive-button-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform-origin: center;
  font: 700 0.72rem/0.69rem var(--font-body);
}
.crisp-button-labels {
  position: absolute;
  left: 35%;
  top: 18%;
  width: 60%;
  height: 65%;
  color: #141414;
  text-align: center;
}
.crisp-button-labels .archive-button-name { font-size: 0.69rem; line-height: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .crisp-button-labels .archive-button-name { animation: none; opacity: 1; transform: none; }
  .crisp-button-labels .archive-button-prompt { display: none; }
}
.archive-button-name {
  font-size: 0.65rem;
  animation: archive-button-name 6s steps(1, end) infinite;
}
.archive-button-prompt {
  opacity: 0;
  animation: archive-button-prompt 6s steps(1, end) infinite;
}

/* Same twelve-frame sequence as the 110x35 guestbook/cartoon GIFs:
   3000ms hold, five 100ms frames, 2000ms hold, five 100ms frames.
   Text shrinks to 90%/80% at roughly 2/3 and 1/3 opacity, then reverses. */
@keyframes archive-button-name {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.67; transform: scale(0.9); }
  51.666667% { opacity: 0.35; transform: scale(0.8); }
  53.333333% { opacity: 0; transform: scale(0.8); }
  96.666667% { opacity: 0.35; transform: scale(0.8); }
  98.333333% { opacity: 0.67; transform: scale(0.9); }
}
@keyframes archive-button-prompt {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  55% { opacity: 0.35; transform: scale(0.8); }
  56.666667% { opacity: 0.67; transform: scale(0.9); }
  58.333333% { opacity: 1; transform: scale(1); }
  91.666667% { opacity: 0.67; transform: scale(0.9); }
  93.333333% { opacity: 0.35; transform: scale(0.8); }
  95% { opacity: 0; transform: scale(0.8); }
}

.main-content {
  grid-area: main;
  min-width: 0;
  padding: 1.8rem 1.25rem 6rem;
  background: #fff;
}

.legacy-title-bar {
  position: relative;
  display: block;
  min-height: 0;
  overflow: visible;
  margin: 0 0 1.75rem;
  padding: 0.25rem 0.5rem 0.9rem;
  color: var(--navy-900);
  background: none;
  border: 0;
  border-bottom: 0.08rem solid #9bbbd6;
  box-shadow: none;
}

.home-memorial-title {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.home-memorial-title h1 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: none;
}

.home-memorial-dates,
.home-memorial-rest {
  margin: 0;
  font-family: var(--font-body);
  text-shadow: none;
}

.home-memorial-dates {
  margin-top: 0.3rem;
  color: #394a65;
  font-size: clamp(0.76rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-memorial-rest {
  margin-top: 0.18rem;
  color: #982033;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

.current-date {
  margin: 0 0 2.15rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.memorial-introduction {
  max-width: 39rem;
  margin-inline: auto;
  text-align: center;
}

.memorial-introduction p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  line-height: 1.72;
}

.scripture {
  max-width: 34rem;
  margin: 4.25rem auto 0;
  padding: 1.5rem 1.1rem;
  text-align: center;
  border-block: 0.17rem solid transparent;
  border-image: linear-gradient(90deg, #33175f, #2a65b4, #62c4eb) 1;
}

.scripture blockquote {
  margin: 0;
}

.scripture p {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
}

.scripture figcaption {
  margin-top: 0.65rem;
  color: #4b5563;
  font-size: 0.96rem;
  font-weight: 700;
}

.blessing {
  margin: 3rem 0 0;
  color: #981b2e;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
}

.dave-signature {
  width: 6.4375rem;
  height: 2.75rem;
  margin: 0.35rem auto 0;
}

.feature-column {
  grid-area: features;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 1.8rem 0.35rem 3rem;
  background: #fff;
}

.feature-item {
  width: 100%;
  max-width: 8.625rem;
  margin: 0;
  text-align: center;
}

.feature-item-wide {
  max-width: 11.5rem;
}

.feature-item-compact {
  max-width: 6.5rem;
}

.feature-item-historical {
  max-width: 7.5rem;
}

.feature-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.feature-item img.feature-image-wildcats {
  aspect-ratio: 6.1;
  object-fit: cover;
  object-position: center 48.5%;
}

.feature-item-historical figcaption {
  margin-top: 0.5rem;
  color: #556070;
  font-size: 0.78rem;
  line-height: 1.35;
}

.feature-link {
  display: block;
  padding: 0.25rem;
  border-radius: 0.2rem;
}

.feature-link:hover {
  background: #e8f3ff;
}

.feature-item-wide .feature-link {
  padding: 0.125rem;
}

.feature-year-copy {
  display: block;
  margin-top: 0.48rem;
  color: #003e9c;
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: underline;
}

@media (max-width: 52rem) {
  body {
    padding: 0;
    background-image: none;
  }

  .site-frame {
    width: 100%;
    padding-inline: max(0px, calc((100% - 46.4375rem) / 2));
    border: 0;
    box-shadow: none;
  }

  .legacy-masthead {
    height: 9rem;
    min-height: 9rem;
    background-color: #087bc4;
    background-position: left top, right top;
    background-repeat: no-repeat;
    background-size: 13.6875rem 9rem, 32.75rem 9rem;
  }

  .masthead-identity {
    inset: 0;
  }

  .show-name {
    width: calc(100% - 28.5rem);
    min-width: 7.4rem;
    font-size: 0.88rem;
  }

  .legacy-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "primary"
      "main"
      "utilities"
      "features";
  }

  .legacy-page-grid::before {
    display: none;
  }

  .primary-nav {
    grid-area: primary;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 1rem;
    background:
      radial-gradient(circle at 72% 18%, rgb(255 255 255 / 25%) 0 0.08rem, transparent 0.13rem),
      linear-gradient(125deg, #a90f20, #075caf 56%, #071c8c);
    background-size: 2.75rem 2.75rem, auto;
    border-bottom: 0.2rem solid #fff;
  }

  .primary-nav-link {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.75rem;
    background: rgb(3 24 79 / 48%);
    border: 0.08rem solid rgb(255 255 255 / 38%);
    font-size: 0.94rem;
  }

  .main-content {
    grid-area: main;
    padding: 1.5rem clamp(1rem, 5vw, 2.25rem) 4.75rem;
  }

  .legacy-title-bar {
    margin-bottom: 1.8rem;
  }

  .utility-nav {
    grid-area: utilities;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 1.25rem 1rem 1.5rem;
    background: linear-gradient(150deg, #061459, #064ea7 55%, #11009a);
    border-top: 0.2rem solid #fff;
    border-bottom: 0.2rem solid #fff;
  }

  .utility-nav::before {
    display: none;
  }

  .utility-link {
    width: 100%;
    min-height: 2.5rem;
  }

  .utility-button-image,
  .utility-button-still {
    margin-inline: auto;
  }

  /* Keep the overlay's positioning box the same width as its 110px artwork.
     This also outranks the wider .utility-link rule below on narrow phones. */
  .utility-nav .utility-link-archive {
    width: 6.875rem;
    justify-self: center;
  }

  .feature-column {
    grid-area: features;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2rem 1.25rem;
    padding: 2.25rem max(1rem, 5vw) 3rem;
  }

  .feature-item {
    justify-self: center;
  }

  .feature-item-historical {
    grid-column: 2;
  }
}

@media (max-width: 46.4375rem) {
  .legacy-masthead {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 743 / 144;
    background-position: left top, right top;
    background-size: 29.4751% 100%, 70.5249% 100%;
  }

  .masthead-flag {
    top: 13.3333%;
    left: 18.626%;
    width: 10.7672%;
  }

  .masthead-flag-still {
    top: 15%;
    left: 18.626%;
    width: 10.7672%;
    padding: 0.08rem;
    border-width: 0.08rem;
    font-size: clamp(0.32rem, 1.2vw, 0.55rem);
    line-height: 1;
    white-space: normal;
    text-align: center;
  }

  .show-name {
    top: 36.1111%;
    left: 29.4751%;
    width: 37.9%;
    min-width: 0;
    font-size: clamp(0.45rem, 2.153vw, 1rem);
    text-underline-offset: clamp(0.06rem, 0.4vw, 0.18rem);
  }
}

@media (max-width: 30rem) {
  .primary-nav {
    grid-template-columns: 1fr;
  }

  .utility-nav,
  .feature-column {
    grid-template-columns: 1fr;
  }

  .utility-link {
    width: min(100%, 15rem);
    justify-self: center;
  }

  .feature-item-historical {
    grid-column: 1;
  }
}

.pictures-heading,
.radio-heading,
.news-heading {
  margin: 0;
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid #c5d4e3;
  text-align: left;
}

.pictures-heading h1,
.radio-heading h1,
.news-heading h1 {
  margin: 0;
  color: var(--navy-900);
  font: 600 2.25rem/1.15 var(--font-body);
  letter-spacing: -0.065rem;
}

.pictures-heading p,
.radio-heading p,
.news-heading p {
  margin: 0.5rem 0 0;
  color: #576372;
  font-size: 0.95rem;
  line-height: 1.5;
}

.gallery-intro {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.cartoon-heading { margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid #c5d4e3; }
.cartoon-heading h1 { margin: 0; color: var(--navy-900); font-size: 1.8rem; line-height: 1.2; }
.cartoon-heading p { margin: 0.55rem 0 0; font-size: 1rem; line-height: 1.5; }
.daily-cartoon { margin: 0; }
.daily-cartoon time { color: #576372; font-size: 0.875rem; }
.daily-cartoon h2 { margin: 0.4rem 0 1.2rem; color: var(--navy-900); font-size: 1.2rem; line-height: 1.4; }
.daily-cartoon img { display: block; width: 100%; height: auto; object-fit: contain; }
.cartoon-fallback { padding: 1.25rem 0; font-size: 1rem; line-height: 1.6; }
.cartoon-credit { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid #c5d4e3; font-size: 0.875rem; line-height: 1.7; }
.cartoon-note { margin-top: 1rem; color: #576372; font-size: 0.875rem; line-height: 1.5; }
.utility-link[href] { cursor: pointer; }


.radio-introduction {
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

.news-categories {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.news-categories li {
  min-width: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid #c5d4e3;
}
.news-categories h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.news-categories a {
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.news-categories a:hover { color: var(--red-700); }
.news-publisher {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.news-description {
  margin: 0.2rem 0 0;
  color: #465363;
  font-size: 1rem;
  line-height: 1.5;
}
.news-heading { padding-bottom: 1.15rem; }
.news-heading h1 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4rem;
  overflow: hidden;
  padding: 0.75rem 1rem;
  background: var(--navy-800);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}
/* Enlarge the original blue artwork without stretching its proportions.
   The right crop excludes the tiny baked-in title; live text stays crisp. */
.news-title-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.news-heading h1 span { position: relative; text-shadow: 0 1px 2px #071c58; }
.news-heading p { margin-top: 1rem; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.news-note { margin: 0.75rem 0; color: #576372; font-size: 0.875rem; line-height: 1.6; }

.radio-archive h2 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font: 600 1.15rem/1.35 var(--font-body);
}

.radio-heading-original { border: 0; padding: 0; }
.radio-original-logo { display: flex; align-items: flex-start; }
.radio-original-logo img { height: auto; min-width: 0; }
.radio-original-logo img:first-child { width: 47.105263%; }
.radio-original-logo img:last-child { width: 52.894737%; }
.radio-on-air { margin: -0.5rem 0 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.radio-on-air-window { display: block; width: 5.75rem; height: 3.5625rem; overflow: hidden; flex: 0 0 5.75rem; }
.radio-on-air-window img { width: 16.3125rem; height: 3.5625rem; max-width: none; transform: translateX(-10.25rem); }
.radio-on-air figcaption { color: #576372; font-size: 0.875rem; line-height: 1.45; }
.radio-on-air-still { display: none; color: #a90f20; font-weight: 700; white-space: nowrap; }
.radio-archive-art { width: 100%; height: auto; margin: 0 0 1.6rem; }
.radio-browse { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.radio-browse a { flex: 1 1 10rem; padding: 0.75rem 1rem; border: 1px solid #6c94bb; background: #edf4fb; color: #064c9e; text-align: center; font-weight: bold; }
.radio-browse a[aria-current] { background: #103e72; color: white; }
.radio-browse a:focus-visible { outline: 3px solid #064c9e; outline-offset: 3px; }
#radio-search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
#radio-search-form[hidden], [data-radio-search-row][hidden], #radio-search-more[hidden] { display: none; }
#radio-search-form label { flex-basis: 100%; font-weight: bold; }
#radio-search-input { flex: 1 1 12rem; min-width: 0; padding: 0.6rem; border: 1px solid #6c94bb; font: inherit; }
#radio-search-form button, #radio-search-more { min-height: 2.75rem; padding: 0.6rem 1rem; background: #edf4fb; border: 1px solid #6c94bb; color: #064c9e; font: inherit; cursor: pointer; }
#radio-search-form :focus-visible, #radio-search-more:focus-visible { outline: 3px solid #064c9e; outline-offset: 3px; }

.radio-archive + .radio-archive {
  margin-top: 2rem;
}

.radio-preview-note { color: #576372; font-size: 0.9rem; line-height: 1.6; }
.radio-topic-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 1rem 0 1.5rem; }
.radio-topic-links a { padding: 0.45rem 0; line-height: 1.5; }
.radio-topic-links a[aria-current="page"] { color: var(--navy-900); font-weight: 700; text-decoration-thickness: 2px; }
.radio-topic-links span { font-size: 0.85em; }
.radio-topic-heading { margin: 1.5rem 0 0; padding: 0.6rem 0; color: var(--navy-900); border-bottom: 2px solid #a8c6dc; font-size: 1.15rem; }
.radio-clip { padding: 1.25rem 0; border-bottom: 1px solid #d5dce5; scroll-margin-top: 1rem; min-width: 0; }
.radio-clip h3 { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.4; color: var(--navy-900); }
.radio-clip-date { font-size: 0.85em; font-weight: normal; color: #515d6a; }
.radio-calendar details { margin: 0.65rem 0; }
.radio-calendar details details { margin-left: 1rem; }
.radio-calendar summary { padding: 0.5rem 0; cursor: pointer; color: var(--navy-900); font-weight: bold; }
.radio-calendar summary span { font-weight: normal; }
.radio-calendar li { margin: 0.75rem 0; }
.radio-rendition { border-top: 1px solid #ccd8e7; margin-top: 1.5rem; padding-top: 0.5rem; }
.radio-episode-player audio { display: block; width: 100%; margin: 1rem 0; }
.radio-episode-parts button { font: inherit; color: #064c9e; background: none; border: 0; text-decoration: underline; padding: 0.5rem; cursor: pointer; }
.radio-episode-parts button[aria-current] { color: var(--navy-900); font-weight: bold; }
.radio-calendar summary:focus-visible, .radio-episode-parts button:focus-visible { outline: 2px solid #064c9e; outline-offset: 3px; }
.radio-clip p { margin: 0.45rem 0; line-height: 1.55; }
.radio-clip .radio-clip-meta, .radio-clip .radio-source-link { font-size: 0.85rem; }
.radio-clip audio { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0.85rem 0 0.6rem; }
.radio-clip audio:focus-visible, .radio-topic-links a:focus-visible { outline: 3px solid #165c99; outline-offset: 3px; }
.radio-topic-more, .radio-topic-count { margin: 0.9rem 0; }
.radio-topic-more a { font-weight: 700; }
.radio-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.25rem 0; padding: 0.75rem 0; border-top: 1px solid #d5dce5; border-bottom: 1px solid #d5dce5; }
.radio-pagination a { font-weight: 700; }

.radio-archive-notice {
  padding: 1.1rem;
  border-left: 2px solid #c5d4e3;
  background: #f7f8fa;
}

.radio-archive-notice h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.radio-archive-notice p {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.radio-archive-note {
  margin: 0 0 1rem;
  color: #576372;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gallery-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0.35rem 0;
  font-weight: 600;
}

.gallery-sections a {
  padding: 0.7rem 0;
  color: var(--navy-900);
  font-size: 0.9rem;
  text-decoration: none;
}
.gallery-sections a:hover { color: var(--red-700); text-decoration: underline; }
.public-gallery,
.family-photos-notice { scroll-margin-top: 1rem; }

.public-gallery h2,
.family-photos-notice h2 {
  margin: 0;
  color: var(--navy-900);
  font: 600 1.15rem/1.35 var(--font-body);
}

.gallery-count {
  margin: 1rem 0 0.75rem;
  color: #47566d;
  font-size: 0.875rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.85rem;
}

.photo-tile { min-width: 0; margin: 0; }
.photo-open { display: block; text-decoration: none; }
.photo-mat {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 0.2rem;
  background: #f7f8fa;
  border: 1px solid #dce1e7;
}

.photo-mat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-open:hover .photo-mat,
.photo-open:focus-visible .photo-mat { border-color: #0057b8; }

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.4rem 0 0;
}
.gallery-pagination a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #bac9da;
  font-size: 0.875rem;
}
.gallery-pagination a[aria-current="page"] {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
}
.family-photos-notice {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #bac9da;
}
.family-photos-notice p { margin-bottom: 0; font-size: 1rem; line-height: 1.5; }
.photo-viewer-open { overflow: hidden; }

.photo-viewer {
  width: min(60rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #5074a5;
}
.photo-viewer::backdrop { background: rgb(2 8 23 / 88%); }
.photo-viewer-toolbar,
.photo-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.photo-viewer-toolbar h2 {
  margin: 0;
  color: var(--navy-900);
  font: 700 1.15rem/1.4 var(--font-body);
}
.photo-viewer button {
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  color: var(--navy-900);
  background: #f1f5fa;
  border: 1px solid #bac9da;
  font: inherit;
  cursor: pointer;
}
.photo-viewer button:disabled { opacity: 0.45; cursor: default; }
.photo-viewer button:focus-visible { outline: 3px solid #0057b8; outline-offset: 2px; }
.photo-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  margin: 0.85rem 0;
  background: #f1f5fa;
}
.photo-viewer-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: max(8rem, calc(100dvh - 15rem));
  object-fit: contain;
}
.photo-viewer-status { margin: 0.5rem 0; font-size: 0.875rem; }
.photo-viewer-status:empty { display: none; }
.photo-viewer-controls { font-size: 0.875rem; }

@media (min-width: 36rem) and (max-width: 52rem) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 24rem) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .archive-button-labels,
  .radio-on-air-window { display: none; }
  .radio-on-air-still { display: block; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .masthead-flag-animated {
    display: none;
  }

  .masthead-flag-still {
    display: block;
  }

  .utility-link-animated .utility-button-animated {
    display: none;
  }

  .utility-link-animated .utility-button-still {
    display: grid;
  }
}

.writing-title-bar { position: relative; display: flex; align-items: center; min-height: 4rem; margin: 0; padding: 0.75rem 1rem; overflow: hidden; background: var(--navy-800); color: #fff; font-size: 2rem; }
.writing-title-bar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.writing-title-bar span { position: relative; text-shadow: 0 1px 2px #071c58; }
.writing-heading > p { margin: 1rem 0 1.4rem; line-height: 1.6; }
.writing-filters { display: grid; grid-template-columns: 2fr 1fr 1.25fr; gap: 0.75rem; padding: 1rem 0; border-block: 1px solid #b9cddd; }
.writing-filters[hidden] { display: none; }
.writing-filters label { display: grid; gap: 0.4rem; min-width: 0; font-size: 0.875rem; color: var(--navy-900); }
.writing-search { grid-column: 1 / -1; }
.writing-filters input, .writing-filters select { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.5rem; border: 1px solid #9fb4c7; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.writing-filters button { justify-self: start; }
.writing-filters button, .writing-pagination button { cursor: pointer; padding: 0.45rem 0.6rem; min-height: 2.75rem; border: 1px solid #9fb4c7; background: #fff; color: var(--navy-800); font: inherit; }
.main-content .writing-count, .main-content .writing-entry-meta, .main-content .writing-author { font-size: 0.875rem; color: #526173; line-height: 1.6; }
.writing-post-list { margin: 0; padding: 0; list-style: none; }
.writing-post-list > li { padding: 1.1rem 0; border-bottom: 1px solid #d6e0e8; }
.writing-entry-meta { margin: 0 0 0.3rem; }
.writing-entry-meta span { display: inline-block; margin-left: 0.5rem; color: var(--navy-800); }
.writing-post-list h2 { margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
.writing-post-list a, .writing-year-directory a, .writing-back, .writing-pagination a { color: var(--navy-800); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.writing-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; }
.writing-year-directory { margin: 1rem 0; border-block: 1px solid #d6e0e8; padding: 0.8rem 0; }
.writing-year-directory summary { cursor: pointer; color: var(--navy-900); min-height: 2.5rem; padding: 0.45rem 0; }
.writing-year-directory details { margin-left: 1rem; }
.writing-year-directory ul { padding-left: 1.25rem; }
.writing-year-directory li { margin-bottom: 0.75rem; line-height: 1.45; }
.main-content .writing-archive-note, .writing-source { color: #526173; font-size: 0.875rem; line-height: 1.6; }
.writing-back { display: inline-block; margin-bottom: 1rem; }
.writing-post-heading { margin: 1.5rem 0; padding-bottom: 0.8rem; border-bottom: 1px solid #b9cddd; }
.writing-post-heading h2 { color: var(--navy-900); font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
.writing-post-body { line-height: 1.7; font-size: 1.125rem; overflow-wrap: anywhere; }
.writing-post-body p, .writing-post-body div { margin-bottom: 1rem; }
.writing-post-body blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid #b9cddd; }
.writing-post-body pre { white-space: pre-wrap; }
.writing-post-body table { display: block; max-width: 100%; overflow-x: auto; }
.writing-post-body h2, .writing-post-body h3 { font-size: 1.2rem; line-height: 1.4; }
.writing-media-note { display: block; margin: 0.8rem 0; color: #526173; font-size: 0.875rem; }
.writing-source { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #b9cddd; overflow-wrap: anywhere; }
.writing-source summary { cursor: pointer; }
@media (max-width: 36rem) { .writing-filters { grid-template-columns: 1fr 1fr; } .writing-filters label:nth-child(2) { grid-column: 1 / -1; } .writing-title-bar { font-size: 1.7rem; } }

.guestbook-title-bar { position: relative; display: flex; align-items: center; min-height: 4rem; margin: 0 0 1.5rem; padding: 0.75rem 1rem; overflow: hidden; background: var(--navy-800); color: #fff; font-size: 2rem; }
.guestbook-title-bar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.guestbook-title-bar span { position: relative; text-shadow: 0 1px 2px #071c58; }
.guestbook-sign h2, .guestbook-history h2, .guestbook-new h2 { color: var(--navy-900); font-size: 1.4rem; margin: 1rem 0; }
.guestbook-preview-notice { border-left: 3px solid #9fb4c7; padding: 0.75rem; background: #f1f6fa; line-height: 1.5; }
.guestbook-compose { min-width: 0; margin: 1.25rem 0; padding: 0; border: 0; }
.guestbook-compose[hidden] { display: none; }
.guestbook-compose > div { margin-bottom: 1rem; }
.guestbook-compose label { display: inline-block; color: var(--navy-900); font-weight: 700; margin-bottom: 0.4rem; }
.guestbook-optional { margin-left: 0.5rem; color: #526173; font-size: 0.875rem; }
.guestbook-compose input[type="text"], .guestbook-compose textarea { display: block; width: 100%; min-height: 2.75rem; padding: 0.6rem; border: 1px solid #9fb4c7; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.guestbook-compose textarea { resize: vertical; }
.guestbook-compose button { padding: 0.65rem 0.9rem; min-height: 2.75rem; border: 1px solid #8da6bc; background: #fff; color: var(--navy-800); font: inherit; cursor: pointer; }
.guestbook-compose button:disabled { cursor: not-allowed; color: #596574; background: #eef2f5; }
.guestbook-draft-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.guestbook-consent-preview { padding-top: 1rem; border-top: 1px solid #d6e0e8; }
.guestbook-consent-preview label { font-size: 0.875rem; font-weight: 400; line-height: 1.5; }
.main-content .guestbook-consent-preview p { font-size: 0.875rem; color: #526173; }
.guestbook-entry { margin: 1.25rem 0; border: 1px solid #9fb4c7; background: #fff; }
.guestbook-entry > header { padding: 0.9rem 1rem; border-bottom: 1px solid #c9d8e5; background: #eef4f9; }
.guestbook-entry h3 { margin: 0 0 0.35rem; color: var(--navy-900); font-size: 1.125rem; overflow-wrap: anywhere; }
.main-content .guestbook-entry-date { margin: 0; font-size: 0.875rem; color: #526173; line-height: 1.5; }
.guestbook-entry dl { margin: 0; padding: 1rem; }
.guestbook-entry dl > div + div { margin-top: 0.9rem; }
.guestbook-entry dt { color: var(--navy-900); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.3rem; }
.guestbook-entry dd { margin: 0; font-size: 1rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.guestbook-history, .guestbook-new { margin-top: 2rem; padding-top: 0.8rem; border-top: 1px solid #b9cddd; }
.guestbook-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.guestbook-pagination a { color: var(--navy-800); text-underline-offset: 0.15em; }
.guestbook-draft-error { color: #a90f20; }
.guestbook-draft-error:empty { display: none; }
@media (max-width: 36rem) { .guestbook-title-bar { font-size: 1.7rem; } }

/* Desktop only: a wider reading area and one proportional legacy shell.
   The approved phone/tablet layout above remains unchanged. */
@media (min-width: 52.001rem) {
  .site-frame {
    width: min(100%, 72rem);
    container-type: inline-size;
  }
  .legacy-masthead {
    height: auto;
    min-height: 0;
    aspect-ratio: 743 / 144;
    background-size: 29.4751% 100%, 70.5249% 100%;
  }
  .masthead-identity { inset: 0; }
  .masthead-flag { top: 13.3333%; left: 18.626%; width: 10.7672%; }
  .masthead-flag-still { top: 15%; left: 18.626%; }
  .show-name { top: 36.1111%; left: 29.4751%; width: 37.9%; font-size: clamp(1rem, 1.75cqw, 1.2rem); }
  .legacy-page-grid {
    --rail-width: calc(100cqw * 219 / 743);
    --legacy-menu-height: calc(100cqw * 283 / 743);
    grid-template-rows: var(--legacy-menu-height) 1fr;
  }
  .legacy-page-grid::before {
    background-color: #fff;
    background-image: url("./images/legacy-menu-original.gif"), url("./images/legacy-left-rail.gif"), linear-gradient(90deg, #080684 0 65.75%, #fff 65.75% 100%);
    background-position: left top, left var(--legacy-menu-height), left top;
    background-repeat: no-repeat;
    background-size: calc(var(--rail-width) * 218 / 219) var(--legacy-menu-height), var(--rail-width) auto, 100% 100%;
  }
  .primary-nav {
    min-height: 0;
    padding: clamp(1.75rem, 4cqw, 2.9rem) calc(var(--rail-width) * 0.30) 1rem calc(var(--rail-width) * 0.105);
    gap: 0.15rem;
  }
  .primary-nav-link { font-size: clamp(0.96rem, 1.65cqw, 1.125rem); line-height: 1.25; padding-block: 0.3rem; }
  /* Keep the entire original curve and both joins in one uninterrupted image.
     The existing text-free derivative is visible ONLY over the old lettering,
     with a soft inset mask. It never replaces the top/bottom edge strips. */
  .primary-nav::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: calc(100% * 218 / 219);
    height: var(--legacy-menu-height);
    content: "";
    pointer-events: none;
    background-image: url("./images/legacy-menu-upper-clean.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    /* Native 218 x 283 coordinates: x=18..149, y=26..221.
       Opaque x=24..142, y=32..215 covers the obsolete white lettering;
       all source perimeter pixels remain original. */
    mask-image:
      linear-gradient(90deg, transparent 8.256881%, #000 11.009174%, #000 65.137615%, transparent 68.348624%),
      linear-gradient(transparent 9.187279%, #000 11.307420%, #000 75.971731%, transparent 78.091873%);
    mask-composite: intersect;
  }
  .utility-nav { padding-left: calc(var(--rail-width) * 0.105); }
  .utility-nav::before { display: none; }
  .main-content { padding-top: 2.1rem; }
  .main-content p { font-size: 1.125rem; }
  .memorial-introduction p { font-size: 1.35rem; }
  .home-memorial-title h1 { font-size: 2.15rem; }
  .home-memorial-dates { font-size: 1rem; }
  .home-memorial-rest { font-size: 1.15rem; }
  .radio-on-air-window { width: 8.625rem; height: 5.34375rem; flex-basis: 8.625rem; }
  .radio-on-air-window img { width: 24.46875rem; height: 5.34375rem; transform: translateX(-15.375rem); }
  .radio-archive h2, .public-gallery h2, .family-photos-notice h2, .news-categories h2 { font-size: 1.3rem; }
}
/* The local owner interface is separate from public memorial pages. */
.community-panel { max-width: 760px; margin: 24px auto; padding: 24px; background: white; color: #222; font-family: var(--font-body); }
.community-panel input:not([type="checkbox"]) { max-width: 100%; padding: 8px; }
.community-panel button { padding: 10px 16px; cursor: pointer; }
.community-panel article { margin: 16px 0; padding: 12px; border: 1px solid #bbb; overflow-wrap: anywhere; }

/* Shared PHP sign-in, access-request and owner controls. */
.community-form { margin-block: 1rem; text-align: left; }
.community-form > label { display: block; margin-block: 0.9rem; line-height: 1.5; }
.community-form > label > input:not([type="checkbox"]):not([type="hidden"]) { display: block; box-sizing: border-box; width: 100%; max-width: 28rem; min-width: 0; min-height: 2.75rem; margin-top: 0.3rem; padding: 0.6rem; border: 1px solid #9fb4c7; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.community-form input[type="checkbox"] { width: 1.1rem; height: 1.1rem; vertical-align: middle; margin-right: 0.4rem; }
.community-form button { max-width: 100%; min-height: 2.75rem; padding: 0.65rem 0.9rem; border: 1px solid #8da6bc; background: #fff; color: var(--navy-800); font: inherit; cursor: pointer; }
.community-form input:focus-visible, .community-form button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.family-library { text-align: left; }
.family-library-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-block: 1rem; border-bottom: 1px solid #e0e6ed; }
.family-library-toolbar p { margin: 0; color: #576372; font-size: 0.875rem; }
.family-library-toolbar form { margin: 0; }
.family-library-toolbar button { padding: 0.6rem 1rem; border: 1px solid #9aacc3; border-radius: 2px; background: #f4f7fa; color: #071c58; font: inherit; cursor: pointer; }
.family-library-toolbar button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.family-library-empty { padding: 3.5rem 0; }
.family-library-empty h2 { margin: 0 0 1rem; color: var(--navy-900); font-size: 1.25rem; font-weight: 600; }
.family-library-empty p { margin: 0.6rem 0; max-width: 34rem; line-height: 1.65; }
.family-library-empty p:last-child { color: #576372; }
.family-library-footer { border-top: 1px solid #c5d4e3; padding-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
.family-library-footer p { color: #576372; margin-top: 1rem; }
.family-photo-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin: 1.25rem 0; font-size: 0.9rem; line-height: 1.6; }
.family-photo-full { width: 100%; height: auto; object-fit: contain; max-height: 80vh; background: #f4f6f8; }
.family-library .photo-grid { margin-block: 1rem 1.5rem; }
.family-library #collection { padding-block: 1rem 1.5rem; }

/* A selected private photo uses the viewport, not the tall legacy page.
   Ordinary authenticated links still work with scripts disabled. */
body:has(.family-photo-detail) { overflow: hidden; }
body:has(.family-photo-detail) .legacy-masthead,
body:has(.family-photo-detail) .legacy-page-grid > :not(.main-content),
body:has(.family-photo-detail) .family-library > :not(.family-photo-detail) { display: none; }
.family-photo-detail { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #edf1f6; color: var(--navy-900); }
.family-photo-detail .family-photo-controls { margin: 0; padding: 0.5rem 1rem; background: #fff; }
.family-photo-detail .family-photo-controls a { display: inline-flex; min-height: 44px; align-items: center; }
.family-photo-detail .family-photo-full { min-height: 0; height: 100%; max-height: 100%; width: 100%; object-fit: contain; background: #edf1f6; }
.family-photo-detail .family-photo-controls:last-child { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
.family-photo-detail .family-photo-controls:last-child > :last-child { justify-self: end; }
.writing-blog-title { margin: 0; }
.writing-blog-title img { width: 100%; height: auto; }
/* AI-cleaned derivative retains the full horizontal legacy composition.
   Vertical framing removes only generated black letterboxing (20% at each edge).
   Original GIFs remain untouched; text is accessible HTML, not baked into the image. */
.writing-combined-title { margin: 0; padding: 1.1rem 1.25rem; min-height: 9rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; align-items: start; gap: 1rem; color: #fff; background-color: #07529b; background-image: url('./images/writing-background-clean-v1.png'); background-size: 100% 167%; background-position: center; font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.15; text-shadow: 0 1px 3px #001436, 0 0 5px #001436; }
.writing-combined-name { display: block; min-width: 0; }
.writing-combined-slogan { display: block; margin-top: 0.25rem; color: #ffe17e; font-size: 0.65em; line-height: 1.35; font-weight: 400; }
.writing-blog-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.4rem; }
.writing-blog-choices a { display: block; }
.writing-blog-choices span { display: block; padding-top: 0.25rem; font-size: 0.875rem; }
@media (max-width: 36rem) { .writing-combined-title { padding-inline: 0.75rem; gap: 0.85rem; min-height: 9rem; } .writing-blog-choices { gap: 0.65rem; font-size: 0.9rem; } }
.writing-blog-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-block: 1rem; border-bottom: 1px solid #c5d4e3; margin-bottom: 1rem; }
.writing-blog-nav [aria-current="page"] { color: var(--navy-900); font-weight: bold; text-decoration-thickness: 2px; }

/* One continuous banner derivative replaces only the legacy title.
   Crop the generated white margins, keeping the complete shield and underline. */
.consulting-heading { margin: 0 0 1.25rem; }
.consulting-title-bar {
  width: 100%;
  aspect-ratio: 380 / 58;
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.consulting-title-bar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.consulting-einstein {
  margin: 0 auto 1.6rem;
  text-align: center;
}
.consulting-einstein img {
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
}
.biography-copy {
  max-width: 45rem;
  margin-inline: auto;
  color: var(--ink);
}
.biography-memorial {
  margin-top: 2rem;
  text-align: center;
}
.biography-memorial > p {
  margin: 0.65rem 0;
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
}
.biography-memorial > p:first-of-type {
  margin-top: 1.6rem;
  font-size: clamp(1.65rem, 3.2vw, 2rem);
}
.biography-memorial > p:nth-of-type(2) {
  font-size: clamp(1.3rem, 2.6vw, 1.5rem);
}
.biography-memorial > .blessing {
  margin-top: 1.8rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}
.biography-memorial > .dave-signature {
  width: 8rem;
  height: auto;
  margin-top: 0.65rem;
}
.biography-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.075rem;
  line-height: 1.72;
}
.consulting-copy {
  max-width: 45rem;
  margin-inline: auto;
  color: var(--ink);
}
.consulting-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.075rem;
  line-height: 1.72;
}
.consulting-copy p:first-child { font-size: 1.15rem; }
@media (max-width: 36rem) {
  .consulting-copy p, .consulting-copy p:first-child { font-size: 1.02rem; line-height: 1.68; }
}

/* Shared sizing for all current and future pages: scale each complete button,
   including its animated label, to preserve alignment and identical dimensions. */
.utility-nav { padding-right: 0; gap: 1rem; }
.utility-nav .utility-link { width: 6.875rem; min-height: 2.1875rem; zoom: 1.5; }
.feature-item-wide { max-width: 18rem; }
.feature-item-compact { max-width: 11rem; }
.feature-item-historical { max-width: 13rem; }
.homepage .main-content .blessing { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.homepage .dave-signature { width: min(13rem, 85%); height: auto; margin-top: 0.65rem; }
@media (min-width: 52.001rem) {
  .legacy-page-grid { --feature-width: clamp(11.75rem, 22cqw, 16rem); }
}
@media (min-width: 52.001rem) and (max-width: 64rem) {
  .utility-nav .utility-link { zoom: 1.3; }
}
@media (max-width: 52rem) {
  .utility-nav { grid-template-columns: 1fr; justify-items: center; padding: 1.5rem 1rem; }
  .utility-nav .utility-link { zoom: 1.7; justify-self: center; }
}
