/* Innovabase — single stylesheet. Warm cream ground, pine and ember accents,
   separation by rule lines rather than shadow, 4px corners, centred column. */

:root {
  --paper:      #fbf8f3;
  --paper-2:    #f4efe5;
  --ink:        #211f1c;
  --ink-soft:   #4d4840;
  --pine:       #1d4b3e;
  --pine-deep:  #143328;
  --ember:      #8f4412;
  --rule:       #ddd5c7;
  --rule-firm:  #b9ae9a;
  --radius:     4px;
  --measure:    41rem;
  --step:       1.25rem;
  --sans:       "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif:      "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine-deep);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- focus ---------- */

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

/* ---------- links ---------- */

a { color: var(--pine); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--pine-deep); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main { display: block; }

.column {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---------- masthead ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-firm);
}

.head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--pine-deep);
  text-decoration: none;
}
.mark .mark-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--ember);
}
.mark small {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.menu-btn {
  font: inherit;
  font-size: .9rem;
  background: transparent;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  color: var(--ink);
  padding: .4rem .8rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.1rem;
}
.site-nav a {
  display: inline-block;
  padding: .3rem 0;
  font-size: .925rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--pine-deep); border-bottom-color: var(--rule-firm); }
.site-nav a[aria-current="page"] { color: var(--pine-deep); border-bottom-color: var(--ember); }

@media (max-width: 47.99em) {
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a { padding: .6rem 0; }
}
@media (min-width: 48em) {
  .menu-btn { display: none; }
  .site-nav[hidden] { display: block; }
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--pine-deep);
  line-height: 1.22;
  margin: 0 0 .6rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); margin-top: 2.4rem; }
h3 { font-size: 1.18rem; margin-top: 1.8rem; color: var(--ink); }
h4 { font-size: 1.02rem; margin-top: 1.3rem; color: var(--ink); }

p, ul, ol, dl, table { margin: 0 0 var(--step); }

.lede {
  font-size: 1.17rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin: 0 0 .5rem;
}

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ---------- page furniture ---------- */

.page-top { padding: 2.5rem 0 1rem; }
.page-body { padding-bottom: 3rem; }

.crumb {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.crumb a { color: var(--ink-soft); }

/* ---------- in-page contents ---------- */

.contents {
  border: 1px solid var(--rule-firm);
  border-left: 4px solid var(--pine);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 1.1rem 1.25rem .6rem;
  margin: 0 0 2rem;
}
.contents h2 {
  margin: 0 0 .6rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--ink-soft);
}
.contents ol { margin-bottom: .6rem; }
.contents li { margin-bottom: .3rem; }

/* ---------- panels ---------- */

.panel {
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0 0 var(--step);
  background: #fff;
}
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { margin-top: 0; }

.panel-tint { background: var(--paper-2); }

.panel-quick {
  border-left: 4px solid var(--ember);
  background: #fff;
}
.panel-quick .eyebrow { margin-bottom: .35rem; }

.panel-watch {
  border-left: 4px solid var(--ember);
  background: #fdf6ee;
}

.panel-disclosure {
  border: 2px solid var(--pine);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 0 0 2rem;
}
.panel-disclosure h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.panel-disclosure p { margin-bottom: .8rem; }
.panel-disclosure > :last-child { margin-bottom: 0; }

/* ---------- affiliate link + adjacent note ---------- */

.offer {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  margin: 1.5rem 0;
}
.offer > :last-child { margin-bottom: 0; }

.offer-link {
  display: inline-block;
  font-weight: 600;
  border: 1px solid var(--pine);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  color: var(--pine-deep);
  text-decoration: none;
  background: var(--paper-2);
}
.offer-link:hover { background: var(--pine); color: #fff; }

.offer-note {
  margin: .7rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- symptom index ---------- */

.index-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--step);
  border-top: 1px solid var(--rule);
}
.index-list li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.index-list a {
  display: block;
  padding: .85rem .25rem;
  text-decoration: none;
  color: var(--ink);
}
.index-list a:hover { background: var(--paper-2); }
.index-list .t {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--pine-deep);
  font-weight: 600;
}
.index-list .d {
  display: block;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* ---------- checklist ---------- */

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--rule-firm);
  border-radius: 2px;
  background: #fff;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .28rem;
  top: .55rem;
  width: .5rem;
  height: .28rem;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}

/* ---------- procedure ---------- */

.procedure { counter-reset: step; list-style: none; padding-left: 0; }
.procedure > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.15rem;
}
.procedure > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.procedure > li > strong { display: block; }

/* ---------- definitions ---------- */

.defs { margin: 0 0 var(--step); }
.defs dt {
  font-weight: 600;
  color: var(--pine-deep);
  margin-top: 1rem;
}
.defs dd { margin: .2rem 0 0; }

/* ---------- table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  margin: 0 0 var(--step);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  margin: 0;
  font-size: .96rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: .75rem .9rem;
  font-size: .9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--rule);
}
thead th {
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: 0; }

/* ---------- accordion ---------- */

.faq { border-top: 1px solid var(--rule); margin-bottom: var(--step); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: .85rem 2rem .85rem 0;
  font-weight: 600;
  color: var(--pine-deep);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: .75rem;
  font-size: 1.25rem;
  color: var(--ember);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- plain q&a ---------- */

.qa h3 { margin-top: 1.9rem; }

/* ---------- sections ---------- */

.band {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  margin-top: 2.6rem;
}
.band > h2:first-child { margin-top: 0; }

/* ---------- decorative svg ---------- */

.glyph { display: block; margin: 0 auto 1.5rem; max-width: 100%; height: auto; }

/* ---------- related ---------- */

.related ul { list-style: none; padding-left: 0; }
.related li { border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 3px solid var(--pine);
  background: var(--paper-2);
  margin-top: 3rem;
  padding: 2.2rem 0 2.6rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.site-foot .column { max-width: 48rem; }
.site-foot p { margin: 0 0 .3rem; }
.site-foot a { color: var(--pine-deep); }
.pub-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pine-deep);
  margin-bottom: .45rem !important;
}
.foot-links { margin: 1.1rem 0 1.2rem; }
.foot-links a { display: inline-block; padding: .15rem 0; }
.tm { margin-bottom: 1rem !important; }
.rev { color: var(--ink-soft); }

/* ---------- print-ish / small screens ---------- */

@media (max-width: 30em) {
  body { font-size: 1.02rem; }
  .wrap { padding: 0 1rem; }
  .offer-link { display: block; text-align: center; }
}

/* ---------- inline code ---------- */

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .08em .3em;
}
