/* =====================================================
   AlexKasper.com Design System
   Change these values to adjust the site-wide look.
   ===================================================== */

:root {
  /* Brand colors */
  --color-accent: #ff5f24;
  --color-accent-hover: #d24916;
  --color-accent-active: #9f330c;

  /* Surfaces */
  --color-bg: #f9f4f1;
  --color-panel: #ffffff;
  --color-panel-hover: #eeeeee;

  /* Text and borders */
  --color-text: #323232;
  --color-body: #666666;
  --color-body-light: #777777;
  --color-muted: #927461;
  --color-muted-light: #bca495;
  --color-muted-dark: #75533e;
  --color-muted-darker: #593824;
  --color-border: #dfd1c7;
  --color-border-light: #cccccc;
  --color-light: #a9a9a9;

  /* Dark colors */
  --color-black: #000000;
  --color-black-90: #111111;
  --color-black-80: #222222;
  --color-dark: #333333;

  /* Buttons */
  --color-button: #a8320d;
  --color-button-hover: #8f290a;
  --color-button-active: #6b2008;

  /* Font families
     Multi-word family names are quoted; generic families are not. */
  --font-display:
    "futura-pt",
    "Segoe UI",
    Arial,
    "Helvetica Neue",
    Helvetica,
    sans-serif;

  /* Font sizes */
  --text-xs: 1.4rem;
  --text-sm: 1.5rem;
  --text-base: 1.6rem;
  --text-lg: 1.8rem;
  --text-xl: 1.9rem;
  --text-2xl: 2.1rem;
  --text-3xl: 2.2rem;
  --text-4xl: 2.6rem;
  --text-hero: 4rem;

  /* Font weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Common shape */
  --radius: 3px;
}

#sidebar {
     position: fixed;
     top: 0;
     left: 0;
     width: 440px;
     min-height: 100vh;
     padding: 0;
     text-align: center;
     background-color: var(--color-black);
}
#container {
     position: relative;
     display: flex;
     flex-direction: column;
     align-items: stretch;
     min-height: 100vh;
     margin-left: 440px;
     padding: 0;
     background-color: var(--color-bg);
}
 main#primary {
     margin: 0;
     padding: 40px;
     flex-grow: 1;
}
 a:link, a:visited {
     color: var(--color-accent);
}
 a:hover {
     color: var(--color-accent-hover);
}
 a:active {
     color: var(--color-accent-active);
}

/* Sidebar logo */

#logo {
    margin: 0;
    padding: 52px 20px 62px;
    text-align: center;
}

#logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

#logo .logoCircle {
    display: block;
    width: 82px;
    max-width: none;
    height: auto;
    margin: 0 auto 10px;
}

#logo .logoName {
    display: block;
    color: var(--color-panel);
    font-size: 2.95rem;
    font-weight: var(--weight-medium);
    line-height: 1;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
}

#logo .logoTagline {
    display: block;
    margin-top: 8px;
    color: var(--color-light);
    font-size: 1.15rem;
    font-weight: var(--weight-medium);
    line-height: 1;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    white-space: nowrap;
}

#logo .logoTagline .sep {
    font-size: 0.85em;
    line-height: 0;
    vertical-align: 0.10em;
    margin: 0 0.12em;
}

#primaryNavWrapper {
     margin: 0;
     padding: 0;
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type {
     display: block;
     margin: 0 0 40px 0;
     padding: 40px 0;
     text-align: center;
     font-size: 0;
     line-height: 0;
     border-top: 1px solid var(--color-text);
     border-bottom: 1px solid var(--color-text);
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type > li {
     margin: 0;
     padding: 0;
     list-style-type: none;
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:visited {
     position: relative;
     display: block;
     margin: 0;
     padding: 0;
     font-family: var(--font-display);
     font-weight: var(--weight-normal);
     font-size: var(--text-lg);
     height: 3.8rem;
     line-height: 3.8rem;
     letter-spacing: 0.1rem;
     text-transform: uppercase;
     text-decoration: none;
     color: var(--color-light);
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:active, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:hover {
     color: var(--color-panel);
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type > li a.active:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li a.active:visited {
     color: var(--color-accent);
}
#primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-ancestor a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-ancestor a:visited, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-item a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-item a:visited, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-parent a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-menu-parent a:visited, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-page-ancestor a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li.current-page-ancestor a:visited {
     color: var(--color-accent);
}
#primaryNavWrapper #mobiToggle {
     display: none;
     position: absolute;
     top: 30px;
     left: 30px;
     margin: 0;
     padding: 0 15px 0 45px;
     height: 40px;
     font-family: var(--font-display);
     font-weight: var(--weight-normal);
     font-size: var(--text-lg);
     line-height: 3.7rem;
     letter-spacing: 0.1rem;
     text-transform: uppercase;
     text-decoration: none;
     text-align: left;
     color: var(--color-panel);
     border: 1px solid var(--color-body);
     border-radius: var(--radius);
     cursor: pointer;
     z-index: 300;
}
#primaryNavWrapper #mobiToggle:before {
     position: absolute;
     top: 50%;
     left: 22px;
     width: 18px;
     height: 18px;
     transform: translate(-50%, -50%);
     background-image:
          linear-gradient(currentColor, currentColor),
          linear-gradient(currentColor, currentColor),
          linear-gradient(currentColor, currentColor);
     background-repeat: no-repeat;
     background-size: 18px 2px;
     background-position: top, center, bottom;
     content: "";
     z-index: 0;
}
#primaryNavWrapper #mobiToggle.active {
     width: 40px;
     padding: 0;
     text-indent: -9999px;
     overflow: hidden;
}
#primaryNavWrapper #mobiToggle.active:before {
     left: 20px;
     background-image:
          linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
          linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
     background-size: 100% 100%;
     background-position: center;
}
 header#hero {
     position: relative;
     width: auto;
     height: calc((100vw - 460px) / 2);
     margin: -40px -40px 40px -40px;
     padding: 0;
     background-color: var(--color-muted);
     overflow: hidden;
}
/* Biography hero image and edge-to-edge text scrim */
header#hero #biography {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background:
    var(--color-light)
    url("/img/ak/hero/biography.v1.webp")
    center center / cover
    no-repeat;
}

header#hero #biography::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.64) 20%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.34) 60%,
    rgba(0, 0, 0, 0.18) 75%,
    rgba(0, 0, 0, 0.06) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  content: "";
  pointer-events: none;
  z-index: 1;
}

header#hero #biography .wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 120px 200px 60px 60px;
  background: none;
  z-index: 2;
}

header#hero #biography p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: var(--text-lg);
  line-height: 2.6rem;
  color: var(--color-panel);
}
 header#hero #biography ul {
     display: block;
     margin: 40px 0 0 -20px;
     padding: 0;
     font-size: 0;
     line-height: 0;
}
 header#hero #biography ul li {
     position: relative;
     display: inline-block;
     margin: 0;
     padding: 5px 20px;
     list-style-type: none;
     font-family: var(--font-display);
     font-weight: var(--weight-semibold);
     font-size: var(--text-xl);
     line-height: 1.9rem;
     letter-spacing: 0.1rem;
     text-transform: uppercase;
}
 header#hero #biography ul li a:active, header#hero #biography ul li a:hover, header#hero #biography ul li a:link, header#hero #biography ul li a:visited {
     display: block;
     text-decoration: none;
     color: var(--color-panel);
}
 header#hero #biography ul li:after {
     position: absolute;
     top: 0;
     right: 0;
     width: 1px;
     height: 100%;
     background-color: rgba(255, 255, 255, 0.3);
     content: "";
     z-index: 0;
}
 header#hero #biography ul li:last-child:after {
     display: none;
}
 header#hero .caption {
     position: absolute;
     width: 100%;
     bottom: 0;
     left: 0;
     margin: 0;
     padding: 200px 60px 60px 125px;
     text-align: left;
     background-image: linear-gradient( 185deg, transparent 50%, rgba(0, 0, 0, 0.8) 100% );
}
 header#hero .caption:before {
     position: absolute;
     bottom: 50px;
     left: 60px;
     width: 60px;
     height: 60px;
     background: transparent url("/img/global/iconSprite.v43-01.svg") -100px -150px no-repeat;
     content: "";
     z-index: 0;
}
 header#hero .caption h2, header#hero .caption h3 {
     margin: 0;
}
 header#hero .caption h2, header#hero .caption h2 a:link, header#hero .caption h2 a:visited, header#hero .caption h3, header#hero .caption h3 a:link, header#hero .caption h3 a:visited {
     text-decoration: none;
     color: var(--color-panel);
}
header#hero .caption h2 {
    margin: -5px 0 0 0;
    font-weight: var(--weight-semibold);
    font-size: var(--text-4xl);
    hyphens: auto;
}
 header#hero .caption h3 {
     font-weight: var(--weight-normal);
     letter-spacing: 0.1rem;
}
 header#hero #virtualSchool {
     display: block;
     position: absolute;
     top: 0;
     right: 0;
     width: 50%;
     height: 50%;
     background: var(--color-black) url("/img/ak/hero/manufactured-urgency.webp") center center no-repeat;
     background-size: cover;
}
 header#hero #virtualSchool .caption:before {
     bottom: 44px;
     left: 45px;
     background: transparent url("/img/global/icons/promo-book.svg") 0 0 no-repeat;
     background-size: 100% 100%;
}
 header#hero #instagram, header#hero #tiktok {
     display: block;
     position: absolute;
     bottom: 0;
     right: 25%;
     width: 25%;
     height: 50%;
     background: var(--color-text) url("/img/ak/hero/instagram.v3.webp") center bottom no-repeat;
     background-size: cover;
}
 header#hero #instagram .caption:before, header#hero #tiktok .caption:before {
     background-position: 0 -150px;
}
 header#hero #tiktok {
     right: 0;
     background: var(--color-muted) url("/img/ak/hero/tiktok.v1.webp") center bottom no-repeat;
     background-size: cover;
}
 header#hero #tiktok .caption:before {
     background-position: -200px -150px;
}
#latest > section:first-child {
     flex: 0 1 calc(66.6666666667% - 10px);
     margin-right: 10px;
}
#latest > section:nth-child(2) {
     flex: 0 1 calc(33.3333333333% - 10px);
     margin-left: 10px;
}
#upcomingEvents {
     padding-bottom: 30px;
}
#upcomingEvents #eventsOverview {
     padding-top: 15px;
     border-top: 1px solid var(--color-border);
}
#upcomingEvents #eventsOverview .event {
     position: relative;
     min-height: 58px;
     margin: 0 0 15px 0;
     padding: 0 0 15px 0;
     border-bottom: 1px solid var(--color-border);
}
#upcomingEvents #eventsOverview .event:last-of-type {
     margin-bottom: 0;
     padding-bottom: 0;
     border-bottom: none;
}
#upcomingEvents #eventsOverview .eventDate {
     position: absolute;
     top: -1px;
     left: -5px;
     width: 45px;
     margin: 0;
     font-family: var(--font-display);
     font-weight: var(--weight-bold);
     text-align: center;
     text-transform: uppercase;
}
#upcomingEvents #eventsOverview .eventDate .month {
     display: block;
     font-weight: var(--weight-semibold);
     font-size: var(--text-base);
     line-height: 2rem;
     color: var(--color-accent);
}
#upcomingEvents #eventsOverview .eventDate .day {
     display: block;
     font-size: var(--text-4xl);
     line-height: 2.6rem;
     color: var(--color-accent);
}
#upcomingEvents #eventsOverview .eventDetail {
     margin-left: 50px;
     padding-left: 15px;
     border-left: 1px solid var(--color-border);
}
#upcomingEvents #eventsOverview .eventDetail p {
     margin: 0;
     line-height: 1.6rem;
}
#upcomingEvents #eventsOverview .eventDetail h3 {
     margin: -1px 0 5px 0;
}
#upcomingEvents #eventsOverview .eventDetail h3, #upcomingEvents #eventsOverview .eventDetail h3 a:link, #upcomingEvents #eventsOverview .eventDetail h3 a:visited {
     color: var(--color-accent);
}
#upcomingEvents #eventsOverview .eventDetail h3 a:hover {
     color: var(--color-accent-hover);
}
#upcomingEvents #eventsOverview .eventDetail h3 a:active {
     color: var(--color-accent-active);
}
#featuredAlbum:link, #featuredAlbum:visited {
     display: block;
     position: relative;
     padding: 0;
     text-decoration: none;
     background-image: none;
     background-color: var(--color-black);
     border: none;
}
#featuredAlbum:link img, #featuredAlbum:visited img {
     width: 100%;
     height: auto;
     vertical-align: middle;
     border-radius: 5px;
}
#featuredAlbum:link header, #featuredAlbum:visited header {
     position: absolute;
     width: 100%;
     padding: 40px 40px 60px 40px;
     left: 0;
     top: 0;
     background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.8) 40%, transparent 100% );
     border-radius: 5px 5px 0 0;
     z-index: 100;
}
#featuredAlbum:link header h2, #featuredAlbum:visited header h2 {
     margin-bottom: 10px;
}
#featuredAlbum:link header h2, #featuredAlbum:link header h2 a:link, #featuredAlbum:link header h2 a:visited, #featuredAlbum:link header p, #featuredAlbum:link header p a:link, #featuredAlbum:link header p a:visited, #featuredAlbum:visited header h2, #featuredAlbum:visited header h2 a:link, #featuredAlbum:visited header h2 a:visited, #featuredAlbum:visited header p, #featuredAlbum:visited header p a:link, #featuredAlbum:visited header p a:visited {
     color: var(--color-panel);
}
#merch:link, #merch:visited {
     display: block;
     width: 100%;
     height: 0;
     font-size: 0;
     line-height: 0;
     text-align: center;
     text-indent: -9999px;
     overflow: hidden;
     padding: 0 0 40% 0;
     background: var(--color-text) url("/img/ak/officialMerch.svg") center center no-repeat;
     background-size: 70% auto;
}
#merch:hover {
     background-color: var(--color-black-80);
}
#merch:active {
     background-color: var(--color-black);
}
/* Homepage CTA banners (Kevin Mitnick Archive, Return Fire, etc.):
   one link, a real heading, and a real label — no text baked into
   background images. Modifier classes only change the background;
   layout and type live here in one place instead of being scattered
   across the file. See layouts/partials/cta-banner.html. */
.cta-banner:link, .cta-banner:visited {
     position: relative;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     width: 100%;
     margin-top: 20px;
     padding: 90px 40px;
     border: none;
     border-radius: var(--radius);
     text-align: center;
     text-decoration: none;
     overflow: hidden;
}
.cta-banner__title {
     position: relative;
     z-index: 1;
     margin: 0 0 28px 0;
     font-family: var(--font-display);
     font-weight: var(--weight-normal);
     font-size: var(--text-hero);
     line-height: 1.15;
     letter-spacing: 0.1rem;
     text-transform: uppercase;
     color: var(--color-panel);
}
.cta-banner__label {
     position: relative;
     z-index: 1;
     display: inline-block;
     padding: 0 24px;
     font-family: var(--font-display);
     font-weight: var(--weight-semibold);
     font-size: var(--text-base);
     line-height: 4.2rem;
     min-height: 4.2rem;
     text-transform: uppercase;
     letter-spacing: 0.1rem;
     color: #fff;
     background-color: var(--color-accent);
     border-radius: var(--radius);
}
.cta-banner--mitnick:link, .cta-banner--mitnick:visited {
     background: var(--color-black) url("/img/mitnick/hero.webp") center 20% no-repeat;
     background-size: cover;
}
.cta-banner--mitnick:before, .cta-banner--return-fire:before {
     position: absolute;
     inset: 0;
     background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100% );
     content: "";
}
.cta-banner--mitnick:hover:before, .cta-banner--return-fire:hover:before {
     background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100% );
}
.cta-banner--return-fire:link, .cta-banner--return-fire:visited {
     padding: 40px 40px;
     background: var(--color-muted) url("/img/return-fire/hero.webp") center center no-repeat;
     background-size: cover;
}
.cta-banner--return-fire .cta-banner__title {
     margin-bottom: 16px;
     font-size: 4.4rem;
}
@media screen and (max-width: 600px) {
     .cta-banner:link, .cta-banner:visited {
         padding: 60px 24px;
    }
     .cta-banner__title {
         font-size: var(--text-3xl);
    }
     .cta-banner--return-fire:link, .cta-banner--return-fire:visited {
         padding: 30px 24px;
    }
}
/* Article cover (floated thumbnail) */
.article-cover {
     float: left;
     margin: 0.25rem 1.75rem 1rem 0;
}
.article-cover img {
     display: block;
     width: 180px;
     height: auto;
}
@media screen and (max-width: 600px) {
     .post header h1,
     .page header h1 {
         text-align: center;
    }
     .article-cover {
         float: none;
         margin: 0 0 1rem;
    }
     .article-cover img {
         margin: 0 auto;
         width: 100%;
         max-width: 220px;
    }
}

/* Events list */

#eventsFull {
  margin-top: 2rem;
}

#eventsFull .event {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;

  padding: 2rem 1.25rem;
  margin-bottom: 1rem;

  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* Override legacy .col float layout */
#eventsFull .event > .col {
  float: none;
  clear: none;
  width: auto;
}

#eventsFull .event .datetime,
#eventsFull .event .title,
#eventsFull .event .buttons {
  margin: 0;
}

#eventsFull .event .datetime span {
  display: block;
}

#eventsFull .event .datetime .day {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--color-accent);
  text-transform: uppercase;
}

#eventsFull .event .datetime .time {
  margin-top: 0.45rem;
  font-size: var(--text-base);
  line-height: 1.3;
  color: var(--color-accent);
}

#eventsFull .event .title h3 {
  margin: 0 0 0.45rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-transform: uppercase;
}

#eventsFull .event .title h3 a:link,
#eventsFull .event .title h3 a:visited {
  color: var(--color-text);
  text-decoration: none;
}

#eventsFull .event .title h3 a:hover {
  color: var(--color-accent-hover);
}

#eventsFull .event .title h3 a:active {
  color: var(--color-accent-active);
}

#eventsFull .event .location {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--color-body);
}

#eventsFull .event .buttons {
  width: auto;
  clear: none;
  align-self: center;
  justify-self: end;
  padding-right: 0.25rem;
  text-align: right;
}

#eventsFull .event .button {
  white-space: nowrap;
}

@media (max-width: 800px) {
  #eventsFull .event {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  #eventsFull .event .buttons {
    justify-self: start;
    padding-right: 0;
    text-align: left;
  }
}

/* List tile cover images */
.tile-cover {
     display: block;
     float: left;
     margin: 0.25rem 1.25rem 0.75rem 0;
}
.tile-cover img {
     display: block;
     width: 120px;
     height: auto;
}
@media screen and (max-width: 600px) {
     .tile-cover {
         float: none;
         margin: 0 0 1rem;
    }
     .tile-cover img {
         width: 100%;
         max-width: 160px;
    }
}
/* Inline contextual source link */
.read-more:link, .read-more:visited {
     color: var(--color-accent);
     font-weight: var(--weight-medium);
     text-decoration: none;
     white-space: nowrap;
}
.read-more:hover {
     color: var(--color-accent-hover);
     text-decoration: underline;
}
.read-more:active {
     color: var(--color-accent-active);
}
.post header .meta {
     margin: 0 0 0.25rem;
}
.post header h2 {
     margin: 0 0 1.25rem;
}
/* Article actions row (CTA links + share, side by side, divider above) */
.article-actions {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 1rem;
     margin-top: 1.5rem;
     padding-top: 1.5rem;
     border-top: 1px solid var(--color-border);
}
.article-actions #share.share-menu {
     margin-top: 0;
}
/* Distinct colors per action button: source link keeps the default
   accent orange, "Project Home" uses the muted brown, Share uses dark.
   Project Home is an <a class="button">, so the override needs to match
   (and slightly outrank) global.css's `a.button:link, a.button:visited`
   rule, which a plain `.article-actions .button-project` class selector
   doesn't have enough specificity to beat. */
.article-actions a.button-project:link,
.article-actions a.button-project:visited {
     background-color: var(--color-muted);
}
.article-actions a.button-project:hover {
     background-color: var(--color-muted-dark);
     box-shadow: 0 0 0 3px rgba(146, 116, 97, 0.3);
}
.article-actions a.button-project:active {
     background-color: var(--color-muted-darker);
     box-shadow: none;
}
.article-actions #share #share-toggle.button-share {
     background-color: var(--color-dark);
}
.article-actions #share #share-toggle.button-share:hover {
     background-color: var(--color-black-90);
     box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3);
}
.article-actions #share #share-toggle.button-share:active {
     background-color: var(--color-black);
     box-shadow: none;
}
.article-actions a.button-mailing-list:link,
.article-actions a.button-mailing-list:visited {
     background-color: var(--color-button);
}
.article-actions a.button-mailing-list:hover {
     background-color: var(--color-button-hover);
     box-shadow: 0 0 0 3px rgba(168, 50, 13, 0.3);
}
.article-actions a.button-mailing-list:active {
     background-color: var(--color-button-active);
     box-shadow: none;
}

/* Action button icons, matching the convention already used by the
   Subscribe button on /mailing-list/ (see .subscribe in global.css):
   a left-aligned, vertically centered SVG in a :before pseudo-element,
   with left padding on the button to make room for it. Values assume
   the buttons' current 42px height. The anchor-based buttons need the
   extra `:link, :visited` specificity for the same reason as the color
   overrides above. */
.article-actions a.button-source:link,
.article-actions a.button-source:visited {
     padding-left: 40px;
}
.article-actions .button-source:before {
     position: absolute;
     top: 13px;
     left: 20px;
     width: 9px;
     height: 15px;
     background: transparent url("/img/global/icons/button-arrow.svg") no-repeat;
     background-size: contain;
     content: "";
}
.article-actions a.button-project:link,
.article-actions a.button-project:visited {
     padding-left: 46px;
}
.article-actions .button-project:before {
     position: absolute;
     top: 13px;
     left: 20px;
     width: 16px;
     height: 16px;
     background: transparent url("/img/global/icons/button-home.svg") no-repeat;
     background-size: contain;
     content: "";
}
.article-actions #share #share-toggle.button-share {
     padding-left: 46px;
}
.article-actions #share #share-toggle.button-share:before {
     position: absolute;
     top: 12px;
     left: 20px;
     width: 16px;
     height: 18px;
     background: transparent url("/img/global/icons/button-share.svg") no-repeat;
     background-size: contain;
     content: "";
}
.article-actions a.button-mailing-list:link,
.article-actions a.button-mailing-list:visited {
     padding-left: 50px;
}
.article-actions .button-mailing-list:before {
     position: absolute;
     top: 13px;
     left: 20px;
     width: 22px;
     height: 16px;
     background: transparent url("/img/global/icons/button-subscribe.svg") no-repeat;
     background-size: contain;
     content: "";
}

/* Series prev/next nav (inside .article-actions, below the share button —
   previous left-justified, next right-justified, side by side on wide
   screens; stacks to full-width rows on small screens). */
.series-nav {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 1rem;
  margin-top: 0.75rem;
}
.series-nav-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.1rem;
}
.series-nav-next {
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
}
.series-nav-link:link,
.series-nav-link:visited {
  color: var(--color-text);
  text-decoration: none;
}
.series-nav-link:hover {
  color: var(--color-accent);
}
.series-nav-link:hover .series-nav-title,
.series-nav-link:hover .series-nav-date {
  color: var(--color-accent);
}
.series-nav-dir {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--color-muted);
}
.series-nav-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--color-text);
}
.series-nav-date {
  font-size: 1rem;
  color: var(--color-body-light);
}
@media screen and (max-width: 560px) {
  .series-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .series-nav-next {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
  }
}

/* Share Customization */
/* Share dropdown */
/* Reset the legacy #share divider (global.css) so this widget owns its
   own spacing instead of inheriting a stray border/margin/font-size. */
#share.share-menu {
     position: relative;
     display: inline-block;
     margin-top: 1.5rem;
     padding-top: 0;
     border-top: none;
     font-size: inherit;
     line-height: inherit;
}
#share .share-options[hidden] {
     display: none !important;
}
#share .share-options {
     position: absolute;
     top: calc(100% + 6px);
     left: 0;
     z-index: 1000;
     display: block;
     box-sizing: border-box;
     width: 190px;
     min-width: 190px;
     margin: 0;
     padding: 6px;
     background: var(--color-panel);
     border: 1px solid var(--color-border-light);
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
/* Share toggle inherits sizing/color from the shared .button class
   (already on the markup) so it matches other action buttons exactly. */
#share #share-toggle {
     margin: 0;
}
/* Reset inherited social-button styling inside the dropdown */
#share .share-options a, #share .share-options a:link, #share .share-options a:visited, #share .share-options button {
     position: static;
     display: block;
     box-sizing: border-box;
     width: 100%;
     height: auto;
     min-height: 0;
     margin: 0;
     padding: 9px 12px;
     border: 0;
     border-radius: 0;
     background: transparent;
     background-image: none;
     color: var(--color-dark);
     font-family: inherit;
     font-size: var(--text-sm);
     font-weight: var(--weight-normal);
     line-height: 1.3;
     letter-spacing: normal;
     text-align: left;
     text-indent: 0;
     text-transform: none;
     text-decoration: none;
     white-space: nowrap;
     appearance: none;
     overflow: visible;
     cursor: pointer;
}
#share .share-options a:hover, #share .share-options a:focus, #share .share-options button:hover, #share .share-options button:focus {
     background: var(--color-panel-hover);
     color: var(--color-black-90);
     outline: none;
}
/* Contact Section Styles */
.contact-layout {
     box-sizing: border-box;
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 20px;
     width: 100%;
     margin: 0;
     padding: 0;
     align-items: start;
}
.contact-layout > * {
     box-sizing: border-box;
     min-width: 0;
     margin: 0;
}
.contact-layout__details h1 {
     margin: 0 0 28px;
}
.contact-intro {
     margin-bottom: 30px;
}
.contact-section {
     margin: 0 0 30px;
     padding: 0 0 30px;
     border-bottom: 1px solid var(--color-border);
}
.contact-section:last-child {
     margin-bottom: 0;
     padding-bottom: 0;
     border-bottom: 0;
}
.contact-section h3 {
     margin-bottom: 10px;
}
.contact-list {
     margin: 0;
     padding: 0;
}
.contact-list li {
     margin: 0 0 6px;
     padding: 0;
     list-style: none;
}
.contact-publishing {
     margin: 30px 0 0;
     padding: 30px 0 0;
     border-top: 1px solid var(--color-border);
}
.contact-publishing h2 {
     margin: 0 0 20px;
}
.contact-list li strong {
     font-weight: inherit;
}
.contact-personal-note {
     margin: 30px 0 0;
     padding: 30px 0 0;
     border-top: 1px solid var(--color-border);
}
.contact-personal-note h3 {
     margin: 0 0 18px;
}
.contact-personal-note__text {
     margin-bottom: 20px;
}
.contact-personal-note__text p {
     margin: 0 0 20px;
}
.contact-personal-note__figure {
     margin: 0;
}
.contact-personal-note__figure img {
     display: block;
     width: 100%;
     max-width: 100%;
     height: auto;
}
.contact-personal-note__figure figcaption {
     margin-top: 14px;
     font-size: var(--text-xs);
     line-height: 2rem;
     color: var(--color-body-light);
}
@media screen and (max-width: 800px) {
     .contact-layout {
         display: block;
    }
     .contact-layout__faq {
         margin-top: 20px;
    }
}
/* FAQ Sections styling */
.faq-section > h2 {
     margin-top: 0;
}
.faq-intro {
     margin-bottom: 30px;
}
.faq-group {
     margin-bottom: 30px;
}
.faq-group:last-child {
     margin-bottom: 0;
}
.faq-group h3 {
     margin: 0 0 14px;
}
.faq-item {
     margin: 0;
     background-color: var(--color-panel);
     border: 1px solid var(--color-border);
     border-bottom: 0;
}
.faq-item:first-of-type {
     border-radius: 3px 3px 0 0;
}
.faq-item:last-child {
     border-bottom: 1px solid var(--color-border);
     border-radius: 0 0 3px 3px;
}
.faq-item:only-of-type {
     border-bottom: 1px solid var(--color-border);
     border-radius: var(--radius);
}
.faq-item summary {
     position: relative;
     padding: 12px 16px 12px 38px;
     font-weight: var(--weight-normal);
     color: var(--color-muted);
     cursor: pointer;
     list-style: none;
}
.faq-item summary::-webkit-details-marker {
     display: none;
}
.faq-item summary::before {
     position: absolute;
     top: 12px;
     left: 11px;
     content: "+";
     font-size: var(--text-lg);
     line-height: 1;
     color: var(--color-muted-light);
}
.faq-item[open] summary::before {
     content: "−";
}
.faq-item summary::after {
     display: none;
     content: none;
}
.faq-answer {
     padding: 0 16px 14px 38px;
     color: var(--color-body);
}
.faq-answer > :last-child {
     margin-bottom: 0;
}

/* Mailing List */

.mailing-list-page .block.intro,
.mailing-list-page .block.intro h1,
.mailing-list-page .block.intro .fullPost,
.mailing-list-page .block.intro p,
.mailing-list-page .block.intro strong,
.mailing-list-page .block.intro em,
.mailing-list-page .block.intro li {
    color: #fff;
}

.mailing-list-page .block.intro a,
.mailing-list-page .block.intro a:visited {
  color: #fff;
  text-decoration: none;
}

.mailing-list-page .block.intro a:hover,
.mailing-list-page .block.intro a:focus {
  color: #fff;
  text-decoration: underline;
}

.mailing-list-page .interest-group {
  margin-top: 6px;
}

.mailing-list-page .interest-group label.check {
  position: relative;
  display: block;
  width: 100%;
  min-height: 20px;
  margin: 0 0 8px;
  padding-left: 30px;
  line-height: 20px;
  font-weight: normal;
  cursor: pointer;
}

.mailing-list-page .interest-group label.check input {
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0;
}

.mailing-list-page .interest-group label.check .checkmark {
  position: absolute;
  display: inline-block;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  color: #666;
  background-color: #fff;
  border: 1px solid #dfd1c7;
  border-radius: 3px;
  cursor: pointer;
}

.mailing-list-page .interest-group label.check .checkmark::after {
  position: absolute;
  display: none;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  background:
    transparent
    url("/img/global/iconSprite.v43-01.svg")
    -250px -300px
    no-repeat;
  content: "";
  z-index: 0;
}

.mailing-list-page .interest-group label.check input:checked ~ .checkmark::after {
  display: block;
}

.mailing-list-page .interest-group label.check .checkmark:hover {
  border-color: #bca495;
}

.mailing-list-page .g-recaptcha {
    margin-top: 30px;
}

.mailing-list-page .subscription-success {
  padding: 24px 36px;
  color: #26920f;
  background-color: #f1fced;
}

.mailing-list-page .subscription-success h4 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 36px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: #26920f;
}

.mailing-list-page .subscription-success h4::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background-color: #26920f;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  content: "✓";
}

.mailing-list-page .subscription-success p {
  margin: 0 0 16px 36px;
  color: #26920f;
}

.mailing-list-page .subscription-success p:last-child {
  margin-bottom: 0;
}
/* News list RSS link */
.news-rss-link {
     margin: 0 0 20px;
}

/* News list tiles */
.tile header .meta {
     margin-bottom: 0.15rem !important;
}
.tile header h3 {
     margin-top: 0 !important;
     margin-bottom: 1rem;
}
@media screen and (max-width: 1920px) {
     #sidebar {
         width: 400px;
    }
     #container {
         margin-left: 400px;
    }
     header#hero #biography .wrapper {
         padding: 120px 40px 40px 40px;
    }
     header#hero .caption {
         padding: 200px 40px 40px 105px;
    }
     header#hero .caption:before {
         bottom: 30px;
         left: 40px;
    }
     header#hero #virtualSchool .caption:before {
         bottom: 24px;
         left: 25px;
    }
     #featuredAlbum:link header, #featuredAlbum:visited header {
         padding: 30px 30px 60px 30px;
    }
}
@media (min-width: 1440px) and (-webkit-min-device-pixel-ratio: 1.5), screen and (max-width: 1440px) {
     #sidebar {
         width: 340px;
    }

     #primaryNavWrapper nav#primaryNav > ul:first-of-type {
         margin: 0 0 30px 0;
         padding: 30px 0;
    }
     #primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:link, #primaryNavWrapper nav#primaryNav > ul:first-of-type > li a:visited {
         font-size: var(--text-base);
         height: 3.2rem;
         line-height: 3.2rem;
    }
     #primaryNavWrapper nav#primaryNav ul.social li {
         margin: 0;
    }
     #container {
         margin-left: 340px;
    }
     main#primary {
         padding: 20px;
    }
     header#hero {
         height: calc((100vw - 340px) / 2 + 100px);
         margin: -20px -20px 20px -20px;
    }
     header#hero .caption {
         padding: 200px 40px 40px 40px;
    }
     header#hero .caption h2 {
         font-size: var(--text-3xl);
    }
     header#hero .caption:before {
         display: none;
    }
     header#hero #biography .wrapper {
         padding: 200px 40px 40px 40px;
    }
     header#hero #biography::after {
         height: 65%;
    }
     header#hero #biography p {
         font-size: var(--text-sm);
         line-height: 2.2rem;
    }
     header#hero #biography ul {
         margin-top: 20px;
    }
     header#hero #biography ul li {
         font-size: var(--text-base);
         line-height: 1.6rem;
    }
}
@media screen and (max-width: 900px) {
     #sidebar {
         position: relative;
         width: 100%;
         min-height: auto;
         padding: 1px 0;
    }

     #primaryNavWrapper nav#primaryNav {
         display: block;
         position: absolute;
         top: 0;
         left: 0;
         width: 340px;
         height: 100vh;
         background-color: var(--color-black);
         transform: translateX(-100%);
         z-index: 200;
    }
     #primaryNavWrapper nav#primaryNav > ul:first-of-type {
         padding-top: 80px;
         border-top: none;
    }
     #primaryNavWrapper #mobiToggle {
         display: inline-block;
    }
     #container {
         margin-left: 0;
    }
     header#hero {
         height: calc(100vh - 150px);
    }
}
@media screen and (max-width: 600px) {
     #primaryNavWrapper nav#primaryNav {
         width: 100vw;
    }
     #primaryNavWrapper #mobiToggle {
         top: 20px;
         left: 20px;
         padding: 0;
         width: 38px;
         height: 34px;
         text-indent: -9999px;
         overflow: hidden;
    }
     #primaryNavWrapper #mobiToggle:before {
         left: 19px;
    }
     #primaryNavWrapper #mobiToggle.active {
         width: 38px;
    }
     #primaryNavWrapper #mobiToggle.active:before {
         left: 19px;
    }
     main#primary {
         padding: 0;
    }
     header#hero {
         height: auto;
         margin: 0;
    }
     header#hero #biography {
    position: relative;
    width: 100%;
    height: 145vw;
    min-height: 620px;
    max-height: 760px;
    padding-top: 0;

    background-position: center 15%;
    background-size: cover;
  }

  header#hero #biography::after {
    height: 72%;
  }

  header#hero #biography .wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 120px 30px 34px;
  }

  header#hero #biography p {
    max-width: none;
    margin: 0;
    font-size: var(--text-sm);
    line-height: 2.2rem;
  }

  header#hero #biography ul {
    margin: 24px 0 0;
  }

  header#hero #biography ul li {
    display: block;
    padding: 0;
    line-height: 3rem;
  }
     header#hero #biography ul li:after {
         display: none;
    }
     header#hero .caption h2 {
         font-size: var(--text-2xl);
    }
     header#hero #instagram, header#hero #tiktok, header#hero #virtualSchool {
         position: relative;
         top: auto;
         left: auto;
         right: auto;
         bottom: auto;
         width: 100%;
         height: 100vw;
    }
     #latest > section:first-child, #latest > section:nth-child(2) {
         flex: 0 1 100%;
         margin: 0;
    }
     #upcomingEvents {
         padding-bottom: 20px;
    }
}

/* Keep Instagram and TikTok handles small at every breakpoint */
header#hero #instagram .caption h2,
header#hero #tiktok .caption h2 {
    font-size: var(--text-xs);
    line-height: var(--text-base);
}

/* Wikipedia-style rule under every heading inside page content — easier
   to scan than a bare heading. Scoped to .fullPost (the shared body-copy
   wrapper used by projects, news, events, about, and mailing-list pages —
   see each section's single.html layout) so it never reaches
   nav/header/footer/sidebar headings that have their own unrelated
   styling. */
.fullPost h1,
.fullPost h2,
.fullPost h3,
.fullPost h4,
.fullPost h5,
.fullPost h6 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

/* Wikipedia-style references list (Hugo/Goldmark footnote extension —
   see {{< cite >}} in layouts/shortcodes/cite.html). Tighter and smaller
   than body text, since it's a reference list, not prose. */
.footnotes {
  margin-top: 16px;
  font-size: calc(var(--text-xs) * 0.95);
  line-height: 1.5;
  color: var(--color-body);
}
.footnotes hr {
  display: none;
}
.footnotes ol {
  margin: 0;
  padding-left: 2em;
}
.footnotes li {
  margin: 0 0 4px 0;
  list-style-position: outside;
}
.footnotes li::marker {
  /* Absolute, not em — kept independent of .footnotes' font-size so it
     stays matched to the inline superscript instead of shrinking again
     every time the reference text size changes. */
  font-size: 9px;
}
.footnotes li p {
  margin: 0;
}
.footnotes a {
  color: var(--color-accent);
}
.footnotes a:hover {
  color: var(--color-accent-hover);
}
.footnote-backref {
  /* Trailing-arrow backlink — the original Goldmark markup. Left in place
     as a no-JS fallback; footnote-backrefs.html moves these to the front
     of the entry as a Wikipedia-style "^ a b c" group when JS runs, so on
     a normal page load this rule never actually gets seen. */
  margin-left: 2px;
}
.footnote-backrefs {
  margin-right: 2px;
  white-space: nowrap;
}
.footnote-backref-caret {
  color: var(--color-body);
  text-decoration: none;
}
a.footnote-backref-caret {
  color: var(--color-accent);
}
a.footnote-backref-caret:hover {
  color: var(--color-accent-hover);
}
.footnote-backrefs sup {
  line-height: 0;
}
.footnote-backrefs sup a {
  font-size: 0.85em;
}

/* Inline citation markers (the raised numbers in prose, e.g.
   "...intrusion.[1]"). `line-height: 0` on the <sup> itself stops the
   raised glyph from expanding the line box it sits on, which is what was
   making lines with a citation look like they had different leading than
   the lines around them. The small right margin keeps the following word
   from crowding the number. */
sup[id^="fnref"] {
  line-height: 0;
  margin-right: 2px;
}
.footnote-ref {
  font-size: 0.75em;
}
.footnote-ref::before {
  content: "[";
}
.footnote-ref::after {
  content: "]";
}

/* Footer #socialWidgets badges beyond Facebook/X/Spotify (defined in
   global.css). Both LinkedIn and YouTube use their icon as a CSS mask
   rather than a plain background-image, so the glyph renders solid
   white regardless of the source SVG's own baked-in fill color.
   widget-linkedin.svg/widget-youtube.svg are tightly cropped +
   centered to their actual ink bounds (unlike linkedin.svg/
   youtube.svg, which are 50x50 sidebar-icon crops with the glyph
   flush in a corner — stretched into a 30x30 mask, that rendered
   small and misaligned rather than centered). */
#socialWidgets li.linkedin a:link,
#socialWidgets li.linkedin a:visited {
  background-color: #0a66c2;
}
#socialWidgets li.linkedin a:hover {
  background-color: #084d92;
}
#socialWidgets li.linkedin a:link:before,
#socialWidgets li.linkedin a:visited:before {
  /* Unlike the sprite-crop icons (facebook/x/spotify), whose ink sits
     flush in the box's top-left corner, this icon is centered within
     its own viewBox — so it needs a smaller top/left offset to land
     at the same visual center within the button. */
  top: 1px;
  left: 3px;
  background-image: none;
  background-color: #fff;
  -webkit-mask-image: url("/img/global/icons/widget-linkedin.svg");
  mask-image: url("/img/global/icons/widget-linkedin.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

#socialWidgets li.youtube a:link,
#socialWidgets li.youtube a:visited {
  background-color: #ff0000;
}
#socialWidgets li.youtube a:hover {
  background-color: #cc0000;
}
#socialWidgets li.youtube a:link:before,
#socialWidgets li.youtube a:visited:before {
  /* See the matching comment on li.linkedin above. */
  top: 1px;
  left: 3px;
  background-image: none;
  background-color: #fff;
  -webkit-mask-image: url("/img/global/icons/widget-youtube.svg");
  mask-image: url("/img/global/icons/widget-youtube.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* On narrow screens, 4 variable-width badges wrap unevenly (3 then a
   lone 4th stranded on its own row). A fixed 2x2 grid keeps it
   balanced regardless of how the badge count or label lengths change. */
@media screen and (max-width: 600px) {
  #socialWidgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  #socialWidgets li {
    margin: 0;
  }
  #socialWidgets li a:link,
  #socialWidgets li a:visited {
    display: block;
    width: 100%;
  }
}
