/* Standalone field-guide documents: bundled, no external typefaces or tracking.
   Keep link colors/contrast, focus rings, print flow and text zoom independent
   of the application shell (these pages also open without JavaScript). */
:root {
  color-scheme: light;
  --ink: #172d29; --jade: #38665c; --paper: #f8f7f1;
  --rule: #c6d2ca; --surface: #e9eee8; --accent: #d5fc00;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --measure: 48rem;
}
* { box-sizing: border-box; }
.guide-document { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.66 system-ui, -apple-system, sans-serif; overflow-wrap: anywhere; }
.guide-document > header {
  color: var(--paper); background: var(--ink); border-block-end: 3px solid var(--accent);
  padding: calc(clamp(1.25rem, 3vw, 2.25rem) + env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--measure)) / 2))
    clamp(1.9rem, 6vw, 4.5rem)
    max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--measure)) / 2));
}
.guide-document > header a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-size: .85rem; letter-spacing: .07em; font-weight: 650; }
.guide-document > header :is(strong,h1) {
  display: block; margin: clamp(1rem, 4vw, 2rem) 0 0; font: 400 clamp(2.9rem, 8vw, 5.1rem)/1 var(--serif);
  letter-spacing: -.05em; text-wrap: balance;
}
.guide-document > header p { color: #dce6d9; margin: 1.25rem 0 0; }
.guide-document main {
  width: min(100%, calc(var(--measure) + 2 * var(--gutter))); margin: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3rem, 7vw, 5rem) max(var(--gutter), env(safe-area-inset-left));
}
.guide-document main > section { padding: clamp(1.4rem, 4vw, 2.25rem) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.guide-document main :is(h1,h2) {
  margin: 0 0 .85rem; font: 400 clamp(1.6rem, 3.8vw, 2.35rem)/1.12 var(--serif); letter-spacing: -.035em; text-wrap: balance;
}
.guide-document p { margin: .8rem 0; }
.guide-document :is(p,li):last-child { margin-bottom: 0; }
.guide-document :is(ul,ol) { padding-inline-start: 1.4rem; }
.guide-document li + li { margin-top: .5rem; }
.guide-document li::marker { color: var(--jade); font-weight: 650; }
.guide-document a { color: #265e50; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.guide-document a:focus-visible { outline: 3px solid #297c7d; outline-offset: 4px; box-shadow: 0 0 0 4px #fff; }
.guide-document .meta {
  width: fit-content; margin: 0 0 .6rem; padding: .7rem 1rem; border-inline-start: 3px solid var(--jade);
  background: var(--surface); color: #2b5244; font-size: .8rem; line-height: 1.5; font-weight: 650; letter-spacing: .055em;
}
.guide-document main > .contact { padding: clamp(1.05rem,3vw,2rem); background: var(--surface); border: 1px solid var(--rule); border-radius: .95rem; }
.guide-document .contact a.button { display: inline-flex; align-items: center; max-width: 100%; min-height: 48px; margin-top: .5rem; padding: .65rem 1rem; background: var(--ink); color: #fff; border-radius: .6rem; text-decoration: none; font-size: .82rem; font-weight: 650; line-height: 1.5; }
.guide-document .warning { padding: 1rem; border-inline-start: 3px solid #a35b3b; background: #f6eee7; }
.guide-document footer { padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); background: var(--ink); color: #edf2e8; text-align: center; font-size: .82rem; }
.guide-document footer a { color: #e1edbd; }
.document-photo-credits { --measure: 58rem; }
.document-photo-credits section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3.5vw, 2.25rem); align-items: start; }
.document-photo-credits section img { display: block; width: 100%; height: auto; border-radius: .8rem; background: var(--surface); }
.document-photo-credits section h2 { text-transform: capitalize; }
.document-photo-credits section p { font-size: .93rem; }
.document-photo-credits section:target { outline: 2px solid var(--jade); outline-offset: .5rem; }
@media (max-width: 640px) {
  .document-photo-credits section { grid-template-columns: 1fr; }
}
@media print {
  .guide-document { background: white; color: black; font-size: 11pt; }
  .guide-document header,.guide-document footer,.guide-document .meta { background: none; color: black; border-color: #777; padding: .75rem 0; }
  .guide-document main { width: 100%; padding: 0; }
  .guide-document header a,.guide-document footer a { color: black; }
  .guide-document main :is(h1,h2) { break-after: avoid; }
  .document-photo-credits section { break-inside: avoid; }
}
