/* Prowave — prowave.online
   Single stylesheet for the whole site. No external resources are requested. */

:root {
  --paper:   #f6f3ea;
  --card:    #fffdf8;
  --tint:    #ece6d6;
  --line:    #d6cfbc;
  --line-2:  #b9b09a;
  --ink:     #1b1a15;
  --body:    #33312a;
  --muted:   #55513f;
  --moss:    #2c3823;
  --moss-2:  #435634;
  --clay:    #8a3311;
  --clay-2:  #6d280c;
  --radius:  4px;
  --gap:     1.25rem;
  --measure: 68ch;
  --serif:   "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 2.2rem 0 0.75rem;
  font-weight: 600;
}
h1 { font-size: 2.1rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; padding-top: 0.4rem; }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 700; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

p, ul, ol, dl, table, figure { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--clay-2); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { color: var(--ink); }
abbr { text-decoration: none; border-bottom: 1px dotted var(--line-2); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--moss); color: #fff; padding: 0.7rem 1rem; z-index: 60;
}
.skip:focus { left: 0; }

/* ---------- shell ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

.site-head { background: var(--moss); color: #f2efe3; border-bottom: 4px solid var(--moss-2); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; color: #fffdf8; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; }
.brand:hover { color: #fff; }
.brand .brand-dom { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cbd3bf; }
.head-tag { font-size: 0.82rem; color: #cbd3bf; max-width: 22rem; text-align: right; }

.nav-toggle {
  display: none; background: transparent; color: #f2efe3; border: 1px solid #7b8c6c;
  border-radius: var(--radius); font: inherit; font-size: 0.95rem; padding: 0.45rem 0.8rem; cursor: pointer;
}

.site-nav { border-top: 1px solid #47583a; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-list > li > a, .nav-list > li > .drop-btn {
  display: block; padding: 0.7rem 0.9rem; color: #eef0e5; text-decoration: none;
  font-size: 0.95rem; background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.nav-list > li > a:hover, .nav-list > li > .drop-btn:hover { background: var(--moss-2); color: #fff; }
.nav-list > li > a[aria-current="page"] { background: var(--moss-2); color: #fff; box-shadow: inset 0 -3px 0 var(--clay); }
.drop-btn::after { content: " \25BE"; font-size: 0.75em; }
.drop-panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 16rem;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0.35rem;
  list-style: none; margin: 0;
}
.drop-panel.open { display: block; }
/* Fallback for pointer users if the script does not run. The script remains the
   primary mechanism and keeps aria-expanded in step with it. */
@media (min-width: 52.0625rem) and (hover: hover) {
  .nav-list > li:hover > .drop-panel { display: block; }
}
.drop-panel li { margin: 0; }
.drop-panel a { display: block; padding: 0.5rem 0.65rem; color: var(--body); text-decoration: none; font-size: 0.95rem; }
.drop-panel a:hover { background: var(--tint); color: var(--clay-2); text-decoration: underline; }

/* ---------- main layout ---------- */
main { display: block; padding: 2rem 0 3rem; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: var(--measure); }
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; margin-bottom: 1.6rem; }
.kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss-2); margin: 0 0 0.5rem; font-weight: 700; }

article > p, article > ul, article > ol, article > h2, article > h3, article > dl { max-width: var(--measure); }

.cols { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) {
  .cols { grid-template-columns: minmax(0, 1fr) 19rem; }
  .cols > aside { position: sticky; top: 1rem; }
}

/* ---------- boxes ---------- */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1.4rem; }
.box > :last-child { margin-bottom: 0; }
.box h2, .box h3 { margin-top: 0; }

.box-disclosure { border-left: 6px solid var(--clay); background: #fdf6ee; border-color: #e3cdb9; }
.box-method { border-left: 6px solid var(--moss-2); background: #f0f2e7; border-color: #ccd3bd; }
.box-watch { border-left: 6px solid #9a6b12; background: #fbf4e2; border-color: #e0d0a6; }
.box-answer { border-left: 6px solid var(--moss); background: var(--tint); border-color: var(--line-2); }

aside .box { font-size: 0.97rem; }

.cardgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .cardgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .cardgrid.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- affiliate link block ---------- */
.aff { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid #e0c9b4; border-radius: var(--radius); background: #fdf6ee; max-width: var(--measure); }
.aff p { margin: 0 0 0.7rem; }
.aff p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--clay); color: #fffdf8; text-decoration: none;
  padding: 0.7rem 1.15rem; border-radius: var(--radius); font-weight: 600; border: 1px solid var(--clay-2);
}
.btn:hover { background: var(--clay-2); color: #fff; text-decoration: underline; }
.aff-note { font-size: 1rem; color: var(--muted); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 0.6rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; margin: 0; }
caption { text-align: left; padding: 0.8rem 0.9rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); color: var(--ink); border-bottom: 2px solid var(--line-2); }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.tnote { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- lists ---------- */
dl.deflist { margin-bottom: 1.2rem; }
dl.deflist dt { font-weight: 700; color: var(--ink); margin-top: 0.9rem; }
dl.deflist dd { margin: 0.2rem 0 0; padding-left: 0; }

ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 0.95rem; height: 0.95rem;
  border: 2px solid var(--moss-2); border-radius: 2px; background: var(--card);
}

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--moss); color: #fffdf8;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; font-family: var(--sans);
}

.proscons { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }
@media (min-width: 46rem) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; background: var(--card); }
.proscons h3 { margin-top: 0; font-size: 1rem; }
.proscons ul { margin-bottom: 0; }

/* ---------- accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 1.4rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 600;
  color: var(--ink); padding: 0.9rem 1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-q:hover { background: var(--tint); }
.faq-q .sign { color: var(--clay); font-weight: 700; }
.faq-a { padding: 0 1rem 1rem; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- home sections ---------- */
.section { padding: 1.9rem 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0.5rem; }
.section.tinted { background: var(--tint); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.hero { padding: 2.2rem 0 1.4rem; }
.hero h1 { max-width: 20ch; }
.qlist { list-style: none; padding-left: 0; max-width: var(--measure); }
.qlist li { border-left: 3px solid var(--moss-2); padding-left: 0.9rem; margin-bottom: 0.9rem; }

/* ---------- misc ---------- */
figure.mark { margin: 0 0 1.4rem; }
svg.illus { display: block; width: 100%; height: auto; max-width: 30rem; }
.related { border-top: 2px solid var(--line-2); padding-top: 1rem; margin-top: 2.5rem; }
.related ul { list-style: none; padding-left: 0; }
.related li { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.meta { font-size: 0.92rem; color: var(--muted); }
.crumbs { font-size: 0.9rem; margin: 0 0 1rem; color: var(--muted); }
.crumbs a { color: var(--moss-2); }

/* ---------- footer ---------- */
.site-foot { background: var(--moss); color: #dfe3d4; border-top: 5px solid var(--clay); padding: 2.2rem 0 2.6rem; font-size: 0.97rem; }
.site-foot a { color: #f0d9c6; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.1fr 1fr; } }
@media (min-width: 72rem) { .foot-grid { grid-template-columns: 1.1fr 1fr 0.9fr; } }
.foot-nav { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: 0.3rem; }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: #fffdf8; margin: 0 0 0.35rem; }
.publisher { font-style: normal; line-height: 1.7; }
.publisher span { display: block; }
.foot-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.foot-links li { margin: 0; }
.tm { border-top: 1px solid #47583a; margin-top: 1.6rem; padding-top: 1rem; color: #c8cfbb; max-width: 70ch; }
.reviewed { color: #c8cfbb; margin: 0.6rem 0 0; }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .head-tag { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li { border-bottom: 1px solid #47583a; }
  .drop-panel { position: static; min-width: 0; margin: 0 0 0.4rem 0.6rem; }
  .cols { gap: 1.6rem; }
}

@media print {
  .site-head, .aff { display: none; }
  body { background: #fff; }
}
