
/* Rest & Reconnect LV — Shared Website Styles */

/* Design variables */

:root {
  --orange: #f18700;
  --blue: #acd9fc;
  --blue-ink: #1a2e45;
  --brand-blue: #1e4fa1;
  --cream: #fff0bc;
  --outline: #f3c969;
  --ink: #1c1919;
  --border: #aaa;
}

/* Brand fonts */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Homepage display font */

@font-face {
  font-family: "Paytone One";
  src: url("../fonts/PaytoneOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Global */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    #f8fcff 42%,
    #eaf5ff 100%
  );
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #075eaa;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 90;
  padding: 12px;
  background: white;
}

.skip-link:focus {
  top: 8px;
}

/* Shared section layout */

.panel {
  position: relative;
  min-height: 95svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
  border-bottom: 0;
}

.panel::after {
  content: "";
  position: absolute;
  right: 5vw;
  bottom: 0;
  left: 5vw;
  height: 5px;
  border-radius: 999px;
  background: var(--outline);
}

/* Homepage: Hero */

.hero {
  min-height: 75svh;
  flex-direction: column;
  padding-block: 4rem;
}

.hero-art {
  width: min(90vw, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: min(30vw, 265px);
  height: auto;
}

.brand-title {
  margin: 1rem 0 0;
  color: var(--brand-blue);
  font-family: "Paytone One", "Atkinson Hyperlegible Next", sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline solid var(--outline) 4px;
  text-underline-offset: .2em;
}

/* Homepage: Introduction */

.phrase {
  min-height: 45svh;
  padding-block: 3rem;
}

.phrase-title {
  max-width: 850px;
  color: var(--brand-blue);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.phrase-title a {
  color: inherit;
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.phrase-title a:hover,
.phrase-title a:focus-visible {
  background: rgba(174, 232, 222, .45);
}

.phrase-title ins {
  text-decoration-color: var(--outline);
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
}

/* Homepage: Resources and Services */

.split {
  min-height: 55svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: 3rem;
  padding: 4rem 5vw;
}

.split-half {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.service-half {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.service-heading {
  margin: 0;
}

.service-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Homepage: SVG buttons */

.retro-button {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  max-width: 100%;
  color: var(--blue-ink);
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.retro-button:hover,
.retro-button:focus-visible {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 0 var(--outline));
}

.retro-button img,
.retro-button span {
  grid-area: 1 / 1;
}

.retro-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.retro-button span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.retro-button--star {
  width: min(100%, 250px);
  height: 230px;
}

.retro-button--star span {
  padding: 2.5rem;
  font-size: clamp(1rem, 1.7vw, 1.5rem);
}

.retro-button--blue {
  width: min(100%, 240px);
  height: 120px;
}

.retro-button--blue span {
  padding: 1.5rem 2rem;
  color: #ffffff;
  font-size: clamp(.9rem, 1.5vw, 1.25rem);
}

.retro-button:hover span,
.retro-button:focus-visible span {
  text-decoration-thickness: 3px;
}

.retro-button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 5px;
}

/* Shared diamond buttons */

.diamond-button {
  width: 135px;
  height: 135px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 1.25rem;
  border: 3px dotted var(--outline);
  background: var(--cream);
  color: var(--blue-ink);
  text-decoration: none;
  transform: rotate(45deg) scale(.85);
  transition: background .2s;
}

.diamond-button span {
  transform: rotate(-45deg);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: clamp(.85rem, 1.65vw, 1.2rem);
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.diamond-button:hover,
.diamond-button:focus-visible {
  background: #ffe28b;
}

/* Homepage: Page buttons */

.link-panel {
  min-height: 55svh;
  padding-block: 5rem;
}

.diamond-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 4rem;
}

.diamond-button-large {
  width: clamp(140px, 15vw, 180px);
  height: clamp(140px, 15vw, 180px);
  padding: 1.5rem;
  transform: rotate(45deg) scale(.9);
}

.diamond-button-large span {
  font-size: clamp(.95rem, 1.75vw, 1.5rem);
}

/* Homepage: Image gallery */

.gallery-panel {
  min-height: 0;
  flex-direction: column;
  padding-block: 4rem;
}

.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 912 / 1120;
  object-fit: cover;
}

.gallery-credit {
  margin: 1.5rem 0 0;
  font-size: .875rem;
  text-align: center;
}

.gallery-credit a {
  color: var(--brand-blue);
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

/* Social Media: Introduction */

.social-intro {
  min-height: 45svh;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.social-intro h1 {
  margin: 0;
  color: var(--brand-blue);
  font-family: "Paytone One", "Atkinson Hyperlegible Next", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: underline solid var(--outline) 4px;
  text-underline-offset: .2em;
}

.social-intro p {
  max-width: 650px;
  margin: 0;
  padding: 22px;
  border-top: 10px solid var(--outline);
  border-bottom: 8px solid var(--outline);
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

/* Social Media: SVG link grid */


/* Social Media: Introduction */

.social-intro {
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding-block: 4rem 3rem;
  text-align: center;
}

/* Social Media: SVG link grid */

.social-links-section {
  min-height: 0;
  padding-block: 2rem 5rem;
}

.social-grid {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.social-tile {
  position: relative;
  min-width: 0;
  height: 180px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease;
}

.social-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter .2s ease;
}

.social-tile span {
  position: relative;
  z-index: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-tile:hover,
.social-tile:focus-visible {
  transform: translateX(4px);
}

.social-tile:hover img,
.social-tile:focus-visible img {
  filter: brightness(.82);
}


/* What We Do: Introduction */

.work-intro {
  min-height: 65svh;
  text-align: center;
}

.work-content {
  width: min(100%, 850px);
}

.work-intro h1 {
  margin: 0 0 1.5rem;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.work-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* What We Do: Scrolling sections */

.work-section {
  min-height: 42svh;
  padding-block: 3rem;
  color: var(--ink);
}

.work-intro::after,
.work-section::after {
  display: none;
}

.work-section--blue {
  background: var(--blue);
}

.work-section--cream {
  background: var(--cream);
}

.work-label {
  color: var(--blue-ink);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.work-diamond {
  width: .65rem;
  height: .65rem;
  flex-shrink: 0;
  background: currentColor;
  transform: rotate(45deg);
}

.work-title {
  margin: 0 0 1.5rem;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

.work-description {
  max-width: 650px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Who We Are */

.who-section {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2rem 5vw 4rem;
}

.who-section > h1 {
  width: fit-content;
  margin: 0 auto 2rem;
  padding-bottom: .35rem;
  border-bottom: 5px solid var(--outline);
  border-radius: 0 0 4px 4px;
  color: var(--brand-blue);
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}

.who-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.who-photo {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #ffcccc;
}

.who-identity h2 {
  margin: 0;
  color: #ba583a;
  font-size: clamp(2rem, 4vw, 3rem);
}

.who-identity p {
  margin: .5rem 0 0;
  color: var(--ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: underline dotted var(--outline) 2px;
  text-underline-offset: 4px;
}

.who-text {
  padding: 3rem;
  border-top: 10px solid var(--brand-blue);
  border-bottom: 8px solid var(--brand-blue);
  background: var(--blue);
  color: var(--ink);
}

.who-text p {
  max-width: 750px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.who-text p:last-child {
  margin-bottom: 0;
}

.who-text a {
  color: var(--brand-blue);
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.who-text a:hover,
.who-text a:focus-visible {
  background: rgba(113, 209, 209, .35);
}

/* Support UP */

.support-section {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}

.support-label {
  margin: 0 0 .5rem;
  color: var(--blue-ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

.support-section > h1 {
  max-width: 850px;
  margin: 0 auto 2rem;
  color: var(--brand-blue);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline solid var(--outline) 4px;
  text-underline-offset: .2em;
}

.support-feature {
  width: min(100%, 420px);
  margin: 0 auto 2rem;
  text-align: center;
}

.support-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.support-feature figcaption {
  margin-top: .5rem;
  font-size: .875rem;
}

.support-copy {
  max-width: 850px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.support-copy p {
  margin: 0 0 1.5rem;
}

.support-copy ins {
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.support-copy .brand-underline {
  font-style: italic;
  text-decoration: underline dotted currentColor 2px;
  text-underline-offset: 4px;
}

.support-copy a,
.support-feature a,
.support-links a {
  color: var(--brand-blue);
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.support-copy a:hover,
.support-copy a:focus-visible,
.support-feature a:hover,
.support-feature a:focus-visible,
.support-links a:hover,
.support-links a:focus-visible {
  background: rgba(174, 232, 222, .45);
}

.support-disclaimer {
  max-width: 850px;
  margin: 0 auto 3rem;
  padding: 2rem;
  border-top: 10px solid var(--brand-blue);
  border-bottom: 8px solid var(--brand-blue);
  background: var(--blue);
  color: var(--ink);
}

.support-disclaimer h2 {
  margin: 0 0 1rem;
}

.support-disclaimer p {
  margin: 0;
  line-height: 1.7;
}

.support-events {
  margin-bottom: 3rem;
}

.support-events h2 {
  margin: 0 0 2rem;
  color: var(--blue-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.support-gallery {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 240px), 1fr)
  );
  gap: 1.25rem;
  margin: 0 auto;
}

.support-gallery a {
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 4;
}

.support-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.support-links {
  max-width: 850px;
  margin: 0 auto;
  padding: 22px;
  border-top: 10px solid var(--outline);
  border-bottom: 8px solid var(--outline);
  background: var(--cream);
  color: var(--ink);
}

.support-links p {
  margin: 0;
}

/* Community Guidelines */

.guidelines-section {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}

.guidelines-section > h1 {
  margin: 0 0 2rem;
  color: var(--blue-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 260px), 1fr)
  );
  gap: 1.25rem;
}

.guidelines-column {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.guidelines-column h2 {
  margin: 1.5rem 0 1rem;
  color: var(--blue-ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.guidelines-column ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  list-style-position: inside;
}

.guidelines-column li {
  margin-bottom: .75rem;
}

.guidelines-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--blue-ink);
  text-align: center;
}

/* Events */

.events-section {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
  background: #ffffff;
  color: var(--ink);
}

.events-section > h1 {
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0 .4rem .35rem;
  border-bottom: 5px solid var(--outline);
  border-radius: 0 0 4px 4px;
  color: var(--brand-blue);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  text-transform: uppercase;
}

.events-section h2 {
  color: var(--brand-blue);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
}

.events-section section:first-of-type h2 {
  text-align: center;
}

.events-expectations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.events-expectations li {
  padding: 1rem 1.5rem;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue);
  font-family: "Lexend", "Segoe UI", sans-serif;
  text-align: center;
}

/* Shared cream-and-gold callout treatment */

.events-callout,
.resource-help {
  border-top: 10px solid var(--outline);
  border-bottom: 8px solid var(--outline);
  background: var(--cream);
}

.events-callout {
  margin: 2rem 0;
  padding: 22px;
  color: var(--ink);
}

.events-callout p {
  margin: 0 0 1rem;
}

.events-callout p:last-child {
  margin-bottom: 0;
}

.events-closing {
  text-align: center;
}

.events-closing a {
  font-weight: 700;
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.events-section a {
  color: var(--brand-blue);
  text-underline-offset: 4px;
}

.events-section a:hover,
.events-section a:focus-visible {
  background: rgba(113, 209, 209, .25);
}

.events-calendar {
  display: block;
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
}

.events-calendar-link {
  margin: 1rem 0 3rem;
  text-align: center;
}

.events-calendar-link a {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 2px dashed var(--outline);
  border-radius: 999px;
  background: #ffffff;
  font-family: "Lexend", "Segoe UI", sans-serif;
  text-decoration: underline;
}

.events-previous {
  margin-bottom: 2rem;
}

.events-previous h2 {
  margin: 0 0 1.5rem;
}

.events-gallery {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 240px), 1fr)
  );
  gap: 1.25rem;
}

.events-gallery a {
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 4;
}

.events-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Resource Center */

.resource-intro {
  padding: 4rem 5vw 3rem;
  color: var(--ink);
  text-align: center;
}

.resource-intro h1 {
  width: fit-content;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  padding-bottom: .35rem;
  border-bottom: 5px solid var(--outline);
  color: var(--brand-blue);
  font-size: clamp(2rem, 5vw, 3.75rem);
  text-transform: uppercase;
}

.resource-intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.resource-divider {
  width: 115px;
  height: 4px;
  margin: 2rem auto 0;
  border-radius: 999px;
  background: var(--outline);
}

.resource-help {
  width: min(90%, 1100px);
  margin: 0 auto 3rem;
  padding: 2rem;
  color: var(--ink);
}

.resource-help h2 {
  margin: 0 0 2rem;
  color: var(--brand-blue);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  text-decoration: underline solid var(--outline) 3px;
  text-underline-offset: .4rem;
}

.resource-help-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 300px), 1fr)
  );
  gap: 2rem;
}

.resource-help-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: #ffffff;
}

.resource-help-grid h3 {
  margin: 0 0 .5rem;
  color: var(--brand-blue);
  font-size: 1.5rem;
}

.resource-help-grid p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.resource-help-grid .resource-help-label {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: .875rem;
  font-weight: 600;
}

.resource-help-grid a {
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.resource-help-grid a:hover,
.resource-help-grid a:focus-visible {
  background: rgba(174, 232, 222, .45);
}

.resource-hub {
  width: min(90%, 1100px);
  margin: 0 auto;
  padding: 1rem 0 4rem;
  color: var(--ink);
}

.resource-hub > h2 {
  margin: 0 0 2rem;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.resource-destinations {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 300px), 1fr)
  );
  gap: 1.25rem;
}

.resource-destination {
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--blue);
  color: var(--ink);
  text-decoration: none;
}

.resource-destination:nth-child(2) {
  background: #ffffff;
}

.resource-destination h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.resource-destination p {
  margin: 0;
  line-height: 1.6;
}

.resource-destination-link {
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.resource-destination:hover,
.resource-destination:focus-visible {
  border-color: var(--outline);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--outline);
}

/* Community Organizations & Partners */

.partner-page {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3rem 5vw 5rem;
  color: var(--ink);
}

.partner-page > h1 {
  width: fit-content;
  margin: 0 auto 2rem;
  padding-bottom: .35rem;
  border-bottom: 5px solid var(--outline);
  color: var(--brand-blue);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  text-transform: uppercase;
}

.partner-callout {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 22px;
  border-top: 10px solid var(--outline);
  border-bottom: 8px solid var(--outline);
  background: var(--cream);
  text-align: center;
  line-height: 1.7;
}

.partner-callout p {
  margin: 0;
}

.partner-list {
  display: grid;
  gap: 3rem;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.partner-row-reverse {
  flex-direction: row-reverse;
}

.partner-logo {
  width: 210px;
  flex: 0 0 210px;
  display: block;
  text-align: center;
}

.partner-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.partner-logo:hover,
.partner-logo:focus-visible {
  filter: brightness(.9);
}

.partner-description {
  flex: 1 1 340px;
  min-width: 0;
  padding: 2rem;
  border-radius: 8px;
  background: var(--blue);
  color: var(--ink);
  line-height: 1.7;
}

.partner-description h2 {
  margin: 0 0 1rem;
  color: var(--brand-blue);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.partner-description a,
.partner-contact a {
  color: var(--brand-blue);
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.partner-description a:hover,
.partner-description a:focus-visible,
.partner-contact a:hover,
.partner-contact a:focus-visible {
  background: rgba(174, 232, 222, .45);
}

.partner-contact {
  max-width: 900px;
  margin: 3rem auto 0;
  line-height: 1.7;
  text-align: center;
}

.partner-contact p:last-child {
  margin-bottom: 0;
}

/* Resource Directory */

.directory-page {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3rem 5vw 5rem;
}

.directory-intro {
  margin-bottom: 2.5rem;
  color: var(--ink);
  text-align: center;
}

.directory-intro h1 {
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding-bottom: .35rem;
  border-bottom: 5px solid var(--outline);
  color: var(--brand-blue);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

.directory-intro p {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.directory-navigation {
  margin-bottom: 3rem;
  padding: 2rem;
  border-top: 10px solid var(--outline);
  border-bottom: 8px solid var(--outline);
  background: var(--cream);
  color: var(--ink);
}

.directory-navigation h2 {
  margin: 0 0 2rem;
  color: var(--brand-blue);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.directory-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.directory-categories a {
  display: block;
  min-width: 0;
  padding: .75rem;
  border-radius: 8px;
  color: var(--brand-blue);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.directory-categories a:hover,
.directory-categories a:focus-visible {
  background: var(--outline);
}

.directory-listings {
  text-align: center;
}

.directory-listings section {
  margin-bottom: 2.5rem;
}

.directory-listings h2 {
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--outline);
  color: var(--brand-blue);
  font-size: clamp(1.5rem, 3vw, 2rem);
  scroll-margin-top: 1rem;
}

.directory-listings ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.7;
}

.directory-listings li {
  margin-bottom: .85rem;
  overflow-wrap: anywhere;
}

.directory-listings a {
  color: var(--brand-blue);
  text-decoration: underline dotted var(--blue-ink) 2px;
  text-underline-offset: 4px;
}

.directory-listings a:hover,
.directory-listings a:focus-visible {
  background: rgba(174, 232, 222, .45);
}

.directory-closing {
  margin: 3rem 0 0;
}

/* Main navigation: light-yellow rail with rounded branded interactions */

.side-rail {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px #0001;
  transform: translateY(-50%);
}

.rail-toggle {
  width: 1.75rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: .9rem;
  cursor: pointer;
}

.rail-toggle:hover,
.rail-toggle:focus-visible,
.rail-toggle[aria-expanded="true"] {
  background: var(--outline);
}

.rail-items {
  width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  visibility: hidden;
  transition: width .2s ease;
}

.side-rail:hover .rail-items,
.side-rail:focus-within .rail-items,
.side-rail.is-open .rail-items {
  width: 220px;
  padding: 12px;
  visibility: visible;
}

.rail-items a,
.rail-items summary,
.submenu span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.rail-items a,
.submenu span {
  overflow-wrap: anywhere;
}

.rail-items summary {
  cursor: pointer;
}

.rail-items a:hover,
.rail-items a:focus-visible,
.rail-items summary:hover,
.rail-items summary:focus-visible {
  background: var(--brand-blue);
  color: #ffffff;
}

.rail-items details[open] > summary {
  background: var(--outline);
  color: var(--ink);
}

.rail-items details[open] > summary:hover,
.rail-items details[open] > summary:focus-visible {
  background: var(--brand-blue);
  color: #ffffff;
}

.rail-items a:active,
.rail-items summary:active {
  background: #d08a00;
  color: var(--ink);
}

.rail-items a[aria-current="page"] {
  text-decoration: underline dotted var(--brand-blue) 2px;
  text-underline-offset: 4px;
}

.rail-items a[aria-current="page"]:hover,
.rail-items a[aria-current="page"]:focus-visible {
  text-decoration-color: #ffffff;
}

.submenu {
  padding-left: 16px;
}

.rail-items details:first-child .submenu {
  padding-left: 0;
  text-align: center;
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  width: 4px;
  height: 100dvh;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--blue-ink);
}

/* Motion control */

#motion-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

#motion-toggle:disabled {
  cursor: default;
}

/* Shared site footer */

.site-footer {
  padding: 40px 5vw;
  background: var(--brand-blue);
  color: white;
}

.footer-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 30px;
  border-bottom: 1px solid currentColor;
}

.site-footer h2 {
  grid-column: 2;
  margin: 0;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  font-style: italic;
  text-align: center;
}

.back-to-top {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-columns nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
}

.footer-columns nav + nav {
  border-left: 1px solid currentColor;
}

.footer-columns h3 {
  margin: 0;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-columns nav:first-child h3 {
  color: var(--cream);
}

.footer-columns nav:last-child h3 {
  color: var(--blue);
}

.footer-columns a {
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}

.footer-columns a:hover,
.footer-columns a:focus-visible {
  background: rgba(174, 232, 222, .45);
  text-decoration-thickness: 2px;
}

.site-footer a:focus-visible {
  outline-color: var(--outline);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid currentColor;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Motion accessibility */

html.motion-off {
  scroll-behavior: auto;
}

html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) {
    scroll-behavior: auto;
  }

  html:not(.motion-on) *,
  html:not(.motion-on) *::before,
  html:not(.motion-on) *::after {
    animation: none;
    transition: none;
  }
}
