:root {
  color-scheme: dark;
  --page-bg: #000;
  --panel-bg: #303030;
  --panel-deep: #1f2924;
  --panel-border: #119d28;
  --heading-bg: #15952c;
  --link: #ffff99;
  --link-visited: #f4f4d8;
  --text: #f7f7f2;
  --muted: #c9d2c8;
  --accent: #ff6a00;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:active { color: #ff6666; }

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

table {
  max-width: calc(100vw - 24px);
}

.site-header {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 16px 12px;
  text-align: center;
}

.site-title { margin: 0; line-height: 1; }

.site-title img {
  width: 170px;
  image-rendering: pixelated;
}

.content-shell {
  width: min(100% - 24px, 840px);
  margin: 0 auto 28px;
  background: var(--panel-bg);
  border: 1px solid rgba(17, 157, 40, .78);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 153, .08), 0 18px 44px rgba(0, 0, 0, .38);
}

.page-heading {
  margin: 0;
  padding: 14px 18px;
  background: var(--heading-bg);
  color: #fff;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.35;
  text-align: center;
}

.content-section { padding: clamp(18px, 4vw, 34px); }

.content-section + .content-section {
  border-top: 1px solid rgba(153, 255, 153, .16);
}

.content-section h2,
.section-heading {
  margin: 0 0 .75rem;
  color: var(--link);
  font-size: 1.2rem;
  line-height: 1.35;
}

.content-section h2 {
  margin: 0;
  padding: .45em .75em;
  border-radius: 10px 10px 0 0;
  background: #555;
  color: #fff;
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0;
}

.section-heading {
  padding: 0;
  background: transparent;
  text-align: left;
}

.article-body {
  font-size: clamp(1rem, 2.9vw, 1.08rem);
  overflow-wrap: anywhere;
}

.article-body p { margin: 0 0 1.25rem; }
.article-body br { line-height: 1.8; }
.article-body ul,
.article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .3rem; }

.article-body strong,
.article-emphasis,
.article-shout {
  color: var(--link);
}

.article-divider {
  display: block;
  margin: 1rem auto;
}

.article-emphasis {
  font-size: 1.25rem;
  font-weight: 700;
}

.article-shout {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.next-link {
  margin-top: 1.5rem;
  text-align: center;
}

.next-link a,
.news-more summary,
.media-links a,
.media-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 153, .42);
  border-radius: 999px;
  color: var(--link);
  text-decoration: none;
}

.next-link a {
  min-height: 44px;
  padding: .55em 1.1em;
  font-weight: 700;
}

.next-link a:hover,
.next-link a:focus {
  background: #303934;
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.article-intro {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 2rem;
}

.article-intro img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
}

.article-intro p:last-child { margin-bottom: 0; }

.lead-panel {
  margin: 0;
  padding: 18px;
  background: #333;
  color: #f1f1f1;
}

.content-note {
  margin: 1.5rem 0;
  padding: 14px 16px;
  background: #252c28;
  border-left: 4px solid rgba(255, 255, 153, .42);
  border-radius: 8px;
}

.content-note p:last-child { margin-bottom: 0; }

.content-note blockquote {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-left: 4px solid rgba(153, 238, 255, .55);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  color: #99eeff;
}

.content-note blockquote p:last-child { margin-bottom: 0; }

.game-frame {
  margin: 1.5rem auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 153, .28);
  border-radius: 8px;
  background: #000;
}

.game-frame canvas {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: 0;
}

.game-status {
  min-height: 1.75rem;
  margin: .85rem 0 0;
  color: var(--link);
  font-weight: 700;
  text-align: center;
}

.article-log {
  margin: 1rem 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 153, .12);
  border-radius: 10px;
  background: #1f2924;
  color: var(--text);
}

.article-log p {
  color: var(--text);
}

.article-log p:last-child {
  margin-bottom: 0;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem 0 1.25rem;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem .8rem;
  border: 1px solid rgba(153, 255, 153, .26);
  border-radius: 8px;
  background: rgba(12, 24, 15, .72);
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus {
  border-color: rgba(255, 255, 153, .6);
  background: rgba(30, 54, 34, .86);
}

.paper-panel {
  margin: 1.5rem 0 0;
  padding: 18px;
  background: #f7f7f2;
  border: 1px solid rgba(255, 255, 153, .32);
  border-radius: 10px;
  color: #1e241f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}

.paper-panel * { color: inherit; }

.paper-panel h3,
.paper-panel h4 {
  margin: 0 0 .65rem;
  padding: 0;
  background: transparent;
  color: #142018;
  line-height: 1.35;
  text-align: left;
}

.paper-panel h3 {
  font-size: 1.35rem;
  text-align: center;
}

.paper-panel h4 {
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(20, 32, 24, .2);
  font-size: 1.05rem;
}

.paper-panel p,
.paper-panel li {
  color: #1e241f;
  font-size: .98rem;
  line-height: 1.75;
}

.paper-panel strong {
  color: #1e241f;
}

.paper-meta {
  margin: 0 0 1.2rem;
  color: #405044;
  font-size: .9rem;
  line-height: 1.55;
  text-align: center;
}

.paper-figure {
  margin: 1.25rem auto;
  text-align: center;
}

.paper-figure img {
  max-width: min(100%, 260px);
  height: auto;
  border: 1px solid rgba(20, 32, 24, .2);
  border-radius: 6px;
  background: #fff;
}

.paper-figure-wide img {
  max-width: min(100%, 40rem);
}

.paper-figure-flow img {
  max-width: min(100%, 32rem);
}

.paper-figure figcaption {
  margin-top: .55rem;
  color: #405044;
  font-size: .85rem;
  line-height: 1.45;
}

.paper-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
  margin: 1.25rem 0;
}

.paper-figure-grid .paper-figure {
  margin: 0;
}

.paper-callout {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(20, 32, 24, .22);
  border-radius: 8px;
  background: #fff;
}

.paper-callout p:last-child { margin-bottom: 0; }

.paper-question-list {
  display: grid;
  gap: .65rem;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.paper-question,
.paper-score {
  display: block;
}

.paper-score {
  margin-top: .15rem;
  color: #405044;
}

.paper-roman-list {
  list-style: lower-roman;
}

.interviewer {
  color: #ccffff;
}

.interview-transcript {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}

.interview-turn {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(153, 255, 153, .14);
  border-radius: 10px;
  background: #252c28;
}

.interview-turn.is-answer {
  border-color: rgba(153, 238, 255, .22);
  background: #1f2d31;
}

.interview-speaker {
  color: var(--link);
  font-weight: 700;
  line-height: 1.45;
}

.interview-turn.is-answer .interview-speaker {
  color: #99eeff;
}

.interview-body {
  min-width: 0;
  color: #f1f1f1;
}

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

.interview-quote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid rgba(255, 255, 153, .45);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
  color: var(--link);
}

.interview-episode {
  margin: 1rem 0 .5rem;
  color: var(--link);
  font-size: 1.05rem;
  line-height: 1.35;
}

.text-right {
  text-align: right;
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem auto;
  -webkit-overflow-scrolling: touch;
}

.article-body tbody,
.article-body tr { max-width: 100%; }

.article-body td,
.article-body th {
  padding: .4rem .5rem;
  vertical-align: top;
}

.article-body [bgcolor="#FFFFFF" i],
.article-body [bgcolor="#C0C0C0" i],
.article-body [bgcolor="#FFCCCC" i] {
  color: #111;
}

.article-body [bgcolor="#FFFFFF" i] *,
.article-body [bgcolor="#C0C0C0" i] *,
.article-body [bgcolor="#FFCCCC" i] * {
  color: inherit;
}

.article-body [bgcolor="#FFFFFF" i] a,
.article-body [bgcolor="#C0C0C0" i] a,
.article-body [bgcolor="#FFCCCC" i] a {
  color: #003c8f;
}

.legacy-center,
.article-body [align="center"] { text-align: center; }

.article-body .legacy-emphasis { font-size: 1.24em; }
.article-body .legacy-strong { font-size: 1.5em; }

.category-nav,
.news-panel,
.site-menu,
.page-footer {
  width: min(80%, 760px);
  margin-right: auto;
  margin-left: auto;
}

.category-nav {
  width: min(100% - 24px, 840px);
  margin-top: 16px;
  margin-bottom: 16px;
}

.news-panel,
.site-menu,
.category-nav {
  border: 1px solid #2bb84a;
  border-radius: 14px;
  background: #071008;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(153, 255, 153, .12) inset;
  overflow: hidden;
}

.news-panel {
  border: 0;
  border-radius: 12px;
  background: #333;
  box-shadow: none;
}

.news-panel h2,
.site-menu h2,
.category-nav h2 {
  margin: 0;
  padding: .5em .75em;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.news-panel h2 {
  padding: .32em .75em;
  background: #2121ff;
}

.site-menu h2,
.category-nav h2 {
  background: #1e8f2d;
}

.news-date {
  margin: 0;
  padding: .25em .75em;
  background: #000099;
  color: #fff;
  font-size: .85rem;
  text-align: center;
}

.news-body { padding: 14px 18px 16px; }

.news-list {
  margin: 0;
  padding-left: 1.25em;
}

.news-list li + li { margin-top: .4em; }

.news-more { margin-top: .75em; }

.news-more summary {
  display: flex;
  gap: .45em;
  width: fit-content;
  min-height: 44px;
  margin: 0 auto;
  padding: .45em 1.05em;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
}

.news-more summary::-webkit-details-marker { display: none; }

.news-more summary:focus {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.news-more[open] summary { margin-bottom: .75em; }

.news-more[open] .news-summary-closed,
.news-more .news-summary-open { display: none; }

.news-more[open] .news-summary-open { display: inline; }

.menu-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
  padding: 12px;
  background: #102414;
}

.menu-tile,
.category-tile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 118px;
  padding: 16px;
  background: #252c28;
  border: 1px solid rgba(153, 255, 153, .18);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  color: #fff;
  text-decoration: none;
}

.menu-tile { min-height: 132px; }

.menu-tile:link,
.menu-tile:visited,
.category-tile:link,
.category-tile:visited {
  color: #fff;
}

.menu-tile:hover,
.menu-tile:focus,
.category-tile:hover,
.category-tile:focus {
  background: #303934;
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.menu-icon,
.category-icon {
  display: grid;
  align-self: center;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #050805;
  border: 1px solid #2bb84a;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(43, 184, 74, .18);
  color: var(--link);
  font-weight: 700;
  line-height: 1;
}

.menu-icon img {
  width: 24px;
  height: auto;
}

.menu-icon-text {
  font-size: 1rem;
}

.menu-title,
.category-title {
  display: block;
  margin-bottom: .45em;
  color: var(--link);
  font-size: 1.08rem;
  line-height: 1.35;
}

.menu-desc,
.category-desc {
  display: block;
  color: #f1f1f1;
  font-size: .95rem;
  line-height: 1.55;
}

.section-subtitle {
  margin: 0;
  padding: .25em .75em;
  background: #333;
  color: #dcdcdc;
  font-size: .85rem;
  text-align: center;
}

.link-list,
.media-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.media-list { gap: 12px; }

.link-item,
.media-item,
.notice-panel {
  padding: 14px 16px;
  background: #252c28;
  border: 1px solid rgba(255, 255, 153, .12);
  border-radius: 12px;
}

.link-item a {
  display: inline-block;
  min-height: 44px;
  color: var(--link);
  font-weight: 700;
  line-height: 1.35;
}

.link-item p,
.media-item p,
.notice-panel p,
.notice-panel li {
  margin: .1em 0 0;
  color: #f1f1f1;
  font-size: .95rem;
  line-height: 1.6;
}

.link-banner {
  display: block;
  margin-bottom: .5rem;
}

.media-item {
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.media-thumb {
  display: block;
  text-align: center;
}

.media-thumb img {
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.media-item h2,
.media-item h3 {
  margin: 0 0 .35em;
  padding: 0;
  background: transparent;
  color: var(--link);
  font-size: 1.08rem;
  line-height: 1.35;
  text-align: left;
}

.media-item h2 a,
.media-item h3 a { color: var(--link); }

.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: .65rem;
}

.media-links a,
.media-links span {
  min-height: 36px;
  padding: .25em .7em;
  font-size: .9rem;
}

.media-links span {
  color: #dcdcdc;
  border-color: rgba(255, 255, 255, .16);
}

.data-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  background: #1b211d;
}

.data-table caption {
  margin-bottom: .65rem;
  color: var(--link);
  font-weight: 700;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: .6rem .7rem;
  border: 1px solid rgba(153, 255, 153, .18);
  vertical-align: middle;
}

.data-table th {
  background: #102414;
  color: var(--link);
  font-weight: 700;
  text-align: left;
}

.data-table td {
  color: #f1f1f1;
}

.data-table .number-cell {
  color: var(--link);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.paper-panel .data-table {
  background: #fff;
  color: #1e241f;
}

.paper-panel .data-table th,
.paper-panel .data-table td {
  border-color: rgba(20, 32, 24, .18);
}

.paper-panel .data-table th {
  background: #edf2e9;
  color: #142018;
}

.paper-panel .data-table td {
  color: #1e241f;
}

.paper-panel .data-table .number-cell {
  color: #1e241f;
}

.frame-rule-table,
.item-table,
.score-table {
  table-layout: auto;
}

.item-inline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.item-stack {
  display: grid;
  justify-items: center;
  gap: .35rem;
  min-width: 5.4rem;
  text-align: center;
}

.item-inline img {
  width: auto;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.item-stack img {
  width: auto;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.item-note {
  color: var(--muted);
  font-size: .9rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 1rem 0 1.5rem;
}

.note-card {
  display: grid;
  gap: 8px;
  align-content: space-between;
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 153, .16);
  border-radius: 12px;
  background: #252c28;
}

.note-keys {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.note-keys img {
  width: auto;
  max-width: none;
  height: 42px;
  object-fit: contain;
}

.note-keys img[src*="d-allow"] {
  height: 49px;
}

.note-text {
  display: block;
  padding: .35em .45em;
  border-radius: 8px;
  background: rgba(255, 153, 0, .18);
  color: #fff4c0;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.sequence-section {
  margin-top: 1.5rem;
  padding: 14px;
  border: 1px solid rgba(153, 255, 153, .16);
  border-radius: 12px;
  background: rgba(16, 36, 20, .68);
}

.sequence-section.is-repeat {
  border-color: rgba(255, 255, 153, .35);
  background: rgba(102, 59, 0, .22);
}

.sequence-heading {
  margin: 0 0 .75rem;
  color: var(--link);
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
}

.okarina-logo {
  display: block;
  width: 221px;
  margin: 0 auto 1.5rem;
}

.map-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.map-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
}

.map-caption {
  margin: .75rem auto 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.quiz-image {
  width: min(100%, 282px);
}

.quiz-lead {
  margin: 1.5rem auto 2rem;
  text-align: center;
  line-height: 1.8;
}

.movie-panel {
  margin: 1.5rem 0;
  text-align: center;
}

.movie-player {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 153, .2);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.movie-caption {
  margin: .85rem auto 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.notice-panel { margin-top: 16px; }
.notice-panel + .notice-panel { margin-top: 10px; }

.notice-panel h3 {
  margin: 0 0 .4em;
  color: var(--link);
  font-size: 1.05rem;
  line-height: 1.35;
}

.notice-panel ul {
  margin: .4em 0 0;
  padding-left: 1.2em;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 1rem;
}

.footer-logos img { display: block; }

.page-footer {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

.footer-divider {
  height: 26px;
  background: var(--accent);
  border-radius: 14px;
}

.letter-quote {
  width: min(100%, 720px);
  margin: 2.4rem auto;
  padding: 0;
  border: 2px solid #a9dff2;
  border-radius: 12px;
  background:
    repeating-linear-gradient(-45deg, #e8f8ff, #e8f8ff 8px, #f7fcff 8px, #f7fcff 16px);
  color: #17384a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .26);
  overflow: hidden;
}

.letter-quote figcaption {
  margin: 0;
  padding: .55rem .9rem;
  border-bottom: 2px solid #a9dff2;
  background:
    repeating-linear-gradient(-45deg, #d9f2ff, #d9f2ff 5px, #edfaff 5px, #edfaff 10px);
  color: #19465f;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

.letter-quote blockquote {
  margin: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #d5eef8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 50%, #fff 50%, #fff 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) calc(100% - 1px), #cfeefa calc(100% - 1px));
  background-color: #fff;
  background-size: 8px 100%, 100% 2.15em;
  color: #17384a;
  line-height: 2.15;
}

.letter-quote blockquote *,
.letter-quote a {
  color: inherit;
}

.letter-quote blockquote p { margin: 0 0 1rem; }
.letter-quote a { color: #003c8f; }

.pull-quote {
  clear: both;
  position: relative;
  margin: 2.4rem auto 1.6rem;
  padding: 18px 18px 16px 58px;
  border-left: 4px solid var(--panel-border);
  border-radius: 0 12px 12px 0;
  background: #1f2924;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(153, 255, 153, .12);
}

.pull-quote::before {
  content: "\201c";
  position: absolute;
  top: 8px;
  left: 16px;
  color: #7ee08b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 10px rgba(126, 224, 139, .18);
}

.pull-quote p { margin: 0; }

.pull-quote cite {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .9rem;
  font-style: normal;
}

.error-image {
  display: block;
  margin: 0 auto 24px;
  image-rendering: pixelated;
}

.error-message {
  max-width: 560px;
  margin: 0 auto 20px;
  text-align: left;
  overflow-wrap: anywhere;
}

.error-message + p,
.error-message + p + p {
  text-align: center;
}

.home-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 153, .45);
  border-radius: 999px;
  background: #101510;
  text-decoration: none;
}

.footer-nav {
  width: min(100% - 24px, 840px);
  margin: 18px auto 36px;
  padding: 12px;
  border: 1px solid rgba(153, 255, 153, .2);
  border-radius: 14px;
  background: var(--panel-deep);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-nav a {
  min-width: 74px;
  min-height: 58px;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: .72rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
  background: #252c28;
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.footer-nav img {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  object-fit: contain;
  image-rendering: pixelated;
}

@media (max-width: 520px) {
  .site-header { padding-top: 14px; }
  .content-shell {
    width: min(100% - 16px, 840px);
    border-radius: 12px;
  }
  .content-section { padding: 16px 14px 20px; }
  ul { padding-left: 1.2em; }
  .article-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .article-intro img { width: min(168px, 100%); }
  .article-shout { font-size: 1.45rem; }
  .category-nav,
  .news-panel,
  .site-menu,
  .page-footer {
    width: calc(100vw - 24px);
  }
  .category-nav {
    width: min(100% - 16px, 840px);
  }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-tile,
  .category-tile {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .menu-icon,
  .category-icon {
    width: 48px;
    height: 48px;
  }
  .menu-title { font-size: 1.05rem; }
  .lead-panel,
  .link-item {
    padding: 14px;
  }
  .media-item { grid-template-columns: 1fr; }
  .interview-turn {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .note-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
  .pull-quote { padding: 48px 14px 14px; }
  .pull-quote::before {
    top: 6px;
    left: 14px;
    font-size: 3rem;
  }
  .footer-nav {
    width: min(100% - 16px, 840px);
    gap: 8px;
  }
  .footer-nav a { min-width: 70px; }
}
