[hidden] { display: none !important; }

:root {
  --bg: #f4efe6;
  --surface: #ffffff;
  --surface-tint: #ebe3d5;
  --navy: #141d26;
  --ink: #17202a;
  --muted: #4d5c6b;
  --muted-dark: #c7d2de;
  --accent: #c84b31;
  --accent-hover: #9e321c;
  --accent-soft: #fae7e2;
  --teal: #0f766e;
  --brass: #f4d078;
  --border: #ddd3c2;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 29, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 29, 38, 0.08);
  --font-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body.pg-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.pg-skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 999;
}
.pg-skip:focus { left: 12px; }

.pg-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.pg-header {
  background: var(--navy);
  border-bottom: 1px solid var(--muted);
  position: sticky;
  top: 0;
  z-index: 40;
}
.pg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.pg-brand:hover { color: var(--brass); }
.pg-brand-mark { flex-shrink: 0; }
.pg-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pg-nav a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 2px;
  white-space: nowrap;
}
.pg-nav a:hover { color: var(--brass); }

.pg-hero-band {
  background: var(--navy);
  color: var(--bg);
  padding: 20px 0 24px;
  border-bottom: 3px solid var(--accent);
}
.pg-hero-head { max-width: 820px; margin-bottom: 14px; }
.pg-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.pg-kicker-dark {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.pg-hero-band h1 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.15;
  color: var(--surface);
}
.pg-hero-lead {
  margin: 0;
  font-size: 16px;
  color: var(--muted-dark);
  max-width: 68ch;
}
.pg-workbench-host { margin-top: 12px; }

.pg-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.pg-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pg-pill-btn:hover { border-color: var(--brass); color: var(--brass); }
.pg-pill-btn[data-gf-liked] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.pg-pill-light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.pg-pill-light:hover { background: var(--surface-tint); color: var(--ink); border-color: var(--border); }
.pg-pill-link {
  margin-left: auto;
  color: var(--brass);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0;
}
.pg-pill-link:hover { color: var(--surface); text-decoration: underline; }
.pg-share-msg { font-size: 14px; color: var(--brass); }
.pg-share-msg-dark { color: var(--teal); }
.pg-action-bar-light { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

.ad-native-slot {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
}
.ad-native-slot:not(:empty) {
  margin: 20px auto;
}
.ad-native-slot:empty {
  display: none;
}

.pg-section { margin: 48px 0; }
.pg-section-head { margin-bottom: 24px; max-width: 72ch; }
.pg-section-head h2, .pg-split-copy h2, .pg-inline-faq h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
}
.pg-section-head p { margin: 0; color: var(--muted); }

.pg-split-brief {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin: 44px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pg-bullet-cards {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.pg-bullet-cards li {
  padding: 12px 14px;
  background: var(--bg);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  font-size: 15px;
}
.pg-split-media { margin: 0; }
.pg-split-media figcaption, .pg-guide-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pg-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pg-table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pg-ledger-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
  font-size: 15px;
}
.pg-ledger-table th {
  background: var(--navy);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px;
}
.pg-ledger-table td {
  padding: 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.pg-ledger-table tbody tr:hover { background: var(--bg); }
.pg-cell-sub { font-size: 13px; color: var(--muted); }
.pg-code-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}
.pg-code-fixed { background: var(--navy); color: var(--brass); }
.pg-code-random { background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; letter-spacing: 0.03em; }
.pg-code-inline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--ink);
}
.pg-table-link { font-weight: 600; white-space: nowrap; text-decoration: none; }
.pg-table-link:hover { text-decoration: underline; }

.pg-route-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pg-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.pg-timeline-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pg-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-step-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pg-step-body h3 a { color: var(--ink); text-decoration: none; }
.pg-step-body h3 a:hover { color: var(--accent); }
.pg-step-body p { margin: 0; color: var(--muted); font-size: 15px; }

.pg-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pg-guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pg-guide-thumb { display: block; padding: 12px 12px 0; }
.pg-guide-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pg-guide-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pg-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.pg-guide-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.25;
}
.pg-guide-card h3 a { color: var(--ink); text-decoration: none; }
.pg-guide-card h3 a:hover { color: var(--accent); }
.pg-guide-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.pg-card-cta { font-weight: 600; font-size: 14px; text-decoration: none; }
.pg-card-cta:hover { text-decoration: underline; }

.pg-prose-panel, .pg-comments-panel, .pg-legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pg-prose { max-width: 72ch; font-size: 16px; overflow-wrap: anywhere; }
.pg-prose a, .pg-prose code, .pg-footer-mail a { overflow-wrap: anywhere; word-break: break-word; }
.pg-prose h2 { font-family: var(--font-head); font-size: 24px; line-height: 1.25; margin: 28px 0 10px; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 { font-family: var(--font-head); font-size: 19px; line-height: 1.3; margin: 22px 0 8px; }
.pg-prose p { margin: 0 0 14px; }
.pg-prose ul, .pg-prose ol { padding-left: 22px; margin: 0 0 16px; }
.pg-prose li { margin-bottom: 6px; }
.pg-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-tint);
  padding: 2px 6px;
  border-radius: 5px;
}

.pg-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pg-faq-stack { display: grid; gap: 14px; }
.pg-faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pg-faq-card h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 17px; line-height: 1.3; }
.pg-faq-card p { margin: 0; color: var(--muted); font-size: 15px; }

.pg-page-wrap { padding-top: 24px; padding-bottom: 48px; }
.pg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.pg-breadcrumb a { color: var(--teal); text-decoration: none; font-weight: 600; }
.pg-page-head { max-width: 780px; margin-bottom: 20px; }
.pg-page-head h1 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.18;
}
.pg-page-lead { margin: 0; font-size: 17px; color: var(--muted); }

.pg-answer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: var(--navy);
  color: var(--bg);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.pg-answer-cell { display: flex; flex-direction: column; gap: 4px; }
.pg-answer-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-dark); }
.pg-answer-val { font-size: 17px; font-weight: 700; color: var(--surface); }
.pg-mono { font-family: var(--font-mono); font-size: 22px; color: var(--brass); letter-spacing: 0.08em; }

.pg-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.pg-article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pg-guide-figure { margin: 0 0 24px; }
.pg-inline-faq { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

.pg-sidebar { display: grid; gap: 18px; position: sticky; top: 76px; }
.pg-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.pg-side-card h2 { margin: 0 0 12px; font-family: var(--font-head); font-size: 18px; }
.pg-side-codes, .pg-side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pg-side-codes a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.pg-side-codes a:hover { background: var(--surface-tint); }
.pg-side-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.pg-side-links a:hover { text-decoration: underline; }
.pg-side-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  min-height: 44px;
}
.pg-side-cta:hover { background: var(--accent-hover); color: var(--surface); }

.pg-comment-form { display: grid; gap: 14px; max-width: 680px; margin-bottom: 24px; }
.pg-form-row { display: grid; gap: 6px; }
.pg-form-row label { font-size: 14px; font-weight: 600; }
.pg-form-row input, .pg-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}
.pg-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.pg-btn-primary:hover { background: var(--accent-hover); color: var(--surface); }
.pg-btn-ghost, .pg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.pg-btn-ghost:hover, .pg-btn-outline:hover { background: var(--surface-tint); color: var(--ink); }
.pg-comment-msg { font-size: 14px; color: var(--teal); font-weight: 600; }
.pg-reply-banner { padding: 8px 12px; background: var(--surface-tint); border-radius: 8px; font-size: 14px; }
.pg-comments-list { display: grid; gap: 12px; }
.pg-comments-list[data-gf-empty]::after {
  content: "No field notes yet. Share your Port Gellhorn safe discovery above.";
  color: var(--muted);
  font-size: 14px;
}
.pg-comment-item { padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.pg-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pg-comment-meta strong { color: var(--ink); font-size: 14px; }
.pg-owner-badge { background: var(--teal); color: var(--surface); padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pg-reply-btn { margin-left: auto; background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 13px; }
.pg-comment-text { margin: 0; font-size: 15px; }
.pg-comment-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); display: grid; gap: 8px; }

.pg-legal-wrap, .pg-404-wrap { padding-top: 28px; padding-bottom: 56px; max-width: 820px; }
.pg-legal-card h1 { margin: 0 0 8px; font-family: var(--font-head); font-size: 32px; }
.pg-legal-meta { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.pg-404-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
}
.pg-404-card h1 { margin: 0 0 10px; font-family: var(--font-head); font-size: 34px; }
.pg-404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.pg-footer {
  background: var(--navy);
  color: var(--muted-dark);
  margin-top: 56px;
  padding: 40px 0 24px;
  border-top: 3px solid var(--teal);
}
.pg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.pg-footer-title { margin: 0 0 10px; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--surface); }
.pg-footer-desc { margin: 0 0 10px; font-size: 14px; color: var(--muted-dark); }
.pg-footer-disclaimer { margin: 0; font-size: 13px; color: var(--muted-dark); }
.pg-footer-col h2 { margin: 0 0 12px; font-family: var(--font-head); font-size: 15px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.05em; }
.pg-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pg-footer-col a { color: var(--bg); text-decoration: none; font-size: 14px; }
.pg-footer-col a:hover { color: var(--brass); }
.pg-footer-mail { margin: 14px 0 0; font-size: 13px; color: var(--muted-dark); }
.pg-footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--muted);
  font-size: 13px;
  color: var(--muted-dark);
}

@media (max-width: 880px) {
  .pg-split-brief, .pg-article-grid, .pg-footer-grid { grid-template-columns: 1fr; }
  .pg-sidebar { position: static; }
}

@media (max-width: 640px) {
  .pg-container { padding: 0 14px; }
  .pg-header-inner { gap: 8px; min-height: 48px; }
  .pg-brand { font-size: 15px; gap: 7px; }
  .pg-brand-mark { width: 24px; height: 24px; }
  .pg-nav { gap: 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .pg-nav::-webkit-scrollbar { display: none; }
  .pg-nav a { font-size: 13px; padding: 4px 0; }
  .pg-hero-band { padding: 10px 0 14px; }
  .pg-hero-head { margin-bottom: 10px; }
  .pg-hero-band h1 { font-size: 22px; margin-bottom: 4px; }
  .pg-hero-lead { font-size: 13px; line-height: 1.4; }
  .pg-action-bar { margin-top: 10px; gap: 8px; }
  .pg-pill-btn { padding: 6px 12px; font-size: 13px; }
  .pg-page-head h1 { font-size: 28px; }
  .pg-guide-grid, .pg-faq-grid { grid-template-columns: 1fr; }
  .pg-split-brief, .pg-route-band, .pg-prose-panel, .pg-comments-panel, .pg-article-main, .pg-legal-card { padding: 18px; }
  .pg-pill-link { margin-left: 0; }
  .pg-timeline-step { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; }
  .pg-step-num { width: 36px; height: 36px; font-size: 15px; }
}