/*
Theme Name: Authority
Theme URI: https://example.com/authority
Author: Handy Gear
Description: Publishing theme modelled on the neilpatel.com design system — dark header, marker-underlined headings, shadowed post cards with NEW ribbons, category pills, two-column posts with boxed table of contents, orange footer with newsletter form.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: authority
Tags: blog, news, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   TOKENS  (measured from neilpatel.com; editable in Customizer)
   ========================================================= */
:root{
  --ink:#26272c;            /* header, hero, text */
  --ink-2:#2e3138;          /* slightly lighter dark surfaces */
  --text:#26272c;
  --muted:#808080;
  --line:#e0e0e0;
  --band:#f2f3f4;
  --surface:#fff;
  --orange:#f16232;         /* links, bullets, footer */
  --orange-2:#f97316;       /* heading highlight, active pill */
  --orange-dark:#d9522a;
  --blue:#4387f4;           /* NEW ribbon, secondary buttons */
  --blue-dark:#2f6fd6;
  --font:"Figtree","Geomanist",Helvetica,Arial,sans-serif;
  --wrap:1180px;
  --measure:46rem;
  --header-h:80px;
  --shadow-card:0 0 50px rgba(5,5,5,.08);
  --radius:10px;
}

/* =========================================================
   BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 24px)}
body{margin:0;font-family:var(--font);font-size:18px;line-height:30px;color:var(--text);background:var(--surface);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--orange);text-decoration:none}
a:hover{color:var(--orange-dark)}
h1,h2,h3,h4,h5,h6{font-family:var(--font);font-weight:700;line-height:1.2;color:var(--ink);margin:0 0 .5em;letter-spacing:0}
h1{font-size:40px;line-height:48px}
h2{font-size:40px;line-height:52px}
h3{font-size:24px;line-height:32px}
h4{font-size:20px;line-height:28px}
p{margin:0 0 1.4em}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;border-radius:6px;z-index:999}
.skip-link:focus{left:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.wrap--narrow{max-width:calc(var(--measure) + 48px)}
.section{padding:80px 0}
.section--band{background:var(--band)}
.section--dark{background:var(--ink);color:#fff}
.section--dark h2,.section--dark h3,.section--dark h4{color:#fff}
.section--orange{background:var(--orange);color:#fff}
.center{text-align:center}
.eyebrow{display:block;font-size:13px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.lead{font-size:20px;line-height:34px;color:var(--text)}
.lead strong{font-weight:700}
.section--dark .lead{color:rgba(255,255,255,.85)}

/* marker underline behind a phrase (NP "np-animated-underline") */
.hl{background-image:linear-gradient(var(--orange-2),var(--orange-2));background-repeat:no-repeat;background-size:100% 11px;background-position:0 calc(100% - 5px);padding:0 2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
h1 .hl{background-size:100% 10px}
.section--dark .hl{background-image:linear-gradient(var(--orange),var(--orange))}

/* section heading block ("heading-left") */
.section-head{margin-bottom:40px}
.section-head h2{margin-bottom:14px}
.section-head .lead{margin:0;max-width:60rem}
.section-head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.section-head--row a.all{font-weight:600;white-space:nowrap;margin-bottom:6px}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font);font-weight:700;font-size:14px;letter-spacing:.3px;text-transform:uppercase;line-height:1;padding:17px 28px;border-radius:5px;border:2px solid var(--orange);background:var(--orange);color:#fff;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn:hover{background:var(--orange-dark);border-color:var(--orange-dark);color:#fff}
.btn--blue{background:var(--blue);border-color:var(--blue)}
.btn--blue:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn--outline{background:transparent;border-color:#fff;color:#fff}
.btn--outline:hover{background:#fff;color:var(--ink);border-color:#fff}
.btn--outline-dark{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn--outline-dark:hover{background:var(--ink);color:#fff}
.btn--sm{padding:12px 20px;font-size:13px}
.btn--lg{padding:20px 34px;font-size:15px}

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announce{background:var(--orange);color:#fff;font-weight:700;font-size:18px;text-align:center;padding:10px 24px}
.announce .wrap{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap}
.announce .btn{padding:10px 24px;font-size:13px}

/* =========================================================
   HEADER  (NP: fixed 80px, logo 160x30, nav 16px/500, outlined uppercase button)
   ========================================================= */
.site-header{position:sticky;top:0;z-index:100;background:var(--ink);color:#fff;height:var(--header-h)}
.site-header .wrap{height:100%;display:flex;align-items:center;flex-wrap:nowrap}
.site-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:26px;letter-spacing:.08em;text-transform:uppercase;line-height:1;flex:none}
.site-brand:hover{color:#fff}
.site-brand img{height:48px;max-height:60px;width:auto;max-width:240px;object-fit:contain}
.site-brand .brand-mark{width:36px;height:36px;border-radius:6px;background:var(--orange);display:grid;place-items:center;font-size:18px;letter-spacing:0}
.header-divider{width:1px;height:46px;background:rgba(255,255,255,.3);margin:0 28px 0 24px;flex:none}
.primary-nav{margin-left:auto;min-width:0;flex:1 1 auto;display:flex;justify-content:flex-end;overflow:hidden;visibility:hidden}
.primary-nav.is-ready{visibility:visible}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap}
.primary-nav li{position:relative}
.primary-nav a{display:block;padding:6px 22px 6px 0;color:#fff;font-weight:500;font-size:16px;line-height:1.2}
.primary-nav li:last-child>a{padding-right:0}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current-menu-ancestor>a{color:var(--orange)}
.primary-nav .menu-item-has-children>a::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 0 3px 8px}
.primary-nav .sub-menu{display:none;position:absolute;top:100%;left:-12px;background:#fff;min-width:260px;padding:10px;border-radius:6px;box-shadow:0 12px 40px rgba(0,0,0,.18);flex-direction:column;z-index:20;white-space:normal}
.primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{display:flex}
.primary-nav .sub-menu a{color:var(--ink);font-size:15px;padding:10px 12px;border-radius:4px}
.primary-nav .sub-menu a::after{display:none}
.primary-nav .nav-more>.sub-menu{left:auto;right:0}
.primary-nav .nav-more .sub-menu .sub-menu{position:static;box-shadow:none;padding:0 0 0 12px;display:flex}
.primary-nav .sub-menu a:hover{background:var(--band);color:var(--orange)}
.header-cta{margin-left:24px;flex:none}
.header-cta .btn{font-size:15px;font-weight:500;letter-spacing:.2px;padding:9px 14px;border:1px solid #fff;border-radius:3px;background:transparent;color:#fff}
.header-cta .btn:hover{background:#fff;color:var(--ink)}
.nav-toggle{display:none;background:none;border:0;color:#fff;cursor:pointer;padding:8px 0 8px 8px;margin-left:auto}
.nav-toggle span{display:block;width:34px;height:3px;background:#fff;margin:7px 0;border-radius:2px;transition:transform .2s,opacity .2s}
.nav-toggle[aria-expanded=true] span:nth-child(1){transform:translateY(10px) rotate(45deg)}
.nav-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded=true] span:nth-child(3){transform:translateY(-10px) rotate(-45deg)}

/* mobile drawer (NP: white panel, orange CLOSE MENU bar, chevron rows, blue button, recent posts) */
.drawer{display:none;position:fixed;top:var(--header-h);left:0;right:0;bottom:0;background:#fff;color:var(--ink);z-index:99;overflow:auto;-webkit-overflow-scrolling:touch}
.drawer.is-open{display:block}
.drawer__close{display:flex;align-items:center;gap:12px;width:100%;background:var(--orange);color:#fff;border:0;font:inherit;font-size:18px;font-weight:500;letter-spacing:.3px;text-transform:uppercase;padding:18px 20px;cursor:pointer;text-align:left}
.drawer__close span{font-size:22px;line-height:1}
.drawer nav{padding:8px 20px 0}
.drawer ul{list-style:none;margin:0;padding:0}
.drawer li>a{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);color:var(--ink);font-size:16px;font-weight:500}
.drawer .menu-item-has-children>a::after{content:"";width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg);margin-right:6px}
.drawer .menu-item-has-children.is-open>a::after{transform:rotate(45deg)}
.drawer .sub-menu{display:none;padding-left:16px}
.drawer .menu-item-has-children.is-open>.sub-menu{display:block}
.drawer .sub-menu a{font-weight:400;font-size:15px;color:#4a4d55}
.drawer__cta{padding:20px}
.drawer__cta .btn{width:100%;font-size:16px;font-weight:500;text-transform:none;letter-spacing:0;padding:16px;border-radius:4px}
.drawer__recent{background:var(--band);padding:20px 20px 32px}
.drawer__recent h4{font-size:16px;font-weight:500;margin:0 0 6px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.drawer__recent a{display:block;padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink);font-size:15px;line-height:22px}
.drawer__recent a:last-child{border:0}
body.drawer-open{overflow:hidden}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero{background:var(--ink);color:#fff;padding:96px 0 110px;position:relative;overflow:hidden;min-height:515px;display:flex;align-items:center}
.hero__bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hero__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(38,39,44,.82) 0%,rgba(38,39,44,.6) 45%,rgba(38,39,44,.45) 100%)}
.hero .wrap{position:relative;width:100%}
.hero h1{color:#fff;font-size:60px;line-height:69px;letter-spacing:-.6px;max-width:16ch;margin-bottom:24px}
.hero .lead{color:#fff;font-size:20px;line-height:36px;max-width:36rem;margin-bottom:32px}
.hero__logos{display:flex;flex-wrap:wrap;align-items:center;gap:16px 44px;margin-top:40px}
.hero__logos img{max-height:34px;width:auto;filter:brightness(0) invert(1);opacity:.95}
.hero__logos span{font-weight:700;font-size:26px;letter-spacing:-.02em;color:#fff;opacity:.95}
.hero--page{min-height:0;padding:56px 0 48px;background:#fff;color:var(--ink);display:block}
.hero--page h1{color:var(--ink);font-size:40px;line-height:48px;text-align:center;letter-spacing:0;max-width:none;margin:0 auto 20px}
.hero--page .lead{color:var(--text);text-align:center;margin:0 auto;max-width:48rem}
.hero--page .eyebrow{text-align:center}

/* =========================================================
   SIGNUP FORMS
   ========================================================= */
.signup{margin:0}
.signup__step{font-size:13px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;opacity:.8;margin-bottom:10px}
.signup__row{display:flex;gap:0;max-width:560px;background:#fff;border-radius:6px;padding:5px;box-shadow:0 10px 40px rgba(0,0,0,.12)}
.signup__row input[type=email],.signup__row input[type=text],.signup__row input[type=url]{flex:1;min-width:0;font:inherit;font-size:16px;padding:14px 16px;border:0;background:#fff;color:var(--ink);border-radius:4px}
.signup__row input::placeholder{color:#9aa0a6}
.signup__row input:focus{outline:none}
.signup__row .btn{border-radius:4px}
.signup__note{font-size:13px;color:var(--muted);margin:12px 0 0;line-height:20px}
.hero .signup__note{color:rgba(255,255,255,.65)}
.signup--box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 26px;position:relative;overflow:hidden}
.signup--box .signup__row{flex-direction:column;gap:10px;box-shadow:none;padding:0;background:none}
.signup--box .signup__row input{border:1px solid var(--line);padding:13px 14px}
.signup--box .signup__row input:focus{border-color:var(--orange)}
.signup--box h3{font-size:20px;line-height:28px;margin-bottom:8px}
.signup--box p{font-size:15px;line-height:24px;color:var(--text);margin-bottom:18px}
.signup--accent{background:var(--ink);color:#fff;border-color:var(--ink)}
.signup--accent h3{color:#fff}
.signup--accent p{color:rgba(255,255,255,.8)}
.signup--accent .signup__note{color:rgba(255,255,255,.55)}
.signup--band{text-align:center}
.signup--band .signup__row{margin:0 auto}
.signup--band h2{margin-bottom:12px}
.signup--band p{max-width:52ch;margin:0 auto 28px;font-size:20px;line-height:34px}
.signup--band .signup__note{color:rgba(255,255,255,.6)}
.ribbon{position:absolute;top:10px;right:-60px;width:150px;height:26px;background:var(--blue);color:#fff;font-size:11.2px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;text-align:center;line-height:26px;transform:rotate(45deg);z-index:2}
.ribbon--orange{background:var(--orange)}

/* =========================================================
   LOGO STRIP (orange band)
   ========================================================= */
.logo-strip{background:var(--orange);color:#fff;padding:26px 0 30px}
.logo-strip__label{font-size:13px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--ink);margin-bottom:18px}
.logo-strip__row{display:flex;flex-wrap:wrap;align-items:center;gap:20px 56px}
.logo-strip__row img{max-height:40px;width:auto;filter:brightness(0) invert(1);opacity:.95}
.logo-strip__row span{font-weight:700;font-size:26px;letter-spacing:-.02em;color:#fff;opacity:.95}

/* =========================================================
   PILLARS / ICON CARDS
   ========================================================= */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.pillar{background:#fff;border-radius:var(--radius);padding:32px 28px;box-shadow:var(--shadow-card)}
.pillar__icon{width:52px;height:52px;border-radius:10px;background:rgba(241,98,50,.12);color:var(--orange);display:grid;place-items:center;font-size:24px;margin-bottom:20px}
.pillar h3{font-size:22px;line-height:30px}
.pillar p{font-size:16px;line-height:26px;margin-bottom:14px}
.pillar a.more{font-weight:600}

/* =========================================================
   CATEGORY PILLS
   ========================================================= */
.cat-nav{padding:0 0 40px}
.cat-nav__toggle{display:none}
.cat-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.cat-nav a{display:inline-block;padding:11px 16px;border-radius:6px;background:#fff;color:var(--ink);font-weight:500;font-size:16px;line-height:1;box-shadow:0 2px 12px rgba(0,0,0,.08);white-space:nowrap}
.cat-nav a:hover{box-shadow:0 2px 12px rgba(0,0,0,.16);color:var(--ink)}
.cat-nav .is-active a{background:var(--orange-2);color:#fff}
.cat-nav li.more{position:relative}
.cat-nav li.more ul{display:none;position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#fff;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:8px;flex-direction:column;gap:2px;min-width:220px;z-index:30}
.cat-nav li.more:hover ul,.cat-nav li.more:focus-within ul{display:flex}
.cat-nav li.more ul a{box-shadow:none;width:100%;text-align:left}
.cat-nav li.more ul a:hover{background:var(--band)}

/* =========================================================
   CARDS
   ========================================================= */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{position:relative;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-card);padding:4px;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.card__ribbon{position:absolute;top:10px;right:-60px;width:150px;height:26px;background:var(--blue);color:#fff;font-size:11.2px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;text-align:center;line-height:26px;transform:rotate(45deg);z-index:2}
.card__media{display:block;aspect-ratio:5/3;border-radius:var(--radius) var(--radius) 0 0;overflow:hidden;background:var(--band)}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__body{padding:20px 16px 22px;display:flex;flex-direction:column;flex:1}
.card__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.card__meta a{color:var(--muted)}
.card__meta a:hover{color:var(--orange)}
.card__meta .time{display:inline-flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0}
.card__meta svg{width:16px;height:16px;stroke:#808080;fill:none;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.card__title{font-size:20.8px;line-height:29px;font-weight:600;margin:0 0 10px;color:#1a1a1a}
.card__title a{color:inherit;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card__title a:hover{color:var(--orange)}
.card__excerpt{font-size:16px;line-height:26px;color:#4a4d55;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card__foot{margin-top:auto;display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.card__foot img{width:28px;height:28px;border-radius:50%}
.card__foot strong{color:var(--ink);font-weight:500}
.card--featured{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;padding:4px}
.card--featured .card__media{aspect-ratio:3/2;border-radius:var(--radius) 0 0 var(--radius)}
.card--featured .card__body{padding:36px 36px 36px 40px;justify-content:center}
.card--featured .card__title{font-size:32px;line-height:40px;font-weight:700}
.card--featured .card__title a{-webkit-line-clamp:4}
.card--featured .card__excerpt{font-size:18px;line-height:30px;-webkit-line-clamp:3}
.card--signup{padding:0;box-shadow:var(--shadow-card)}
.card--ad{box-shadow:none;background:var(--band);align-items:center;justify-content:center}
.card--ad .ad-slot{margin:0;width:100%}
.card--signup .signup--box{height:100%;border:0}
.card--horizontal{flex-direction:row;gap:14px;box-shadow:none;padding:0;border-radius:0;overflow:visible}
.card--horizontal .card__media{width:96px;flex:none;aspect-ratio:1;border-radius:8px}
.card--horizontal .card__body{padding:0}
.card--horizontal .card__title{font-size:16px;line-height:24px;-webkit-line-clamp:3}

/* load more / pagination */
.load-more{display:flex;justify-content:center;margin-top:48px}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:48px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:6px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.08);color:var(--ink);font-weight:500}
.pagination .page-numbers.current{background:var(--orange-2);color:#fff}
.pagination a.page-numbers:hover{color:var(--orange)}
.pagination .dots{box-shadow:none;background:none}

/* =========================================================
   SPLIT / ABOUT
   ========================================================= */
.split{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.split__media img{border-radius:var(--radius);width:100%}
.split p{font-size:20px;line-height:34px}

/* stats row */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;margin-top:40px}
.stat{border-left:3px solid var(--orange);padding:4px 0 4px 20px}
.stat strong{display:block;font-size:44px;line-height:1;font-weight:700;color:#fff;margin-bottom:10px}
.stat span{font-size:16px;line-height:24px;color:rgba(255,255,255,.75)}

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:7.6%;padding:28px 0 72px}
.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;line-height:1;color:var(--muted);margin:0 0 28px}
.breadcrumbs a{color:var(--orange)}
.breadcrumbs .sep{color:#c4c4c4}
.breadcrumbs svg{width:14px;height:14px;fill:var(--orange);display:block}
.breadcrumbs .current{color:var(--muted);max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-hero h1{font-size:36px;line-height:48px;margin-bottom:24px}
.post-hero .post-excerpt{font-size:20px;line-height:34px;color:#4a4d55;margin-bottom:20px}
.author-line{display:flex;align-items:center;gap:14px;margin:20px 0 28px}
.author-line img{width:48px;height:48px;border-radius:50%}
.author-line__name{font-weight:700;font-size:16px;line-height:22px}
.author-line__name a{color:var(--ink)}
.author-line__name a:hover{color:var(--orange)}
.author-line__role{font-size:13px;line-height:18px;color:var(--muted)}
.author-line__meta{margin-left:auto;text-align:right;font-size:13px;line-height:20px;color:var(--muted)}
.author-line__meta span{display:inline-flex;align-items:center;gap:6px;justify-content:flex-end}
.author-line__meta svg{width:16px;height:16px;stroke:#808080;fill:none;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.post-thumb{margin:0 0 36px}
.post-thumb img{width:100%;border-radius:var(--radius);aspect-ratio:5/3;object-fit:cover}

.entry-content{font-size:20px;line-height:33px;max-width:var(--measure)}
.entry-content>*{margin:0 0 33px}
.entry-content h2{font-size:28px;line-height:35px;margin:48px 0 20px}
.entry-content h3{font-size:24px;line-height:32px;margin:40px 0 16px}
.entry-content h4{font-size:20px;margin:32px 0 12px}
.entry-content a{color:var(--orange)}
.entry-content a:hover{text-decoration:underline}
.entry-content img{border-radius:8px}
.entry-content figure{margin:0 0 33px}
.entry-content figcaption{font-size:14px;line-height:22px;color:var(--muted);margin-top:10px}
.entry-content ul,.entry-content ol{padding:0;margin:0 0 33px}
.entry-content ul{list-style:none}
.entry-content ul>li{position:relative;padding-left:33px;margin-bottom:17px}
.entry-content ul>li::before{content:"";position:absolute;left:4px;top:13px;width:8px;height:8px;background:var(--orange)}
.entry-content ol{list-style:none;counter-reset:np}
.entry-content ol>li{position:relative;padding-left:33px;margin-bottom:17px;counter-increment:np}
.entry-content ol>li::before{content:counter(np) ".";position:absolute;left:0;top:0;color:var(--orange);font-weight:700}
.entry-content li ul,.entry-content li ol{margin:12px 0 0}
.entry-content blockquote{border-left:4px solid var(--orange);margin:40px 0;padding:6px 0 6px 28px;font-size:22px;line-height:34px;font-weight:500;color:var(--ink)}
.entry-content blockquote p:last-child{margin-bottom:0}
.entry-content table{border-collapse:collapse;width:100%;font-size:16px;line-height:24px}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top}
.entry-content th{background:var(--band);font-weight:600}
.entry-content code{background:var(--band);padding:2px 6px;border-radius:4px;font-size:.9em}
.entry-content pre{background:var(--ink);color:#fff;padding:20px;border-radius:8px;overflow:auto;font-size:15px;line-height:24px}
.entry-content pre code{background:none;padding:0;color:inherit}
.entry-content .alignwide{max-width:none}
.key-takeaways{background:var(--band);border-radius:var(--radius);padding:28px 30px}
.key-takeaways h2,.key-takeaways h3{margin-top:0;font-size:24px}
.key-takeaways ul{margin-bottom:0}

/* in-article CTA */
.inline-cta{background:var(--ink);color:#fff;border-radius:var(--radius);padding:32px 32px 28px;margin:44px 0!important;position:relative;overflow:hidden}
.inline-cta h3{color:#fff;font-size:24px;line-height:32px;margin:0 0 8px}
.inline-cta p{color:rgba(255,255,255,.8);font-size:16px;line-height:26px;margin:0 0 20px}
.inline-cta .signup__row{max-width:none;box-shadow:none}
.inline-cta .signup__note{color:rgba(255,255,255,.55)}
.inline-cta--light{background:var(--band);color:var(--ink)}
.inline-cta--light h3{color:var(--ink)}
.inline-cta--light p{color:var(--text)}
.inline-cta--light .signup__row{border:1px solid var(--line)}
.inline-cta--light .signup__note{color:var(--muted)}

/* post footer */
.post-footer{margin-top:48px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.tags a{font-size:13px;font-weight:500;letter-spacing:.3px;padding:7px 12px;border-radius:5px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);color:var(--ink)}
.tags a:hover{background:var(--orange-2);color:#fff}
.share{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.share__label{font-size:13px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-right:4px}
.share a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.1);color:var(--ink)}
.share a:hover{background:var(--orange);color:#fff}
.share svg{width:18px;height:18px;fill:currentColor}
.author-box{display:grid;grid-template-columns:96px 1fr;gap:26px;border-top:1px solid var(--line);padding:36px 0 0;margin-top:40px}
.author-box img{width:96px;height:96px;border-radius:50%}
.author-box .eyebrow{margin-bottom:6px}
.author-box h3{font-size:22px;line-height:30px;margin-bottom:2px}
.author-box .role{color:var(--muted);font-size:14px;line-height:20px;margin-bottom:12px}
.author-box p{font-size:16px;line-height:26px;margin-bottom:12px}
.author-box .links{display:flex;gap:18px;font-weight:600;font-size:15px}

/* sidebar */
.post-sidebar{align-self:stretch;position:relative}
.sidebar-sticky{position:sticky;top:calc(var(--header-h) + 3px);display:flex;flex-direction:column;gap:24px;transition:top .1s}
.sidebar-sticky.is-bottom{position:sticky;top:auto;bottom:24px}
.widget-box,.toc,.post-sidebar .widget{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 20px}
.post-sidebar .widget-title{font-size:18px;font-weight:700;margin:0 0 14px;color:var(--ink);text-transform:none;letter-spacing:0}
.post-sidebar .widget ul{list-style:none;margin:0;padding:0}
.post-sidebar .widget li{font-size:14px;line-height:22px;padding:6px 0;border-bottom:1px solid var(--line)}
.post-sidebar .widget li:last-child{border:0}
.post-sidebar .widget a{color:var(--ink)}
.post-sidebar .widget a:hover{color:var(--orange)}
.toc__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.toc__head h4{margin:0;font-size:18px;line-height:24px;font-weight:700}
.toc__social{display:flex;gap:10px}
.toc__social a{color:var(--ink);display:inline-flex}
.toc__social a:hover{color:var(--orange)}
.toc__social svg{width:18px;height:18px;fill:currentColor}
.toc ol{list-style:none;margin:0;padding:0;max-height:55vh;overflow:auto}
.toc li{position:relative;padding-left:28px;font-size:14px;line-height:23px;margin-bottom:8px}
.toc li::before{content:"";position:absolute;left:4px;top:8px;width:8px;height:8px;background:var(--orange)}
.toc a{color:var(--ink)}
.toc a:hover,.toc a.is-active{color:var(--orange)}
.toc li.lvl-3{padding-left:44px;font-size:13px}
.toc li.lvl-3::before{left:20px;width:6px;height:6px;top:9px}
.side-signup .ribbon{top:14px;right:-56px}

/* mobile bottom bar (NP .bb-toc): tabs for TOC + CTA, slide-up panel */
.bb{display:none;position:fixed;left:0;right:0;bottom:0;z-index:98;background:#fff;box-shadow:0 -6px 30px rgba(0,0,0,.12);border-radius:14px 14px 0 0;transform:translateY(calc(100% - 54px));transition:transform .25s ease;max-height:80vh;flex-direction:column}
.bb.is-open{transform:none}
.bb__bar{display:flex;height:54px;flex:none;padding:0 16px;gap:16px}
.bb__tab{flex:1;background:none;border:0;border-bottom:1.5px solid var(--line);font:inherit;font-size:15px;font-weight:500;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:0}
.bb__tab svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.bb__tab.is-active{color:var(--ink);border-bottom-color:var(--orange)}
.bb__panel{overflow:auto;padding:16px 20px 8px;display:none}
.bb.is-open .bb__panel.is-active{display:block}
.bb__panel .toc{border:0;padding:0}
.bb__panel .toc__head{display:none}
.bb__panel .toc ol{max-height:none}
.bb__panel .toc li{font-size:15px;line-height:24px;margin-bottom:10px}
.bb__close{display:none;flex:none;background:none;border:0;border-top:1px solid var(--line);font:inherit;font-size:14px;color:var(--muted);padding:12px;cursor:pointer}
.bb.is-open .bb__close{display:block}
body.bb-open .bb-backdrop{display:block}
.bb-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:97}

/* related */
.related{padding:72px 0;background:var(--band)}

/* comments */
.comments{padding:56px 0;max-width:var(--measure)}
.comments h2{font-size:28px;line-height:35px}
.comment-list{list-style:none;margin:0;padding:0}
.comment{padding:24px 0;border-bottom:1px solid var(--line)}
.comment .children{list-style:none;padding-left:40px}
.comment-meta{display:flex;align-items:center;gap:12px;margin-bottom:10px;font-size:13px;color:var(--muted)}
.comment-meta img{border-radius:50%}
.comment-meta .fn{font-weight:700;color:var(--ink);font-style:normal;font-size:16px}
.comment-content{font-size:17px;line-height:28px}
.comment-reply-link{font-size:13px;font-weight:600}
.comment-form label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;font:inherit;font-size:16px;padding:12px 14px;border:1px solid var(--line);border-radius:6px}
.comment-form textarea{min-height:150px}
.comment-form input[type=submit]{font-family:var(--font);font-weight:700;font-size:14px;letter-spacing:.3px;text-transform:uppercase;padding:16px 26px;border-radius:5px;border:0;background:var(--orange);color:#fff;cursor:pointer}

/* =========================================================
   PAGES / SEARCH / 404
   ========================================================= */
.page-hero{padding:64px 0 32px}
.page-content{padding-bottom:80px}
.search-form{display:flex;gap:0;max-width:560px;background:#fff;border-radius:6px;padding:5px;box-shadow:0 10px 40px rgba(0,0,0,.12);margin:24px auto 0}
.search-form input[type=search]{flex:1;min-width:0;font:inherit;font-size:16px;padding:14px 16px;border:0;border-radius:4px}
.search-form input:focus{outline:none}
.not-found{padding:96px 0 48px;text-align:center}
.not-found h1{font-size:120px;line-height:1;color:var(--line);margin:0 0 10px}
.not-found h2{font-size:32px;line-height:40px}

/* newsletter landing template */
.landing{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}
.landing__copy{padding:72px 64px;display:flex;flex-direction:column;justify-content:center;background:var(--ink);color:#fff}
.landing__copy h1{color:#fff;font-size:52px;line-height:60px;margin-bottom:20px}
.landing__copy .lead{color:rgba(255,255,255,.85)}
.landing__copy ul{list-style:none;padding:0;margin:28px 0}
.landing__copy li{padding-left:33px;position:relative;margin-bottom:14px;font-size:20px;line-height:32px}
.landing__copy li::before{content:"";position:absolute;left:4px;top:12px;width:8px;height:8px;background:var(--orange)}
.landing__form{padding:72px 64px;display:flex;flex-direction:column;justify-content:center;background:var(--band)}
.landing__form .signup--box{box-shadow:var(--shadow-card);padding:40px;border:0}
.landing__form .signup--box h3{font-size:28px;line-height:36px}
.landing__brand{margin-bottom:40px}
.landing__proof{margin-top:24px;font-size:14px;color:var(--muted);display:flex;align-items:center;gap:10px}

/* =========================================================
   FOOTER (orange, 3 columns — NP style)
   ========================================================= */
.site-footer{background:var(--orange);color:#fff;padding:64px 0 36px;font-size:16px;line-height:26px}
.site-footer a{color:#fff}
.site-footer a:hover{color:var(--ink)}
.footer-cols{display:grid;grid-template-columns:1.1fr 1fr 1.4fr;gap:48px;margin-bottom:48px}
.footer-col h4{color:#fff;font-size:20px;line-height:28px;font-weight:500;letter-spacing:.2px;text-transform:uppercase;margin:0 0 18px}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{margin-bottom:8px}
.footer-col-brand .site-brand{margin-bottom:20px;letter-spacing:.08em}
.footer-col-brand p{font-size:15px;line-height:24px;color:rgba(255,255,255,.9);max-width:34ch;margin-bottom:20px}
.footer-legal ul{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;line-height:20px}
.footer-legal a{color:rgba(255,255,255,.9)}
.footer-copy{font-size:13px;line-height:20px;color:rgba(255,255,255,.9);margin-top:14px}
.footer-newsletter h5{color:#fff;font-size:20px;line-height:28px;font-weight:700;margin:0 0 8px}
.footer-newsletter p{font-size:15px;line-height:24px;color:rgba(255,255,255,.9);margin-bottom:16px}
.footer-newsletter .signup__row{box-shadow:none;padding:4px;max-width:none}
.footer-newsletter .signup__row input{padding:11px 14px;font-size:15px}
.footer-newsletter .signup__row .btn{padding:12px 20px;font-size:13px;font-weight:500;background:var(--blue);border-color:var(--blue);border-radius:4px}
.footer-newsletter .signup__row .btn:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.footer-newsletter .signup__note{color:rgba(255,255,255,.85);font-size:12px;line-height:18px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.35);padding-top:24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}
.footer-bottom .follow{font-size:14px;font-weight:500;letter-spacing:.3px;text-transform:uppercase}
.social{display:flex;gap:10px}
.social a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff}
.social a:hover{background:#fff;color:var(--orange)}
.social svg{width:18px;height:18px;fill:currentColor}
.footer-widgets{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin-bottom:40px}
.footer-widgets .widget h4,.footer-widgets .widget .widget-title{color:#fff;font-size:16px;letter-spacing:.3px;text-transform:uppercase;margin-bottom:12px}
.footer-widgets ul{list-style:none;margin:0;padding:0}
.footer-widgets li{margin-bottom:6px;font-size:15px}

/* =========================================================
   WP CORE
   ========================================================= */
.alignwide{max-width:1000px;margin-left:auto;margin-right:auto}
.alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
.wp-caption{max-width:100%}
.sticky{}
.bypostauthor{}
.gallery-caption{}
.page-links{font-size:15px;margin-top:24px}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1200px){
  .nav-toggle{display:block}
  .primary-nav,.header-cta,.header-divider{display:none}
  .site-brand img{height:36px;max-width:200px}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1024px){
  .post-layout{grid-template-columns:1fr;gap:40px}
  .post-sidebar{display:none}
  .bb{display:flex}
  body.has-bb{padding-bottom:54px}
  .footer-cols{grid-template-columns:1fr 1fr}
  .footer-col-newsletter{grid-column:1/-1}
  .landing{grid-template-columns:1fr}
  .landing__copy,.landing__form{padding:56px 24px}
  .hero h1{font-size:48px;line-height:56px}
  .footer-widgets{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  :root{--header-h:95px}
  body{font-size:16px;line-height:28px}
  .wrap{padding:0 20px}
  h1{font-size:30px;line-height:38px}
  h2{font-size:28px;line-height:36px}
  .lead{font-size:17px;line-height:28px}
  .section{padding:48px 0}
  .hero{padding:48px 0 56px;min-height:0}
  .hero h1{font-size:36px;line-height:44px}
  .hero .lead{font-size:17px;line-height:28px}
  .site-brand img{height:40px;max-width:210px}
  .announce{font-size:18px;padding:14px 20px}
  .announce .wrap{flex-direction:column;gap:12px}
  .announce .btn{width:100%;padding:14px}
  .hero--page{padding:40px 0 24px}
  .hero--page h1{font-size:34px;line-height:40px}
  .cat-nav{padding:0 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px}
  .cat-nav__toggle{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;border:0;font:inherit;font-size:24px;font-weight:700;color:var(--ink);padding:0 0 16px;cursor:pointer}
  .cat-nav__toggle::after{content:"";width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);margin-right:4px;transition:transform .2s}
  .cat-nav.is-open .cat-nav__toggle::after{transform:rotate(-135deg)}
  .cat-nav ul{display:none;flex-wrap:wrap;justify-content:flex-start;gap:10px;padding:4px 0 8px}
  .cat-nav.is-open ul{display:flex}
  .cat-nav a{font-size:15px;padding:10px 14px}
  .grid{grid-template-columns:1fr}
  .card__media{aspect-ratio:16/10}
  .card__body{padding:22px 16px 20px}
  .card__title{font-size:22px;line-height:30px}
  .card__excerpt{font-size:17px;line-height:27px;-webkit-line-clamp:4}
  .card__foot{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
  .card--featured{grid-template-columns:1fr}
  .card--featured .card__media{border-radius:var(--radius) var(--radius) 0 0}
  .card--featured .card__body{padding:22px 16px 20px}
  .card--featured .card__title{font-size:22px;line-height:30px}
  .split{grid-template-columns:1fr;gap:32px}
  .signup__row{flex-direction:column;gap:6px;padding:6px}
  .signup__row .btn{width:100%}
  .breadcrumbs{font-size:13px;margin-bottom:22px}
  .post-hero h1{font-size:27px;line-height:36px;margin-bottom:20px}
  .post-hero .post-excerpt{font-size:17px;line-height:28px}
  .author-line{gap:12px}
  .author-line__meta{font-size:13px}
  .post-thumb{margin-bottom:28px}
  .entry-content{font-size:16px;line-height:28px}
  .entry-content>*{margin-bottom:24px}
  .entry-content h2{font-size:24px;line-height:32px;margin:36px 0 16px}
  .entry-content h3{font-size:20px;line-height:28px}
  .entry-content ul>li,.entry-content ol>li{padding-left:28px;margin-bottom:12px}
  .entry-content ul>li::before{top:10px}
  .entry-content blockquote{font-size:19px;line-height:30px;padding-left:20px}
  .key-takeaways{padding:22px 20px}
  .inline-cta{padding:24px 20px}
  .author-box{grid-template-columns:1fr;gap:16px}
  .footer-cols{grid-template-columns:1fr;gap:36px}
  .footer-widgets{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .section-head--row{flex-direction:column;align-items:flex-start}
  .stat strong{font-size:36px}
  .pillars{grid-template-columns:1fr}
  .hero__logos{gap:12px 24px;margin-top:28px}
  .hero__logos span{font-size:18px}
}
