/* Everworks — comparison library. First-party stylesheet, no external imports. */

:root {
  --paper: #faf6f0;
  --panel: #ffffff;
  --tint: #f3ebe2;
  --ink: #241a26;
  --ink-soft: #4d4150;
  --plum: #5f2a54;
  --plum-deep: #401c39;
  --amber: #8a4b0f;
  --line: #ded0c4;
  --line-strong: #c3b0a1;
  --radius: 4px;
  --step: 1.25rem;
  --measure: 40rem;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--plum-deep);
  line-height: 1.22;
  margin: 2.2rem 0 0.8rem;
  font-weight: 600;
}

h1 { font-size: 2.15rem; margin-top: 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--line); }
h3 { font-size: 1.2rem; color: var(--plum); }
h4 { font-size: 1.02rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber); }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.05rem; }

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

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

strong { color: var(--plum-deep); }

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

/* ---------- masthead ---------- */
.masthead {
  background: var(--plum-deep);
  color: #f6ecdf;
  border-bottom: 4px solid var(--amber);
}
.masthead a { color: #f6ecdf; }
.bar {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark .glyph {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}
.strap {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9c4b1;
  margin-left: auto;
}

.menu-toggle {
  margin-left: auto;
  background: transparent;
  color: #f6ecdf;
  border: 1px solid #8d6a80;
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

nav.primary {
  border-top: 1px solid #6c4762;
  background: var(--plum);
}
nav.primary > ul {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
nav.primary li { max-width: none; position: relative; }
nav.primary a, nav.primary button.group {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: #f6ecdf;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
nav.primary a:hover, nav.primary button.group:hover { background: var(--plum-deep); color: #fff; }
nav.primary a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); }
nav.primary button.group::after { content: " \25be"; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  background: var(--plum-deep);
  border: 1px solid #7a5370;
  border-radius: var(--radius);
  min-width: 15rem;
}
@media (min-width: 46rem) {
  .submenu { position: absolute; top: 100%; left: 0; z-index: 30; }
}
.submenu a { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.shell {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.6rem 1rem 3rem;
}
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
  .rail { position: sticky; top: 1rem; }
}

.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.crumbs a { color: var(--ink-soft); }

/* ---------- hero card ---------- */
.hero {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--plum);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.2rem;
  margin-bottom: 1.6rem;
}
.hero p:last-child { margin-bottom: 0; }
.hero .lede { font-size: 1.1rem; color: var(--ink-soft); }

.meta-line {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px dotted var(--line-strong);
  padding-top: 0.7rem;
  margin-top: 1rem;
  max-width: none;
}

/* ---------- disclosure ---------- */
.disclosure {
  background: #fff5e4;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.6rem 0;
}
.disclosure h2, .disclosure h3 {
  margin-top: 0;
  font-family: var(--sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 0;
  padding: 0;
}
.disclosure p:last-child { margin-bottom: 0; }

.paid-note {
  font-size: 1rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding-left: 0.8rem;
  margin: 0.6rem 0 1.4rem;
}

/* ---------- panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  margin: 1.5rem 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel.tint { background: var(--tint); }
.panel.method { border-top: 5px solid var(--plum); }
.panel.watch { border-top: 5px solid var(--amber); }
.panel.quick { border-top: 5px solid var(--line-strong); background: var(--tint); }

.rail .panel { padding: 1rem; font-size: 0.94rem; }
.rail h2, .rail h3 { font-size: 1rem; border: 0; padding: 0; margin-top: 0; }
.rail ul { padding-left: 1.1rem; }
.rail li { margin-bottom: 0.4rem; }

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

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.3rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
  background: var(--panel);
}
caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
}
th, td {
  border: 1px solid var(--line-strong);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
thead th { background: var(--tint); color: var(--plum-deep); }
tbody th { background: #fbf7f3; font-weight: 600; }

/* ---------- lists ---------- */
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
dl { margin: 1.2rem 0; }
dt { font-weight: 600; color: var(--plum-deep); margin-top: 1rem; }
dd { margin: 0.2rem 0 0; padding-left: 0; max-width: var(--measure); }

.plain { list-style: none; padding-left: 0; }
.plain li { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }

/* ---------- accordion ---------- */
.qa {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  margin: 0.7rem 0;
}
.qa summary {
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--plum-deep);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+ "; color: var(--amber); font-weight: 700; }
.qa[open] summary::before { content: "\2212 "; }
.qa .qa-body { padding: 0 1rem 0.6rem; border-top: 1px solid var(--line); }
.qa .qa-body p:first-child { margin-top: 0.9rem; }

/* ---------- figure ---------- */
figure { margin: 1.6rem 0; }
figure svg { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
figcaption { font-size: 0.87rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- footer ---------- */
footer.publisher {
  background: var(--plum-deep);
  color: #ece0d3;
  border-top: 4px solid var(--amber);
  padding: 2rem 1rem 2.4rem;
  font-size: 0.93rem;
}
footer.publisher a { color: #f7ddbb; }
.foot-inner { max-width: 68rem; margin: 0 auto; display: grid; gap: 1.4rem; }
@media (min-width: 52rem) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
footer.publisher p, footer.publisher li { max-width: 34rem; }
footer.publisher .pub-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: 0.3rem; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.foot-links li { margin: 0; }
.trademark { font-size: 0.85rem; color: #d3c1b1; }
.reviewed { font-size: 0.85rem; color: #d3c1b1; }
