/* ==========================================================================
   Jacob Mushi — theme styles

   Written mobile-first: the base rules are the phone layout, and the few
   @media (min-width:…) blocks add what a bigger screen can afford. Most of
   Jacob's readers arrive on a phone, so that is the layout that gets the care.

   Warm paper, one accent, no dark bands — a person's site, not a brochure.
   Ink navy #000040 is taken from Jacob's own signature.
   ========================================================================== */

:root{
  --paper:#fdfaf4;
  --paper-2:#f6f0e5;
  --card:#ffffff;

  --ink:#191622;
  --read:#36313f;   /* long-form body text — 12:1 on paper */
  --body:#4e4957;   /* shorter UI copy */
  --muted:#6f6a7b;
  --line:#e9e1d3;
  --line-soft:#f0eade;

  --navy:#000040;
  --navy-700:#22226e;
  /* One accent, chosen so the same value clears WCAG AA both as text on paper
     (5.4:1) and as a button background under white text (5.7:1). */
  --clay:#a44e2c;
  --clay-600:#8a3f21;
  --clay-soft:#f7e6dc;

  --radius:16px;
  --radius-lg:24px;
  --radius-pill:999px;

  --shadow-sm:0 1px 2px rgba(25,22,34,.05), 0 2px 8px rgba(25,22,34,.04);
  --shadow:0 6px 18px rgba(25,22,34,.07), 0 18px 40px rgba(25,22,34,.06);

  --wrap:1080px;
  --wrap-narrow:720px;
  --measure:64ch;   /* ~64 characters: the comfortable line for reading */
  --gutter:20px;

  /* Montserrat throughout, as on shulewiki.com. It is a wide face, so the
     sizes below sit a step under what the old serif/system pairing used. */
  --font-head:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h:64px;
  --bar-h:0px;
}

/* --------------------------------------------------------------- reset */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.7;
  color:var(--body);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  padding-bottom:var(--bar-h);
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--navy-700);text-underline-offset:3px}
a:hover{color:var(--clay-600)}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  line-height:1.2;
  margin:0 0 .55em;
  font-weight:700;
  letter-spacing:-.02em;
  text-wrap:balance;
}
h1{font-size:clamp(1.85rem,6.8vw,2.8rem);line-height:1.12;font-weight:800}
h2{font-size:clamp(1.4rem,5vw,1.95rem)}
h3{font-size:1.12rem;font-weight:600}
h4{font-size:1rem;font-weight:600}
p{margin:0 0 1.15em}
ul,ol{margin:0 0 1.15em;padding-left:1.3em}
li{margin-bottom:.45em}
blockquote{
  margin:1.8em 0;padding:0 0 0 1.2em;
  border-left:3px solid var(--clay);
  font-family:var(--font-head);font-size:1.2rem;line-height:1.45;
  color:var(--ink);font-style:italic;
}
blockquote p:last-child{margin-bottom:0}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
table{width:100%;border-collapse:collapse;margin-bottom:1.5em;font-size:.97rem}
th,td{padding:.7em .8em;border-bottom:1px solid var(--line);text-align:left}
th{font-family:var(--font-head);color:var(--ink);font-weight:600}
code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
pre{background:var(--ink);color:#f3efe6;padding:1.1em;border-radius:var(--radius);overflow-x:auto}
:focus-visible{outline:3px solid var(--clay);outline-offset:2px;border-radius:6px}

/* ------------------------------------------------------------- helpers */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.wrap-narrow{max-width:var(--wrap-narrow)}
.section{padding:clamp(44px,9vw,84px) 0}
.section--tight{padding:clamp(32px,6vw,56px) 0}
.section--alt{background:var(--paper-2)}
.center{text-align:center}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:2000;
  background:var(--clay);color:#fff;font-weight:600;
  padding:.8em 1.2em;border-radius:0 0 var(--radius) 0;
}
.skip-link:focus{left:0}

.kicker{
  display:block;font-weight:600;font-size:.9rem;
  color:var(--clay);margin-bottom:.5rem;
}
.section-head{margin-bottom:clamp(24px,5vw,40px);max-width:38rem}
.section-head p{margin-bottom:0}
.lead{font-size:1.15rem;line-height:1.65;color:var(--ink)}

/* --------------------------------------------------------------- buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--font-body);font-weight:600;font-size:1rem;line-height:1;
  min-height:48px;padding:.85em 1.5em;
  border-radius:var(--radius-pill);border:1.5px solid transparent;
  text-decoration:none;cursor:pointer;
  transition:background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn svg{width:18px;height:18px}
.btn--primary{background:var(--navy);color:#fff}
.btn--primary:hover{background:var(--navy-700);color:#fff}
.btn--clay{background:var(--clay);color:#fff}
.btn--clay:hover{background:var(--clay-600);color:#fff}
.btn--quiet{background:transparent;color:var(--ink);border-color:var(--line)}
.btn--quiet:hover{background:var(--card);border-color:var(--ink);color:var(--ink)}
.btn--sm{min-height:40px;font-size:.92rem;padding:.6em 1.1em}
.btn-row{display:flex;flex-wrap:wrap;gap:.7rem}

.textlink{
  font-weight:600;color:var(--navy-700);text-decoration:none;
  display:inline-flex;align-items:center;gap:.35em;
}
.textlink::after{content:"→";transition:transform .18s ease}
.textlink:hover::after{transform:translateX(3px)}

/* ---------------------------------------------------------------- header */
.site-header{
  position:sticky;top:0;z-index:900;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
/* The frosted backing lives on a pseudo-element, not on .site-header itself:
   backdrop-filter makes an element the containing block for its fixed-position
   descendants, which would collapse the mobile menu sheet into the header. */
.site-header::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:rgba(253,250,244,.94);
  backdrop-filter:saturate(1.4) blur(8px);
}
.site-header.is-stuck{border-bottom-color:var(--line)}
.header-bar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:var(--header-h);
}
.site-brand{display:flex;align-items:center;text-decoration:none;flex-shrink:0}
.site-brand img,.custom-logo-link img{height:34px;width:auto}
.header-actions{display:flex;align-items:center;gap:.5rem}
.header-actions .btn--header{display:none}

.nav-toggle{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:48px;height:48px;border:0;background:transparent;
  border-radius:12px;cursor:pointer;color:var(--ink);
}
.nav-toggle span{display:block;width:22px;height:2px;background:currentColor;position:relative;border-radius:2px;transition:background .2s}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:currentColor;border-radius:2px;
  transition:transform .22s ease, top .22s ease;
}
.nav-toggle span::before{top:-7px}
.nav-toggle span::after{top:7px}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

/* the menu is a full-height sheet on a phone, with rows you can hit with a thumb */
.primary-nav{
  position:fixed;inset:var(--header-h) 0 0 0;background:var(--paper);
  padding:.5rem var(--gutter) 2.5rem;overflow-y:auto;
  transform:translateY(-8px);opacity:0;visibility:hidden;
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav.is-open{transform:translateY(0);opacity:1;visibility:visible}
body.nav-open{overflow:hidden}
.primary-nav ul{list-style:none;margin:0;padding:0}
.primary-nav li{margin:0}
.primary-nav a:not(.btn){
  display:block;padding:1rem .25rem;
  font-family:var(--font-head);font-weight:600;font-size:1.3rem;
  color:var(--ink);text-decoration:none;
  border-bottom:1px solid var(--line-soft);
}
.primary-nav a:not(.btn):hover,
.primary-nav .current-menu-item>a,
.primary-nav .current_page_item>a{color:var(--clay)}
.primary-nav .sub-menu{padding-left:1rem}
.primary-nav .sub-menu a{font-size:1.05rem;font-family:var(--font-body)}
.mobile-cta{margin-top:1.75rem}
.mobile-cta .btn{width:100%}

/* a phone gets one thumb-reachable action bar, pinned to the bottom */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:950;
  display:flex;gap:.6rem;
  padding:.6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background:rgba(253,250,244,.96);
  backdrop-filter:saturate(1.4) blur(8px);
  border-top:1px solid var(--line);
}
.mobile-bar .btn{flex:1;min-height:46px;font-size:.95rem}
body.nav-open .mobile-bar{display:none}

@media (min-width:880px){
  :root{--header-h:76px;--gutter:32px;--bar-h:0px}
  .nav-toggle,.mobile-cta,.mobile-bar{display:none}
  .header-actions .btn--header{display:inline-flex}
  .site-brand img,.custom-logo-link img{height:40px}
  .primary-nav{
    position:static;inset:auto;background:none;padding:0;overflow:visible;
    transform:none;opacity:1;visibility:visible;
  }
  .primary-nav ul{display:flex;align-items:center;gap:.1rem}
  .primary-nav li{position:relative}
  .primary-nav a:not(.btn){
    padding:.5rem .8rem;border:0;border-radius:10px;
    font-family:var(--font-body);font-weight:600;font-size:.96rem;
    white-space:nowrap;
  }
  .primary-nav a:not(.btn):hover{background:var(--paper-2);color:var(--ink)}
  .primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{color:var(--clay)}
  .primary-nav .sub-menu{
    position:absolute;top:calc(100% + 4px);left:0;min-width:210px;padding:.4rem;
    display:block;flex-direction:column;background:var(--card);
    border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
    opacity:0;visibility:hidden;transform:translateY(6px);
    transition:opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
  .primary-nav .sub-menu a{font-size:.94rem;font-weight:500;white-space:normal}
  .primary-nav .menu-item-has-children>a::after{content:"▾";margin-left:.3em;font-size:.8em;opacity:.55}
}
@media (max-width:879px){
  body.single-post{--bar-h:70px}
  /* Both bottom buttons switched off in the Customiser: no space to keep. */
  body.single-post:not(:has(.mobile-bar)){--bar-h:0px}
}

/* ------------------------------------------------------------------ hero */
.greeting{padding:clamp(24px,7vw,56px) 0 clamp(36px,8vw,64px)}
.greeting__photo{
  width:clamp(140px,42vw,200px);
  aspect-ratio:1;border-radius:50%;overflow:hidden;
  margin:0 0 1.5rem;background:var(--paper-2);
  box-shadow:0 0 0 6px var(--paper), 0 0 0 7px var(--line);
}
.greeting__photo img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.greeting__hello{
  font-family:var(--font-head);font-size:1.05rem;font-weight:600;
  color:var(--clay);margin:0 0 .35rem;
}
.greeting h1{margin-bottom:.5rem}
.greeting h1 em{font-style:italic;color:var(--clay)}
.greeting__lead{font-size:1.12rem;line-height:1.7;color:var(--body);margin-bottom:1.6rem;max-width:34rem}
.greeting .btn-row{margin-bottom:1.6rem}
/* Phones: the main button on its own row, the two quieter ones side by side
   beneath it, instead of three stacked rows. */
.greeting .btn-row{display:grid;grid-template-columns:1fr 1fr}
.greeting .btn-row .btn{padding-inline:.8em}
.greeting .btn-row .btn:first-child,
.greeting .btn-row .btn:nth-child(2):last-child{grid-column:1/-1}
@media (min-width:520px){
  .greeting .btn-row{display:flex}
  .greeting .btn-row .btn{padding-inline:1.5em}
}
.greeting__roles{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:.3rem .5rem;
  font-size:.92rem;color:var(--muted);
}
.greeting__roles li{margin:0}
.greeting__roles li+li::before{content:"·";margin-right:.5rem;color:var(--clay)}

@media (min-width:760px){
  .greeting__inner{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    gap:clamp(28px,5vw,64px);align-items:center;
  }
  .greeting__photo{
    order:2;width:min(300px,34vw);margin:0;
    border-radius:var(--radius-lg);aspect-ratio:4/5;
    box-shadow:var(--shadow);
  }
  .greeting__lead{font-size:1.18rem}
}

/* ------------------------------------------------- light page header */
.page-head{padding:clamp(24px,6vw,44px) 0 clamp(16px,3vw,24px);border-bottom:1px solid var(--line-soft)}
.page-head h1{margin-bottom:.35rem}
.page-head p{font-size:1.08rem;margin-bottom:0;max-width:40rem;color:var(--body)}
.breadcrumbs{font-size:.88rem;color:var(--muted);margin-bottom:.9rem}
.breadcrumbs a{color:var(--muted);text-decoration:none}
.breadcrumbs a:hover{color:var(--clay)}
.breadcrumbs span[aria-hidden]{margin:0 .4em;opacity:.5}

/* ------------------------------------------------------------- facts line */
.facts{
  list-style:none;margin:0;padding:clamp(20px,5vw,28px) 0;
  display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem 1rem;
  border-block:1px solid var(--line);
}
.facts li{margin:0}
.facts b{
  display:block;font-family:var(--font-head);font-weight:600;
  font-size:clamp(1.5rem,6vw,1.9rem);color:var(--ink);line-height:1;
}
.facts span{display:block;font-size:.9rem;color:var(--muted);margin-top:.25rem}
@media (min-width:640px){
  .facts{grid-template-columns:repeat(5,1fr)}
}

/* -------------------------------------------------------------- portrait */
.portrait-note{display:grid;gap:1.5rem}
.portrait-note img{border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
@media (min-width:760px){
  .portrait-note{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,5vw,56px);align-items:center}
}

/* ---------------------------------------------------------- biography */
/* On a phone the photo and the quick facts come first, then the story;
   on a wide screen they sit alongside it. */
.bio{display:grid;gap:1.75rem}
.bio__photo{margin-bottom:1.25rem}
.bio__photo img{border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);width:100%}
@media (min-width:860px){
  .bio{grid-template-columns:minmax(0,1fr) minmax(0,280px);gap:clamp(32px,5vw,56px);align-items:start}
  .bio__side{order:2;position:sticky;top:calc(var(--header-h) + 20px)}
  .bio__body{order:1}
}

/* ---------------------------------------------------------------- books */
/* On a phone the books are a shelf you swipe, not a grid you scroll past. */
.shelf{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(148px,44vw);
  gap:1rem;overflow-x:auto;
  padding-bottom:1rem;margin-inline:calc(var(--gutter) * -1);
  padding-inline:var(--gutter);
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.shelf > *{scroll-snap-align:start}
.book-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}

@media (min-width:640px){
  .shelf{
    grid-auto-flow:row;grid-auto-columns:auto;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    overflow:visible;margin-inline:0;padding-inline:0;padding-bottom:0;
  }
  .book-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:clamp(20px,3vw,32px)}
}

.book{display:flex;flex-direction:column}
.book__cover{
  display:block;border-radius:10px;overflow:hidden;
  background:var(--navy);aspect-ratio:2/3;position:relative;
  box-shadow:0 2px 6px rgba(25,22,34,.12), 0 10px 22px rgba(25,22,34,.1);
  transition:transform .22s ease;
}
.book__cover:hover{transform:translateY(-3px)}
.book__cover img{width:100%;height:100%;object-fit:cover}
.book__body{padding-top:.85rem;display:flex;flex-direction:column;flex:1}
.book__body h3{font-size:1.02rem;margin-bottom:.15rem;line-height:1.3}
.book__body h3 a{color:inherit;text-decoration:none}
.book__body h3 a:hover{color:var(--clay)}
.book__sub{font-size:.85rem;color:var(--clay);margin-bottom:.4rem;line-height:1.4}
.book__blurb{font-size:.92rem;margin-bottom:.6rem;color:var(--body)}
.book__foot{margin-top:auto;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.book__price{font-family:var(--font-head);font-weight:600;color:var(--ink);font-size:.98rem}
@media (max-width:639px){
  .book__blurb{display:none}
}

/* typeset cover, used when a book has no cover image */
.cover-set{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;
  gap:.45rem;padding:1.1rem .9rem;text-align:center;
  background:linear-gradient(160deg,var(--navy) 0%,#2a2a72 100%);
}
.cover-set::before,.cover-set::after{
  content:"";position:absolute;left:.8rem;right:.8rem;height:1px;background:rgba(255,255,255,.28);
}
.cover-set::before{top:.8rem}
.cover-set::after{bottom:.8rem}
.cover-set__author{font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.75);font-weight:700}
.cover-set__title{font-family:var(--font-head);font-weight:600;color:#fff;font-size:clamp(1.05rem,4.5vw,1.45rem);line-height:1.15}
.cover-set__sub{font-size:.7rem;color:rgba(255,255,255,.7);line-height:1.4}

/* single book */
.book-single{display:grid;gap:1.75rem}
.book-single__cover{
  position:relative;border-radius:12px;overflow:hidden;background:var(--navy);
  aspect-ratio:2/3;width:min(220px,58%);
  box-shadow:0 4px 10px rgba(25,22,34,.14), 0 16px 34px rgba(25,22,34,.12);
}
.book-single__cover img{width:100%;height:100%;object-fit:cover}
.book-facts{list-style:none;margin:0 0 1.4rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.book-facts li{margin:0}
/* Only the tags themselves are chips; the price inside the list is built from
   nested spans and must not inherit the chip padding and background. */
.book-facts > li > span{
  display:inline-block;background:var(--paper-2);border-radius:var(--radius-pill);
  padding:.4em .9em;font-size:.86rem;color:var(--ink);font-weight:600;
}
/* The price gets a line of its own under the tags, large and without a chip. */
.book-facts > li.book-facts__price{flex-basis:100%;margin-top:.35rem}
.book-facts > li.book-facts__price > span{background:none;padding:0;border-radius:0;font-size:inherit}
@media (min-width:760px){
  .book-single{grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:clamp(32px,5vw,56px);align-items:start}
  .book-single__cover{width:100%}
}

/* --------------------------------------------------------------- rows */
/* Services and ventures are a plain list of rows — lighter than cards,
   and far easier to read down on a narrow screen. */
.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.rows > li{margin:0;border-bottom:1px solid var(--line)}
.row{display:grid;grid-template-columns:auto 1fr;gap:.9rem 1rem;padding:1.35rem .25rem;align-items:start}
.row__icon{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:var(--clay-soft);color:var(--clay-600);flex-shrink:0;
}
.row__icon svg{width:21px;height:21px}
.row__body h3{margin-bottom:.25rem;font-size:1.12rem}
.row__body p{margin-bottom:.5rem;font-size:.97rem}
.row__body p:last-child{margin-bottom:0}
.row__meta{display:block;font-size:.82rem;color:var(--muted);margin-bottom:.2rem;font-weight:600}
.row__link{grid-column:2}
@media (min-width:760px){
  .row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1.25rem}
  .row__link{grid-column:auto;white-space:nowrap}
}

/* ------------------------------------------------------- article list */
.chips{
  list-style:none;margin:0 0 1.5rem;padding:0 var(--gutter) .75rem;
  margin-inline:calc(var(--gutter) * -1);
  display:flex;gap:.45rem;overflow-x:auto;scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chips li{margin:0;flex-shrink:0}
.chips a{
  display:inline-block;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius-pill);padding:.5em 1em;
  font-weight:600;font-size:.88rem;color:var(--body);text-decoration:none;white-space:nowrap;
}
.chips a:hover,.chips .is-current a{background:var(--ink);border-color:var(--ink);color:var(--paper)}
@media (min-width:760px){
  .chips{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}
}

/* The way into 900 articles: a readable list, not a wall of cards.
   Title, then a snippet long enough to decide on — kept on phones too. */
.post-list{list-style:none;margin:0;padding:0;max-width:var(--measure)}
.post-list li{margin:0;border-bottom:1px solid var(--line)}
.post-list a.post-list__link{
  display:block;padding:1.5rem .25rem;text-decoration:none;color:inherit;
}
.post-list a.post-list__link:hover{background:rgba(164,78,44,.04)}
.post-list h3{
  font-size:clamp(1.22rem,4vw,1.4rem);margin:0 0 .35rem;
  color:var(--ink);line-height:1.3;text-wrap:balance;
  transition:color .16s ease;
}
.post-list a.post-list__link:hover h3{color:var(--clay)}
.post-list__date{
  display:block;font-size:.84rem;color:var(--muted);
  margin-bottom:.4rem;letter-spacing:.02em;
}
.post-list__excerpt{font-size:.98rem;line-height:1.65;color:var(--body);margin:0}

/* --------------------------------------------------------------- sign-off */
.signoff{
  border-top:1px solid var(--line);
  padding:clamp(40px,8vw,72px) 0;
  text-align:center;
}
.signoff h2{margin-bottom:.5rem}
.signoff p{max-width:34rem;margin-inline:auto;margin-bottom:1.6rem}
.signoff .btn-row{justify-content:center}
.signoff__sig{height:52px;width:auto;margin:0 auto 1.5rem;opacity:.9}

/* --------------------------------------------------------------- content */
/* The reading surface. Jacob's 900+ articles are the point of this site, so the
   prose gets a longer line, more leading, more air between paragraphs and a
   darker ink than the surrounding interface. */
.entry-content{
  font-size:clamp(1.08rem, 1rem + .4vw, 1.2rem);
  line-height:1.75;
  color:var(--read);
  max-width:var(--measure);
  /* No text-wrap:pretty here — on long Swahili words it pulls lines short
     mid-paragraph and the rag ends up worse than the browser's default. */
}
.entry-content > *:first-child{margin-top:0}
.entry-content p{margin-bottom:1.45em}
.entry-content h2{
  font-size:clamp(1.5rem,4.5vw,1.85rem);
  margin-top:1.9em;margin-bottom:.5em;
}
.entry-content h3{
  font-size:clamp(1.2rem,3.5vw,1.35rem);
  margin-top:1.6em;margin-bottom:.4em;
}
.entry-content ul,.entry-content ol{margin-bottom:1.45em;padding-left:1.4em}
.entry-content li{margin-bottom:.6em}
.entry-content li::marker{color:var(--clay)}
/* Links inside prose are underlined — colour alone is not enough to spot one
   mid-sentence, and it is the one place people actually hunt for them. */
.entry-content a{
  color:var(--navy-700);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2.5px;
  text-decoration-color:rgba(34,34,110,.4);
}
.entry-content a:hover{color:var(--clay-600);text-decoration-color:currentColor}
.entry-content strong{color:var(--ink);font-weight:700}
.entry-content blockquote{font-size:1.1em;margin-block:1.6em}
.entry-content img{border-radius:var(--radius)}
.entry-content .wp-block-image{margin-block:1.9em}
.entry-content hr{margin:2.6rem 0}

/* Wide and full-width blocks escape the reading measure on purpose. */
.entry-content .alignwide,
.entry-content .alignfull{max-width:none}
.alignwide{width:min(100%, 960px)}
.alignfull{width:100vw;margin-left:calc(50% - 50vw);max-width:none}
.aligncenter{margin-inline:auto}
.wp-caption-text,figcaption{font-size:.9rem;color:var(--muted);text-align:center;margin-top:.5em}
@media (min-width:760px){
  .alignleft{float:left;margin:.3em 1.6em 1.2em 0}
  .alignright{float:right;margin:.3em 0 1.2em 1.6em}
}

/* article head + meta */
.article-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;
  font-size:.92rem;color:var(--muted);margin-bottom:1.75rem;
}
.article-meta a{color:var(--muted);text-decoration:none}
.article-meta a:hover{color:var(--clay)}
.article-meta .dot{opacity:.5}
.post-meta{font-size:.92rem;color:var(--muted);margin-bottom:1.4rem}
.post-meta a{color:var(--navy-700)}

.tick-list{list-style:none;padding:0;margin:0 0 1.3em}
.tick-list li{position:relative;padding-left:1.9rem;margin-bottom:.75em}
.tick-list li::before{
  content:"";position:absolute;left:0;top:.42em;width:1.1rem;height:1.1rem;
  border-radius:50%;background:var(--clay-soft);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a44e2c'%3E%3Cpath d='M7.6 13.4 4.2 10l1.1-1.1 2.3 2.3 6-6L14.7 6z'/%3E%3C/svg%3E");
  background-size:contain;background-repeat:no-repeat;
}

/* timeline */
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline::before{content:"";position:absolute;left:7px;top:10px;bottom:10px;width:2px;background:var(--line)}
.timeline li{position:relative;padding-left:2.1rem;margin-bottom:1.8rem}
.timeline li::before{
  content:"";position:absolute;left:0;top:.5em;width:16px;height:16px;border-radius:50%;
  background:var(--paper);border:3px solid var(--clay);
}
.timeline h3{font-size:1.08rem;margin:.1rem 0 .3rem}
.timeline .year{font-weight:700;color:var(--clay);font-size:.82rem;letter-spacing:.1em;display:block}
.timeline p{margin-bottom:0;font-size:.97rem}

/* ------------------------------------------------------------------ forms */
.form-row{display:grid;gap:0 1rem}
@media (min-width:560px){ .form-row{grid-template-columns:1fr 1fr} }
.form-field{margin-bottom:1.1rem}
.form-field label{display:block;font-weight:600;color:var(--ink);font-size:.94rem;margin-bottom:.35rem}
.form-field .req{color:var(--clay-600)}
input[type=text],input[type=email],input[type=tel],input[type=url],input[type=search],
input[type=number],input[type=password],select,textarea{
  width:100%;padding:.8em .95em;font:inherit;font-size:16px;color:var(--ink);
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  transition:border-color .16s ease,box-shadow .16s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--clay);box-shadow:0 0 0 3px var(--clay-soft);
}
textarea{min-height:150px;resize:vertical}
.form-note{font-size:.86rem;color:var(--muted)}
.hp-field{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.notice{padding:.9em 1.1em;border-radius:12px;margin-bottom:1.4rem;font-size:.97rem}
.notice--ok{background:#e9f5ee;border:1px solid #bfdfcb;color:#1f6640}
.notice--err{background:#fbeae6;border:1px solid #f0c8bd;color:#9c3a22}

.search-form{display:flex;gap:.5rem}
.search-form input[type=search]{flex:1}

/* contact info list */
.info-list{list-style:none;padding:0;margin:0}
.info-list li{display:flex;gap:.85rem;margin-bottom:1.15rem;align-items:flex-start}
.info-list svg{width:21px;height:21px;flex-shrink:0;color:var(--clay);margin-top:.2rem}
.info-list strong{display:block;font-weight:600;color:var(--ink);font-size:.92rem}
.info-list a{color:var(--body);text-decoration:none}
.info-list a:hover{color:var(--clay-600);text-decoration:underline}

.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(20px,5vw,32px)}
.panel--tint{background:var(--paper-2);border-color:transparent}
.panel h3:first-child{margin-top:0}

/* payment panel */
.pay__steps{margin:0;padding-left:1.2em}
.pay__steps>li{margin-bottom:.9rem}
.pay__lines{list-style:none;margin:.7rem 0 0;padding:0;display:grid;gap:.5rem}
.pay__lines li{
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:0;
  background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.6rem .8rem;
}
.pay__label{font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700;width:100%}
.pay__num{font-family:var(--font-head);font-weight:600;color:var(--ink);font-size:1.1rem;letter-spacing:.02em}
.pay__copy{
  margin-left:auto;background:var(--paper-2);border:0;border-radius:var(--radius-pill);
  min-height:36px;padding:.35em .9em;font:inherit;font-size:.82rem;font-weight:600;
  color:var(--navy);cursor:pointer;transition:background-color .16s ease;
}
.pay__copy:hover{background:var(--clay-soft)}
.pay__copy.is-done{background:var(--clay);color:#fff}
@media (min-width:480px){
  .pay__label{width:auto;min-width:6.5em}
}

/* --------------------------------------------------------------- footer */
.site-footer{background:var(--paper-2);padding-top:clamp(36px,7vw,56px);margin-top:auto}
.footer-grid{display:grid;gap:2rem;padding-bottom:2rem}
.site-footer .footer-name{
  font-family:var(--font-head);font-size:1.25rem;font-weight:600;
  letter-spacing:-.01em;text-transform:none;color:var(--ink);margin-bottom:.6rem;
}
.site-footer p{font-size:.95rem;line-height:1.7;color:var(--body)}
.site-footer h3{
  color:var(--ink);font-family:var(--font-body);font-weight:700;
  font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.9rem;
}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.55rem;font-size:.95rem}
.site-footer a{color:var(--body);text-decoration:none}
.site-footer a:hover{color:var(--clay-600)}
.footer-bottom{
  border-top:1px solid var(--line);padding:1.2rem 0;
  display:flex;flex-wrap:wrap;gap:.6rem 1.25rem;justify-content:space-between;
  font-size:.85rem;color:var(--muted);
}
.footer-bottom p{margin:0;font-size:.85rem}
.footer-bottom ul{display:flex;gap:1.1rem;flex-wrap:wrap}
.footer-bottom a{color:var(--muted)}
.socials{display:flex;gap:.5rem;margin-top:1rem}
.socials a{
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:var(--card);color:var(--ink);border:1px solid var(--line);
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.socials a:hover{background:var(--clay);color:#fff;border-color:var(--clay)}
.socials svg{width:18px;height:18px}
@media (min-width:760px){
  .footer-grid{grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,56px)}
}

/* ------------------------------------------------------------ pagination */
/* the_posts_pagination() nests the links inside a .nav-links div, so that is
   what has to become the flex row — not the <nav> around it. */
.pagination{margin-top:2.5rem}
.pagination .nav-links{
  display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;align-items:center;
}
.pagination .page-numbers{
  display:inline-grid;place-items:center;min-width:46px;height:46px;padding:0 .75em;
  border:1px solid var(--line);border-radius:12px;text-decoration:none;
  font-weight:600;color:var(--ink);background:var(--card);
}
.pagination .page-numbers:hover{border-color:var(--ink)}
.pagination .page-numbers.dots{border-color:transparent;background:none;min-width:24px}
.pagination .current{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* ---------------------------------------------------------- WooCommerce */
.woo-crumbs{padding:1rem 0 0}
.woo-crumbs .breadcrumbs{margin:0}
.woo-page{padding-top:clamp(20px,4vw,32px)}
.woo-page .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--font-head);font-size:1rem;color:var(--ink);font-weight:600;
}
.woo-page .woocommerce ul.products li.product img{border-radius:10px;box-shadow:var(--shadow-sm)}
.woo-page .woocommerce .price{color:var(--ink);font-family:var(--font-head);font-weight:600}
.woo-page .woocommerce span.onsale{background:var(--clay);color:#fff}
.woo-page .woocommerce #respond input#submit,
.woo-page .woocommerce a.button,
.woo-page .woocommerce button.button,
.woo-page .woocommerce input.button{
  background:var(--navy);color:#fff;border-radius:var(--radius-pill);
  font-weight:600;padding:.8em 1.5em;min-height:46px;
}
.woo-page .woocommerce #respond input#submit:hover,
.woo-page .woocommerce a.button:hover,
.woo-page .woocommerce button.button:hover,
.woo-page .woocommerce input.button:hover{background:var(--navy-700);color:#fff}
.woo-page .woocommerce a.button.alt,
.woo-page .woocommerce button.button.alt{background:var(--clay);color:#fff}
.woo-page .woocommerce a.button.alt:hover,
.woo-page .woocommerce button.button.alt:hover{background:var(--clay-600);color:#fff}
.woo-page .woocommerce .woocommerce-message,
.woo-page .woocommerce .woocommerce-info{border-top-color:var(--clay)}
.woo-page .woocommerce .woocommerce-message::before,
.woo-page .woocommerce .woocommerce-info::before{color:var(--clay)}
.woo-page .product_title{font-size:clamp(1.6rem,6vw,2.3rem)}
.header-cart{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--ink);text-decoration:none}
.header-cart:hover{background:var(--paper-2)}
.header-cart svg{width:21px;height:21px}
.header-cart__count{
  position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 4px;
  border-radius:9px;background:var(--clay);color:#fff;
  font-size:.66rem;font-weight:700;display:grid;place-items:center;line-height:1;
}

/* ------------------------------------------------------------ utilities */
.mt-1{margin-top:.75rem}.mt-2{margin-top:1.5rem}.mt-3{margin-top:2.25rem}
.mb-1{margin-bottom:.75rem}.mb-2{margin-bottom:1.5rem}.mb-3{margin-bottom:2.25rem}

@media print{
  .site-header,.site-footer,.btn,.nav-toggle,.mobile-bar{display:none!important}
  body{color:#000;background:#fff;padding-bottom:0}
}

/* ------------------------------------------------- read next
   Full titles rather than truncated buttons: at the end of a short article the
   likeliest next action is reading another one, so make it an easy target. */
.readnext{
  display:grid;gap:.75rem;margin-top:3rem;
  padding-top:1.5rem;border-top:1px solid var(--line);
  max-width:var(--measure);
}
.readnext__item{
  display:block;padding:1rem 1.1rem;text-decoration:none;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  transition:border-color .16s ease,background-color .16s ease;
}
.readnext__item:hover{border-color:var(--clay);background:var(--paper-2)}
.readnext__item--next{text-align:right}
.readnext__label{
  display:block;font-size:.8rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--clay);margin-bottom:.25rem;
}
.readnext__title{
  display:block;font-family:var(--font-head);font-weight:600;
  font-size:1.05rem;line-height:1.35;color:var(--ink);
}
@media (min-width:640px){
  .readnext{grid-template-columns:1fr 1fr}
}

/* --------------------------------------------- Jetpack floating Subscribe
   Jetpack Newsletter pins its button to bottom:0 right:0 at z-index 50000 —
   exactly where the phone action bar sits, and above it. On a phone, lift it
   clear of the bar; hide it while the menu sheet is open. */
@media (max-width:879px){
  .jetpack-subscribe-floating-button{
    bottom:calc(var(--bar-h) + env(safe-area-inset-bottom)) !important;
  }
  body.nav-open .jetpack-subscribe-floating-button{display:none}
}
.jetpack-subscribe-floating-button .wp-block-button__link,
.jetpack-subscribe-floating-button button{
  border-radius:999px !important;
}

/* --------------------------------------------------------------- comments */
.comments{max-width:var(--measure);margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.comments__title,.comment-reply-title{font-size:clamp(1.3rem,4.5vw,1.6rem);margin-bottom:1.2rem}
.comments__list,.comments__list .children{list-style:none;margin:0;padding:0}
.comments__list .children{margin-left:clamp(12px,4vw,36px)}
.comments__list .comment-body{padding:1.1rem 0;border-bottom:1px solid var(--line-soft)}
.comments__list .comment-author{display:flex;align-items:center;gap:.6rem;font-weight:600;color:var(--ink)}
.comments__list .comment-author img{border-radius:50%}
.comments__list .comment-author .says{display:none}
.comments__list .comment-metadata{font-size:.84rem;margin:.2rem 0 .6rem}
.comments__list .comment-metadata a{color:var(--muted);text-decoration:none}
.comments__list .comment-content{color:var(--read)}
.comments__list .reply a{font-size:.88rem;font-weight:600;color:var(--navy-700)}
.comment-form label{display:block;font-weight:600;color:var(--ink);font-size:.94rem;margin-bottom:.35rem}
.comment-form p{margin-bottom:1rem}
.comment-form .comment-form-cookies-consent label{display:inline;font-weight:400}
.comments__note,.comments__closed{font-size:.9rem;color:var(--muted)}

/* ----------------------------------------------------------------- prices
   The full price struck through, the offer loud — on cards, the book page and
   the shop alike. */
.price{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.35em .5em}
.price__now{font-family:var(--font-head);font-weight:800;color:var(--ink)}
.price--sale .price__now{color:var(--clay);font-size:1.15em}
.price__was{color:var(--muted);font-weight:500;text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--clay)}
.price__badge{
  display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:#fff;background:var(--clay);border-radius:999px;padding:.25em .65em;vertical-align:middle;
}
.book__price .price{font-size:.98rem}
.book-facts .price{font-size:clamp(1.25rem,1.1rem + .6vw,1.5rem);row-gap:.3em}
.book-facts .price__badge{font-size:.72rem}

/* The two buy buttons on a book page are one pair: same shape and height,
   full width on phones. The shop is filled navy; Amazon is a navy outline. */
.book-buy .btn--quiet{border-color:var(--navy);color:var(--navy)}
.book-buy .btn--quiet:hover{background:var(--navy);border-color:var(--navy);color:#fff}
@media (max-width:599px){
  .book-buy{flex-direction:column}
  .book-buy .btn{width:100%}
}

/* ------------------------------------------------- plugins page (Programu) */
.pl-hero{padding:clamp(28px,7vw,64px) 0 clamp(36px,8vw,72px);border-bottom:1px solid var(--line-soft)}
.pl-hero__inner{display:grid;gap:clamp(28px,6vw,56px);align-items:center}
.pl-hero h1{font-size:clamp(1.9rem,1.2rem + 3.2vw,3.1rem);line-height:1.12;margin:.4rem 0 1rem}
.pl-lead{font-size:clamp(1.05rem,1rem + .3vw,1.18rem);line-height:1.7;color:var(--body);max-width:36rem}
.pl-hero .btn-row{margin-top:1.4rem}

/* A phone-sized card showing what a customer actually receives. */
.pl-phone{
  background:#efe7dc;border-radius:28px;padding:14px 12px 18px;
  box-shadow:var(--shadow);max-width:380px;width:100%;justify-self:center;
  font-size:.92rem;line-height:1.5;color:#111b21;
}
.pl-phone__bar{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:.85rem;padding:2px 6px 12px;color:var(--ink)}
.pl-dot{width:28px;height:28px;border-radius:50%;background:var(--navy);flex:none}
.pl-bubble{position:relative;border-radius:12px;padding:8px 10px 18px;margin:0 0 10px;max-width:92%;box-shadow:0 1px .5px rgba(0,0,0,.13)}
.pl-bubble--wa{background:#fff;border-top-left-radius:4px}
.pl-bubble--sms{background:#dfe7f1;margin-left:auto;border-top-right-radius:4px;padding-bottom:8px}
.pl-sms-from{display:block;font-weight:700;font-size:.72rem;letter-spacing:.06em;color:#3b4a5e}
.pl-time{position:absolute;right:8px;bottom:3px;font-size:.68rem;color:#667781}
.pl-file{display:flex;gap:.6rem;align-items:center;background:#f5f6f6;border-radius:8px;padding:8px;margin-bottom:6px;line-height:1.3}
.pl-file small{color:#667781}
.pl-file__icon{flex:none;width:34px;height:40px;border-radius:4px;background:#e2453c;color:#fff;font-size:.66rem;font-weight:800;display:grid;place-items:center}

.pl-split{display:grid;gap:clamp(24px,5vw,48px);align-items:start}
.pl-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(18px,4vw,28px)}
.section--alt .pl-card{border-color:transparent;box-shadow:var(--shadow-sm)}
.pl-card h3{margin:0 0 .8rem;font-size:1.15rem}
.pl-card p{color:var(--body);margin-bottom:1rem}
.pl-card .textlink{margin-top:.4rem}
.pl-tag{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--clay);margin-bottom:.4rem}

.pl-steps{list-style:none;margin:0;padding:0;counter-reset:pl}
.pl-steps li{counter-increment:pl;position:relative;padding:0 0 1.4rem 3.1rem;margin:0}
.pl-steps li::before{
  content:counter(pl);position:absolute;left:0;top:-.1rem;
  width:2.1rem;height:2.1rem;border-radius:50%;
  background:var(--navy);color:#fff;font-weight:700;font-size:.95rem;
  display:grid;place-items:center;
}
.pl-steps li:not(:last-child)::after{content:"";position:absolute;left:1.02rem;top:2.2rem;bottom:.3rem;width:2px;background:var(--line)}
.pl-steps h3{font-size:1.05rem;margin:0 0 .25rem}
.pl-steps p{margin:0;color:var(--body);line-height:1.65}

.pl-ticks{list-style:none;margin:0 0 1rem;padding:0}
.pl-ticks li{position:relative;padding:.45rem 0 .45rem 1.8rem;margin:0;border-bottom:1px solid var(--line-soft);color:var(--read);line-height:1.55}
.pl-ticks li:last-child{border-bottom:0}
.pl-ticks li::before{content:"✓";position:absolute;left:.15rem;top:.45rem;color:var(--clay);font-weight:800}

.pl-trio{display:grid;gap:16px}

.pl-faq details{border-bottom:1px solid var(--line);padding:.2rem 0}
.pl-faq summary{cursor:pointer;font-weight:600;padding:.75rem 1.6rem .75rem 0;list-style:none;position:relative;color:var(--ink)}
.pl-faq summary::-webkit-details-marker{display:none}
.pl-faq summary::after{content:"+";position:absolute;right:.2rem;top:.6rem;font-size:1.3rem;color:var(--clay);line-height:1}
.pl-faq details[open] summary::after{content:"−"}
.pl-faq details p{margin:0 0 .9rem;color:var(--body);line-height:1.65}

.pl-content{max-width:var(--measure)}
.pl-cta{text-align:center;border-top:1px solid var(--line-soft)}
.pl-cta .btn-row{justify-content:center}
.pl-cta p{color:var(--body)}

@media (min-width:760px){
  .pl-split{grid-template-columns:1.1fr .9fr}
  .pl-trio{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:900px){
  .pl-hero__inner{grid-template-columns:1.15fr .85fr}
}
.pl-cta__head{margin-inline:auto}
.pl-get{list-style:none;margin:0 0 clamp(24px,5vw,36px);padding:0;counter-reset:plget;display:grid;gap:16px;text-align:left}
.pl-get li{
  counter-increment:plget;margin:0;position:relative;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(18px,4vw,26px);padding-top:clamp(56px,10vw,64px);
}
.pl-get li::before{
  content:counter(plget);position:absolute;left:clamp(18px,4vw,26px);top:clamp(16px,3vw,20px);
  width:2.1rem;height:2.1rem;border-radius:50%;background:var(--clay);color:#fff;
  font-weight:700;display:grid;place-items:center;
}
.pl-get h3{font-size:1.08rem;margin:0 0 .35rem}
.pl-get p{color:var(--body);margin:0 0 .8rem;line-height:1.6}
@media (min-width:760px){ .pl-get{grid-template-columns:repeat(3,1fr)} }

/* ------------------------------------------- widgets beside an article */
/* Only when "Kando ya makala" has widgets. Phones: the widgets follow the
   article. Wide screens: a narrow column beside the reading column. */
.article-layout{display:grid;gap:clamp(28px,5vw,44px)}
.article-main{min-width:0;max-width:var(--wrap-narrow);width:100%;margin-inline:auto}
.article-side{min-width:0;display:flex;flex-direction:column;gap:16px}
.article-side .widget{margin:0}
.article-side .widget.panel{padding:clamp(18px,4vw,24px)}
.article-side .widget-title{font-size:1.02rem;margin:0 0 .8rem}
.article-side .widget ul{margin:0;padding-left:1.1em}
.article-side .widget li{margin:.35em 0}
@media (min-width:1024px){
  .article-layout{grid-template-columns:280px minmax(0,1fr);align-items:start;column-gap:36px}
  .article-layout--right{grid-template-columns:minmax(0,1fr) 280px}
  .article-layout--left .article-side{grid-column:1;grid-row:1}
  .article-layout--left .article-main{grid-column:2;grid-row:1;margin-inline:0}
  .article-layout--right .article-main{margin-inline:0}
}
/* The most-read list (Jarida) made compact for the narrow side column. */
.article-side .jarida-top{margin:0}
.article-side .jarida-top .jarida-top__item{gap:.6rem;padding:.6rem 0 !important}
.article-side .jarida-top .jarida-top__n{width:1.2rem;font-size:1.1rem}
.article-side .jarida-top .jarida-top__img{width:44px;height:44px;border-radius:8px}
.article-side .jarida-top a.jarida-top__link{font-size:.9rem;line-height:1.3}
.article-side .jarida-top .jarida-top__views{font-size:.75rem}
/* WordPress's own widget blocks (search, latest posts, categories…) in the
   theme's quieter style, so whatever is placed there looks like one family. */
.article-side .widget h2,.article-side .widget h3,.article-side .wp-block-heading{font-size:1.02rem;line-height:1.3;margin:0 0 .8rem}
.article-side .widget ul{list-style:none;padding-left:0}
.article-side .widget li{margin:0;padding:.45em 0;border-top:1px solid var(--line-soft)}
.article-side .widget li:first-child{border-top:0;padding-top:0}
.article-side .widget a{color:var(--ink);text-decoration:none;font-weight:600;font-size:.94rem}
.article-side .widget a:hover{text-decoration:underline}
.article-side .wp-block-search__label{font-size:.9rem;font-weight:600;margin-bottom:.4rem;display:block}
.article-side .wp-block-search__inside-wrapper{display:flex;gap:.5rem}
.article-side .wp-block-search__input{flex:1;min-width:0;border:1px solid var(--line);border-radius:var(--radius-pill);padding:.6em .9em;background:var(--card);font:inherit}
.article-side .wp-block-search__button{border:0;border-radius:var(--radius-pill);background:var(--navy);color:#fff;font:inherit;font-weight:600;padding:.6em 1.1em;cursor:pointer}
.article-side .wp-block-latest-comments{padding-left:0}
