﻿/* OjiSmart blog — tokens + shared UI (scoped under .ojs) */
.ojs{
  --blue-bar:#2E58CE;--philips-1:#0B5ED7;--philips-2:#2B7BEA;
  --blau-dark:#003867;--blau-100:#00527A;--blau-cyan:#1088D8;--blau-grey:#888E93;--blau-red:#D10019;
  --gold:#E2A344;--gold-foot:#E4B01E;--gold-foot2:#CC9919;--teal:#1E4C5B;--gold-ink:#7A5510;--red:#E03B32;
  --ink:#15213B;--name:#18294A;--body:#5F6774;--muted:#6B7382;
  --bg:#FFFFFF;--cream:#FAF5EE;--line:#E7E4DE;--line-2:#EFECE6;
  --shadow-sm:0 1px 2px rgba(21,33,59,.04),0 2px 6px rgba(21,33,59,.04);
  --shadow:0 6px 20px rgba(21,33,59,.08);
  --wrap:1320px;--gut:clamp(16px,3vw,28px);
  --f-head:"Montserrat","Montserrat Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --f-body:"Montserrat","Montserrat Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.ojs *,.ojs *::before,.ojs *::after{box-sizing:border-box}
.ojs{margin:0;background:var(--bg);color:var(--body);font-family:var(--f-body);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
.ojs h1,.ojs h2,.ojs h3,.ojs h4{font-family:var(--f-head);color:var(--ink);line-height:1.2;margin:0;font-weight:600;letter-spacing:-.01em}
.ojs p{margin:0}
.ojs img{max-width:100%;display:block}
.ojs a{color:inherit;text-decoration:none}
.ojs button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.ojs ul{margin:0;padding:0;list-style:none}
.ojs :focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:3px}
.ojs .wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.ojs .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ojs .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;font-family:var(--f-head);font-weight:600;font-size:13.5px;transition:background .18s ease,color .18s ease,border-color .18s ease}
.ojs .btn--outline{border:1px solid #D8D4CC;color:var(--ink);background:#fff}
.ojs .btn--outline:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.ojs .btn--gold{background:var(--gold);color:#241E0E}
.ojs .btn--gold:hover{background:#CE9233}
.ojs .btn--teal{background:var(--teal);color:#fff}
.ojs .btn--teal:hover{background:#163A46}
body.ojismart-v2-chrome.blog .col-full,
body.ojismart-v2-chrome.archive .col-full,
body.ojismart-v2-chrome.single-post .col-full{max-width:none;padding:0;width:100%}
body.ojismart-v2-chrome.blog #primary,
body.ojismart-v2-chrome.archive #primary,
body.ojismart-v2-chrome.single-post #primary{width:100%;float:none;margin:0}
body.ojismart-v2-chrome.blog #secondary,
body.ojismart-v2-chrome.archive #secondary,
body.ojismart-v2-chrome.single-post #secondary{display:none}
/* ======================== BLOG (/blog-list/) ========================
   Three things only: the title, one big search, the categories - then the
   articles. No badges, counts or decoration. Scoped under .ojs at build time. */
/* ---- hero: one flat navy band; the header pill floats over it like on the homepage */


.ojs .bhero{background:var(--ink);color:#fff;text-align:center;padding:132px 0 44px}
.ojs .bhero h1{color:#fff;font-size:clamp(28px,3.6vw,40px);font-weight:600;line-height:1.15;letter-spacing:-.015em}
/* ---- the big search */


.ojs .bsearch{
  display:flex;align-items:center;gap:6px;
  max-width:720px;height:64px;margin:28px auto 0;padding:0 7px 0 22px;
  background:#fff;border-radius:14px;
}
.ojs .bsearch:focus-within{box-shadow:0 0 0 3px rgba(226,163,68,.6)}
.ojs .bsearch__ico{width:20px;height:20px;flex:none;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.ojs .bsearch input{
  flex:1;min-width:0;height:100%;border:0;background:none;outline:none;
  font:500 17px/1.2 var(--f-body);color:var(--ink);padding:0 10px;
}
.ojs .bsearch input::placeholder{color:#8A909B;font-weight:400}
.ojs .bsearch input::-webkit-search-cancel-button{display:none}
.ojs .bsearch__clear{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--muted)}
.ojs .bsearch__clear:hover{background:#F2EEE7;color:var(--ink)}
.ojs .bsearch__clear svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ojs .bsearch__clear[hidden]{display:none}
.ojs .bsearch__go{
  height:50px;padding:0 24px;border-radius:10px;flex:none;
  background:var(--gold);color:#241E0E;font-family:var(--f-head);font-weight:600;font-size:14px;
  display:inline-flex;align-items:center;gap:8px;transition:background .18s ease;
}
.ojs .bsearch__go:hover{background:#CE9233}
.ojs .bsearch__go svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
/* ---- categories: plain text pills, the selected one white */


.ojs .bcats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:980px;margin:22px auto 0}
.ojs .bchip{
  display:inline-flex;align-items:center;height:36px;padding:0 15px;border-radius:999px;
  border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.82);
  font-family:var(--f-head);font-weight:500;font-size:13px;white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;
}
.ojs .bchip:hover{border-color:rgba(255,255,255,.55);color:#fff}
.ojs .bchip[aria-current="true"]{background:#fff;border-color:#fff;color:var(--ink);font-weight:600}
.ojs .bchip.is-empty{color:rgba(255,255,255,.55);border-color:rgba(255,255,255,.08)}
/* faded but still 5:1, they stay clickable */
   .ojs .bchip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* ---- results */


.ojs .blist{padding-block:clamp(36px,4.4vw,56px) clamp(48px,6vw,80px)}
.ojs .blist__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:26px}
.ojs .blist__head h2{font-size:clamp(20px,2.2vw,24px);font-weight:600}
.ojs .blist__meta{display:flex;align-items:baseline;gap:14px;font-size:13px;color:var(--muted);white-space:nowrap}
.ojs .blist__reset{font-family:var(--f-head);font-weight:600;color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.ojs .blist__reset[hidden]{display:none}
/* cards: image, one quiet meta line, the title - no boxes */


.ojs .bgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 28px}
.ojs .bcard{display:flex;flex-direction:column;gap:14px}
.ojs .bcard__img{display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#F2EEE7}
.ojs .bcard__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ojs .bcard:hover .bcard__img img{transform:scale(1.03)}
.ojs .bph{width:100%;height:100%;display:grid;place-items:center;background:#F2EEE7}
.ojs .bph svg{width:26%;max-width:72px;height:auto;fill:rgba(21,33,59,.14)}
.ojs .bcard__b{display:flex;flex-direction:column;gap:6px}
.ojs .bcard__meta{display:flex;align-items:baseline;gap:5px;min-width:0;font-size:12px;color:var(--muted);white-space:nowrap}
.ojs .bcard__meta span{overflow:hidden;text-overflow:ellipsis;min-width:0}
/* a long category shortens; the date never wraps */
   .ojs .bcard__meta i{font-style:normal}
.ojs .bcard__meta time{flex:none}
.ojs .bcard h3{font-size:17px;line-height:1.4;font-weight:600;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:color .18s ease}
.ojs .bcard:hover h3{color:var(--teal)}
.ojs .bcard:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:12px}
.ojs .bmark{background:rgba(226,163,68,.3);color:inherit;border-radius:2px}
/* load more + empty state */


.ojs .bmore{display:flex;justify-content:center;margin-top:48px}
.ojs .bmore[hidden]{display:none}
.ojs .bempty{text-align:center;padding:40px 20px 24px;max-width:480px;margin:0 auto}
.ojs .bempty[hidden]{display:none}
.ojs .bempty h3{font-size:18px}
.ojs .bempty p{font-size:14px;color:var(--body);margin-top:8px}
.ojs .bempty__btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.ojs .bempty__btns [hidden]{display:none}
/* ---- tablet */


@media(max-width:1023px){.ojs .bgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ---- phone: smaller search, categories in one swipeable row, articles as a simple list */


@media(max-width:760px){
  .ojs .bhero{padding:100px 0 26px;text-align:left}
  .ojs .bhero h1{font-size:26px}
  .ojs .bsearch{height:56px;margin-top:18px;padding:0 6px 0 16px;border-radius:12px}
  .ojs .bsearch input{font-size:16px;padding:0 8px}
  .ojs .bsearch__go{width:44px;height:44px;padding:0;justify-content:center;border-radius:9px}
  .ojs .bsearch__go span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ojs .bcats{
    flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;
    margin:16px calc(-1 * var(--gut)) 0;padding:0 var(--gut) 4px;scroll-padding-inline:var(--gut);scrollbar-width:none;
  }
  .ojs .bcats::-webkit-scrollbar{display:none}
  .ojs .bchip{height:40px;flex:none;scroll-snap-align:start}

  .ojs .blist__head{margin-bottom:18px}
  .ojs .bgrid{grid-template-columns:1fr;gap:22px}
  .ojs .bcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:start}
  .ojs .bcard__img{border-radius:9px}
  .ojs .bcard__b{gap:4px}
  .ojs .bcard h3{font-size:15px;line-height:1.38}
  .ojs .bmore{margin-top:32px}
  .ojs .bmore .btn{width:100%;min-height:48px}
}


/* ======================== ARTICLE PAGE ========================
   The blog article layout: title, lead and one meta line, one wide picture, then "On this page" beside the
   text on desktop, "The short version", plain text with one table, sources, a call to action and related
   articles. Built on the homepage stylesheet above. Everything is scoped under .ojs and prefixed ap-. */

/*
 * Sticky TOC / product rail need a normal document scrollport.
 * overflow-x:clip on <main class="ojs"> (or overflow-x:hidden on #page/body)
 * makes sticky children scroll away instead of pinning.
 */
body.ojismart-blog,
body.ojismart-blog #page.hfeed,
body.ojismart-blog #page{
  overflow-x:clip;
  overflow-y:visible;
}
.ojs.ap,
main.site-main.ap.ojs{
  overflow-x:visible;
  overflow-y:visible;
}
/* no hero on this page: the floating header bar needs its own room (as on the product page) */
.ojs.ap,
main.ap{padding-top:32px}

/* ---------------------------------------------------------------- title, lead, meta, picture */
.ojs .ap-head{padding-top:clamp(40px,5.4vw,76px)}
.ojs .ap-head h1{max-width:900px;font-size:clamp(32px,4.2vw,52px);line-height:1.08;font-weight:600;letter-spacing:-.025em;text-wrap:balance}
.ojs .ap-lead{margin-top:20px;max-width:38em;font-size:clamp(17px,1.5vw,20px);line-height:1.55;color:var(--body)}
.ojs .ap-meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:22px;font-size:13px;color:var(--muted)}
.ojs .ap-meta a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:.3em}
.ojs .ap-meta span[aria-hidden]{color:#B9B3A8}
.ojs .ap-art{margin:36px 0 0;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#EFEAE2}
.ojs .ap-art > img,.ojs .ap-art > svg{display:block;width:100%;height:100%;object-fit:cover}

/* ---------------------------------------------------------------- the text column (and the contents beside it on desktop) */
.ojs .ap-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;padding-block:44px clamp(64px,8vw,104px)}
.ojs .ap-main{min-width:0;max-width:720px}

/* Mobile / tablet: "On this page" as hamburger accordion at content top */
.ojs .ap-toc{
  display:block;order:-1;margin:0 0 4px;
  border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;
}
.ojs .ap-toc__btn{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  margin:0;padding:14px 16px;border:0;background:transparent;cursor:pointer;text-align:left;
  font:inherit;color:var(--ink);-webkit-tap-highlight-color:transparent;
}
.ojs .ap-toc__label{
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.ojs .ap-toc__burger{
  position:relative;flex:none;width:22px;height:16px;
}
.ojs .ap-toc__burger i{
  position:absolute;left:0;right:0;height:2px;border-radius:2px;background:var(--ink);
  transition:transform .22s ease,opacity .18s ease,top .22s ease;
}
.ojs .ap-toc__burger i:nth-child(1){top:0}
.ojs .ap-toc__burger i:nth-child(2){top:7px}
.ojs .ap-toc__burger i:nth-child(3){top:14px}
.ojs .ap-toc.is-open .ap-toc__burger i:nth-child(1){top:7px;transform:rotate(45deg)}
.ojs .ap-toc.is-open .ap-toc__burger i:nth-child(2){opacity:0}
.ojs .ap-toc.is-open .ap-toc__burger i:nth-child(3){top:7px;transform:rotate(-45deg)}
.ojs .ap-toc__list{
  display:none;margin:0;padding:0 8px 12px;list-style:none;border-top:1px solid var(--line-2);
}
.ojs .ap-toc.is-open .ap-toc__list{display:block}
.ojs .ap-toc__list a{
  position:relative;display:block;padding:10px 10px 10px 16px;font-size:14.5px;line-height:1.4;color:var(--body);
}
.ojs .ap-toc__list a[aria-current="true"]{color:var(--ink);font-weight:600}
.ojs .ap-toc__list a[aria-current="true"]::before{
  content:"";position:absolute;left:4px;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--gold);
}

.ojs .ap-short{padding:22px 22px 24px;border-radius:16px;background:var(--cream);color:var(--body);font-size:16px;line-height:1.6}
.ojs .ap-short h2{font-size:20px;letter-spacing:-.01em}
.ojs .ap-short ul{margin-top:14px}
.ojs .ap-short + .ap-prose{margin-top:52px}

.ojs .ap-prose{color:#3E4654;font-size:17px;line-height:1.75}
.ojs .ap-prose > * + *{margin-top:20px}
.ojs .ap-prose > * + h2,
.ojs .ap-prose > * + h3,
.ojs .ap-prose h2,
.ojs .ap-prose h3{margin-top:56px;font-size:clamp(24px,2.4vw,30px);line-height:1.2;letter-spacing:-.02em;text-wrap:balance;scroll-margin-top:110px}
.ojs .ap-prose > h2:first-child,.ojs .ap-prose > h3:first-child{margin-top:0}
.ojs .ap-prose h2 + *,.ojs .ap-prose h3 + *{margin-top:16px}
.ojs .ap-share{margin:0 0 28px}
.ojs .ap-share .heateor_sss_sharing_title{margin-bottom:10px;font-size:13px;font-weight:600;color:var(--muted)}
.ojs :is(.ap-prose,.ap-short) strong{color:var(--ink);font-weight:600}
.ojs :is(.ap-prose,.ap-short) a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:.22em;transition:text-decoration-thickness .16s ease}
@media(hover:hover) and (pointer:fine){.ojs :is(.ap-prose,.ap-short) a:hover{text-decoration-thickness:3px}}
.ojs :is(.ap-prose,.ap-short) ol{margin-bottom:0;padding:0;list-style:none}
.ojs :is(.ap-prose,.ap-short) li{position:relative;padding-left:30px}
.ojs :is(.ap-prose,.ap-short) li + li{margin-top:12px}
.ojs :is(.ap-prose,.ap-short) ul > li::before{content:"";position:absolute;left:6px;top:.64em;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.ojs .ap-short ul > li::before{top:.55em}
.ojs .ap-prose ol{counter-reset:step}
.ojs .ap-prose ol > li{counter-increment:step;padding-left:40px}
.ojs .ap-prose ol > li::before{
  content:counter(step);position:absolute;left:0;top:.15em;display:grid;place-items:center;
  width:26px;height:26px;border-radius:50%;background:var(--cream);color:var(--gold-ink);font-size:12.5px;font-weight:600;line-height:1;
}

/* the comparison table: plain rows, no box */
.ojs .ap-tbl{overflow-x:auto}
.ojs .ap-tbl table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.ojs .ap-tbl th,.ojs .ap-tbl td{padding:14px 18px 14px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.ojs .ap-tbl thead th{padding-top:0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ojs .ap-tbl tbody th{width:30%;color:var(--ink);font-weight:600}
.ojs .ap-tbl tbody td{color:#3E4654}
.ojs .ap-tbl td:last-child,.ojs .ap-tbl th:last-child{padding-right:0}

.ojs .ap-note{margin-top:40px;font-size:14px;color:var(--muted)}

/* ---------------------------------------------------------------- the call to action after the article */
.ojs .ap-cta{background:var(--teal);color:#fff;padding-block:clamp(48px,6vw,80px)}
.ojs .ap-cta__in{display:flex;flex-direction:column;gap:26px}
.ojs .ap-cta h2{max-width:20ch;color:#fff;font-size:clamp(26px,3.2vw,40px);line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.ojs .ap-cta p{margin-top:12px;max-width:46ch;font-size:16px;line-height:1.6;color:rgba(255,255,255,.84)}
.ojs .ap-cta .btn{align-self:flex-start;min-height:48px;gap:10px;padding-inline:24px;font-size:14px;font-weight:600}
.ojs .ap-cta .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------------------------------------------------------------- related articles: the blog page's cards */
.ojs .ap-related{padding-block:clamp(56px,7vw,96px)}
.ojs .ap-related h2{margin-bottom:26px;font-size:clamp(20px,2.2vw,24px);font-weight:600}
.ojs .bgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 28px}
.ojs .bcard{display:flex;flex-direction:column;gap:14px}
.ojs .bcard__img{display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#F2EEE7}
.ojs .bcard__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ojs .bcard:hover .bcard__img img{transform:scale(1.03)}
.ojs .bph{width:100%;height:100%;display:grid;place-items:center;background:#F2EEE7}
.ojs .bph svg{width:26%;max-width:72px;height:auto;fill:rgba(21,33,59,.14)}
.ojs .bcard__b{display:flex;flex-direction:column;gap:6px}
.ojs .bcard__meta{display:flex;align-items:baseline;gap:5px;min-width:0;font-size:12px;color:var(--muted);white-space:nowrap}
.ojs .bcard__meta span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.ojs .bcard__meta i{font-style:normal}
.ojs .bcard__meta time{flex:none}
.ojs .bcard h3{font-size:17px;line-height:1.4;font-weight:600;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:color .18s ease}
.ojs .bcard:hover h3{color:var(--teal)}
.ojs .bcard:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:12px}

/* ---------------------------------------------------------------- the two locks: stacked under the article, sticky rail on wide screens */
.ojs .ap-rail{display:block;max-width:420px;margin:0 auto;padding:0 0 clamp(40px,6vw,72px)}
.ojs .ap-locks{padding:22px 22px 20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}
.ojs .ap-locks h2{margin-bottom:4px;font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.ojs .ap-lock{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line-2)}
.ojs .ap-lock:last-of-type{border-bottom:1px solid var(--line-2)}
.ojs .ap-lock__img{display:grid;place-items:center;width:92px;height:92px;border-radius:12px;background:var(--cream);overflow:hidden}
.ojs .ap-lock__img img{width:100%;height:100%;object-fit:contain;padding:8%}
.ojs .ap-lock__img svg{width:auto;height:86%}
.ojs .ap-lock__b{display:flex;flex-direction:column;gap:2px;min-width:0}
.ojs .ap-lock__b b{font-size:14.5px;font-weight:600;line-height:1.3;color:var(--ink)}
.ojs .ap-lock__b b span{display:block;white-space:nowrap}
.ojs .ap-lock__price{font-size:14px;font-weight:600;color:var(--name)}
.ojs .ap-lock__for{font-size:12.5px;line-height:1.4;color:var(--muted)}
.ojs .ap-lock__go{margin-top:2px;font-size:12.5px;font-weight:600;color:var(--teal);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:3px}
.ojs .ap-lock:hover b{color:var(--teal)}
.ojs .ap-wa{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:14px;border-radius:10px;background:#E8F6EE;color:#0E6B3B;font-size:13.5px;font-weight:600;transition:background .18s ease}
.ojs .ap-wa:hover{background:#D6EFE1}
.ojs .ap-call{margin-top:10px;text-align:center;font-size:12.5px;color:var(--muted)}
.ojs .ap-call a{color:var(--ink);font-weight:600;white-space:nowrap;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.ojs .ap-wa svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------------------------------------------------------------- tablet */
@media(min-width:700px){
  .ojs .ap-short{padding:28px 32px 30px}
  /* the picture: as wide as the intro above it, never a full-width banner, never cropped */
  .ojs .ap-art{max-width:760px}
  .ojs .ap-cta__in{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:48px}
  .ojs .ap-cta .btn{align-self:auto;flex:none}
}
@media(max-width:1023px){.ojs .bgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------------------------------------------------------------- desktop: the contents beside the text */
@media(min-width:1080px){
  .ojs .ap-art{margin-top:44px}
  /* Keep default stretch so the TOC column is as tall as the prose — required for sticky */
  .ojs .ap-grid{grid-template-columns:220px minmax(0,720px);gap:0 clamp(56px,7vw,120px);padding-top:64px}
  .ojs .ap-toc{
    order:0;margin:0;border:0;border-radius:0;background:transparent;overflow:visible;
    display:block;position:sticky;top:112px;align-self:start;z-index:3;
    max-height:calc(100vh - 132px);overflow:auto;overscroll-behavior:contain;
  }
  .ojs .ap-toc__btn{
    display:block;padding:0;cursor:default;pointer-events:none;
  }
  .ojs .ap-toc__burger{display:none}
  .ojs .ap-toc__list,
  .ojs .ap-toc.is-open .ap-toc__list,
  .ojs .ap-toc:not(.is-open) .ap-toc__list{
    display:block !important;margin:12px 0 0;padding:0;border:0;
  }
  .ojs .ap-toc__list a{
    padding:7px 0 7px 16px;font-size:14px;color:var(--muted);transition:color .18s ease;
  }
  .ojs .ap-toc__list a[aria-current="true"]{color:var(--ink);font-weight:600}
  .ojs .ap-toc__list a[aria-current="true"]::before{left:0;top:8px;bottom:8px}
  .ojs .ap-toc__list a:hover{color:var(--ink)}
}
@media(min-width:1100px){
  /* Match Bernath mock: title+body left, sticky product rail right */
  /* Rail column must stretch full article height so .ap-locks can stick while scrolling */
  .ojs .ap-page--rail{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"head rail" "body rail";column-gap:clamp(40px,4vw,64px)}
  .ojs .ap-page--rail .ap-head{grid-area:head;min-width:0}
  .ojs .ap-page--rail .ap-grid{grid-area:body;grid-template-columns:200px minmax(0,1fr);gap:0 clamp(32px,3vw,48px)}
  .ojs .ap-page--rail .ap-rail{
    grid-area:rail;max-width:none;margin:0;
    padding:clamp(40px,5.4vw,76px) 0 0;
  }
  .ojs .ap-page--rail .ap-locks{
    position:sticky;top:112px;z-index:3;
    max-height:calc(100vh - 132px);overflow:auto;overscroll-behavior:contain;
  }
}

/* ---------------------------------------------------------------- phone: the table stacks, the related articles become a list */
@media(max-width:699px){
  .ojs .ap-tbl{overflow:visible}
  .ojs .ap-tbl table,.ojs .ap-tbl tbody,.ojs .ap-tbl tr,.ojs .ap-tbl th,.ojs .ap-tbl td{display:block}
  .ojs .ap-tbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ojs .ap-tbl tr{padding:16px 18px;border-radius:14px;background:var(--cream)}
  .ojs .ap-tbl tr + tr{margin-top:10px}
  .ojs .ap-tbl th,.ojs .ap-tbl td{width:auto;padding:0;border:0}
  .ojs .ap-tbl tbody th{width:auto;margin-bottom:8px;font-size:16px}
  .ojs .ap-tbl td{display:grid;grid-template-columns:7.2em 1fr;gap:12px;padding-block:4px}
  .ojs .ap-tbl td::before{content:attr(data-label);padding-top:3px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
}
@media(max-width:760px){
  .ojs main.ap{padding-top:48px}
  .ojs .bgrid{grid-template-columns:1fr;gap:22px}
  .ojs .bcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:start}
  .ojs .bcard__img{border-radius:9px}
  .ojs .bcard__b{gap:4px}
  .ojs .bcard h3{font-size:15px;line-height:1.38}
}
@media(prefers-reduced-motion:reduce){.ojs .bcard__img img,.ojs .ap-toc a{transition:none}}


