@font-face {
  font-family: "Hack";
  src: url("/fonts/Hack-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("/fonts/Hack-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("/fonts/Hack-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("/fonts/Hack-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jersey 10";
  src: url("/fonts/jersey-10-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jersey 10";
  src: url("/fonts/jersey-10-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --c0: #5276a2;
  --c1: #5276a2;
  --c2: #9fa4e8;
  --c3: #c892d6;
  --c4: #ee5da2;
  --c5: #ea6f82;
  --c6: #f88a30;
  --c7: #ffbc40;
  --cA: #ebedf0;
  --cB: #001300;

  --background: #0a0a0a;
  --surface: #101010;
  --surface-alt: #181818;
  --foreground: #f0f0f0;
  --muted: #b4b4b4;
  --subtle: #7d7d7d;
  --accent: var(--c0);
  --accent-text: #7fa2cc;
  --accent-contrast: #ffffff;
  --border: #262626;
  --border-strong: #3a3a3a;
  --open: var(--accent-text);
  --closed: var(--c5);
  --shadow: 6px 6px 0 rgb(0 0 0 / 0.45);
  --sidebar-width: 304px;
  --font-heading: "Jersey 10";
  --font-body: "Hack";
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --background: #ebebeb;
    --surface: #ffffff;
    --surface-alt: #e0e0e0;
    --foreground: #0a0a0a;
    --muted: #3a3a3a;
    --subtle: #666666;
    --accent: var(--c0);
    --accent-text: #3c638d;
    --accent-contrast: #ffffff;
    --border: #c4c4c4;
    --border-strong: #9a9a9a;
    --open: #3c638d;
    --closed: #b3335c;
    --shadow: 6px 6px 0 rgb(0 0 0 / 0.12);
  }

  img[src$=".svg"] {
    filter: invert(1);
  }

  img.sidebar-decor-item {
    filter: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-decor span {
  position: absolute;
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.02;
  white-space: nowrap;
  user-select: none;
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(var(--scale, 1));
  transform-origin: center;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

h1,
h2 {
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--c0);
  text-underline-offset: 4px;
}

p {
  margin: 0.5rem 0;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

code,
pre {
  font-family: var(--font-body);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--surface-alt);
  color: var(--accent-text);
}

:focus-visible {
  outline: 2px solid var(--c0);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 2px solid var(--c0);
  color: var(--accent-text);
  font-weight: 700;
}

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

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border-right: 6px solid var(--c0);
  --nav-pad: 1.5rem;
}

.main-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 3rem 1.5rem;
  background: var(--background);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 3rem;
  bottom: 0.5rem;
  width: calc(min(1080px, 100%) - 6rem);
  height: 2px;
  background: var(--c0);
  pointer-events: none;
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 1080px;
  margin: 0;
  padding: 2.5rem 3rem;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 3rem;
  color: var(--subtle);
  font-size: 0.82rem;
}

.footer-copy,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links {
  gap: 1.4rem;
}

.footer-links a {
  color: var(--muted);
}

.brand {
  display: inline-flex;
  width: fit-content;
  color: var(--foreground);
}

.sidebar > .brand {
  align-self: center;
}

.brand:hover {
  text-decoration: none;
  color: var(--c0);
}

.brand-logo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.nav-heading {
  margin: 0 0 0.4rem;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-link {
  display: block;
  margin: 0 calc(var(--nav-pad, 1.5rem) * -1);
  padding: 0.22rem var(--nav-pad, 1.5rem);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 400;
}

.nav-link:hover {
  background: var(--c0);
  color: var(--accent-contrast);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-text);
  font-weight: 700;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-label {
  margin-right: auto;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.lang-option {
  padding: 0.1rem 0.3rem;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-option:hover {
  background: var(--c0);
  color: var(--accent-contrast);
  text-decoration: none;
}

.lang-option.current {
  color: var(--accent-text);
  font-weight: 700;
}

.sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.sidebar-meta a {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 400;
}

.sidebar-meta a:hover {
  background: var(--c0);
  color: var(--accent-contrast);
  text-decoration: none;
}

.sidebar > :not(.sidebar-decor) {
  position: relative;
  z-index: 1;
}

.sidebar-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sidebar-decor-item {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: none !important;
}

.sdecor-blob-1 {
  top: 40px;
  right: 14px;
  width: 58px;
  opacity: 0.12;
  transform: rotate(14deg);
}

.sdecor-smiley {
  top: 38%;
  right: 18px;
  width: 50px;
  opacity: 0.12;
  transform: rotate(-10deg);
}

.sdecor-blob-2 {
  top: 66%;
  left: 18px;
  width: 54px;
  opacity: 0.12;
  transform: scaleX(-1) rotate(-12deg);
}

.sdecor-knot {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  opacity: 0.18;
}

@media (max-height: 820px) {
  .sdecor-blob-1 {
    width: 48px;
  }
  .sdecor-smiley {
    width: 42px;
  }
  .sdecor-blob-2 {
    width: 44px;
  }
  .sdecor-knot {
    width: 125px;
  }
}

@media (max-height: 680px) {
  .sdecor-blob-1 {
    width: 40px;
  }
  .sdecor-smiley {
    width: 36px;
  }
  .sdecor-blob-2 {
    width: 38px;
  }
  .sdecor-knot {
    width: 105px;
  }
}

.sidebar-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle,
.sidebar-close,
.sidebar-overlay {
  display: none;
}

@media (min-width: 901px) {
  .sidebar-toggle {
    display: none;
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--subtle);
  font-size: 0.86rem;
}

.crumb-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted);
}

.crumb-home svg {
  width: 24px;
  height: 24px;
}

.crumb-home:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.crumb {
  color: var(--muted);
}

.crumb:hover {
  color: var(--foreground);
}

.crumb.current {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.crumb-sep {
  color: var(--border-strong);
}

.panel {
  padding: 0;
  background: transparent;
}

.page-head {
  position: relative;
  overflow: hidden;
}

.page-head-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-head h1,
.hero h1,
.panel > h2,
.section-head h2,
.split h2,
.month-head h2,
.prose h2,
.article-head h1 {
  padding: 0;
  background: transparent;
  color: var(--accent-text);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead {
  max-width: 80ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--subtle);
  font-size: 0.85rem;
}

.meta .eyebrow {
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.actions.wrap {
  flex-wrap: wrap;
}

.section-head {
  margin-bottom: 0.75rem;
}

.section-link {
  margin: 1rem 0 0;
}

.section-link a {
  font-size: 0.95rem;
  font-weight: 700;
}

.divider {
  margin: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.6rem;
  background: var(--surface-alt);
  border: 2px solid var(--border-strong);
  font-size: 0.74rem;
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  color: var(--foreground);
  background: var(--surface-alt);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-icon {
  vertical-align: middle;
  margin-left: 0.15rem;
}

.pre-line {
  white-space: pre-line;
}

.pixelated {
  image-rendering: pixelated;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--surface-alt);
  border-color: var(--c0);
  color: var(--accent-text);
  text-decoration: none;
}

.button.primary {
  background: var(--surface-alt);
  border-color: var(--c0);
  color: var(--accent-text);
}

.button.primary:hover {
  background: var(--surface);
  border-color: var(--c0);
  color: var(--accent-text);
}

.button.small {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.back-link {
  margin: 0;
}

.grid,
.grid.two,
.grid.three,
.grid.two-one,
.split {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-main {
  max-width: 92ch;
}

.hero-logo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem;
  background: var(--surface-alt);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status.open {
  color: var(--open);
}

.status.closed {
  color: var(--closed);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.bullet-list li {
  padding-left: 0.2rem;
  color: var(--muted);
}

.bullet-list li::marker {
  color: var(--c0);
}

.bullet-list .event-time {
  display: block;
}

.bullet-list .event-title {
  display: block;
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 700;
}

.page-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-links a {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
}

.event-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.event-item {
  position: relative;
  overflow: visible;
  padding: 0.6rem 0.8rem 0.6rem 1.35rem;
  transition: color 0.15s ease;
}

.event-item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 8px;
  background-color: var(--c0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none' width='8' height='100'%3E%3Cpath d='M 4 2.5 C 7.5 12 7.5 22 4 33 C 0.5 44 0.5 56 4 67 C 7.5 78 7.5 88 4 97.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none' width='8' height='100'%3E%3Cpath d='M 4 2.5 C 7.5 12 7.5 22 4 33 C 0.5 44 0.5 56 4 67 C 7.5 78 7.5 88 4 97.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;
  transition: background-color 0.15s ease;
}

.event-item:hover::before {
  background-color: var(--accent-text);
}

.event-item summary {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.1rem 0;
  cursor: pointer;
  list-style: none;
}

.event-item summary::-webkit-details-marker {
  display: none;
}

.event-item summary:hover {
  color: var(--accent-text);
}

.event-item.next {
  padding-left: 1.5rem;
}

.event-item.next::before {
  width: 10px;
  background-color: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none' width='10' height='100'%3E%3Cpath d='M 5 3 C 9 12 9 22 5 33 C 1 44 1 56 5 67 C 9 78 9 88 5 97' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none' width='10' height='100'%3E%3Cpath d='M 5 3 C 9 12 9 22 5 33 C 1 44 1 56 5 67 C 9 78 9 88 5 97' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;
}

.event-item.next summary {
  color: var(--accent-text);
}

.event-item.next .event-time {
  color: inherit;
  opacity: 0.85;
}

.event-time {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-details {
  padding: 0.5rem 0 0.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.month-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.month-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.month-year {
  color: var(--subtle);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
}

.day-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.day-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.day-card.today .day-number {
  color: var(--accent-text);
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.day-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--c0);
}

.post-card > :first-child {
  margin-top: 0;
}

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

.post-card h2 {
  margin: 0.35rem 0 0.6rem;
  background: transparent;
  padding: 0;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.post-card h2 a {
  color: var(--foreground);
}

.post-card h2 a:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.post-card .section-link {
  margin-top: 1rem;
}

.article {
  width: 100%;
  max-width: none;
  margin: 0;
}

.article-head {
  padding-bottom: 1.5rem;
}

.article-cover {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
}

.markdown {
  max-width: 92ch;
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.8;
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  margin-top: 1.7em;
  color: var(--foreground);
}

.markdown h1,
.markdown h2 {
  padding: 0;
  background: transparent;
  color: var(--accent-text);
}

.markdown h1 {
  font-size: 2rem;
}

.markdown h2 {
  font-size: 1.7rem;
}

.markdown h3 {
  font-size: 1.05rem;
}

.markdown a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown ul,
.markdown ol {
  padding-left: 1.4rem;
}

.markdown li {
  margin: 0.25rem 0;
}

.markdown blockquote {
  margin: 1.4rem 0;
  padding: 0.8rem 1.2rem;
  background: var(--surface-alt);
  border-left: 3px solid var(--c0);
  color: var(--foreground);
}

.markdown code {
  padding: 0.1rem 0.35rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.86em;
}

.markdown pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--surface-alt);
  border: 2px solid var(--border);
}

.markdown pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.markdown img {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
}

.markdown hr {
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid var(--border);
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
}

.markdown th,
.markdown td {
  padding: 0.5rem;
  border: 2px solid var(--border);
  text-align: left;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--foreground);
}

.doc-card:hover {
  text-decoration: none;
}

.doc-card:hover h2 {
  color: var(--accent-text);
}

.doc-card h2 {
  margin: 0 0 0.35rem;
  background: transparent;
  padding: 0;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.doc-card .meta {
  margin: 0;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose p,
.prose li {
  max-width: 92ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose ul {
  margin: 0;
  padding-left: 1.4rem;
}

.prose li {
  margin: 0.3rem 0;
}

.prose h2 {
  margin-bottom: 0.2rem;
}

.notice {
  margin-top: 0.9rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--c0);
}

.notice p {
  margin: 0.15rem 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
}

.check-list li span {
  color: var(--accent-text);
  font-weight: 700;
}

.map-embed {
  overflow: hidden;
  background: var(--surface-alt);
}

.map {
  width: 100%;
  height: 26rem;
  background: var(--surface-alt);
}

.map.leaflet-container {
  font-family: var(--font-body);
}

.map .leaflet-control-zoom a {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--accent-text);
}

.map .leaflet-control-zoom a:hover {
  background: var(--surface-alt);
  color: var(--accent-text);
}

.map.leaflet-container .leaflet-control-attribution {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
}

.map.leaflet-container .leaflet-control-attribution a {
  color: var(--accent-text);
}

.map-pin {
  background: transparent;
  border: 0;
}

.map-info {
  margin-top: 1.5rem;
}

.partner-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    width: min(86vw, 340px);
    height: 100vh;
    height: 100dvh;
    padding: 1.5rem 1.25rem;
    border-right: 6px solid var(--c0);
    transform: translateX(-100%);
    visibility: hidden;
    --nav-pad: 1.25rem;
  }

  .sidebar-toggle:checked ~ .layout .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--surface-alt);
    color: var(--foreground);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  .sidebar-close:hover {
    background: var(--c0);
    color: var(--accent-contrast);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: block;
    background: rgb(0 0 0 / 0.6);
    opacity: 0;
    visibility: hidden;
  }

  .sidebar-toggle:checked ~ .layout .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  body:has(.sidebar-toggle:checked) {
    overflow: hidden;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.8rem 1rem 1.4rem;
  }

  .topbar::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.45rem;
    width: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.5rem 0.8rem;
    background: var(--surface-alt);
    color: var(--foreground);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
  }

  .sidebar-toggle:focus-visible ~ .layout .menu-toggle {
    outline: 2px solid var(--c0);
    outline-offset: 3px;
  }

  .content {
    gap: 2rem;
    padding: 1.5rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .footer {
    padding: 1.5rem;
  }

  .sdecor-blob-1 {
    top: 60px;
    right: 16px;
    width: 48px;
  }

  .sdecor-smiley {
    right: 16px;
    width: 44px;
  }

  .sdecor-blob-2 {
    left: 16px;
    width: 46px;
  }

  .sdecor-knot {
    width: 130px;
    bottom: 10px;
  }
}

@media (max-width: 520px) {
  .map {
    height: 20rem;
  }
}
