/*
 * KnowALS content components.
 *
 * Values transcribed from the redesign mockups (Article-Hoyer-Lift.dc.html is canonical).
 * The mockups style everything inline; this is the same design expressed once, as classes.
 *
 * Colours are custom properties, never literals, so night mode works by reassigning them
 * on html[data-mode="night"]. theme.json's palette points at these same properties.
 */

:root{
  --paper:#FBF9FD;
  --raised:#FFFFFF;
  --ink:#211436;
  --ink-soft:#4C4266;
  --ink-faint:#766B8C;
  --rule:#DDD6E6;
  --rule-soft:#EEE9F3;
  --violet:#6D28A8;
  --violet-deep:#2E0A5E;
  --violet-soft:#F0EAF8;
  --amber:#A14A08;
  --amber-soft:#FCF2E4;
  --crimson:#B3261E;
  --crimson-soft:#FCEBEA;
}

/* Night mode. A real requirement: the core use case is a phone in a dark bedroom at 2am. */
html[data-mode="night"]{
  --paper:#17121F;
  --raised:#1F1829;
  --ink:#E6E1EC;
  --ink-soft:#B3A9C2;
  --ink-faint:#8B8199;
  --rule:#332944;
  --rule-soft:#261E33;
  --violet:#C4A8E8;
  --violet-deep:#D8C4F0;
  --violet-soft:#2A1F3D;
  --amber:#E0A458;
  --amber-soft:#332614;
  --crimson:#F0909A;
  --crimson-soft:#3A1E22;
}
html[data-mode="night"] img:not([src$=".svg"]){ filter:brightness(.92); }

/* ---------- article typography ---------- */
body.knowals-article .entry-content{
  font-size:18px; line-height:1.65; color:var(--ink); max-width:68ch;
}
body.knowals-article .entry-content h2{
  font-family:'Bitter',Georgia,serif; font-size:26px; line-height:1.2;
  margin:48px 0 22px; font-weight:700; letter-spacing:-0.01em;
}
body.knowals-article .entry-content h3{
  font-family:'Bitter',Georgia,serif; font-size:20px; line-height:1.25;
  margin:32px 0 10px; font-weight:700;
}
body.knowals-article .entry-content h4{ font-size:18px; font-weight:700; margin:2px 0 6px; }
body.knowals-article .entry-content p{ margin:0 0 16px; }

/* ---------- direct answer ---------- */
.knowals-direct-answer{
  background:var(--violet-soft); border-left:3px solid var(--violet);
  padding:20px 24px; border-radius:4px; margin:24px 0;
}
.knowals-direct-answer p{ font-size:21px; line-height:1.5; margin:0; }

/* ---------- byline ---------- */
.knowals-byline{
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
  padding:14px 0; margin:24px 0; font-size:15px; color:var(--ink-soft);
}
.knowals-byline p{ margin:0; }
.knowals-byline strong{ color:var(--ink); }

/* ---------- ability selector ---------- */
.knowals-ability-selector{
  background:var(--raised); border:1px solid var(--rule);
  border-radius:6px; padding:20px 24px; margin:28px 0;
}
.knowals-ability-selector ul{ margin:10px 0 0; padding-left:20px; }
.knowals-ability-selector li{ margin-bottom:8px; }

/* ---------- before you start ---------- */
.knowals-before-you-start{
  background:var(--violet-soft); border-radius:6px; padding:22px 26px; margin:28px 0;
}
.knowals-before-you-start h2,
.knowals-before-you-start h4{ margin:0 0 12px; font-size:18px; }
.knowals-before-you-start ul{ margin:0; padding-left:20px; }
.knowals-before-you-start li{ margin-bottom:6px; }

/* ---------- step rail: THE signature component ----------
   Numbered marks hang in the left margin on a 2px vertical rule. The mark is OUTLINED,
   not filled: paper ground, violet border and numeral. */
.knowals-step-rail{
  border-left:2px solid var(--rule);
  padding-left:34px; margin:0 0 20px 16px; max-width:68ch;
}
.knowals-step-rail > ol{ list-style:none; counter-reset:kwstep; margin:0; padding:0; }
.knowals-step-rail > ol > li{
  counter-increment:kwstep; position:relative; padding-bottom:26px; margin:0;
}
.knowals-step-rail > ol > li::before{
  content:counter(kwstep);
  position:absolute; left:-51px; top:0;
  width:32px; height:32px; display:grid; place-items:center;
  font-family:'Bitter',Georgia,serif; font-weight:700; font-size:15px;
  background:var(--paper); color:var(--violet);
  border:2px solid var(--violet); border-radius:50%;
}
.knowals-step-rail h4{ font-size:18px; font-weight:700; margin:2px 0 6px; }
.knowals-step-rail p{ margin:0 0 8px; }
.knowals-step-rail em,
.knowals-step-rail .knowals-why{
  display:block; font-size:15px; color:var(--ink-soft);
  border-left:2px solid var(--rule-soft); padding-left:12px;
  margin:0; font-style:italic; max-width:60ch;
}
/* On narrow screens the rail collapses and the mark sits inline above the step. */
@media (max-width:680px){
  .knowals-step-rail{ border-left:0; padding-left:0; margin-left:0; }
  .knowals-step-rail > ol > li::before{ position:static; margin-bottom:8px; }
}

/* ---------- caution ---------- */
.knowals-caution{
  background:var(--amber-soft); border-left:3px solid var(--amber);
  padding:18px 22px; border-radius:4px; margin:28px 0;
}
.knowals-caution strong,.knowals-caution h4{ color:var(--amber); }

/* ---------- stop: at most ONE per page ---------- */
.knowals-stop{
  background:var(--crimson-soft); border-left:3px solid var(--crimson);
  padding:18px 22px; border-radius:4px; margin:28px 0;
}
.knowals-stop strong,.knowals-stop h4{ color:var(--crimson); }

/* ---------- progression ---------- */
.knowals-progression{
  background:var(--raised); border:1px solid var(--rule);
  border-top:3px solid var(--violet);
  padding:22px 26px; border-radius:6px; margin:32px 0;
}

/* ---------- spec card ----------
   The amber limitation row is the trust device. Never omit it. */
.knowals-spec-card{
  background:var(--raised); border:1px solid var(--rule);
  border-radius:6px; padding:24px; margin:28px 0;
}
.knowals-spec-card .knowals-kicker{
  font-size:13px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--ink-faint); margin:0 0 4px;
}
.knowals-spec-card h3,.knowals-spec-card h4{ margin:0 0 6px; font-size:20px; }
.knowals-spec-card ul{ margin:14px 0; padding-left:0; list-style:none; }
.knowals-spec-card li{
  display:flex; gap:10px; padding:7px 0;
  border-bottom:1px solid var(--rule-soft); font-size:16px;
}
.knowals-spec-card li:last-child{ border-bottom:0; }
.knowals-spec-card .knowals-limitation{
  background:var(--amber-soft); border-left:3px solid var(--amber);
  padding:12px 16px; border-radius:4px; margin:14px 0; font-size:16px;
}
.knowals-spec-card a{
  display:inline-block; margin-top:12px;
  padding:13px 22px; min-height:44px; line-height:1.3;
  background:var(--violet); color:var(--raised);
  border-radius:4px; font-weight:600; text-decoration:none;
}
.knowals-spec-card a:hover,.knowals-spec-card a:focus{ background:var(--violet-deep); }
.knowals-spec-card em{ display:block; margin-top:10px; font-size:14px; color:var(--ink-faint); }

/* ---------- print CTA + closing notes ---------- */
.knowals-print-cta{
  background:var(--violet-soft); border-radius:6px; padding:20px 24px; margin:28px 0;
}
.knowals-pro-check{
  background:var(--violet-soft); border-left:3px solid var(--violet);
  padding:18px 22px; border-radius:4px; margin:28px 0;
}
.knowals-affiliate-disclosure,.knowals-medical-disclaimer{
  background:var(--raised); border:1px solid var(--rule);
  padding:14px 18px; border-radius:4px; margin:22px 0;
  font-size:15px; color:var(--ink-soft);
}

/* ---------- video ---------- */
.knowals-video{ margin:28px 0; padding:0; }
.knowals-video iframe{
  display:block; width:100%; aspect-ratio:16/9; height:auto; border:0; border-radius:6px;
}

/* ---------- tables ---------- */
body.knowals-article .entry-content table{
  width:100%; border-collapse:collapse; margin:24px 0; font-size:16px;
}
body.knowals-article .entry-content th{
  background:var(--violet-soft); color:var(--ink); font-weight:700; text-align:left;
  padding:11px 14px; border:1px solid var(--rule);
}
body.knowals-article .entry-content td{
  padding:11px 14px; border:1px solid var(--rule); vertical-align:top;
}

/* ---------- night mode toggle ---------- */
.knowals-mode-toggle{
  display:inline-flex; align-items:center; gap:8px;
  min-height:44px; min-width:44px; padding:8px 14px;
  background:transparent; color:var(--ink);
  border:1px solid var(--rule); border-radius:6px;
  font:inherit; font-size:15px; cursor:pointer;
}
.knowals-mode-toggle:hover{ border-color:var(--violet); color:var(--violet); }

/* ---------- header / footer ---------- */
.knowals-logo,.knowals-footer-logo{ line-height:0; }
.knowals-logo img,.knowals-footer-logo img{ display:block; height:auto; }
header .wp-block-navigation a{ text-decoration:none; font-weight:600; }
header .wp-block-navigation a:hover{ text-decoration:underline; }
footer a{ color:inherit; }

/* Buttons are links, so without this they inherit the violet link colour and render
   violet on violet: the label is present but invisible. */
.wp-block-button__link{ color:var(--raised); text-decoration:none; }
.wp-block-button.is-style-outline > .wp-block-button__link{
  background:transparent; color:var(--violet); border:2px solid var(--violet);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus{
  background:var(--violet); color:var(--raised);
}
h1 a,h2 a,h3 a,h4 a{ text-decoration:none; }
h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover{ text-decoration:underline; }

/* Full-bleed bands span the viewport, not the reading measure. */
.wp-site-blocks .alignfull{
  max-width:none; width:100vw;
  margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
}

/* ---------- mobile menu ----------
   Opaque, full screen, 56px rows. The old offcanvas auto-listed every page. */
.wp-block-navigation__responsive-container.is-menu-open{
  background-color:var(--paper) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a{
  min-height:56px; display:flex; align-items:center; font-size:19px;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close{ min-width:48px; min-height:48px; }

/* ---------- accessibility, non-negotiable ----------
   Part of this audience navigates by switch or eye gaze. Never remove the focus ring. */
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{
  outline:3px solid var(--violet); outline-offset:2px; border-radius:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
@media (max-width:680px){
  body.knowals-article .entry-content h1{ font-size:31px; }
}

/* ==========================================================================
   HOMEPAGE
   Values transcribed from Home.dc.html. Do not substitute your own spacing.
   The mockup carries these as inline styles; here they are classes so the
   block markup stays core Gutenberg.
   ========================================================================== */

/* ---------- hero: 7fr / 5fr, illustration on the right ---------- */
.knowals-hero{
  display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:60px; align-items:center;
  padding:64px 0 56px; border-bottom:1px solid var(--rule);
}
.knowals-hero .knowals-eyebrow{ margin-bottom:10px; }
.knowals-hero h1{
  font-family:'Bitter',Georgia,serif; font-size:46px; line-height:1.1;
  letter-spacing:-0.015em; margin:0 0 18px; font-weight:700; text-wrap:balance;
}
.knowals-hero .knowals-lede{
  font-size:21px; line-height:1.5; color:var(--ink-soft);
  margin:0 0 28px; max-width:56ch;
}
.knowals-hero .wp-block-buttons{ gap:12px; }
.knowals-hero figure{ margin:0; }
.knowals-hero figure img{ width:100%; max-width:420px; justify-self:center; }

/* Eyebrow / kicker above a heading. */
.knowals-eyebrow{
  font-size:12px; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--violet); font-weight:700; margin:0 0 10px;
}

/* ---------- most requested: 8 tiles, whole card is the target ---------- */
.knowals-section{ padding:48px 0 8px; }
.knowals-section > h2{
  font-family:'Bitter',Georgia,serif; font-size:26px; line-height:1.2;
  margin:0 0 6px; font-weight:700; letter-spacing:-0.01em;
}
.knowals-section > p{ margin:0 0 22px; color:var(--ink-soft); max-width:68ch; }

.knowals-tiles{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px;
}
.knowals-tile{
  position:relative; background:var(--raised); border:1px solid var(--rule);
  padding:18px 20px; min-height:44px;
}
.knowals-tile .knowals-tile-kicker{
  font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--violet); font-weight:700; display:block; margin:0 0 5px;
}
.knowals-tile h3{
  font-family:'Bitter',Georgia,serif; font-size:18px; display:block;
  line-height:1.25; margin:0 0 4px; font-weight:700;
}
.knowals-tile h3 a{ color:var(--ink); text-decoration:none; }
/* Stretch the heading link over the whole tile so the card is one 44px+ target. */
.knowals-tile h3 a::after{ content:""; position:absolute; inset:0; }
.knowals-tile p:not(.knowals-tile-kicker){ font-size:14px; color:var(--ink-faint); margin:0; }
.knowals-tile:hover{ border-color:var(--violet); }
.knowals-tile:focus-within{ outline:3px solid var(--violet); outline-offset:2px; }

/* ---------- three ways we help ---------- */
.knowals-pillars{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px;
}
.knowals-pillar{
  background:var(--raised); border:1px solid var(--rule);
  border-top:3px solid var(--violet); padding:22px 24px;
}
.knowals-pillar h3{
  font-family:'Bitter',Georgia,serif; font-size:20px; margin:0 0 8px; font-weight:600;
}
.knowals-pillar p{ margin:0 0 14px; color:var(--ink-soft); }
.knowals-pillar .knowals-arrow{ margin:0; }
.knowals-pillar .knowals-arrow a{ font-weight:700; font-size:15px; }

/* ---------- Mema band ---------- */
.knowals-mema{
  margin:56px 0 0; background:var(--violet-soft); border:1px solid var(--rule);
  padding:40px 44px; display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:40px; align-items:center;
}
.knowals-mema h2{
  font-family:'Bitter',Georgia,serif; font-size:28px; line-height:1.2;
  margin:0 0 12px; font-weight:700; letter-spacing:-0.01em;
}
.knowals-mema p{ margin:0 0 18px; max-width:60ch; }
.knowals-mema figure{ margin:0; }
.knowals-mema figure img{ width:100%; height:auto; display:block; }

/* ---------- barriers prose ---------- */
.knowals-barriers{ padding:56px 0 0; }
.knowals-barriers h2{
  font-family:'Bitter',Georgia,serif; font-size:26px; line-height:1.2;
  margin:0 0 12px; font-weight:700; letter-spacing:-0.01em;
}
.knowals-barriers p{ margin:0; }

/* ---------- mobile: multi-column grids collapse at 680px ---------- */
@media (max-width:900px){
  .knowals-hero{ grid-template-columns:1fr; gap:32px; padding:40px 0 40px; }
  .knowals-hero figure img{ max-width:340px; margin:0 auto; }
  .knowals-mema{ grid-template-columns:1fr; gap:28px; padding:28px 24px; }
}
@media (max-width:680px){
  .knowals-hero h1{ font-size:31px; }
  .knowals-hero .knowals-lede{ font-size:19px; }
  .knowals-tiles,.knowals-pillars{ grid-template-columns:1fr; }
}

/* ==========================================================================
   BUTTONS, defensive override
   The GoDaddy platform ships a stylesheet containing
     .wp-element-button{ color:var(--dsgo-text-color,inherit) !important; }
   --dsgo-text-color is never defined, so every button label falls back to
   `inherit`, picks up the violet link colour, and renders violet on violet:
   the text is present in the DOM but invisible. theme.json cannot win against
   an !important rule, so the override has to live here and match it.
   Values transcribed from Home.dc.html.
   ========================================================================== */
.wp-block-button > .wp-block-button__link.wp-element-button{
  display:inline-block;
  background-color:var(--violet) !important;
  color:var(--paper) !important;
  border:1px solid var(--violet) !important;
  text-decoration:none;
  font-weight:700;
  padding:13px 24px;
  font-size:16px;
  min-height:44px;
  box-sizing:border-box;
  border-radius:0;
}
.wp-block-button > .wp-block-button__link.wp-element-button:hover,
.wp-block-button > .wp-block-button__link.wp-element-button:focus{
  background-color:var(--violet-deep) !important;
  border-color:var(--violet-deep) !important;
  color:var(--paper) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button{
  background-color:transparent !important;
  color:var(--violet) !important;
  border:1px solid var(--violet) !important;
  padding:12px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus{
  background-color:var(--violet-soft) !important;
  color:var(--violet) !important;
}

/* Core's flow layout adds margin-block-start to every sibling after the first
   (:where(.is-layout-flow) > * + *). Inside a grid that does not collapse, so
   items 2..n get pushed down and the first card floats above the row. The grid
   gap already owns the spacing here. */
.knowals-tiles > *,
.knowals-pillars > *,
.knowals-hero > *,
.knowals-mema > *{
  margin-block-start:0 !important;
  margin-top:0 !important;
}

/* The mockup frames this photo at 4/3. Unconstrained, the portrait is taller than
   the copy beside it and stretches the whole band. */
.knowals-mema figure img{
  aspect-ratio:4/3; object-fit:cover; object-position:center center;
  border:1px solid var(--rule);
}

/* alignwide centres its block; the barriers prose is left-aligned in the mockup,
   capped at a 68ch measure. Specificity has to beat the alignwide margin rule. */
/* The wrapper is a wide block so it lines up with the 1180 container; the 68ch
   reading measure belongs on the children, left-aligned inside that container. */
.wp-block-group.alignwide.knowals-barriers{ max-width:1180px; }
.knowals-barriers > *{ max-width:68ch; margin-left:0; margin-right:auto; }

/* ==========================================================================
   PAGE GUTTERS
   Every mockup wraps the page in max-width:1180px; margin:0 auto; padding:0 24px.
   Nothing in the theme supplied that 24px, which is invisible on desktop (the
   constrained containers centre themselves and leave slack) but on a phone the
   container is 100% wide, so copy, footer links and menu rows sat flush against
   the screen edge.

   The padding goes INSIDE the full-bleed header and footer so their backgrounds
   still run edge to edge, and on main's constrained children so wide sections
   keep their own centring.
   ========================================================================== */
header.wp-block-group.alignfull,
footer.wp-block-group.alignfull{
  padding-left:24px; padding-right:24px;
}
main.wp-block-group > .is-layout-constrained,
main.wp-block-group > .wp-block-post-content{
  padding-left:24px; padding-right:24px;
  box-sizing:border-box;
}

/* ---------- mobile menu, per the handoff spec ----------
   Full-screen opaque panel, 56px rows, same 6 items, explicit close. */
@media (max-width:781px){
  .wp-block-navigation__responsive-container.is-menu-open{
    padding:24px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content{
    padding-top:8px;
  }
  /* The block gap spaces rows far apart; the spec is a 56px row, not a 56px gap. */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation{
    gap:0 !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{
    width:100%;
    border-bottom:1px solid var(--rule-soft);
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a{
    min-height:56px; display:flex; align-items:center;
    width:100%; font-size:19px; text-decoration:none;
  }
  .wp-block-navigation__responsive-container-close{
    min-width:48px; min-height:48px;
  }
}

/* Sections that set their own side padding must not double up on mobile. */
@media (max-width:680px){
  .knowals-mema{ padding-left:20px; padding-right:20px; }
}

/* ---------- footer contrast ----------
   The footer sits on violet-deep with paper text, but theme.json gives headings and
   links their own colours (ink and violet), which both land dark-on-dark here. Both
   should simply inherit the footer's own text colour. This stays correct in night
   mode, where violet-deep becomes light and paper becomes dark: the pair inverts
   together. */
footer.wp-block-group .wp-block-heading{ color:inherit; }
footer.wp-block-group a{ color:inherit; text-decoration:underline; }
footer.wp-block-group a:hover{ text-decoration:none; }

/* ==========================================================================
   HUB PAGES
   Values transcribed from Hub-Equipment.dc.html / Hub-Money.dc.html.
   Equipment cards are grouped by mobility stage, not product category: the
   organising question is "what can the person do today", not "what is it".
   ========================================================================== */

.knowals-breadcrumbs{ font-size:13px; color:var(--ink-faint); margin:0 0 20px; }
.knowals-breadcrumbs a{ color:var(--ink-faint); }

.knowals-hub h1{
  font-family:'Bitter',Georgia,serif; font-size:42px; line-height:1.12;
  letter-spacing:-0.015em; margin:6px 0 14px; font-weight:700; text-wrap:balance;
}

/* The direct answer: a violet rule, not a box. */
.knowals-hub-answer{
  font-size:21px; line-height:1.5; max-width:68ch;
  border-left:3px solid var(--violet); padding-left:18px; margin:0 0 34px;
}

/* Violet note: "how to use this page". Amber note: "before you buy anything". */
.knowals-note,
.knowals-note-amber{
  padding:18px 22px; max-width:68ch;
  border:1px solid var(--rule); background:var(--violet-soft);
  border-left:4px solid var(--violet);
  margin:0 0 40px;
}
.knowals-note-amber{
  background:var(--amber-soft); border-left-color:var(--amber); margin:0 0 26px;
}
.knowals-note h4,
.knowals-note-amber h4{
  margin:0 0 8px; font-size:13px; letter-spacing:0.11em; text-transform:uppercase;
  font-weight:700; color:var(--violet); font-family:'Source Sans 3',system-ui,sans-serif;
}
.knowals-note-amber h4{ color:var(--amber); }
.knowals-note p, .knowals-note-amber p{ margin:0; }

.knowals-hub-section h2{
  font-family:'Bitter',Georgia,serif; font-size:26px; line-height:1.2;
  margin:0 0 6px; font-weight:700; letter-spacing:-0.01em;
}
.knowals-hub-section > p{ margin:0 0 20px; color:var(--ink-soft); max-width:68ch; }

/* ---------- device cards ---------- */
.knowals-devices{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px; margin-bottom:48px;
}
.knowals-devices > *{ margin-block-start:0 !important; margin-top:0 !important; }

.knowals-device{
  position:relative; display:flex; flex-direction:column;
  background:var(--raised); border:1px solid var(--rule);
}
.knowals-device figure{ margin:0; }
.knowals-device figure img{
  width:100%; aspect-ratio:4/3; object-fit:contain;
  background:#fff; border-bottom:1px solid var(--rule-soft); display:block;
}
.knowals-device .knowals-device-body{ padding:16px 18px 18px; }
.knowals-device .knowals-stage{
  font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--violet); font-weight:700; display:block; margin:0 0 5px;
}
.knowals-device h3{
  font-family:'Bitter',Georgia,serif; font-size:19px; display:block;
  line-height:1.25; margin:0 0 6px; font-weight:700;
}
.knowals-device h3 a{ color:var(--ink); text-decoration:none; }
.knowals-device h3 a::after{ content:""; position:absolute; inset:0; }
.knowals-device p:not(.knowals-stage){ font-size:15px; color:var(--ink-soft); margin:0; }
.knowals-device:hover{ border-color:var(--violet); }
.knowals-device:focus-within{ outline:3px solid var(--violet); outline-offset:2px; }

/* A card that points at a retailer rather than a guide we have written yet. */
.knowals-device.is-shop h3 a::after{ content:""; position:absolute; inset:0; }
.knowals-device .knowals-shop-note{
  display:block; margin-top:8px; font-size:12px; color:var(--ink-faint);
}

@media (max-width:680px){
  .knowals-hub h1{ font-size:31px; }
  .knowals-hub-answer{ font-size:19px; }
  .knowals-devices{ grid-template-columns:1fr; }
}

/* The page title lives in the template, the hub body in post_content. For the H1 to
   line up with a wide hub instead of floating in the 680px measure, its constrained
   wrapper has to allow the wide size too. */
.knowals-page-title.is-layout-constrained > *{ max-width:1180px; }

/* Devices we have not photographed yet would otherwise start their text at the top
   of the card and break the row rhythm. The mockups use a diagonal hatch as the
   stand-in for a missing photo, so reuse that rather than shipping a gap. */
.knowals-device.is-shop::before{
  content:"";
  display:block;
  aspect-ratio:4/3;
  border-bottom:1px solid var(--rule-soft);
  background:repeating-linear-gradient(
    45deg,
    var(--raised), var(--raised) 10px,
    var(--rule-soft) 10px, var(--rule-soft) 20px
  );
}

/* ==========================================================================
   ARTICLE / DEVICE PAGE
   Values transcribed from Article-Hoyer-Lift.dc.html, the canonical template.
   ========================================================================== */

.knowals-article-body h2{
  font-family:'Bitter',Georgia,serif; font-size:26px; line-height:1.2;
  margin:48px 0 12px; font-weight:700; letter-spacing:-0.01em;
}
.knowals-article-body p{ margin:0 0 16px; max-width:68ch; }

/* ---------- caution (amber) and stop (crimson) ----------
   At most ONE crimson block per page. It is the "put the person down and call
   someone" signal; using it twice teaches people to scroll past it. */
.knowals-caution,
.knowals-stop{
  padding:18px 22px; margin:26px 0; max-width:68ch;
  border:1px solid var(--rule); border-left:4px solid var(--amber);
  background:var(--amber-soft);
}
.knowals-stop{ border-left-color:var(--crimson); background:var(--crimson-soft); }
.knowals-caution h4,
.knowals-stop h4{
  margin:0 0 8px; font-size:13px; letter-spacing:0.11em; text-transform:uppercase;
  font-weight:700; color:var(--amber);
  font-family:'Source Sans 3',system-ui,sans-serif;
}
.knowals-stop h4{ color:var(--crimson); }
.knowals-caution ul,
.knowals-stop ul{ margin:0; padding-left:20px; }
.knowals-caution li,
.knowals-stop li{ margin-bottom:6px; }
.knowals-caution li:last-child,
.knowals-stop li:last-child{ margin-bottom:0; }

/* ---------- print CTA ---------- */
.knowals-print-cta{
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  flex-wrap:wrap; border:2px dashed var(--rule);
  padding:18px 22px; margin:32px 0; max-width:68ch;
}
.knowals-print-cta > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-print-cta p{ font-size:16px; margin:0; }
.knowals-print-cta strong{
  display:block; font-family:'Bitter',Georgia,serif; font-size:18px; font-weight:700;
}

/* ---------- spec card ----------
   Kicker, name, one-line positioning, spec dl, amber honest-limitation row, then
   the button with the disclosure beside it. The limitation row is never optional:
   it is the only thing separating this from a retailer blog. */
.knowals-spec-card{
  border:1px solid var(--rule); background:var(--raised);
  margin:22px 0; max-width:68ch;
}
.knowals-spec-card > *{ margin-block-start:0 !important; margin-top:0 !important; }

.knowals-spec-head{
  display:flex; gap:16px; padding:18px 20px;
  border-bottom:1px solid var(--rule-soft); align-items:flex-start;
}
.knowals-spec-head > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-spec-head figure{ margin:0; flex:none; }
.knowals-spec-head figure img{
  width:74px; height:74px; object-fit:contain; background:#fff;
  border:1px solid var(--rule); display:block;
}
.knowals-spec-kicker{
  font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--violet); font-weight:700; margin:0;
}
.knowals-spec-head h4{
  margin:0 0 3px; font-size:18px; font-family:'Bitter',Georgia,serif; font-weight:700;
}
.knowals-spec-head p:not(.knowals-spec-kicker){
  margin:4px 0 0; font-size:15px; color:var(--ink-soft);
}

/* The spec list is a two-column grid: label, value. */
.knowals-spec-card .knowals-specs{
  display:grid; grid-template-columns:auto 1fr; gap:0; margin:0; font-size:15px;
  list-style:none; padding:0;
}
.knowals-spec-card .knowals-specs dt{
  padding:9px 20px; color:var(--ink-faint);
  border-bottom:1px solid var(--rule-soft); font-weight:600; white-space:nowrap;
}
.knowals-spec-card .knowals-specs dd{
  padding:9px 20px; margin:0; border-bottom:1px solid var(--rule-soft);
}

.knowals-limitation{
  padding:14px 20px; background:var(--amber-soft); font-size:15px;
  border-bottom:1px solid var(--rule-soft); margin:0;
}
.knowals-limitation strong{ color:var(--amber); }

.knowals-buy{
  padding:14px 20px; display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}
.knowals-buy > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-buy .wp-block-buttons{ margin:0; }
.knowals-buy .knowals-disclosure{
  font-size:13px; color:var(--ink-faint); margin:0; max-width:40ch;
}

/* ---------- data table ---------- */
.knowals-article-body table,
.knowals-table table{
  width:100%; border-collapse:collapse; font-size:16px; margin:16px 0 26px; max-width:68ch;
}
.knowals-article-body th,
.knowals-table th{
  text-align:left; background:var(--ink); color:var(--paper);
  padding:10px 12px; font-size:13px; letter-spacing:0.04em; text-transform:uppercase;
}
.knowals-article-body td,
.knowals-table td{
  padding:10px 12px; border-bottom:1px solid var(--rule-soft); vertical-align:top;
}

@media (max-width:680px){
  .knowals-spec-head{ flex-direction:column; }
  .knowals-spec-card .knowals-specs{ grid-template-columns:1fr; }
  .knowals-spec-card .knowals-specs dt{ border-bottom:none; padding-bottom:0; }
  .knowals-print-cta{ flex-direction:column; align-items:flex-start; }
}

/* ---------- article head: eyebrow, H1, direct answer, byline ---------- */
.knowals-article h1{
  font-family:'Bitter',Georgia,serif; font-size:42px; line-height:1.12;
  letter-spacing:-0.015em; margin:6px 0 14px; font-weight:700; text-wrap:balance;
}
.knowals-direct-answer{
  font-size:21px; line-height:1.5; max-width:68ch;
  border-left:3px solid var(--violet); padding-left:18px; margin:0 0 26px;
}
.knowals-byline{
  display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:16px 0;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
  margin-bottom:32px; font-size:14px; color:var(--ink-soft);
}
.knowals-byline > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-byline .knowals-avatar{
  width:46px; height:46px; border-radius:50%; background:var(--violet-soft);
  border:1px solid var(--rule); display:grid; place-items:center;
  font-family:'Bitter',Georgia,serif; font-weight:700; color:var(--violet);
  font-size:17px; flex:none;
}
.knowals-byline dl{ display:flex; gap:22px; flex-wrap:wrap; margin:0; }
.knowals-byline dt{
  font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ink-faint); font-weight:700; margin:0 0 2px;
}
.knowals-byline dd{ margin:0; color:var(--ink); font-weight:600; }

/* ---------- video ---------- */
.knowals-video{ margin:0 0 10px; max-width:68ch; }
.knowals-video iframe{
  width:100%; aspect-ratio:16/9; border:1px solid var(--rule); display:block;
}
.knowals-video-caption{
  font-size:14px; color:var(--ink-faint); margin:9px 0 34px; max-width:68ch;
}

/* ---------- before you start: violet rule on the raised ground ---------- */
.knowals-before{
  padding:18px 22px; margin:26px 0; max-width:68ch;
  border:1px solid var(--rule); border-left:4px solid var(--violet);
  background:var(--raised);
}
.knowals-before h4{
  margin:0 0 8px; font-size:13px; letter-spacing:0.11em; text-transform:uppercase;
  font-weight:700; color:var(--violet); font-family:'Source Sans 3',system-ui,sans-serif;
}
.knowals-before ul{ margin:0; padding-left:20px; }
.knowals-before li{ margin-bottom:6px; }
.knowals-before li:last-child{ margin-bottom:0; }

/* ---------- step rail: the signature component ----------
   Numbered marks hang in the left margin on a 2px rule. The mark is OUTLINED,
   not filled, and numbered by a CSS counter so steps renumber themselves when
   one is added or removed. */
.knowals-step-rail{
  border-left:2px solid var(--rule);
  padding-left:34px; margin:0 0 20px 16px; max-width:68ch;
  counter-reset:kwstep;
}
.knowals-step-rail > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-step{ position:relative; padding-bottom:26px; counter-increment:kwstep; }
.knowals-step > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-step::before{
  content:counter(kwstep);
  position:absolute; left:-51px; top:0;
  width:32px; height:32px; display:grid; place-items:center;
  font-family:'Bitter',Georgia,serif; font-weight:700; font-size:15px;
  background:var(--paper); color:var(--violet);
  border:2px solid var(--violet); border-radius:50%;
}
.knowals-step h4{ font-size:18px; font-weight:700; margin:2px 0 6px; }
.knowals-step p{ margin:0 0 8px; }
.knowals-step .knowals-why{
  font-size:15px; color:var(--ink-soft);
  border-left:2px solid var(--rule-soft); padding-left:12px;
  margin:0; font-style:italic; max-width:60ch;
}

/* Mobile: the rail collapses, marks go inline above the step heading. */
@media (max-width:680px){
  .knowals-step-rail{ border-left:none; padding-left:0; margin-left:0; }
  .knowals-step::before{ position:static; margin-bottom:8px; }
}

/* ---------- progression: when this stops working ---------- */
.knowals-progression{
  padding:18px 22px; margin:26px 0; max-width:68ch;
  border:1px solid var(--rule); border-left:4px solid var(--violet);
  background:var(--violet-soft);
}
.knowals-progression h4{
  margin:0 0 8px; font-size:13px; letter-spacing:0.11em; text-transform:uppercase;
  font-weight:700; color:var(--violet); font-family:'Source Sans 3',system-ui,sans-serif;
}
.knowals-progression p{ margin:0; }

/* ---------- FAQ ---------- */
.knowals-faq details{ border-bottom:1px solid var(--rule); padding:14px 0; }
.knowals-faq summary{
  cursor:pointer; font-weight:700; font-size:17px; list-style:none;
  min-height:44px; display:flex; align-items:center;
}
.knowals-faq summary::-webkit-details-marker{ display:none; }
.knowals-faq summary::before{
  content:"+"; color:var(--violet); font-weight:700; margin-right:10px;
}
.knowals-faq details[open] summary::before{ content:"\2212"; }
.knowals-faq details p{ margin:10px 0 0; max-width:68ch; }

/* ---------- related ---------- */
.knowals-related{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px; margin:16px 0; max-width:68ch;
}
.knowals-related > *{ margin-block-start:0 !important; margin-top:0 !important; }
.knowals-related-card{
  position:relative; background:var(--raised); border:1px solid var(--rule);
  padding:16px 18px;
}
.knowals-related-card .knowals-stage{
  font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--violet); font-weight:700; display:block; margin:0 0 5px;
}
.knowals-related-card h3{
  font-family:'Bitter',Georgia,serif; font-size:17px; display:block;
  line-height:1.25; margin:0; font-weight:700;
}
.knowals-related-card h3 a{ color:var(--ink); text-decoration:none; }
.knowals-related-card h3 a::after{ content:""; position:absolute; inset:0; }
.knowals-related-card:hover{ border-color:var(--violet); }

@media (max-width:680px){
  .knowals-article h1{ font-size:31px; }
  .knowals-direct-answer{ font-size:19px; }
  .knowals-related{ grid-template-columns:1fr; }
}

/* A catalogued product with no vetted product link yet. Deliberately not a button:
   there is nowhere legitimate to send the reader, and a search link would be worse
   than no link. Michael, 2026-07-26: no links to Amazon categories. */
.knowals-pending{
  padding:14px 20px; margin:0; font-size:13px; color:var(--ink-faint);
  background:var(--rule-soft); border-top:1px solid var(--rule-soft);
}
