/* Hand-Harvesting Geoduck Clams – Print-Friendly Styles
   US Letter portrait, 1in margins, 6.5in centered main column, black-on-white. */

:root {
  --page-bg: #ffffff;
  --text-color: #000000;
  --accent-bg: #f5f5f5;
  --border-color: #cccccc;
  --heading-color: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.5;
}

/* Layout: main content column 6.5in wide and centered */

.page {
  max-width: 6.5in;
  margin: 0 auto;
  padding: 0.75in 0 1.5in;
}

/* Header & footer */

.site-header {
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.site-header .page {
  padding-top: 0.75in;
  padding-bottom: 0.5in;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 10pt;
  padding-bottom: 0.5in;
}

.site-footer .page {
  padding-top: 0.5rem;
  padding-bottom: 0;
}

/* Typography */

h1,
h2,
h3 {
  color: var(--heading-color);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.5rem; /* ~18 pt */
  line-height: 1.2;
}

.subtitle {
  margin-top: 0.25rem;
  font-style: italic;
}

.meta {
  margin-top: 0.5rem;
  font-size: 0.95em;
}

h2 {
  font-size: 1.2rem;
  margin-top: 1.25rem;
}

h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.key-links {
  list-style: disc;
}

a {
  color: #0645ad;
  text-decoration: underline;
}

/* Callouts and notes */

.callout,
.note,
.tip,
.disclaimer {
  border-left: 3px solid var(--border-color);
  background: var(--accent-bg);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* Two-column equipment layout */

.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
}

.cols > div {
  flex: 1 1 10rem;
  min-width: 0;
}

/* Checklist */

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 1px solid var(--border-color);
}

.checklist li span {
  flex: 1 1 auto;
}

/* Default: no extra symbol (checkbox handles UI on screen) */
.checklist li span::before {
  content: "";
}

/* Footnotes */

.footnotes {
  font-size: 0.9em;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

/* Print settings */

@page {
  size: letter portrait;
  margin: 1in; /* 1" margins on all sides */
}

@media print {

  body {
    background: #ffffff;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .site-header .page {
    padding-top: 0;
  }

  .site-footer {
    padding-top: 0.5rem;
    padding-bottom: 0;
  }

  /* Hide buttons and interactive controls when printing */
  .no-print,
  input[type="checkbox"],
  button {
    display: none !important;
  }

  /* Show simple box for checklist items when checkboxes are hidden */
  .checklist li span::before {
    content: "☐ ";
  }

  /* Keep URLs visible as text in links when printing */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}

/* Basic responsive adjustments for smaller screens */

@media screen and (max-width: 800px) {
  .page {
    padding: 1rem 0.75rem 1.5rem;
  }

  .site-header .page {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  .cols {
    flex-direction: column;
  }
}
