/* Shared stylesheet for the meetergo comparison references.
   Layout: edition bar, masthead, three-column reference grid
   (topic rail, article, featured box). Accent is set per site. */
:root {
  --ink: #18222d;
  --ink-soft: #4d5965;
  --paper: #f7f6f1;
  --card: #ffffff;
  --line: #dcdcd2;
  --accent: #1e4f8c;
  --accent-soft: #e8eef6;
  --mark: #fff5d6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eaee;
    --ink-soft: #a9b0ba;
    --paper: #14181d;
    --card: #1b2027;
    --line: #2d343d;
    --accent-soft: #1f2a38;
    --mark: #3a3420;
  }
  :root:not([data-theme="light"]) a { color: color-mix(in srgb, var(--accent) 55%, white); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img, svg, canvas { max-width: 100%; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 5; }

/* Edition bar carries the ownership disclosure on every page. */
.edition { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding: 9px 4%; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.edition strong { color: var(--ink); font-weight: 600; }

header.mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 26px 4%; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font: 600 24px/1.15 var(--serif); }
.brand small { display: block; margin-top: 6px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }
header.mast nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
header.mast nav a { color: var(--ink); text-decoration: none; }
header.mast nav a:hover { color: var(--accent); }
.cta { display: inline-block; padding: 9px 16px; border-radius: 6px; background: var(--accent);
  color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cta:hover { filter: brightness(1.1); }

main { max-width: 1320px; margin: 0 auto; padding: 26px 4% 72px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 30px; padding: 0;
  font-size: 12px; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; }

.grid { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; gap: 44px; }
.rail { font-size: 13px; border-right: 1px solid var(--line); padding-right: 18px; align-self: start;
  position: sticky; top: 18px; }
.rail a { display: block; margin: 9px 0; color: var(--ink); text-decoration: none; }
.rail a:hover { color: var(--accent); }
.eyebrow, .rail strong { display: block; font: 600 11px/1.5 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }
article { min-width: 0; }
h1 { font: 500 clamp(34px, 4.6vw, 58px)/1.06 var(--serif); letter-spacing: -.02em; margin: 6px 0 24px; }
h2 { font: 500 28px/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 16px; }
h3 { font: 600 19px/1.3 var(--serif); margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.answer { border-top: 3px solid var(--accent); padding: 20px 0 6px; font-size: 19px; line-height: 1.55; }
.answer p { margin: 8px 0 12px; }
.disclosure { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px;
  font-size: 14px; line-height: 1.55; margin: 6px 0 26px; }
.note { font-size: 13px; color: var(--ink-soft); }
.toc { border: 1px solid var(--line); background: var(--card); padding: 16px 22px; margin: 26px 0 8px; font-size: 14px; }
.toc ol { columns: 2; column-gap: 28px; margin: 6px 0 0; }
.toc li { break-inside: avoid; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 22px 0 0; font-size: 13px; }
.chain span { border: 1px solid var(--line); background: var(--card); padding: 3px 10px; border-radius: 999px; }
.chain i { font-style: normal; color: var(--ink-soft); }

section { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card p { margin: 0; font-size: 15px; }

/* Directory */
.dir { display: grid; gap: 16px; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.entry.own { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.entry h3 { font-size: 22px; margin: 2px 0 6px; }
.badge { display: inline-block; font: 600 11px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.entry dl { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0; font-size: 14px; }
.entry dt { color: var(--ink-soft); }
.entry dd { margin: 0; }
.entry dd sup a, .src { font-size: 11px; text-decoration: none; }
.entry .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }

table.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.compare th, table.compare td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { font-weight: 600; background: var(--accent-soft); }
table.compare tr:last-child td { border-bottom: 0; }

.entries { display: grid; gap: 22px; }
.guide h3 { font-size: 21px; }
.check { list-style: none; padding: 0; }
.check li { padding-left: 26px; position: relative; }
.check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px;
  border: 2px solid var(--accent); border-radius: 2px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 4px; }
.sources li { font-size: 14px; }
.cite { font-size: 14px; background: var(--card); border: 1px solid var(--line); padding: 14px 18px; border-radius: 8px; }

aside.featured { align-self: start; position: sticky; top: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px; font-size: 13px; }
aside.featured h2 { font-size: 22px; margin: 4px 0 10px; }
aside.featured dl { margin: 0 0 14px; }
aside.featured dt { color: var(--ink-soft); margin-top: 8px; }
aside.featured dd { margin: 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 4% 40px; font-size: 13px; color: var(--ink-soft); }
footer.site .wrap { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: inherit; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 30px; }

/* Signature tool */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 4px 0 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs button, .tool button, .tool select, .tool input[type="text"] { font: inherit; font-size: 14px; }
.tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pad { position: relative; border: 2px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; }
.pad canvas { display: block; width: 100%; height: 240px; cursor: crosshair; }
.pad .hint { position: absolute; inset: auto 0 12px 0; text-align: center; font-size: 13px; color: #8a9097; pointer-events: none; }
.pad .baseline { position: absolute; left: 8%; right: 8%; bottom: 52px; border-bottom: 1px solid #d8d8d8; pointer-events: none; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; font-size: 14px; }
.controls label { display: inline-flex; align-items: center; gap: 6px; }
.tool .btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.tool .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tool input[type="text"] { width: min(100%, 360px); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.tool .panel[hidden] { display: none; }
.typed { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.typed button { border: 1px solid var(--line); background: #fff; color: #111; border-radius: 8px; padding: 14px 10px; font-size: 30px; cursor: pointer; line-height: 1.2; }
.typed button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.preview { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.preview .checker { background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px; min-height: 70px; min-width: 160px; display: grid; place-items: center; }
.preview img { max-height: 90px; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: minmax(0, 1fr) 240px; }
  .rail { display: none; }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  aside.featured { position: static; }
  .toc ol { columns: 1; }
  .entry dl { grid-template-columns: 1fr; gap: 2px; }
  .entry dt { margin-top: 6px; }
  header.mast { padding: 18px 16px; }
  header.mast nav { display: none; }
  main { padding: 18px 16px 56px; }
  .edition { padding: 8px 16px; }
  footer.site { padding: 24px 16px 36px; }
}
