/* Synthworks Online — single stylesheet. No external resources are requested. */

:root {
  --sand:      #fbf7f2;
  --paper:     #ffffff;
  --tint:      #f4ecec;
  --ink:       #2a1c2b;
  --muted:     #57454f;
  --line:      #ded0d4;
  --line-soft: #ece0e2;
  --plum:      #74294d;
  --plum-dark: #571d3a;
  --clay:      #9a4420;
  --radius:    4px;
  --gap:       1.5rem;
  --measure:   38rem;
  --serif:     Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans:      "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.22;
  color: var(--plum-dark);
  margin: 2.4rem 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; color: var(--ink); }
h4 { font-size: 1.02rem; color: var(--ink); }

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

a { color: var(--plum); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--clay); }

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

img, svg { max-width: 100%; height: auto; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--plum-dark); color: #fff;
  padding: 0.6rem 1rem; z-index: 60; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--line);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; color: var(--plum-dark); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.menu-btn {
  display: none;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  background: var(--tint); color: var(--plum-dark);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 0.85rem; cursor: pointer;
}

.nav { font-size: 0.95rem; }
.nav > ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav .drop-btn {
  display: block; padding: 0.45rem 0.6rem; text-decoration: none;
  color: var(--ink); border-radius: var(--radius); font-weight: 500;
}
.nav a:hover, .nav .drop-btn:hover { background: var(--tint); color: var(--plum-dark); }
.nav a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--clay); }

.drop { position: relative; }
.drop-btn { font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.drop-btn::after { content: " \25BE"; font-size: 0.75em; color: var(--muted); }
.drop-panel {
  position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 17rem; margin: 0; padding: 0.4rem;
  list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(42, 28, 43, 0.12);
}
.drop-panel[hidden] { display: none; }
.drop-panel a { padding: 0.5rem 0.6rem; font-size: 0.92rem; }

/* ---------- 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.2rem; margin-bottom: 1.6rem; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--clay); margin: 0 0 0.5rem;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 2.5rem; align-items: start; }
.prose { min-width: 0; max-width: 42rem; }
.prose > * { max-width: var(--measure); }
.prose > table, .prose > .table-wrap, .prose > .panel, .prose > .cmp, .prose > .disclosure { max-width: none; }

.rail { position: sticky; top: 1rem; font-size: 0.92rem; }
.rail-box {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--plum); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-bottom: 1.2rem;
}
.rail-box h2, .rail-box h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--sans); color: var(--muted); margin: 0 0 0.6rem; }
.rail-box ul, .rail-box ol { margin: 0; padding-left: 1.1rem; }
.rail-box li { margin-bottom: 0.45rem; }
.rail-box dt { font-weight: 700; color: var(--plum-dark); margin-top: 0.7rem; }
.rail-box dd { margin: 0.15rem 0 0; color: var(--muted); }

/* ---------- hero card ---------- */
.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--plum);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.4rem;
  margin-bottom: 2rem;
}
.hero h1 { margin-bottom: 0.6rem; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 1.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.hero-facts dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.hero-facts dd { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- disclosure ---------- */
.disclosure {
  background: #fdf3ea;
  border: 1px solid #e3c4a8;
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.8rem 0;
}
.disclosure h2 {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--clay); margin: 0 0 0.5rem;
}
.disclosure p { margin-bottom: 0.7rem; max-width: var(--measure); }
.disclosure p:last-child { margin-bottom: 0; }

.aff-note {
  font-size: 0.95rem; color: var(--muted);
  border-left: 3px solid #e3c4a8; padding-left: 0.85rem;
  margin: 0.7rem 0 1.6rem; max-width: var(--measure);
}

.cta {
  display: inline-block;
  background: var(--plum); color: #fff;
  font-weight: 600; text-decoration: none;
  padding: 0.7rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--plum-dark);
}
.cta:hover { background: var(--plum-dark); color: #fff; }

/* ---------- panels ---------- */
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.6rem 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }
.panel-tint { background: var(--tint); border-color: var(--line); }
.panel-method { border-left: 5px solid var(--clay); }
.panel-watch { border-left: 5px solid var(--plum); background: var(--tint); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0; }
caption { text-align: left; font-size: 0.85rem; color: var(--muted); padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--tint); color: var(--plum-dark); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody th { font-weight: 600; color: var(--plum-dark); width: 30%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- lists ---------- */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: 0.65rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.72rem; height: 0.72rem; border: 2px solid var(--clay); border-radius: 2px;
}

.deflist dt { font-weight: 700; color: var(--plum-dark); margin-top: 1rem; }
.deflist dd { margin: 0.2rem 0 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 1.85rem; height: 1.85rem; line-height: 1.85rem; text-align: center;
  background: var(--plum); color: #fff; border-radius: 50%;
  font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
}

/* ---------- accordion ---------- */
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 1.4rem 0; }
.qa-item + .qa-item { border-top: 1px solid var(--line-soft); }
.qa-q {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font: inherit; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; text-align: left;
  color: var(--plum-dark); background: none; border: 0; cursor: pointer;
  padding: 0.95rem 1.1rem;
}
.qa-q:hover { background: var(--tint); }
.qa-q .sign { color: var(--clay); font-family: var(--sans); font-size: 1.2rem; line-height: 1; }
.qa-a { padding: 0 1.1rem 1.1rem; }
.qa-a > :first-child { margin-top: 0; }
.qa-a > :last-child { margin-bottom: 0; }
.qa-a[hidden] { display: none; }

/* ---------- cards / links ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card {
  display: block; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--plum); background: var(--tint); color: var(--ink); }
.card strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--plum-dark); margin-bottom: 0.35rem; }
.card span { font-size: 0.93rem; color: var(--muted); }

.source-note { font-size: 0.93rem; color: var(--muted); }

.timeline { list-style: none; padding-left: 1.2rem; border-left: 2px solid var(--line); margin: 1.4rem 0; }
.timeline li { position: relative; margin-bottom: 1.1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.62rem; top: 0.55rem;
  width: 0.62rem; height: 0.62rem; background: var(--clay); border-radius: 50%;
}
.timeline strong { display: block; color: var(--plum-dark); font-family: var(--serif); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--paper);
  border-top: 3px double var(--line);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; }
.publisher { font-style: normal; line-height: 1.75; }
.publisher .pub-site { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--plum-dark); }
.publisher .pub-co { display: block; font-weight: 600; color: var(--ink); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; padding: 0; margin: 0 0 1rem; }
.foot-links li { margin: 0; }
.foot-links li + li::before { content: "\00B7"; margin-right: 0.9rem; color: var(--line); }
.trademark { max-width: 34rem; }
.reviewed { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .rail { position: static; }
}

@media (max-width: 48rem) {
  body { font-size: 1.0125rem; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.35rem; }
  .menu-btn { display: block; }
  .masthead-in { flex-wrap: wrap; }
  .nav { flex-basis: 100%; }
  .nav[hidden] { display: none; }
  .nav > ul { display: block; border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.3rem; }
  .nav a, .nav .drop-btn { padding: 0.62rem 0.35rem; width: 100%; text-align: left; }
  .drop-panel { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 0.4rem 0.6rem; padding: 0; min-width: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero { padding: 1.3rem 1.1rem; }
}

@media print {
  .masthead, .rail { display: none; }
}
