/* ==========================================================================
   SoloWired, "spec sheet" layer (variant B: hybrid)
   Load AFTER solowired.css and solowired-dark.css.

   The shell stays gunmetal. Long reading (article body + TOC, and the body
   of a single tool page) sits on a Vellum sheet: a cool, matte drafting
   paper laid on the rack, like a wiring diagram clipped to the equipment.
   Inside the sheet every token flips back to the light values, so every
   component (tables, verdict, FAQ, cards) works without extra rules.
   ========================================================================== */

.sw-article-grid,
.sw-tool-body {
  /* light tokens, scoped */
  --sw-ink: #18222D;
  --sw-head: #18222D;
  --sw-graphite: #46525E;     /* 7.1:1 on Vellum */
  --sw-paper: #F0F2F3;        /* Vellum */
  --sw-surface: #F7F8F9;      /* Vellum, raised */
  --sw-panel: #E3E7EB;        /* Spec grey: verdict, table head */
  --sw-rule: #CDD4DB;
  --sw-rule-strong: #B4BEC8;
  --sw-edge: #18222D;
  --sw-cobalt: #1D43B8;       /* 7.2:1 on Vellum */
  --sw-cobalt-hover: #142F86;
  --sw-signal-edge: #18222D;

  --sw-email: #2E6BE6;   --sw-email-ink: #1C4BAE;   --sw-email-tint: #E1EAFB;
  --sw-voice: #8B55E8;   --sw-voice-ink: #5E2DC0;   --sw-voice-tint: #EBE3FB;
  --sw-web: #0E9A8A;     --sw-web-ink: #0A6A5F;     --sw-web-tint: #DAEFEC;
  --sw-course: #CF7408;  --sw-course-ink: #904A00;  --sw-course-tint: #F8EAD6;
  --sw-privacy: #2F9445; --sw-privacy-ink: #226B32; --sw-privacy-tint: #DDEEE1;
  --sw-biz: #D8423A;     --sw-biz-ink: #A82A23;     --sw-biz-tint: #F6E1DF;
  --sw-seo: #A2662A;     --sw-seo-ink: #77481A;     --sw-seo-tint: #F0E6DB;
  --sw-prod: #5F6E80;    --sw-prod-ink: #465364;    --sw-prod-tint: #E6EAEF;

  color-scheme: light;
  color: var(--sw-ink);
  background: var(--sw-paper);
  border-radius: var(--sw-r-panel);
  /* mounted edge: steel rim, dark groove, faint lip on the rack. No drop shadow. */
  box-shadow: 0 0 0 1px #6E7A87, 0 0 0 3px #0B0E11, 0 0 0 4px rgba(220,230,240,.07), inset 0 1px 0 #FFFFFF;
}
/* re-resolve category vars inside the sheet (they were computed on ancestors) */
.sw-cat--email :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--email { --w: var(--sw-email);   --wi: var(--sw-email-ink);   --wt: var(--sw-email-tint); }
.sw-cat--ai-voice :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--ai-voice { --w: var(--sw-voice);   --wi: var(--sw-voice-ink);   --wt: var(--sw-voice-tint); }
.sw-cat--websites :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--websites { --w: var(--sw-web);     --wi: var(--sw-web-ink);     --wt: var(--sw-web-tint); }
.sw-cat--courses :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--courses { --w: var(--sw-course);  --wi: var(--sw-course-ink);  --wt: var(--sw-course-tint); }
.sw-cat--privacy :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--privacy { --w: var(--sw-privacy); --wi: var(--sw-privacy-ink); --wt: var(--sw-privacy-tint); }
.sw-cat--business :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--business { --w: var(--sw-biz);     --wi: var(--sw-biz-ink);     --wt: var(--sw-biz-tint); }
.sw-cat--seo :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--seo { --w: var(--sw-seo);     --wi: var(--sw-seo-ink);     --wt: var(--sw-seo-tint); }
.sw-cat--productivity :is(.sw-article-grid, .sw-tool-body),
:is(.sw-article-grid, .sw-tool-body) .sw-cat--productivity { --w: var(--sw-prod);    --wi: var(--sw-prod-ink);    --wt: var(--sw-prod-tint); }

.sw-article-grid { padding: var(--sw-s-7) var(--sw-s-7) var(--sw-s-8); margin-block: var(--sw-s-7) var(--sw-s-8); }
.sw-article-head { border-bottom: 0; padding-bottom: 0; }
.sw-tool-body { max-width: 760px; padding: var(--sw-s-6) var(--sw-s-6) var(--sw-s-7); margin-bottom: var(--sw-s-8); }

:root {
  --sw-font-display: "Bricolage Grotesque", "Bricolage Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Single-column grid for standard pages (calculator, about, etc.) */
.sw-article-grid--single {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: var(--sw-s-6) !important;
}
.sw-article-grid--single > .sw-prose {
  grid-column: 1 / -1;
  max-width: 100%;
  overflow: visible;
}
.sw-calc {
  grid-column: 1 / -1;
  max-width: 960px;
  margin-block: 0 var(--sw-s-4) !important;
}

/* Empty top band fixes: first-child in boxes has margin-top: 0 */
.sw-research > :first-child,
.sw-site .sw-research > :first-child,
.sw-site .sw-research h2:first-child,
.sw-site .sw-research h3:first-child,
.sw-method > :first-child,
.sw-calc > :first-child,
.sw-sheet > :first-child,
.sw-tool-body > :first-child,
.sw-tool-body > section:first-child,
.sw-tool-body > section:first-child > h2,
.sw-article-grid > :first-child,
.sw-calc > .sw-calc__head,
.sw-calc > style + .sw-calc__head {
  margin-top: 0 !important;
}

/* Home & directory card grid reset beating GeneratePress ul defaults */
ul.sw-grid,
ul.sw-cards,
.sw-grid {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sw-card__head {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--sw-s-3);
}

/* Vertical rhythm & spacing overrides beating GeneratePress resets */
.sw-site .sw-hero__lead,
.sw-site .sw-hero__lede {
  margin-top: var(--sw-s-6) !important;
  margin-bottom: 0 !important;
}
.sw-site .sw-section__intro,
.sw-site .sw-section__lede {
  margin-top: var(--sw-s-2) !important;
  margin-bottom: 0 !important;
}
.sw-site .sw-prose h2 {
  font-family: var(--sw-font-display, var(--sw-font-ui)) !important;
  font-weight: 760;
  font-stretch: 82%;
  font-variation-settings: "wdth" 82;
  margin-top: var(--sw-s-8) !important;
  margin-bottom: var(--sw-s-4) !important;
}
.sw-site .sw-prose h3,
.sw-site .sw-research h3 {
  font-family: var(--sw-font-ui) !important;
  font-weight: 650 !important;
}
.sw-site .sw-tool-body h2 {
  margin-top: var(--sw-s-7) !important;
  margin-bottom: var(--sw-s-3) !important;
}
.sw-site .sw-glance__title {
  margin-top: 0 !important;
  margin-bottom: var(--sw-s-3) !important;
}
.sw-site .sw-cta-end h2,
.sw-site .sw-cta-end .sw-cta-end__lead,
.sw-site .sw-cta-end__lead {
  margin-top: 0 !important;
  margin-bottom: var(--sw-s-4) !important;
}

/* Table caption line under table headings ("Prices checked...") */
.sw-caption {
  font-family: var(--sw-font-ui) !important;
  font-style: normal !important;
  color: var(--sw-graphite) !important;
  font-size: var(--sw-fs-sm);
  line-height: 1.45;
}
.sw-report-price {
  font-family: var(--sw-font-ui);
  font-style: normal;
  color: var(--sw-graphite);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sw-report-price:hover {
  color: var(--sw-ink);
}

/* Calculator link block */
.sw-calc-link-block {
  margin: var(--sw-s-4) 0 var(--sw-s-5);
  padding: var(--sw-s-3) var(--sw-s-4);
  background: var(--sw-surface, #1E252D);
  border: 1px solid var(--sw-rule-strong, #2F3A45);
  border-radius: var(--sw-r-table, 8px);
}
.sw-calc-link-block a {
  font-family: var(--sw-font-ui);
  font-weight: 650;
  font-size: var(--sw-fs-sm);
  color: var(--sw-signal, #FFC53D);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.sw-calc-link-block a:hover {
  text-decoration: underline;
}

/* Plain Official site text link for likely-reject programs */
.sw-official-link {
  font-family: var(--sw-font-ui);
  font-size: var(--sw-fs-sm);
  font-weight: 600;
  color: var(--sw-cobalt, #7FA7FF);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sw-official-link:hover {
  color: var(--sw-ink, #F2F5F8);
}

/* Spacing after affiliate button row */
.sw-aff-row + p {
  margin-top: var(--sw-s-5) !important;
}

/* FAQ: hairline dividers, semibold UI question */
.sw-faq {
  max-width: var(--sw-measure);
  display: grid;
  gap: 0;
  margin: var(--sw-s-5) 0 var(--sw-s-7);
  border-top: 1px solid var(--sw-rule);
}
.sw-faq__item {
  padding: var(--sw-s-4) 0;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sw-rule) !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.sw-faq__q {
  font-family: var(--sw-font-ui);
  font-size: var(--sw-fs-md);
  font-weight: 650;
  line-height: 1.35;
  color: var(--sw-ink);
  margin: 0 0 var(--sw-s-2) 0 !important;
}
.sw-faq__a {
  font-family: var(--sw-font-read);
  font-size: var(--sw-fs-base);
  line-height: 1.65;
  color: var(--sw-graphite);
  margin: 0 !important;
}

/* Reusable disclaimer block */
aside.sw-disclaimer, .sw-disclaimer {
  display: flex;
  flex-direction: column;
  gap: var(--sw-s-2);
  font-size: 14.5px;
  line-height: 1.6;
  padding: var(--sw-s-4);
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule);
  border-left: 3px solid var(--sw-non-us, #0284C7);
  border-radius: var(--sw-r-card);
  margin-bottom: var(--sw-s-4);
  font-family: var(--sw-font-ui);
  color: var(--sw-ink);
}
aside.sw-disclaimer p, .sw-disclaimer p { margin: 0; max-width: 68ch; }
aside.sw-disclaimer strong, .sw-disclaimer strong { color: var(--sw-head); }
aside.sw-disclaimer a, .sw-disclaimer a { color: var(--sw-cobalt); }

/* Top disclosure card */
aside.sw-disclosure, .sw-disclosure {
  display: flex;
  align-items: baseline;
  gap: var(--sw-s-3);
  font-size: var(--sw-fs-xs);
  padding: var(--sw-s-4);
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule);
  border-radius: var(--sw-r-card);
  margin-bottom: var(--sw-s-6);
  font-family: var(--sw-font-ui);
  line-height: 1.45;
}
aside.sw-disclosure .sw-key, .sw-disclosure .sw-key {
  flex: none;
}

/* Hide verdict buttons at <=760px so Our picks carries them */
@media (max-width: 760px) {
  .sw-verdict .sw-aff-btn,
  .sw-verdict .sw-btn-row,
  .sw-verdict-btns {
    display: none !important;
  }
}

/* Prose back to the light reading settings */
.sw-article-grid .sw-prose { line-height: 1.68; letter-spacing: 0; }
.sw-article-grid .sw-prose strong, strong { font-weight: 600; }
.sw-article-grid .sw-table tbody tr:nth-child(even) > * { background: transparent; }
.sw-article-grid .sw-table-wrap {
  background:
    linear-gradient(to right, var(--sw-paper) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--sw-paper) 30%, transparent) right / 32px 100% no-repeat local,
    linear-gradient(to right, rgba(24,34,45,.14), transparent) left / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(24,34,45,.14), transparent) right / 12px 100% no-repeat scroll;
}

/* Surfaces inside the sheet: flat paper rules, no machined highlights */
:is(.sw-article-grid, .sw-tool-body) :is(.sw-card, .sw-verdict, .sw-proscons__col, .sw-aff-row, .sw-disclaimer, .sw-disclosure, .sw-cta-end) { box-shadow: none; }
:is(.sw-article-grid, .sw-tool-body) .sw-card { background: var(--sw-surface); }
:is(.sw-article-grid, .sw-tool-body) .sw-mark { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w, #000) 22%, transparent); }
:is(.sw-article-grid, .sw-tool-body) .sw-btn--quiet { background: var(--sw-surface); }
:is(.sw-article-grid, .sw-tool-body) .sw-btn--quiet:hover { background: var(--sw-panel); }

/* Affiliate key on paper: yellow fill is only ~1.4:1 against Vellum, so the key
   leans on its edges: a 1px blackened-steel rim and a deeper two-tone wall. */
:is(.sw-article-grid, .sw-tool-body) .sw-aff-btn {
  border: 1px solid #0B0E11;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 0 #7A5600, 0 4px 0 #0B0E11;
  margin-bottom: 4px;
}
:is(.sw-article-grid, .sw-tool-body) .sw-aff-btn:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 #7A5600, 0 2px 0 #0B0E11; }

/* Rack strip: affiliate rows ({{AFF:slug}} after tables), the tool-page end CTA
   and the "Our picks" strip sit on a gunmetal strip set into the sheet, so the
   yellow keys get the same 11:1 pop they have in the shell. */
:is(.sw-article-grid, .sw-tool-body) :is(.sw-aff-row, .sw-cta-end) {
  --sw-ink: #D8DEE5; --sw-head: #F2F5F8; --sw-graphite: #A3AEBA;
  --sw-paper: #161B21; --sw-cobalt: #8DB0FF; --sw-cobalt-hover: #B5CBFF;
  color-scheme: dark;
  color: var(--sw-ink);
  background-color: #161B21;
  background-image: linear-gradient(105deg, transparent 25%, rgba(200,215,230,.06) 50%, transparent 75%), var(--sw-brushed);
  background-size: 100% 100%, 640px 320px;
  border: 0; border-radius: var(--sw-r-card);
  box-shadow: inset 0 1px 0 rgba(220,230,240,.10), 0 0 0 1px #0B0E11;
}
:is(.sw-article-grid, .sw-tool-body) :is(.sw-aff-row, .sw-cta-end) .sw-aff-btn {
  border: 1px solid #E5A91C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #9C6F00, 0 4px 0 #07090B;
}
:is(.sw-article-grid, .sw-tool-body) :is(.sw-aff-row, .sw-cta-end) .sw-key { border-color: #9C6F00; box-shadow: 0 1.5px 0 #9C6F00; }
:is(.sw-article-grid, .sw-tool-body) :is(.sw-aff-row, .sw-cta-end) :focus-visible { outline-color: #8DB0FF; }
.sw-tool-body .sw-cta-end .sw-cta-end__lead { color: #F2F5F8; }

/* "Our picks": phones only, right after the Quick verdict */
@media (max-width: 760px) {
  .sw-article-grid .sw-picks { display: block; padding: var(--sw-s-4); }
  .sw-picks__title { font-family: var(--sw-font-ui); font-weight: 760; font-stretch: 82%; font-variation-settings: "wdth" 82; font-size: var(--sw-fs-lg); line-height: 1.1; color: #F2F5F8; }
  .sw-prose .sw-picks__list { list-style: none; padding: 0; margin-top: var(--sw-s-3); }
  .sw-picks__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sw-s-3); align-items: center; padding: var(--sw-s-3) 0; border-top: 1px solid #2F3A45; font-family: var(--sw-font-ui); font-size: var(--sw-fs-sm); line-height: 1.3; }
  .sw-prose .sw-picks__list li + li { margin-top: 0; }
  .sw-picks__for { color: #D8DEE5; }
  .sw-picks .sw-aff-note { margin-top: var(--sw-s-2); }
}
:is(.sw-article-grid, .sw-tool-body) .sw-key { border-color: #18222D; box-shadow: 0 1.5px 0 #18222D; }
:is(.sw-article-grid, .sw-tool-body) :focus-visible { outline-color: #1D43B8; }

@media (max-width: 1100px) {
  .sw-article-grid { padding: var(--sw-s-6) var(--sw-s-6) var(--sw-s-7); }
}
@media (max-width: 640px) {
  /* full-bleed sheet on phones: every pixel of width goes to the text */
  .sw-article-grid, .sw-tool-body {
    margin-inline: calc(-1 * var(--sw-gutter)); border-radius: 0;
    padding: var(--sw-s-6) var(--sw-gutter) var(--sw-s-7);
    box-shadow: 0 -1px 0 #6E7A87, 0 -3px 0 #0B0E11, 0 1px 0 #6E7A87, 0 3px 0 #0B0E11, inset 0 1px 0 #FFFFFF;
  }
  .sw-article-grid { margin-top: var(--sw-s-6); }
}

/* Mobile money path: tighten the top of the article so the first "Our picks"
   key lands inside the first two phone screens (812px x 2), without cutting
   any words. */
@media (max-width: 640px) {
  .sw-crumbs { padding-top: var(--sw-s-4); }
  .sw-article-head { padding-top: var(--sw-s-2); }
  .sw-article-head__title { font-size: 1.875rem; margin-top: var(--sw-s-3); }
  .sw-article-head__meta { margin-top: var(--sw-s-4); gap: var(--sw-s-2) var(--sw-s-4); }
  .sw-article-grid { padding-top: var(--sw-s-5); margin-top: var(--sw-s-5); }
  .sw-article-grid .sw-disclosure { font-size: var(--sw-fs-xs); padding: var(--sw-s-3); margin-bottom: var(--sw-s-5); }
  .sw-article-grid .sw-prose { font-size: 1.0625rem; line-height: 1.62; }
  .sw-article-grid .sw-verdict { padding: var(--sw-s-4) var(--sw-s-4) var(--sw-s-2); }
  .sw-article-grid .sw-verdict__title { font-size: var(--sw-fs-md); margin-bottom: var(--sw-s-2); }
  .sw-article-grid .sw-verdict li { font-size: var(--sw-fs-sm); line-height: 1.45; padding: var(--sw-s-2) 0 var(--sw-s-3); }
  .sw-article-grid .sw-verdict li:last-child { padding-bottom: 0 !important; }
  .sw-article-grid .sw-verdict li strong { font-size: var(--sw-fs-ui); line-height: 1.3; margin-bottom: 2px; }
  .sw-article-grid .sw-prose > .sw-picks { margin-top: var(--sw-s-4); }
}

/* Task 28 Polish Rules */
/* Hub "Who this section is for" inline list items */
.sw-for, ul.sw-for {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sw-s-3) var(--sw-s-5);
}
.sw-for li {
  display: block;
  position: relative;
  padding-left: 22px;
  font-size: var(--sw-fs-ui);
  line-height: 1.5;
  padding-bottom: var(--sw-s-3);
  border-bottom: 1px solid var(--sw-rule);
}
.sw-for li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  background: var(--w, var(--sw-ink));
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
@media (max-width: 760px) {
  .sw-for, ul.sw-for {
    grid-template-columns: 1fr;
  }
}

/* Affiliate note in grid spans all columns */
.sw-aff-note {
  grid-column: 1 / -1;
  width: 100%;
}

/* Spacing between official sources box and footer stripe on hub */
.sw-cat--non-us-founders .sw-research:last-child {
  margin-bottom: 72px;
}

/* Breadcrumb wrapping & stray slash prevention */
.sw-crumbs li {
  white-space: nowrap;
}

/* Links & non-affiliate official pricing link */
.sw-link {
  color: var(--sw-cobalt);
  text-decoration: underline;
  font-weight: 600;
  font-size: var(--sw-fs-sm);
}
.sw-link:hover {
  color: var(--sw-head);
}
.sw-official-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--sw-ink);
  text-decoration: underline;
  font-weight: 600;
  font-size: var(--sw-fs-sm);
}
.sw-official-link:hover {
  color: var(--sw-head);
}

@media (max-width: 640px) {
  .sw-cat--non-us-founders .sw-research:last-child {
    margin-bottom: 48px;
  }
  /* Hide Tools crumb on mobile to prevent breadcrumb wrapping */
  .sw-crumbs li:nth-child(2) {
    display: none;
  }
  /* Mobile tool meta stack as one column */
  .sw-tool-id__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sw-s-2);
  }
  .sw-checked {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
  }
}

