/* ============================================================================
   KR.ORG — STYLESHEET
   ============================================================================
   Design tokens are declared as CSS custom properties at the top of this
   file under :root. To re-theme the site (e.g. swap the accent colour),
   change the values there — the rest of the file reads from them.
   ========================================================================= */

:root {
  /* Colour */
  --ink:         #18242c;
  --ink-soft:    #46545d;
  --navy:        #203d51;
  --navy-deep:   #122733;
  --blue:        #2f6690;
  --paper:       #faf8f2;
  --paper-raised:#ffffff;
  --line:        #e5dfd1;
  --line-strong: #cfc6b2;
  --accent:      #8a541f;
  --accent-soft: #f3e4d3;

  /* Type */
  --font-display: "New York", Palatino, "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --step-1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --step2: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step3: clamp(1.9rem, 1.5rem + 1.7vw, 2.6rem);
  --step4: clamp(2.4rem, 1.8rem + 2.6vw, 3.4rem);

  /* Layout */
  --container: 1180px;
  --radius: 3px;
  --gap: 1.75rem;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration-color: rgba(47, 102, 144, 0.35);
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.18;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--step3); }
h2 { font-size: var(--step2); }
h3 { font-size: var(--step1); letter-spacing: 0.01em; }
h4 { font-size: var(--step0); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--navy-deep);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-height: 64px; /* reserve space before JS renders the header */
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img { width: 42px; height: 42px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-text-short { display: none; }
.brand:hover .brand-text { color: var(--blue); }

/* Below this width the full official name no longer fits comfortably
   next to the nav links, so show the short form instead. */
@media (max-width: 980px) {
  .brand-text-long { display: none; }
  .brand-text-short { display: inline; }
}
@media (max-width: 560px) {
  .brand-text { font-size: 0.95rem; }
  .brand img { width: 36px; height: 36px; }
}

nav#main-nav { display: flex; }
nav#main-nav > ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
nav#main-nav > ul > li { position: relative; }
nav#main-nav > ul > li > a,
nav#main-nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: inherit;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
}
nav#main-nav > ul > li > a:hover,
nav#main-nav > ul > li > button:hover,
nav#main-nav > ul > li.open > button { color: var(--blue); }

.caret { width: 9px; height: 9px; transition: transform 0.15s ease; }
li.open .caret { transform: rotate(180deg); }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(18, 39, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
li.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step-1);
}
.submenu a:hover { background: var(--accent-soft); color: var(--accent); }
nav#main-nav a.current { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--navy-deep);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* The brand label switches to the short "KR Inc." form at 980px (see
   .brand-text-short above), which frees up enough width that the full
   nav links don't need to collapse into the hamburger menu until much
   narrower — hence this breakpoint is lower than the brand-text one. */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  nav#main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--paper-raised);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 5rem 0 2rem;
    z-index: 40;
  }
  nav#main-nav.open { transform: translateX(0); }
  nav#main-nav > ul { flex-direction: column; padding: 0 1rem; gap: 0.2rem; }
  nav#main-nav > ul > li > a,
  nav#main-nav > ul > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 0.7rem;
    font-size: var(--step0);
  }
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    background: var(--paper);
    margin: 0 0 0.4rem;
  }
  li.open .submenu { display: block; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(18, 39, 51, 0.35);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 39;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(32, 61, 81, 0.07), transparent 60%),
    var(--paper);
}
.hero-inner {
  padding-top: 3.6rem;
  padding-bottom: 3.2rem;
}
.hero h1 {
  max-width: 33ch;
}
.hero .lede {
  font-size: var(--step0);
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 1.8rem;
}
.hero .lede strong { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-actions .btn { flex: 0 0 auto; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin: 2.2rem 0 1.8rem;
  padding-top: 1.8rem;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step2);
  color: var(--navy-deep);
  line-height: 1;
}
.hero-stats .stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-1);
  text-decoration: none;
  padding: 0.75em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--navy-deep);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.primary {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}
.btn.primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Page banner (interior pages)                                            */
/* ---------------------------------------------------------------------- */
.page-banner {
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(32, 61, 81, 0.06), transparent 60%),
    var(--paper);
}
.has-image {
  background-size: cover;
  background-position: center 40%;
  position: relative;
}
.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250,248,242,0.97) 0%,
    rgba(250,248,242,0.92) 55%,
    rgba(250,248,242,0.55) 80%,
    rgba(250,248,242,0.15) 100%
  );
}
@media (max-width: 1200px) {
  .has-image::before {
    background: linear-gradient(
      to right,
      rgba(250,248,242,0.97) 0%,
      rgba(250,248,242,0.92) 75%,
      rgba(250,248,242,0.55) 95%,
      rgba(250,248,242,0.15) 100%
    );    
  }
}
.has-image .container { position: relative; }
.has-image .banner-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  font-size: 0.66rem;
  color: var(--ink-soft);
  opacity: 0.7;
}
.has-image .banner-credit a { color: inherit; }
.page-banner h1 { max-width: 50ch; }
.page-banner .lede { color: var(--ink-soft); max-width: 64ch; }
.page-banner .lede.lede-wide { max-width: 86ch; }
.page-banner .lede p { margin-bottom: 1em; }
.page-banner .lede p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Section / cards                                                         */
/* ---------------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.no-image {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.card.no-image .body { padding-top: 1.6rem; }
.card.no-image h3 { color: #fff; }
.card.no-image h3 a { color: #fff; }
.card.no-image h3 a:hover { color: var(--accent-soft); }
.card.no-image p { color: rgba(255,255,255,0.78); }
.card.no-image p a { color: #fff; text-decoration-color: rgba(255,255,255,0.5); font-weight: 600; }
.card.no-image p a:hover { text-decoration-color: #fff; }
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: flex-center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.card .thumb .credit {
  position: absolute;
  right: 0.5rem; bottom: 0.5rem;
  font-size: 0.68rem;
  color: #fff;
  background: rgba(18, 39, 51, 0.65);
  padding: 0.15em 0.5em;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.card .thumb a {
  height: 100%;
}
.card .thumb img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.card h3 { font-size: 1.08rem; margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card p a { color: var(--blue); }
.event-card-header { display: flex; align-items: center; gap: 0.9rem; }
.event-card-header a { flex: none; }
.event-logo { height: 56px; width: auto; flex: none; }
.event-name { margin: 0; }

/* ---------------------------------------------------------------------- */
/* Conference cards                                                        */
/* ---------------------------------------------------------------------- */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px) { .conf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .conf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .conf-grid { grid-template-columns: 1fr; } }

.conf-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.conf-card .thumb { aspect-ratio: 500/223; background: var(--navy-deep); position: relative; overflow: hidden; }
.conf-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.conf-card .thumb.empty {
  background: linear-gradient(165deg, var(--paper) 0%, var(--accent-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.conf-card .thumb.empty img {
  width: 34%;
  height: auto;
  opacity: 0.4;
}
/* When the placeholder logo is wrapped in a link, keep it centred */
.conf-card .thumb.empty a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.conf-card .body { padding: 0.95rem 1.05rem 1.1rem; }
.conf-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}
.badge.upcoming { background: var(--accent-soft); color: var(--accent); }
.badge.announced { background: #eef2ee; color: #3f6b4c; }
.badge.past { background: #eef0f2; color: var(--ink-soft); }
.conf-card .year { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy-deep); }
.conf-card .year a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3em; }
.conf-card .year a:hover { color: var(--blue); }
.conf-link-arrow { font-size: 0.9em; opacity: 0; transition: opacity 0.15s, transform 0.15s; transform: translateX(-4px); }
.conf-card .year a:hover .conf-link-arrow { opacity: 1; transform: translateX(0); }
.conf-card .thumb a { display: block; }
.conf-card .thumb a img { transition: opacity 0.18s; }
.conf-card .thumb a:hover img { opacity: 0.88; }
.conf-card .loc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.15rem; }
.conf-card .dates { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.85; }
.conf-card .proceedings { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; }

/* Conference history timeline (older entries) */
.timeline-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5em;
  margin: 1.6rem auto 0;
  background: none;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step-1);
  padding: 0.6em 1.1em;
  border-radius: var(--radius);
  cursor: pointer;
}
.timeline-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------------------------------------------------------------- */
/* People / committee lists                                                */
/* ---------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 2.5rem;
}
@media (max-width: 860px) { .people-grid { grid-template-columns: 1fr; } }

.people-block {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.7rem;
}
.people-block h2 {
  font-size: var(--step1);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.93rem;
}
.people-list li:last-child { border-bottom: none; padding-bottom: 0; }
.people-list .p-name { font-weight: 600; color: var(--ink); }
.people-list .p-name a { color: inherit; text-decoration: none; }
.people-list .p-name a:hover { color: var(--blue); }
.people-list .p-affil { color: var(--ink-soft); }
.people-list .p-affil a { color: var(--ink-soft); }
.people-list .p-role { display: block; font-size: 0.82rem; color: var(--accent); margin-top: 0.15rem; }
.people-list .p-years { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-right: 0.5em; }

details.alumni-block { margin-top: 0.5rem; }
details.alumni-block > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
  font-size: 0.9rem;
}
details.alumni-block > summary::-webkit-details-marker { display: none; }
details.alumni-block > summary::before { content: "+ "; }
details.alumni-block[open] > summary::before { content: "– "; }

/* ---------------------------------------------------------------------- */
/* Awards                                                                   */
/* ---------------------------------------------------------------------- */
.award-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}
.award-block:first-child { padding-top: 0; }
.award-block + .award-block { border-top: 1px solid var(--line); }
.award-block .award-logo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.award-block .award-logo-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.award-block .award-logo-credit { font-size: 0.66rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 700px) {
  .award-block { grid-template-columns: 1fr; }
  .award-block .award-logo-wrap { width: 90px; }
}

table.winners {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.1rem;
  font-size: 0.93rem;
}
table.winners td { padding: 0.6rem 0.7rem; vertical-align: top; border-bottom: 1px dotted var(--line); }
table.winners tr:last-child td { border-bottom: none; }
table.winners td.yr {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
  width: 4.5em;
  font-size: 0.85rem;
}
table.winners .w-title { font-weight: 600; }
table.winners .w-title a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
table.winners .w-title a:hover { color: var(--blue); border-color: var(--blue); }
table.winners .w-names, table.winners .w-note { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------------------------------------------------------------------- */
/* Sidebar / on-this-page nav                                              */
/* ---------------------------------------------------------------------- */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3rem;
  align-items: start;
  max-width: 1180px;
}
@media (max-width: 860px) { .with-sidebar { grid-template-columns: 1fr; } }

.page-toc {
  position: sticky;
  top: 5.5rem;
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
}
.page-toc .eyebrow { margin-bottom: 0.8em; }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.page-toc a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.page-toc a:hover, .page-toc a.active { color: var(--blue); }
.page-toc li strong { font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.page-toc li.muted { font-size: 0.85rem; }
.newsletter-archive { margin-top: 2rem; }
.people-list.alumni-list { margin-top: 0.8rem; }

/* ---------------------------------------------------------------------- */
/* Prose content (ethics, diversity, hosting, etc.)                        */
/* ---------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.with-sidebar .prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { margin: 1em 0; }
.prose li { margin-bottom: 0.4em; }
.prose .note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.93rem;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
#site-footer {
  background: var(--navy-deep);
  color: #d7dde0;
  margin-top: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3.2rem;
  padding-bottom: 2rem;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}
#site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
#site-footer p { color: #aab4ba; font-size: 0.9rem; }
#site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
#site-footer a { color: #d7dde0; text-decoration: none; font-size: 0.9rem; }
#site-footer a:hover { color: #fff; text-decoration: underline; }
#site-footer .role { display: block; color: #8a969c; font-size: 0.8rem; }
#site-footer .social a { display: inline-flex; align-items: center; gap: 0.55em; }
#site-footer .social svg { width: 16px; height: 16px; flex: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  padding-bottom: 1.6rem;
  font-size: 0.8rem;
  color: #8a969c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: #aab4ba; }
.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.footer-bottom-right > * + *::before {
  content: "·";
  margin-right: 0.75rem;
  opacity: 0.5;
}
.footer-photo-credit,
.footer-photo-credit a { color: #8a969c; font-size: 0.8rem; }
.footer-photo-credit a:hover { color: #aab4bc; }

/* ---------------------------------------------------------------------- */
/* Misc                                                                     */
/* ---------------------------------------------------------------------- */
.text-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}
.signature { margin-top: 2rem; }
.muted { color: var(--ink-soft); }

::selection { background: var(--accent-soft); color: var(--navy-deep); }
