:root {
  --ink: #18221f;
  --muted: #58625d;
  --paper: #f7f3e8;
  --paper-deep: #eee7d7;
  --white: #fffdf8;
  --green: #1e5141;
  --green-dark: #12372d;
  --red: #8a3025;
  --red-dark: #642018;
  --gold: #c8a25b;
  --line: #d8cfbc;
  --shadow: 0 18px 46px rgba(32, 41, 36, 0.12);
  --radius: 18px;
  --content: 1180px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 162, 91, 0.12), transparent 24rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background-image: linear-gradient(rgba(63, 53, 39, 0.025) 1px, transparent 1px);
  background-size: 100% 4px;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 4px solid #f2b94b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--red-dark);
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(18, 55, 45, 0.98);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 5px 24px rgba(10, 28, 22, 0.18);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green-dark);
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 4px 4px 14px 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  width: fit-content;
  margin-top: 0.2rem;
  padding-bottom: 0.22rem;
  color: #dce9e3;
  border-bottom: 4px solid var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  cursor: pointer;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.site-nav a {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 0.7rem 0.72rem;
  color: #fff;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
}

.nav-line {
  display: block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--paper);
}

.preview-strip {
  padding: 0.45rem 1rem;
  color: #fff8e9;
  background: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-align: center;
}

.preview-strip a {
  color: #fff;
}

main {
  min-height: 60vh;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 820px);
  margin-inline: auto;
}

.hero {
  padding: clamp(2.5rem, 7vw, 6.5rem) 0 clamp(3rem, 7vw, 6rem);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(13, 45, 36, 0.98) 0%, rgba(18, 55, 45, 0.92) 46%, rgba(18, 55, 45, 0.55) 100%),
    url("/assets/media/medical-evacuation-kwai-noi.jpg") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.62fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-section .eyebrow {
  color: #efd18e;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--green-dark);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  color: var(--green-dark);
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 1.7rem;
  color: #eff6f2;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-note {
  padding: 1.4rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.15rem;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--green-dark);
}

.button.secondary:hover {
  color: #fff;
  background: var(--green-dark);
}

.hero .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .button.secondary:hover {
  color: var(--green-dark);
  background: #fff;
}

.section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.section.compact {
  padding-block: clamp(2.4rem, 5vw, 4rem);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.paper-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.dark-section {
  color: #fff;
  background: var(--green-dark);
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.dark-section p {
  color: #dce9e3;
}

.stats {
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 1.55rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(32, 41, 36, 0.07);
}

.card p {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.card-link {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.framed-image {
  margin: 0;
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}

.framed-image img {
  width: 100%;
}

.framed-image figcaption {
  padding: 0.75rem 0.4rem 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(18, 55, 45, 0.98), rgba(30, 81, 65, 0.88)),
    radial-gradient(circle at 80% 15%, rgba(200, 162, 91, 0.28), transparent 24rem);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: #e3eee9;
  font-size: 1.12rem;
}

.search-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  padding: 1rem 0;
  background: rgba(247, 243, 232, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.search-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8c948f;
  border-radius: 8px;
}

.search-field input:focus {
  border-color: var(--green);
}

.results-count {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalogue-section + .catalogue-section {
  margin-top: 3rem;
}

.catalogue-section {
  scroll-margin-top: 248px;
}

.category-nav {
  margin-bottom: 2.5rem;
  padding: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.category-nav strong {
  width: 100%;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.category-nav a {
  padding: 0.32rem 0.65rem;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.category-description {
  margin: -0.35rem 0 1.1rem;
  color: var(--muted);
}

.catalogue-section h2 {
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--gold);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  display: flex;
}

.link-list a {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.article-link-title,
.article-link-meta {
  display: block;
}

.article-link-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.link-list a:hover {
  color: var(--red-dark);
  border-left-color: var(--red);
  box-shadow: 0 7px 18px rgba(32, 41, 36, 0.08);
}

.link-list .catalogue-resource {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.resource-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.link-list .resource-links a {
  width: auto;
  padding: 0.38rem 0.62rem;
  color: var(--green-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.link-list .resource-links a:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: none;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.interview-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.interview-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.4rem;
}

.interview-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.part-count {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.18rem 0.55rem;
  color: var(--red-dark);
  background: #f5e3dd;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.part-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.part-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: #fff;
  background: var(--green);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.part-links a:hover {
  color: #fff;
  background: var(--red);
}

.notice {
  padding: 1.1rem 1.25rem;
  background: #fff6df;
  border: 1px solid #e4c981;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
}

.notice strong {
  color: var(--red-dark);
}

.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.85;
}

.prose h2,
.prose h3 {
  margin-top: 2.2rem;
}

.legacy-content {
  overflow-wrap: anywhere;
}

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

.legacy-content p,
.legacy-content li,
.legacy-content td,
.legacy-content th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
}

.legacy-content .subs0,
.legacy-content .subs3 {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.legacy-content .subs1,
.legacy-content .para2 {
  color: var(--red-dark);
  font-weight: 700;
}

.legacy-content table {
  max-width: 100%;
  border-collapse: collapse;
}

.legacy-content table.table1 td,
.legacy-content table.table1 th {
  padding: 0.65rem;
  border: 1px solid var(--line);
}

.legacy-content img {
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.legacy-content .article-image {
  width: min(100%, var(--article-image-width, 520px));
}

.legacy-content .article-image.align-left,
.legacy-content .article-image.align-right {
  max-width: min(44%, var(--article-image-width, 360px));
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.legacy-content .article-image.align-left {
  float: left;
  margin-right: 1.35rem;
  margin-left: 0;
}

.legacy-content .article-image.align-right {
  float: right;
  margin-right: 0;
  margin-left: 1.35rem;
}

.legacy-content .article-image.align-centre {
  clear: both;
  margin-block: 1.2rem;
}

.article-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.15rem);
}

.article-badges {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.article-badges span,
.article-badges a {
  padding: 0.28rem 0.65rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.article-badges a:hover {
  color: var(--green-dark);
  background: #fff;
}

.article-toc {
  margin-bottom: 2.2rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  background: var(--paper-deep);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.article-toc strong {
  width: 100%;
  color: var(--green-dark);
}

.article-toc a {
  font-size: 0.82rem;
  font-weight: 800;
}

.source-page {
  position: relative;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.source-page > h2 {
  margin-top: 2.2rem;
  font-size: 1.65rem;
}

.source-page > h3 {
  margin-top: 1.7rem;
  font-size: 1.2rem;
}

.article-figure {
  width: min(42%, 360px);
  margin: 0.4rem 0 1.1rem;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(32, 41, 36, 0.1);
}

.article-figure.align-left {
  float: left;
  margin-right: 1.35rem;
}

.article-figure.align-right {
  float: right;
  margin-left: 1.35rem;
}

.article-figure.align-wide {
  width: min(100%, 680px);
  margin: 1.2rem auto;
  clear: both;
}

.article-figure img {
  width: 100%;
  margin: 0;
}

.article-figure figcaption {
  padding: 0.55rem 0.2rem 0.1rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
}

.page-marker {
  margin-top: 1rem;
  clear: both;
  color: #7a756c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clearfix {
  clear: both;
}

.transcription-note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  color: var(--muted);
  background: #fff6df;
  border: 1px solid #e4c981;
  border-radius: 8px;
  font-size: 0.82rem;
}

.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.source-note {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.portrait {
  max-height: 620px;
  margin-inline: auto;
  object-fit: cover;
  object-position: 50% 20%;
}

.peter-portrait {
  width: min(100%, 340px);
  justify-self: center;
}

#sign-guestbook,
#guestbook-entries {
  scroll-margin-top: 100px;
}

.guestbook-hero .button-row {
  margin-top: 1.5rem;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.guestbook-guidance ul {
  padding-left: 1.25rem;
}

.privacy-note,
.guestbook-notice {
  padding: 1rem 1.1rem;
  background: var(--paper-deep);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
}

.guestbook-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-field + .form-field {
  margin-top: 1rem;
}

.form-field label,
.form-field small {
  display: block;
}

.form-field label {
  margin-bottom: 0.38rem;
  color: var(--green-dark);
  font-weight: 800;
}

.optional-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8c948f;
  border-radius: 8px;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(30, 81, 65, 0.16);
  outline-offset: 1px;
}

.form-field small {
  margin-top: 0.35rem;
  color: var(--muted);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-status {
  margin: 1rem 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.guestbook-form .button {
  margin-top: 1.15rem;
}

.guestbook-form .button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.guestbook-success {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  color: var(--green-dark);
  background: #edf6ef;
  border: 1px solid #a7c7ae;
  border-radius: 8px;
}

.guestbook-list-heading {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 3px solid var(--gold);
}

.guestbook-list-heading h2,
.guestbook-list-heading p {
  margin-bottom: 0.75rem;
}

.guestbook-list-heading > p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.guestbook-search {
  margin-bottom: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: end;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guestbook-search-field label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--green-dark);
  font-weight: 800;
}

.guestbook-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #8c948f;
  border-radius: 8px;
}

.guestbook-search-field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(30, 81, 65, 0.16);
  outline-offset: 1px;
}

.guestbook-search-summary {
  margin: 0 0 1rem;
  color: var(--muted);
}

.guestbook-navigation {
  margin: 1.2rem 0;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f3f0e8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guestbook-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.guestbook-page-links a,
.guestbook-page-links .is-disabled,
.guestbook-page-links strong {
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.guestbook-page-links a {
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
}

.guestbook-page-links .is-disabled {
  color: #7b807d;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid transparent;
}

.guestbook-page-links strong {
  color: var(--green-dark);
}

.guestbook-page-jump {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.guestbook-page-jump label {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.guestbook-page-jump input {
  width: 5rem;
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #8c948f;
  border-radius: 7px;
}

.button.compact {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
}

.guestbook-entry-list {
  display: grid;
  gap: 1rem;
}

.guestbook-entry-card {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(32, 41, 36, 0.06);
  overflow-wrap: anywhere;
}

.guestbook-entry-card header {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.guestbook-entry-card h3,
.guestbook-entry-card header p {
  margin: 0;
}

.guestbook-entry-card h3 {
  color: var(--green-dark);
  font-size: 1.28rem;
}

.guestbook-entry-card header p {
  color: var(--muted);
  font-size: 0.82rem;
}

.guestbook-comment {
  line-height: 1.72;
}

.guestbook-entry-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.guestbook-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.guestbook-entry-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.email-reveal-button {
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.email-reveal-button:hover,
.email-reveal-button:focus-visible,
.email-revealed-link:hover,
.email-revealed-link:focus-visible {
  color: var(--green-dark);
}

.email-reveal-button:disabled {
  color: var(--muted);
  cursor: wait;
  text-decoration: none;
}

.email-revealed-link {
  overflow-wrap: anywhere;
}

.quote {
  margin: 2rem 0 0;
  padding: 1.3rem 1.5rem;
  color: var(--green-dark);
  background: var(--paper-deep);
  border-left: 6px solid var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  min-height: 100%;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 10px;
}

.archive-card p {
  color: var(--muted);
}

.site-footer {
  color: #dce9e3;
  background: #0d2c24;
  border-top: 5px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.site-footer h2 {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: 1.4rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 0.45rem 1rem;
}

.footer-links a {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-bottom {
  padding: 1rem 0;
  color: #b8cbc2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.65rem 1rem 1rem;
    background: var(--green-dark);
    border-bottom: 3px solid var(--gold);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    width: min(100%, var(--content));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .hero-grid,
  .split,
  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 650px;
  }

  .card-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-copy span {
    display: none;
  }

  .preview-strip {
    font-size: 0.7rem;
  }

  .stats-grid,
  .card-grid,
  .link-list,
  .interview-grid,
  .contact-grid,
  .archive-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .search-panel {
    position: static;
  }

  .catalogue-section {
    scroll-margin-top: 96px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row .button {
    width: 100%;
  }

  .guestbook-list-heading,
  .guestbook-entry-card header {
    display: block;
  }

  .guestbook-entry-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .guestbook-search {
    grid-template-columns: 1fr;
  }

  .guestbook-search .button {
    width: 100%;
  }

  .guestbook-navigation {
    display: block;
  }

  .guestbook-page-links {
    justify-content: center;
  }

  .guestbook-page-jump {
    margin-top: 0.8rem;
    justify-content: center;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legacy-content table {
    display: block;
    overflow-x: auto;
  }

  .legacy-content .resource-table,
  .legacy-content .resource-table tbody,
  .legacy-content .resource-table tr,
  .legacy-content .resource-table td {
    display: block;
    width: 100%;
  }

  .legacy-content .resource-table {
    overflow: visible;
  }

  .legacy-content .resource-table tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
  }

  .legacy-content .resource-table td {
    padding: 0.25rem 0;
    border: 0;
  }

  .legacy-content .article-image.align-left,
  .legacy-content .article-image.align-right,
  .article-figure.align-left,
  .article-figure.align-right {
    width: min(100%, 520px);
    max-width: 100%;
    margin: 1.1rem auto;
    float: none;
  }
}

@media (max-width: 440px) {
  .brand-copy strong {
    max-width: 190px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 38px;
    height: 44px;
  }

  .site-nav ul {
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .preview-strip,
  .search-panel,
  .guestbook-search,
  .guestbook-navigation,
  .site-footer,
  .button-row {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a {
    color: #000;
  }
}
