/*
  Flat Verdict — shared stylesheet
  Visual direction: tidal-buoy log. Waterline paper, buoy ink, one signal orange.
  System fonts only. No images, no gradients, no shadows, no rounded corners.
*/

:root {
  --bg: #eef2f1;      /* waterline paper */
  --text: #1f2a2b;    /* buoy ink */
  --accent: #c05f2c;  /* signal orange */
  --accent-2: #6f7d7c;/* foghorn gray */
  --card: #f8faf9;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Courier New", "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* ---------- Links and focus ---------- */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--card);
  border: 1px solid var(--text);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus {
  top: 0.5rem;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--text);
}

.head-in {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand svg {
  flex: none;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.site-menu a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-decoration-thickness: 1px;
}

.menu-btn {
  display: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .js .menu-btn {
    display: inline-block;
  }
  .js .site-menu {
    display: none;
    width: 100%;
  }
  .js .site-menu.open {
    display: block;
  }
  .js .site-menu ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--accent-2);
    padding-top: 0.25rem;
  }
  .js .site-menu li a {
    display: block;
    padding: 0.5rem 0;
  }
}

/* ---------- Column and type ---------- */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0.75rem 0 1rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.mono {
  font-family: var(--mono);
}

.lede {
  font-size: 1.125rem;
}

/* ---------- Buoy rows (homepage sections) ---------- */

.buoy {
  position: relative;
  background: var(--card);
  border: 1px solid var(--text);
  border-top: 2px solid var(--text);
  padding: 0.75rem 1.25rem 1.25rem;
  margin: 0 0 1.75rem;
}

.buoy h2 {
  margin-top: 0.25rem;
}

.buoy-edge {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.buoy-no {
  color: var(--accent);
  font-weight: 700;
}

.buoy-depth {
  color: var(--accent-2);
}

/* The single orange margin tick — used on one section of the site only */
.tick::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 1.25rem;
  width: 3px;
  height: 2.75rem;
  background: var(--accent);
}

/* ---------- Disclosure box ---------- */

.disclosure {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.0625rem;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ---------- Lists with the buoy glyph bullet ---------- */

.buoy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.buoy-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.buoy-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.2em;
  width: 12px;
  height: 18px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18' viewBox='0 0 12 18'%3E%3Cline x1='6' y1='0.5' x2='6' y2='7.5' stroke='%23c05f2c' stroke-width='1'/%3E%3Ccircle cx='6' cy='12' r='4.5' fill='none' stroke='%23c05f2c' stroke-width='1'/%3E%3C/svg%3E");
}

.steps-list {
  padding-left: 1.5rem;
}

.steps-list li {
  margin-bottom: 0.6rem;
}

.steps-list li::marker {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Step pages ---------- */

.tide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.35rem 0;
  margin-bottom: 1rem;
}

.step-of {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin: 0;
}

.contents {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.contents h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.4rem;
}

.callout,
.summary,
.example {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout h3,
.summary h2,
.example h3 {
  margin-top: 0;
}

.summary {
  border-top: 2px solid var(--text);
}

/* The SWELL box — used on one page of the site only */
.swell {
  border: 2px solid var(--accent);
  background: var(--card);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.swell .label {
  color: var(--text);
}

.swell p:last-child {
  margin-bottom: 0;
}

/* Glossary strip */
.glossary {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  margin: 1.5rem 0;
  padding: 0.75rem 0;
}

.glossary dt {
  font-family: var(--mono);
  font-weight: 700;
  margin-top: 0.75rem;
}

.glossary dt:first-child {
  margin-top: 0;
}

.glossary dd {
  margin: 0.15rem 0 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
  font-size: 0.975rem;
}

th,
td {
  border: 1px solid var(--text);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  border-left: 1px solid var(--text);
}

.timeline li {
  padding: 0 0 1rem 1.25rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--text);
  background: var(--card);
}

.timeline strong {
  font-family: var(--mono);
}

/* Checklists: printed boxes, nothing stored */
.checklist-block {
  background: var(--card);
  border: 1px solid var(--text);
  border-top: 2px solid var(--text);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.checklist-block h2,
.checklist-block h3 {
  margin-top: 0;
}

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

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.7rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid var(--text);
  background: var(--bg);
}

.print-btn {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.print-btn:hover {
  border-color: var(--accent);
}

/* Affiliate link line */
.aff {
  border: 1px solid var(--text);
  background: var(--bg);
  padding: 0.75rem 1rem;
}

.aff-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.975rem;
}

/* Previous / next */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--text);
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.pager a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* FAQ and definition lists on legal pages */
.faq dt,
.checked dt {
  font-weight: 700;
  margin-top: 1rem;
}

.faq dd,
.checked dd {
  margin: 0.25rem 0 0;
}

address {
  font-style: normal;
}

.company {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.effective {
  font-family: var(--mono);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 0.5rem;
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--text);
  background: var(--card);
  font-size: 0.9375rem;
}

.foot-in {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.foot-in address {
  line-height: 1.5;
  margin-bottom: 1rem;
}

.foot-name {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.foot-links {
  margin-bottom: 0.75rem;
}

.foot-date {
  font-family: var(--mono);
  font-size: 0.875rem;
  margin: 0;
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .site-head,
  .skip,
  .print-btn,
  .pager,
  .contents,
  .menu-btn,
  .swell {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .buoy,
  .checklist-block,
  .callout,
  .summary,
  .example,
  .disclosure,
  table,
  .site-foot {
    background: #fff;
  }
  .checklist-block {
    break-inside: avoid;
    border-color: #000;
  }
  .checklist li::before {
    background: #fff;
    border-color: #000;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .tide,
  .buoy-edge {
    color: #000;
  }
}
