/* Content pages: the comparison, features, themes gallery, use cases and blog. Sits on site.css and tools.css. */

.navlinks a { white-space: nowrap; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--faint); }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); color: color-mix(in srgb, var(--faint) 50%, transparent); }
.crumbs [aria-current] { color: var(--muted); }

/* ---------- hero extras ---------- */
.t-hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.t-hero .fine { margin-top: 12px; }
.t-hero .eyebrow { margin-top: 14px; }
.t-hero .eyebrow + h1 { margin-top: 8px; }

/* ---------- prose: long-form text ---------- */
.art { max-width: 44em; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.art > * + * { margin-top: 16px; }
.art h2 { color: var(--fg); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.035em; line-height: 1.05; margin-top: 44px; }
.art h3 { color: var(--fg); font-weight: 750; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin-top: 30px; }
.art h2 + *, .art h3 + * { margin-top: 12px; }
.art b, .art strong { color: var(--fg); }
.art a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.art a:hover { color: var(--accent); }
.art ul, .art ol { padding-left: 1.3em; display: grid; gap: 8px; }
.art li::marker { color: var(--accent); font-weight: 700; }
.art code { font-family: var(--mono); font-size: .86em; padding: 2px 6px; border-radius: 7px; background: var(--field); box-shadow: 0 0 0 1px var(--line); color: var(--fg); overflow-wrap: anywhere; }
.art blockquote { margin-inline: 0; padding: 14px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--bevel), 0 0 0 1px var(--line); color: var(--fg); }
.art .note { font-size: 14.5px; color: var(--faint); }
.art figure { margin: 26px 0; }
.art figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); }
.art .t-table { font-size: 15px; }
.art .t-table td:first-child { font-family: inherit; font-size: inherit; white-space: normal; }
.art .t-table code { white-space: nowrap; overflow-wrap: normal; }
.art .t-table th, .art .t-table td { padding-inline: 8px; }
.post-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--faint); }
.toc { margin-top: 22px; padding: 18px 22px; border-radius: 22px; max-width: 44em; }
.toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--muted); }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---------- two columns: words and a picture ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }
.split .art { margin-top: 0; }
.showcase { padding: 24px; display: grid; gap: 12px; }
.showcase .mini { display: grid; gap: 10px; }
.showcase .cap { font-size: 13.5px; color: var(--faint); text-align: center; }

/* ---------- a row of facts ---------- */
.factrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 22px; }
.factrow > div { padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.factrow b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.factrow p { color: var(--muted); font-size: 15px; }
.factrow .big { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- link cards (hubs, related pages) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 22px; }
.lcard { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 26px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--bevel), var(--shadow-lg), 0 0 0 1px var(--line); }
.lcard .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.lcard h3 { font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.lcard p { color: var(--muted); font-size: 15px; }
.lcard .go { font-weight: 700; font-size: 14.5px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; margin-top: 2px; }
.lcard .go::after { content: "→"; transition: transform .3s var(--spring); }
.lcard:hover .go::after { transform: translateX(4px); }
.lcard .thumbs { display: flex; gap: 6px; margin-bottom: 8px; }
.lcard .thumbs img { width: 33%; height: auto; aspect-ratio: 393 / 560; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: var(--field); }

/* ---------- comparison table (as on /pricing) ---------- */
.cmp-panel { padding: 10px; margin-top: 22px; }
.cmp-wrap { overflow-x: auto; border-radius: 20px; }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 14px; font-weight: 700; vertical-align: bottom; }
.cmp thead small { display: block; font-weight: 500; color: var(--faint); }
.cmp tbody th { font-weight: 600; width: 26%; }
.cmp .lp { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cmp .lp-head { color: var(--accent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--muted); }
.cmp td b { color: var(--fg); font-weight: 650; }
/* On a phone, a two-way table reads better as one card per row. */
@media (max-width: 640px) {
  .cmp.stack { min-width: 0; }
  .cmp.stack thead { display: none; }
  .cmp.stack tr { display: grid; gap: 8px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .cmp.stack tbody tr:last-child { border-bottom: 0; }
  .cmp.stack th, .cmp.stack td { display: block; width: auto; padding: 0; border: 0; }
  .cmp.stack tbody th { font-size: 16px; }
  .cmp.stack td { padding: 10px 12px; border-radius: 14px; background: var(--field); }
  .cmp.stack td.lp { background: color-mix(in srgb, var(--accent) 7%, var(--field)); }
  .cmp.stack td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
  .cmp.stack td.lp::before { color: var(--accent); }
}
.cmp-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); max-width: 60em; }
.cmp-note a { color: var(--muted); }

/* ---------- theme gallery ---------- */
.fams { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 12px; scrollbar-width: none; }
.fams::-webkit-scrollbar { display: none; }
.fams a { text-decoration: none; }
.fam { padding-block: 26px; scroll-margin-top: 100px; }
.fam-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.fam-head h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.04em; line-height: 1; }
.fam-head span { color: var(--faint); font-size: 15px; }
.fam > p { margin-top: 10px; color: var(--muted); max-width: 44em; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 480px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.gal figure { margin: 0; display: grid; gap: 8px; padding: 7px 7px 10px; border-radius: 22px; background-color: var(--surface); background-image: var(--sheen); box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); }
.gal .shot { position: relative; aspect-ratio: 393 / 560; border-radius: 16px; overflow: hidden; background: var(--field); }
.gal img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gal figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 5px; }
.gal figcaption b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.tier { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tier.free { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.tier.pro { color: var(--muted); box-shadow: 0 0 0 1px var(--line); }

/* ---------- small phones of themes beside text ---------- */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phones figure { margin: 0; display: grid; gap: 6px; }
.phones img { width: 100%; height: auto; aspect-ratio: 393 / 560; object-fit: cover; object-position: top; border-radius: 18px; box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); background: var(--field); }
.phones figcaption { font-size: 13.5px; color: var(--muted); text-align: center; }
.phones figcaption b { color: var(--fg); }

/* ---------- blog: lead image, figures and drawn diagrams ---------- */
.post-hero { margin: 22px 0 0; max-width: 60em; }
.post-hero img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 28px; box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); background: var(--field); }
.post-hero figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); }
.post-hero.shots { max-width: 44em; }
.post-hero.shots .pfig { margin: 0; }
.credit a { color: inherit; }
.art .pfig, .pfig { margin: 30px 0; }
.pfig figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); line-height: 1.5; }
.pfig.wide img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); background: var(--field); }
.pfig.phones { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; max-width: calc(var(--n, 3) * 210px); }
.pfig.phones.one { max-width: 260px; }
.pfig.phones img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); background: var(--field); }
.pfig.phones figcaption { grid-column: 1 / -1; }
@media (max-width: 480px) { .pfig.phones { gap: 8px; } .pfig.phones img { border-radius: 14px; } }
.ph-missing { display: grid; place-items: center; min-height: 200px; border-radius: 22px; border: 2px dashed var(--line); color: var(--faint); font-size: 14px; padding: 20px; text-align: center; }

.dg-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.dg-flow i { align-self: center; font-style: normal; color: var(--faint); font-weight: 700; }
.dg-box { flex: 1 1 140px; display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--bevel), 0 0 0 1px var(--line); color: var(--fg); font-size: 15px; line-height: 1.4; }
.dg-box b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .dg-flow { flex-direction: column; } .dg-flow i { transform: rotate(90deg); } }

.dg-url { padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--bevel), 0 0 0 1px var(--line); }
.dg-url > code { display: block; padding: 0; background: none; box-shadow: none; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; color: var(--muted); }
.dg-url .p { color: var(--fg); border-radius: 6px; padding: 1px 2px; }
.p0 { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.p1 { background: color-mix(in srgb, var(--sel) 18%, transparent); }
.p2 { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.p3 { background: color-mix(in srgb, #D9A128 26%, transparent); }
.dg-url ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.dg-url li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dg-url .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }

.dg-dodont { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 26px 0; }
@media (max-width: 560px) { .dg-dodont { grid-template-columns: minmax(0, 1fr); } }
.dg-dodont > div { padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--bevel), 0 0 0 1px var(--line); }
.dg-dodont b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.dg-dodont .do b { color: var(--ok); } .dg-dodont .dont b { color: var(--accent); }
.dg-dodont ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15.5px; }
.dg-dodont .do li::marker { color: var(--ok); }

.dg-tip { margin: 24px 0; padding: 16px 20px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); color: var(--fg); font-size: 16px; }
.dg-cta { margin: 32px 0; padding: 22px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--bevel), var(--shadow), 0 0 0 1px var(--line); display: grid; gap: 8px; justify-items: start; }
.dg-cta b { font-size: 20px; color: var(--fg); letter-spacing: -.02em; }
.dg-cta p { margin: 0; }
.dg-cta .btn { text-decoration: none; color: var(--accent-ink); margin-top: 4px; }

/* the blog index */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cats a { text-decoration: none; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 22px; }
.pcard { display: grid; grid-template-rows: auto 1fr; border-radius: 26px; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--bevel), var(--shadow-lg), 0 0 0 1px var(--line); }
.pcard .im { aspect-ratio: 16 / 9; background: var(--field); overflow: hidden; }
.pcard .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .im.shot { display: flex; gap: 6px; justify-content: center; padding: 12px 12px 0; background: color-mix(in srgb, var(--accent) 7%, var(--field)); }
.pcard .im.shot img { width: 30%; height: auto; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--line); }
.pcard .tx { padding: 16px 20px 20px; display: grid; gap: 6px; align-content: start; }
.pcard .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pcard h3 { font-weight: 800; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.pcard p { color: var(--muted); font-size: 15px; }
.sources { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.sources ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.sources a { color: var(--muted); }
/* A wide table in a post scrolls on its own rather than widening the page. */
@media (max-width: 640px) {
  .art .t-table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; -webkit-overflow-scrolling: touch; }
}
