
:root {
  --bg: #f4efe6;
  --paper: #fffdf8;
  --soft: #f8f2e8;
  --text: #302a24;
  --muted: #6b6258;
  --brown: #754720;
  --brown-dark: #4e2e17;
  --green: #53683d;
  --green-dark: #39482b;
  --line: #dfd0bc;
  --warning: #8c6819;
  --shadow: 0 16px 40px rgba(61, 42, 25, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(117,71,32,.10), transparent 34rem),
    linear-gradient(180deg, #eee4d6 0, var(--bg) 24rem, var(--bg));
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(117,71,32,.32); outline-offset: 3px;
}
.site-header {
  color: #fff;
  background: linear-gradient(135deg, #40502f, #70431f);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 42px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #ebddbd;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.site-header h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}
.site-header p:last-child {
  max-width: 760px;
  margin: 15px 0 0;
  color: #f5eadb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}
.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(78,46,23,.16);
  background: rgba(255,253,248,.96);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  overflow-x: auto;
}
.nav-inner a {
  flex: 0 0 auto;
  padding: 14px 15px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-inner a:hover { color: #fff; background: var(--brown); }
.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 30px auto 56px;
}
.breadcrumbs { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.breadcrumbs a { color: inherit; }
.content-card {
  padding: clamp(20px, 4vw, 42px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.content-card h2, .content-card h1 {
  color: var(--brown-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}
.content-card h2:first-child, .content-card h1:first-child { margin-top: 0; }
.archive-note, .warning-note, .success-note {
  margin: 0 0 24px;
  padding: 17px 19px;
  border-radius: 10px;
}
.archive-note { background: #f6efd9; border: 1px solid #ded09f; border-left: 5px solid #9a7a2c; }
.warning-note { background: #fff6df; border: 1px solid #e4cf93; border-left: 5px solid var(--warning); }
.success-note { background: #edf4e7; border: 1px solid #c9d9bc; border-left: 5px solid var(--green); }
.page-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.page-tools label { font-weight: 700; }
.page-tools input {
  width: min(100%, 520px);
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #bfae98;
  border-radius: 8px;
  font: inherit;
}
.archive-content { min-width: 0; }
.archive-content img { max-width: 100%; height: auto; }
.archive-content table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  background: #fff;
}
.archive-content th, .archive-content td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #d8c8b3;
}
.archive-content th { color: #fff; background: var(--green); }
.archive-content tr:nth-child(even) td { background: #faf6ef; }
.archive-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  background: #26231f;
  color: #f7efe4;
  border-radius: 12px;
  font: .88rem/1.55 Consolas, Monaco, monospace;
}
.table-scroll { width: 100%; overflow-x: auto; }
.record-list {
  overflow-x: auto;
  padding: 14px 0;
  background: #26231f;
  border-radius: 12px;
}
.record-line {
  min-width: 760px;
  padding: 2px 18px;
  color: #f8efe3;
  white-space: pre;
  font: .87rem/1.55 Consolas, Monaco, monospace;
}
.record-line:nth-child(even) { background: rgba(255,255,255,.035); }
.resource-grid, .record-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin: 22px 0;
}
.resource-card {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.resource-card h2, .resource-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.resource-card p { margin: 0 0 12px; color: var(--muted); }
.resource-card a { font-weight: 700; }
.unavailable-link {
  color: #867d73 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}
.link-status { display: inline-block; margin-left: 6px; color: #8b5c1b; font-size: .78rem; font-weight: 700; }
.archive-content form, .archive-content input, .archive-content textarea, .archive-content button { max-width: 100%; }
.map-image { display: block; width: min(100%, 980px); margin: 22px auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.site-footer { padding: 28px 16px; color: #e9dfd1; text-align: center; background: #33291f; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #f1d5aa; }
@media (max-width: 860px) {
  .resource-grid, .record-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .header-inner { padding: 42px 0 34px; }
  .page-shell { width: min(100% - 16px, 1180px); margin-top: 18px; }
  .content-card { padding: 20px 16px; border-radius: 13px; }
  .resource-grid, .record-cards { grid-template-columns: 1fr; }
  .page-tools { display: block; }
  .page-tools label { display: block; margin-bottom: 7px; }
  .archive-content table.responsive-stack thead { display: none; }
  .archive-content table.responsive-stack, .archive-content table.responsive-stack tbody,
  .archive-content table.responsive-stack tr, .archive-content table.responsive-stack td { display: block; width: 100%; }
  .archive-content table.responsive-stack tr { margin: 0 0 13px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
  .archive-content table.responsive-stack td { border: 0; border-bottom: 1px solid #eadfce; }
  .archive-content table.responsive-stack td:last-child { border-bottom: 0; }
  .archive-content table.responsive-stack td::before { display: block; margin-bottom: 3px; color: var(--green-dark); content: attr(data-label); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
}
