/* Occono publication styles. One accent: --accent. Loaded after each
   page's own <style> block so these rules win on equal specificity. */

:root {
  --bg: #0c0d10;
  --surface: #16181d;
  --surface-2: #1c2028;
  --text: #e8eaed;
  --text-soft: #c5c9d0;
  --muted: #9aa0a6;
  --accent: #6b9bff;
  --accent-ink: #0c0d10;
  --border: #2a2e36;
  --yes: #8fd0a8;
  --no: #f0a0a0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

::selection {
  background: rgba(107, 155, 255, 0.35);
  color: #fff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

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

h1, h2, .logo .word {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.5rem);
  line-height: 1.28;
  margin: 2.15rem 0 0.7rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 1.35rem 0 0.4rem;
  color: var(--text);
}

p, li {
  color: var(--text-soft);
}

.lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.4rem 0 0.95rem;
  margin: 0 0 1.6rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(107, 155, 255, 0.45);
}

a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  min-height: 32px;
}

a.logo:hover {
  text-decoration: none;
}

.logo .mark {
  display: block;
  flex: none;
}

.logo .word {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav a {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.badge {
  letter-spacing: 0.08em;
}

a.card {
  text-decoration: none;
}

a.card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.card h3,
a.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
  line-height: 1.3;
}

.meta {
  letter-spacing: 0.01em;
}

.article-main h1 {
  margin: 0.2rem 0 0.75rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

a.byline-id {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

a.byline-id:hover {
  text-decoration: none;
  color: var(--accent);
}

.byline img,
.author-box img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: var(--surface);
}

.byline-name {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
  color: inherit;
}

.byline-role,
.byline-meta,
.author-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--muted);
  line-height: 1.35;
}

.byline-meta {
  margin: 0;
}

.verdict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.05rem 1.15rem 1.15rem;
  margin: 0.35rem 0 1.6rem;
}

.verdict-kicker {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.verdict h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.42rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.verdict-suits {
  margin-top: 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0.35rem 0 1rem;
}

.pros-cons h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.pros-cons ul,
.verdict > ul,
.summary-points {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.pros-cons li,
.verdict li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.cta {
  display: inline-block;
  margin: 0.35rem 0.55rem 0.15rem 0;
  padding: 0.62rem 1.05rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
}

.toc {
  margin: 0 0 1.6rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(22, 24, 29, 0.9);
}

.toc h2 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.article-main h2,
.page-main h2,
main h2 {
  scroll-margin-top: 1rem;
}

p.tip {
  background: rgba(107, 155, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.95rem 0.75rem 1rem;
  margin: 1.15rem 0;
}

p.tip::before {
  content: "Tip";
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.article-main blockquote {
  margin: 1.1rem 0 1.2rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--accent);
  background: transparent;
}

.article-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.article-main .scroll {
  overflow-x: auto;
  margin: 1.25rem 0 1.35rem;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.article-main .scroll table {
  margin: 0;
}

.article-main > table,
.article-main h2 + table {
  margin: 1.25rem 0 1.35rem;
}

.article-main th,
.article-main td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.article-main tr:last-child td {
  border-bottom: none;
}

.article-main th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-main tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

td.cell-yes,
td.cell-no {
  font-weight: 650;
}

td.cell-yes {
  color: var(--yes);
}

td.cell-no {
  color: var(--no);
}

td.cell-yes::before,
td.cell-no::before {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.35em;
  vertical-align: -0.12em;
  content: "";
  background: center / contain no-repeat;
}

td.cell-yes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238fd0a8' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5-5L12.3 5.3z'/%3E%3C/svg%3E");
}

td.cell-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f0a0a0' d='M4.1 3.4 8 7.3l3.9-3.9 1.1 1.1L9.1 8.4l3.9 3.9-1.1 1.1L8 9.5l-3.9 3.9-1.1-1.1 3.9-3.9-3.9-3.9z'/%3E%3C/svg%3E");
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(107, 155, 255, 0.1);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  color: var(--text);
}

.author-box {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 2rem 0 0.5rem;
  padding: 1.05rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.author-box img {
  width: 56px;
  height: 56px;
}

.author-name {
  margin: 0 0 0.1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}

.author-name a {
  color: var(--text);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--accent);
}

.author-box p:last-child {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.editor-intro {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
}

.editor-intro img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
}

footer.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

body.home .container {
  max-width: 820px;
}

@media (max-width: 720px) {
  body {
    font-size: 1.02rem;
  }

  .container {
    padding: 1.15rem 1rem 2rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
    gap: 0.45rem 0.9rem;
  }

  .article-main .scroll {
    margin-left: 0;
    margin-right: 0;
  }

  .author-box,
  .editor-intro {
    flex-direction: row;
  }
}

@media (max-width: 420px) {
  .logo .word {
    font-size: 1.3rem;
  }

  .cta {
    display: block;
    text-align: center;
    margin-right: 0;
  }
}

/* Light reading theme for the whole site, including the homepage.
   Links use a darker blue: the accent fails contrast as text on this background. */
body.reading {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #16181d;
  --text-soft: #2a2e36;
  --muted: #4e5561;
  --border: #d9dde5;
  --yes: #0d6b3a;
  --no: #9d1c2e;
  --link: #1a4fbf;
  color-scheme: light;
}

body.reading ::selection {
  background: rgba(26, 79, 191, 0.18);
  color: var(--text);
}

body.reading a {
  color: var(--link);
}

body.reading a.logo,
body.reading a.logo:hover,
body.reading a.byline-id,
body.reading .author-name a,
body.reading .cta,
body.reading .side-cta {
  color: var(--text);
}

body.reading .cta,
body.reading .side-cta {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

body.reading .cta.secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--link);
}

body.reading .site-nav a,
body.reading .footer-links a,
body.reading .back {
  color: var(--muted);
}

body.reading .site-nav a:hover,
body.reading .site-nav a[aria-current="page"],
body.reading .footer-links a:hover {
  color: var(--text);
}

body.reading .verdict-kicker,
body.reading .method-kicker,
body.reading p.tip::before,
body.reading a.byline-id:hover,
body.reading .author-name a:hover,
body.reading .toc a:hover {
  color: var(--link);
}

body.reading .toc {
  background: var(--surface);
}

body.reading .toc a {
  color: var(--text);
  background: transparent;
}

body.reading .article-main tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

body.reading td.cell-yes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230d6b3a' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5-5L12.3 5.3z'/%3E%3C/svg%3E");
}

body.reading td.cell-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239d1c2e' d='M4.1 3.4 8 7.3l3.9-3.9 1.1 1.1L9.1 8.4l3.9 3.9-1.1 1.1L8 9.5l-3.9 3.9-1.1-1.1 3.9-3.9-3.9-3.9z'/%3E%3C/svg%3E");
}

body.home .hero-byline {
  align-items: center;
  margin: 1.15rem 0 0.15rem;
}

body.home .hero-byline p {
  margin: 0;
  color: var(--text-soft);
}

body.home .badge {
  color: var(--link);
  background: rgba(26, 79, 191, 0.08);
}

body.home .card {
  background: var(--surface);
}

body.home a.card:hover {
  border-color: var(--link);
}

body.home #free-guide li {
  color: var(--text-soft);
}

/* The Kit embed is a light card. Keep its own type and button, and
   stop the page heading styles from stretching the form title. */
body.home .formkit-form[data-uid="158b485d64"] {
  margin: 0.4rem 0 0.2rem;
}

body.home .formkit-form[data-uid="158b485d64"] h2 {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.25;
}

.method,
.updates {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1.05rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.method {
  border-left: 3px solid var(--accent);
}

.method-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link, var(--accent));
}

.method p:last-child,
.updates li:last-child {
  margin-bottom: 0.7rem;
}

.updates h2 {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.updates ul {
  margin: 0;
  padding-left: 1.15rem;
}

.updates li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.stated-winners caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 0.8rem 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.method-points {
  margin: 0.4rem 0 1.2rem;
  padding-left: 1.25rem;
}

.method-points li {
  margin-bottom: 0.85rem;
}

figure.screen {
  margin: 1.15rem 0 1.4rem;
}

figure.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

figure.screen figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-nav,
  .side-panel,
  .skip,
  .cta {
    display: none;
  }

  a {
    color: #111;
  }
}
