/* Color Tokens */
:root {
  --c-bg: #fafaf8;
  --c-text: #1a1a1a;
  --c-ink: #1a1a1a;
  --c-accent: #890100;
}

/* Visually Hidden (for screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Base Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Palatino Linotype", "Palatino", "Book Antiqua", Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
  margin-top: 0;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--c-ink);
  text-decoration: underline;
}

/* Reading Container */
.reading-container {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .reading-container {
    width: 60%;
    padding: 2rem 1.5rem;
    max-width: 195ch;
  }
}

/* Home hero */
.home-hero {
  position: relative;
  background-color: var(--c-bg);
  color: var(--c-ink);
}

.home-hero-inner {
  position: relative;
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-hero-inner {
    padding: 3rem 0 4rem;
  }
}


.home-hero-tagline {
  max-width: 40rem;
  font-size: clamp(1.25rem, 5vw + 1rem, 2.5rem);
  font-weight: bold;
  color: white;
  -webkit-text-stroke: 1px rgb(0, 0, 0);
  text-shadow:
    1px 0 6px rgba(0, 0, 0, 0.4),
    -1px 0 6px rgba(0, 0, 0, 0.4),
    0 1px 6px rgba(0, 0, 0, 0.4),
    0 -1px 6px rgba(0, 0, 0, 0.4),
    1px 1px 6px rgba(0, 0, 0, 0.4),
    -1px -1px 6px rgba(0, 0, 0, 0.4),
    1px -1px 6px rgba(0, 0, 0, 0.4),
    -1px 1px 6px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(0, 0, 0, 0.05);
}

/* Mobile: scale tagline so it fits in carousel without being cut off */
@media (max-width: 767px) {
  .home-hero-tagline {
    max-width: 100%;
    padding: 0 0.5rem;
    /* Scale with width; cap with 7vh so it fits carousel height on short viewports */
    font-size: min(clamp(0.875rem, 2.8vw + 0.75rem, 1.35rem), 7vh);
    line-height: 1.35;
    box-sizing: border-box;
  }
}

/* Home Hero Layout */
.home-hero-carousel {
  position: relative;
  margin-bottom: 3.5rem;
}

.carousel {
  position: relative;
  padding: 0.5rem 2rem;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  height: 360px;
}

.carousel-slide {
  display: none;
  height: 100%;
  min-height: 0;
}

.carousel-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-text {
  font-size: clamp(1rem, 2.5vw + 0.75rem, 1.375rem);
  max-width: 42rem;
}

.carousel-slide-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-slide-image {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.carousel-slide-caption {
  margin-top: 1rem;
  font-size: 1rem;
}

.carousel-slide-link {
  display: block;
  height: 100%;
}

/* Mobile: carousel content fits without clipping */
@media (max-width: 767px) {
  .carousel {
    padding: 0.5rem 1rem;
  }

  .carousel-slide.is-active {
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    min-height: 0;
  }

  .carousel-slide-text {
    max-width: 100%;
    font-size: clamp(0.875rem, 2.8vw + 0.75rem, 1.35rem);
  }

  .carousel-slide.is-active .carousel-slide-link {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
  }

  .carousel-slide-figure {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;
  }

  .carousel-slide-image {
    flex: 1 1 0;
    min-height: 0;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .carousel-slide-caption {
    flex: 0 0 auto;
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }

  .carousel-control {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .carousel-control-prev {
    left: 0.25rem;
  }

  .carousel-control-next {
    right: 0.25rem;
  }
}

@media (min-width: 768px) {
  .carousel-track {
    height: 390px;
  }
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

.carousel-control:hover,
.carousel-control:focus {
  color: var(--c-accent);
  outline: 1px solid var(--c-accent);
  outline-offset: 2px;
}

.carousel-control-prev {
  left: 0.75rem;
}

.carousel-control-next {
  right: 0.75rem;
}

.carousel-indicators {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.carousel-indicator.is-active {
  width: 18px;
  background-color: var(--c-accent);
}

.home-hero-grid {
  display: block;
  width: 100%;
  margin: 0.5rem auto 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-hero-grid {
    width: 60vw;
    max-width: 90ch;
  }
}

.home-hero-column {
  padding: 0 0 2rem;
  padding-left: 2rem;
}

.home-hero-grid .home-hero-section-divider {
  border: none;
  height: 1px;
  width: 55%;
  margin: 0 auto 2rem;
  background-color: var(--c-accent);
}

.home-hero-column:last-child {
  padding-bottom: 0;
  width: 80%;
}

.home-column-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.home-column-body {
  margin-bottom: 1.25rem;
}

.home-column-link {
  font-weight: 600;
  text-decoration: underline;
}

.home-column-link:hover,
.home-column-link:focus {
  color: var(--c-ink);
}

/* Clean up stray empty paragraphs from Markdown processing inside hero */
.home-hero-inner > p:empty,
.home-hero-grid > p:empty {
  display: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .carousel {
    padding: 2.5rem 2.75rem;
  }
}

/* Home Banner */
.home-banner {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #390100;
}

.home-banner-content {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: white;
}

@media (min-width: 768px) {
  .home-banner-content {
    max-width: 195ch;
  }
}

.home-banner-content p {
  margin: 0;
  font-size: 1rem;
}

.home-banner-content a {
  color: white;
  text-decoration: underline;
}

.home-banner-content a:hover,
.home-banner-content a:focus {
  color: white;
}

/* Blockquote */
blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--c-accent);
  color: var(--c-ink);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

blockquote p:not(:last-child) {
  margin-bottom: 0.5em;
}

/* About Hero */
.about-hero {
  position: relative;
  background-color: var(--c-bg);
  padding: 2rem 0 4rem;
}

.about-hero-content {
  position: relative;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-badges a {
  display: block;
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  line-height: 0;
}

.about-badges img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* About Logo */
.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
}

.about-logo img {
  width: 256px;
  height: auto;
  max-width: 100%;
}

/* Cover Plate Figure */
.cover-plate-figure {
  margin: 3rem 0;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cover-plate-figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cover-plate-figure figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--c-text);
  line-height: 1.5;
}

.cover-plate-figure figcaption a {
  color: var(--c-ink);
  text-decoration: underline;
}

.cover-plate-figure figcaption a:hover,
.cover-plate-figure figcaption a:focus {
  color: var(--c-accent);
}

/* Lists */
.reading-container ul,
.reading-container ol {
  margin: 1rem 0;
  padding-left: 2.5rem;
}

.reading-container li {
  margin-bottom: 0.5em;
  padding-left: 0.5rem;
}

.reading-container li:last-child {
  margin-bottom: 0;
}

/* Sheet top (masthead + nav — no distinct header) */
.sheet-top {
  background-color: var(--c-bg);
  padding: 0;
}

.sheet-top-inner {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .sheet-top-inner {
    max-width: 195ch;
  }
}

.sheet-masthead-logo {
  display: block;
  margin: 0 auto 0.75rem;
  height: 2.75rem;
  width: auto;
  color: var(--c-ink);
}

.sheet-masthead-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.2rem;
  color: var(--c-ink);
}

.sheet-masthead-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: var(--c-text);
}

.sheet-divider {
  border: none;
  height: 1px;
  width:55%;
  margin: 1rem auto;
  background-color: var(--c-accent);
}

.sheet-top-inner .sheet-divider:last-of-type {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Desktop nav — inline, text-only */
.site-nav {
  display: none;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
}

.site-nav-list a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  text-decoration: none;
}

.site-nav-list a:hover,
.site-nav-list a:focus {
  color: var(--c-accent);
}

.site-nav-list a.site-nav-link-active {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Mobile: hamburger only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-ink);
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
}

.nav-toggle:hover,
.nav-toggle:focus {
  color: var(--c-accent);
  outline: 1px solid var(--c-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* Footer */
footer {
  padding: 2rem 1rem;
  background-color: var(--c-bg);
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    text-align: left;
  }
}

.footer-content {
  max-width: 65ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  color: var(--c-ink);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-content {
    max-width: 195ch;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-content p {
  margin: 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-privacy-link {
  color: var(--c-accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-privacy-link:hover,
.footer-privacy-link:focus {
  color: var(--c-ink);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover,
.social-link:focus {
  color: var(--c-ink);
  text-decoration: underline;
}

.bsky-logo {
  flex-shrink: 0;
  width: 20px;
  height: 18px;
}

.social-text {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Issues (textual TOC) */
.issues-grid-wrapper {
  margin-top: 0;
}

.issues-grid {
  display: block;
  margin-top: 1.5rem;
}

.issue-card {
  background: none;
  margin-bottom: 1.25rem;
}

.issue-card:last-child {
  margin-bottom: 0;
}

.issue-card a {
  display: inline;
  color: var(--c-ink);
  text-decoration: none;
}

.issue-card a:hover,
.issue-card a:focus {
  color: var(--c-accent);
  text-decoration: underline;
}

.issue-card-cover,
.issue-card-cover-placeholder {
  display: none;
}

.issue-card-meta {
  margin-top: 0;
}

.issue-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.issue-card-date {
  font-size: 0.875rem;
  color: var(--c-text);
}

.issue-toc-link-accent {
  color: var(--c-accent);
  font-weight: 500;
}

/* Issue TOC */
.issue-date {
  color: var(--c-ink);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.issue-content {
  margin-bottom: 2rem;
}

.works-list {
  margin-top: 2rem;
}

.works-section {
  margin-bottom: 2rem;
}

.works-section h2 {
  font-size: 1.25em;
  margin-bottom: 1rem;
  color: var(--c-ink);
}

.works-list-items {
  list-style: none;
}

.works-list-items li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.works-list-items li:last-child {
  border-bottom: none;
}

.work-author {
  display: block;
  font-size: 0.875rem;
  color: var(--c-ink);
  margin-top: 0.25rem;
}

/* Work Page */
.work {
  margin-top: 2rem;
}

.work-header {
  margin-bottom: 2rem;
}

.work-author-name {
  color: var(--c-ink);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.work-content {
  margin-bottom: 3rem;
}

.work-content p {
  margin-bottom: 1em;
}

.work-cover {
  margin-bottom: 1.5rem;
}

.work-cover-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.work-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.author-photo-wrapper {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background-color: #eee;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-text {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--c-text);
}

.next-work {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.next-work a {
  font-weight: 500;
  color: var(--c-ink);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--c-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.menu-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-content {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .menu-overlay {
    background-color: rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 4.5rem;
    padding-right: 1rem;
  }

  .menu-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-overlay-content {
    background-color: var(--c-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    min-width: 180px;
    max-width: 280px;
    width: auto;
  }
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 1.5rem;
}

.menu-list li:last-child {
  margin-bottom: 0;
}

.menu-list a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-ink);
  padding: 0.4rem 0;
}

.menu-list a:hover,
.menu-list a:focus {
  color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

/* Reading Navigation Drawer */
.reading-nav-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--c-ink);
  color: var(--c-bg);
  border: none;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  z-index: 999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 4px 0 0 4px;
}

.reading-nav-tab:hover,
.reading-nav-tab:focus {
  background-color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.reading-nav-tab-icon {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.reading-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 300px;
  background-color: var(--c-bg);
  z-index: 1001;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.reading-nav-drawer[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.reading-nav-content {
  padding: 2rem 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.reading-nav-list {
  list-style: none;
  margin-top: 2rem;
}

.reading-nav-list li {
  margin-bottom: 1rem;
}

.reading-nav-list li:last-child {
  margin-bottom: 0;
}

.reading-nav-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-ink);
  padding: 0.75rem 0;
}

.reading-nav-link:hover,
.reading-nav-link:focus {
  color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.reading-nav-link.chapters-toggle {
  background: none;
  border: none;
  padding: 0.75rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  width: 100%;
}

.reading-nav-link.chapters-toggle:hover,
.reading-nav-link.chapters-toggle:focus {
  color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.chapters-drawer {
  margin-top: 1rem;
  padding-left: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.chapters-drawer[aria-hidden="false"] {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.chapters-list {
  list-style: none;
}

.chapters-list li {
  margin-bottom: 0.5rem;
}

.chapters-list li:last-child {
  margin-bottom: 0;
}

.chapter-link {
  display: block;
  font-size: 1rem;
  color: var(--c-ink);
  padding: 0.5rem 0;
}

.chapter-link:hover,
.chapter-link:focus {
  color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

/* Longform Work */
.longform-work {
  margin-top: 2rem;
}

.work-intro {
  margin-bottom: 2rem;
}

.work-intro p {
  margin-bottom: 1em;
}

.chapters-toc {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chapters-toc h2 {
  font-size: 1.5em;
  margin-bottom: 1rem;
}

.chapters-toc-list {
  list-style: none;
}

.chapters-toc-list li {
  margin-bottom: 0.75rem;
}

.chapters-toc-list li:last-child {
  margin-bottom: 0;
}

.chapters-toc-list a {
  color: var(--c-ink);
  font-size: 1rem;
}

.chapters-toc-list a:hover,
.chapters-toc-list a:focus {
  color: var(--c-accent);
}

.chapter {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.chapter:last-child {
  margin-bottom: 0;
}

.chapter-title {
  font-size: 1.5em;
  margin-bottom: 1.5rem;
  color: var(--c-ink);
}

.chapter-content {
  margin-bottom: 2rem;
}

.chapter-content p {
  margin-bottom: 1em;
}

/* Announcements Accordion */
.announcements-scroll-container {
  margin-top: 2rem;
  max-height: 1000px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 1rem;
}

.announcements-list {
  margin-top: 0;
}

.announcement-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
  scroll-margin-top: 2rem;
}

.announcement-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.announcement-header {
  margin: 0;
}

.announcement-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.announcement-toggle:hover,
.announcement-toggle:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.announcement-title {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--c-ink);
}

.announcement-date {
  font-size: 0.875rem;
  color: var(--c-ink);
}

.announcement-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.announcement-content[aria-hidden="false"] {
  max-height: 5000px;
  opacity: 1;
  pointer-events: auto;
  padding-top: 1rem;
}

.announcement-blurb {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--c-ink);
}

.announcement-body {
  color: var(--c-text);
}

.announcement-body p {
  margin-bottom: 1em;
}

.announcement-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .announcement-content,
  .announcement-body {
    min-width: 0; /* allow shrinking so img 100% is within container */
  }

  .announcement-content img,
  .announcement-body img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* To Top Button */
.to-top-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background-color: var(--c-accent);
  color: var(--c-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.to-top-button[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.to-top-button:hover,
.to-top-button:focus {
  background-color: var(--c-ink);
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.to-top-button svg {
  width: 20px;
  height: 20px;
}
