/* blog.css — "The Write Blog" redesign. Two directions share this sheet;
   .warm and .structural wrappers carry the divergence.
   Tokens + Arimo come from colors_and_type.css; Newsreader is the serif.

   NOTE: do NOT @import colors_and_type.css here. WP Rocket "Remove Unused CSS"
   does not follow @import and was dropping the whole sheet on optimized/cached
   blog pages (unstyled on navigation, fine on hard-refresh). colors_and_type
   and the Newsreader font are now enqueued as their own stylesheets in
   ew-blog.php (ew-blog-tokens loads BEFORE this file). */

.ew-blog {
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --head-font: var(--font-body);
  --card-radius: 4px;
  --hub-radius: 3px;
  --pill-radius: 4px;
  --measure: 70ch;
  --hub: var(--ew-orange);
  --hub-tint: var(--ew-orange-tint);
  width: 1280px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ew-black);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.ew-blog *, .ew-blog *::before, .ew-blog *::after { box-sizing: border-box; }
.ew-blog img { display: block; max-width: 100%; }

/* heading font driven by variant */
.ew-blog h1, .ew-blog h2, .ew-blog h3, .ew-blog h4,
.ew-blog .h1, .ew-blog .h2, .ew-blog .h3 { font-family: var(--head-font); }

.ewb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.ewb-narrow { max-width: 760px; }

/* ============================================================ HEADER */
.ewb-header { position: relative; z-index: 30; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--ew-line); }
.ewb-header-in { max-width: 1200px; margin: 0 auto; padding: 16px 48px; display: flex; align-items: center; gap: 28px; }
.ewb-logo { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.ewb-logo img { height: 26px; width: auto; }
.ewb-logo .ewb-blogtag {
  font: 600 12px/1 var(--font-body); letter-spacing: 0.04em; color: var(--ew-gray-2); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid var(--ew-line-strong);
}
.ewb-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.ewb-nav-li { position: relative; }
.ewb-nav > a, .ewb-nav .ewb-navitem {
  font: 600 14.5px/1 var(--font-body); color: var(--ew-black); text-decoration: none; border: 0;
  padding: 10px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; white-space: nowrap;
}
.ewb-nav > a:hover, .ewb-nav-li:hover .ewb-navitem { color: var(--ew-orange); background: var(--ew-cream); }
.ewb-nav .ewb-caret { width: 9px; height: 9px; opacity: 0.55; transition: transform var(--dur) var(--ease-out); }
.ewb-nav-li:hover .ewb-caret { transform: rotate(180deg); }
.ewb-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 208px; background: #fff;
  border: 1px solid var(--ew-line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 40;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.ewb-nav-li:hover .ewb-dropdown { opacity: 1; visibility: visible; transform: none; }
.ewb-dropdown a { display: block; padding: 10px 12px; border-radius: 7px; font: 500 14.5px/1.2 var(--font-body); color: var(--ew-black); text-decoration: none; border: 0; white-space: nowrap; }
.ewb-dropdown a:hover { background: var(--ew-cream); color: var(--ew-orange); }
.ewb-header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* mobile header */
.ewb-header-m { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.ewb-header-m .ewb-logo img { height: 22px; }
.ewb-header-m .ewb-blogtag { font-size: 11px; padding-left: 9px; }
.ewb-burger { width: 42px; height: 42px; border: 1px solid var(--ew-line-strong); border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.ewb-burger span { width: 18px; height: 2px; background: var(--ew-black); border-radius: 2px; }

/* editor headshot row + CTA — the signature */
.ewb-editrow { display: flex; align-items: center; }
.ewb-editrow .ewb-face { width: 34px; height: 34px; border-radius: 999px; border: 2px solid #fff; margin-left: -9px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.ewb-editrow .ewb-face:first-child { margin-left: 0; }
.ewb-btn {
  display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px/1 var(--font-body);
  padding: 13px 20px; border-radius: var(--r-pill); border: 0; cursor: pointer; text-decoration: none;
  background: var(--ew-orange); color: #fff; box-shadow: var(--shadow-cta);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.ewb-btn:hover { background: var(--ew-green-dark); transform: translateY(-1px); }
.ewb-btn-ghost { background: transparent; color: var(--ew-black); box-shadow: none; padding: 13px 8px; }
.ewb-btn-ghost:hover { background: transparent; color: var(--ew-orange); transform: none; }
.ewb-btn-sm { padding: 11px 16px; font-size: 13.5px; }

/* mega menu (shown statically on the index artboard, opened state) */
.ewb-mega {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--ew-line); border-bottom: 1px solid var(--ew-line);
  box-shadow: var(--shadow-2); z-index: 40;
}
.ewb-mega-in { max-width: 1200px; margin: 0 auto; padding: 28px 48px 30px; display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr; gap: 36px; }
.ewb-mega h5 { font: 700 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ew-orange); margin: 0 0 14px; }
.ewb-mega a { display: flex; align-items: center; gap: 10px; font: 500 15px/1.2 var(--font-body); color: var(--ew-black); text-decoration: none; border: 0; padding: 8px 0; }
.ewb-mega a:hover { color: var(--ew-orange); }
.ewb-mega .ewb-mega-promo { background: var(--ew-cream); border-radius: 12px; padding: 22px; }
.ewb-mega .ewb-mega-promo p { font: 400 14px/1.5 var(--font-body); color: var(--ew-gray); margin: 8px 0 16px; }
.ewb-hubdot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }

/* ============================================================ HERO */
.ewb-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--ew-line); }
.ewb-hero h1 { font-size: 50px; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 14px; font-weight: 600; }
.ewb-hero p { font-size: 20px; line-height: 1.5; color: var(--ew-gray); max-width: 720px; margin: 0; }
.ewb-hero p strong { color: var(--ew-black); font-weight: 600; }

/* ============================================================ SECTION LABEL */
.ewb-seclabel { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.ewb-seclabel h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ew-gray); margin: 0; font-family: var(--font-body); }
.ewb-seclabel .ewb-seclink { font: 600 14px/1 var(--font-body); color: var(--ew-orange); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* ============================================================ HUB GRID */
.ewb-hubsec { padding: 48px 0; }
.ewb-hubgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ewb-hubcard {
  position: relative; background: #fff; border: 1px solid var(--ew-line); border-radius: var(--hub-radius);
  padding: 24px 22px 22px; text-decoration: none; color: var(--ew-black); display: block;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  overflow: hidden;
}
.ewb-hubcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--hub); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.ewb-hubcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.ewb-hubcard:hover::before { transform: scaleX(1); }
.ewb-hubicon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--hub-tint); color: var(--hub); margin-bottom: 16px; }
.ewb-hubicon svg { width: 24px; height: 24px; }
.ewb-hubcard h3 { font-size: 21px; line-height: 1.15; margin: 0 0 6px; font-weight: 600; }
.ewb-hubcard p { font-size: 14.5px; line-height: 1.45; color: var(--ew-gray); margin: 0 0 16px; }
.ewb-hubcount { font: 600 12.5px/1 var(--font-body); letter-spacing: 0.04em; color: var(--ew-gray-3); text-transform: uppercase; }
.ewb-hubcard.flagship { background: var(--ew-green-deep); border-color: var(--ew-green-deep); color: #fff; }
.ewb-hubcard.flagship h3 { color: #fff; }
.ewb-hubcard.flagship p { color: rgba(255,255,255,0.72); }
.ewb-hubcard.flagship .ewb-hubicon { background: rgba(255,255,255,0.1); color: #fff; }
.ewb-hubcard.flagship .ewb-hubcount { color: var(--ew-orange); }
.ewb-hubcard.flagship::before { background: var(--ew-orange); }

/* ============================================================ FEATURED */
.ewb-featsec { padding: 40px 0 8px; }
.ewb-feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border: 1px solid var(--ew-line); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.ewb-feat-img { position: relative; min-height: 420px; }
.ewb-feat-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.ewb-feat-body h3 { font-size: 38px; line-height: 1.08; letter-spacing: -0.01em; margin: 16px 0 16px; font-weight: 600; }
.ewb-feat-body h3 a { color: inherit; text-decoration: none; border: 0; }
.ewb-feat-body h3 a:hover { color: var(--hub); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ewb-feat-dek { font-size: 17.5px; line-height: 1.55; color: var(--ew-gray); margin: 0 0 26px; }

/* ============================================================ HUB PILL */
.ewb-pill {
  display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--pill-radius);
  color: var(--hub); background: var(--hub-tint); text-decoration: none; border: 0; align-self: flex-start;
}
.ewb-pill .ewb-hubdot { width: 7px; height: 7px; border-radius: 2px; background: var(--hub); }
a.ewb-pill:hover { filter: brightness(0.95); }

/* ============================================================ POST GRID */
.ewb-gridsec { padding: 32px 0 8px; }
.ewb-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.ewb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ew-line); border-radius: var(--card-radius); overflow: hidden; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.ewb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ewb-card-imgwrap { aspect-ratio: 16/9; overflow: hidden; }
.ewb-card-img { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.ewb-card:hover .ewb-card-img { transform: scale(1.03); }
.ewb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ewb-card-body .ewb-pill { margin-bottom: 12px; }
.ewb-card h3 { font-size: 21px; line-height: 1.2; margin: 0 0 10px; font-weight: 600; }
.ewb-card h3 a { color: inherit; text-decoration: none; border: 0; }
.ewb-card:hover h3 a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--hub); }
.ewb-card-excerpt { font-size: 15px; line-height: 1.5; color: var(--ew-gray); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ewb-card-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ew-line); display: flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--font-body); color: var(--ew-gray-2); flex-wrap: wrap; white-space: nowrap; }
.ewb-card-meta a { color: var(--ew-black); text-decoration: none; border: 0; font-weight: 600; }
.ewb-card-meta a:hover { color: var(--hub); }
.ewb-meta-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ew-line-strong); }

/* ============================================================ PAGINATION */
.ewb-pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 44px 0 8px; }
.ewb-pager a, .ewb-pager span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--hub-radius); border: 1px solid var(--ew-line); font: 600 14px/1 var(--font-body); color: var(--ew-black); text-decoration: none; }
.ewb-pager a:hover { border-color: var(--ew-orange); color: var(--ew-orange); }
.ewb-pager .ewb-pg-cur { background: var(--ew-green-dark); border-color: var(--ew-green-dark); color: #fff; }
.ewb-pager .ewb-pg-gap { border: 0; color: var(--ew-gray-3); }
.ewb-pager .ewb-pg-nav { font-weight: 600; }

/* ============================================================ NEWSLETTER */
.ewb-news { background: var(--ew-green-dark); color: #fff; border-radius: var(--card-radius); padding: 40px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.ewb-newssec { padding: 48px 0; }
.ewb-news h3 { font-size: 28px; line-height: 1.12; margin: 0 0 8px; color: #fff; font-weight: 600; }
.ewb-news p { font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,0.75); margin: 0; max-width: 440px; }
.ewb-news-form { display: flex; gap: 10px; }
.ewb-news-form input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font: 400 15px/1 var(--font-body); }
.ewb-news-form input::placeholder { color: rgba(255,255,255,0.5); }
.ewb-news-form button { flex: 0 0 auto; height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 0; background: var(--ew-orange); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; transition: background var(--dur) var(--ease-out); }
.ewb-news-form button:hover { background: #fff; color: var(--ew-green-dark); }

/* ============================================================ BROWSE FOOTER (small hubs) */
.ewb-browse { padding: 8px 0 56px; }
.ewb-browse-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ewb-browse-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--ew-line); border-radius: var(--hub-radius); text-decoration: none; color: var(--ew-black); transition: border-color var(--dur), background var(--dur); }
.ewb-browse-card:hover { border-color: var(--hub); background: var(--hub-tint); }
.ewb-browse-card .ewb-hubicon { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
.ewb-browse-card .ewb-hubicon svg { width: 19px; height: 19px; }
.ewb-browse-card span { font: 600 13.5px/1.2 var(--font-body); }

/* ============================================================ FORTUNE 500 */
.ewb-f500 { padding: 30px 0; border-top: 1px solid var(--ew-line); }
.ewb-f500-lab { font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ew-gray-3); text-align: center; margin: 0 0 18px; }
.ewb-f500-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.ewb-f500-row span { font: 700 17px/1 var(--font-body); color: var(--ew-line-strong); letter-spacing: 0.01em; }

/* ============================================================ SITE FOOTER */
.ewb-footer { background: var(--ew-green-deep); color: #fff; padding: 60px 0 28px; }
.ewb-footer-top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ewb-footer-brand img { height: 24px; margin-bottom: 16px; }
.ewb-footer-brand p { font: 400 14px/1.55 var(--font-body); color: rgba(255,255,255,0.7); margin: 0 0 18px; max-width: 300px; }
.ewb-footer-trust { font: 500 13.5px/1.5 var(--font-body); color: rgba(255,255,255,0.55); max-width: 300px; }
.ewb-footer-trust strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.ewb-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ewb-footer-cols h5 { font: 700 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ew-orange); margin: 0 0 14px; }
.ewb-footer-cols a { display: block; font: 400 14px/1 var(--font-body); color: rgba(255,255,255,0.78); text-decoration: none; border: 0; padding: 7px 0; }
.ewb-footer-cols a:hover { color: var(--ew-orange); }
.ewb-footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font: 400 13px/1 var(--font-body); color: rgba(255,255,255,0.45); }
.ewb-footer-bot .ewb-footer-legal { display: flex; gap: 20px; }
.ewb-footer-bot a { color: rgba(255,255,255,0.45); text-decoration: none; border: 0; }
.ewb-footer-bot a:hover { color: var(--ew-orange); }

/* ============================================================ PLACEHOLDER IMAGERY */
.ewb-ph { width: 100%; height: 100%; position: relative; background: var(--ph, #e8e2d6); overflow: hidden; }
.ewb-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(0,0,0,0.06)); }
.ewb-ph-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 600 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
/* round headshot placeholder */
.ewb-face-ph { display: flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; font-weight: 700; font-family: var(--font-body); flex: 0 0 auto; }

/* ============================================================ SINGLE POST */
.ewb-crumbs { padding: 18px 0; font: 500 13.5px/1 var(--font-body); color: var(--ew-gray-2); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ewb-crumbs a { color: var(--ew-gray-2); text-decoration: none; border: 0; }
.ewb-crumbs a:hover { color: var(--ew-orange); }
.ewb-crumbs .ewb-crumb-hub { color: var(--hub); font-weight: 600; }
.ewb-crumbs .ewb-crumb-sep { color: var(--ew-line-strong); }
.ewb-crumbs .ewb-crumb-cur { color: var(--ew-black); }

.ewb-arthead { padding: 18px 0 32px; }
.ewb-arthead h1 { font-size: 50px; line-height: 1.06; letter-spacing: -0.015em; margin: 16px 0 18px; font-weight: 600; max-width: 18ch; }
.ewb-art-dek { font-size: 21px; line-height: 1.5; color: var(--ew-gray); margin: 0 0 28px; max-width: 60ch; }

/* byline */
.ewb-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ewb-byline .ewb-face-ph { width: 46px; height: 46px; font-size: 15px; }
.ewb-byline-main { display: flex; flex-direction: column; gap: 4px; }
.ewb-byline-name { display: flex; align-items: center; gap: 9px; font: 700 15.5px/1 var(--font-body); color: var(--ew-black); }
.ewb-byline-name a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.ewb-byline-name a:hover { border-color: var(--ew-orange); color: var(--ew-orange); }
.ewb-cred { font: 700 10.5px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #4a4f57; background: #eceef1; border: 1px solid #dcdfe4; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.ewb-byline-meta { font: 400 13.5px/1.3 var(--font-body); color: var(--ew-gray-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ewb-byline-meta .ewb-meta-dot { background: var(--ew-line-strong); }
.ewb-reviewed { margin-top: 14px; font: 500 13.5px/1 var(--font-body); color: var(--ew-gray-2); display: flex; align-items: center; gap: 9px; }
.ewb-reviewed .ewb-face-ph { width: 26px; height: 26px; font-size: 10px; }
.ewb-reviewed strong { color: var(--ew-black); font-weight: 600; }

.ewb-art-feat { margin: 30px 0 6px; }
.ewb-art-feat .ewb-art-figwrap { aspect-ratio: 16/7; border-radius: var(--card-radius); overflow: hidden; }
.ewb-art-cap { font: 400 13px/1.4 var(--font-body); color: var(--ew-gray-2); margin-top: 10px; padding-left: 2px; }

/* reading column + TOC */
.ewb-art-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; padding: 36px 0 8px; align-items: start; }
.ewb-toc { position: sticky; top: 24px; }
.ewb-toc-lab { font: 700 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ew-gray-3); margin: 0 0 16px; }
.ewb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ewb-toc li { counter-increment: toc; margin: 0 0 4px; }
.ewb-toc a { display: flex; gap: 10px; font: 500 14px/1.4 var(--font-body); color: var(--ew-gray-2); text-decoration: none; border: 0; padding: 7px 0 7px 14px; border-left: 2px solid var(--ew-line); }
.ewb-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--ew-line-strong); font-variant-numeric: tabular-nums; }
.ewb-toc a:hover { color: var(--ew-black); }
.ewb-toc a.cur { color: var(--hub); border-left-color: var(--hub); }
.ewb-toc a.cur::before { color: var(--hub); }

/* body type */
.ewb-prose { max-width: var(--measure); font-size: 18.5px; line-height: 1.7; color: #2b2b2b; }
.ewb-prose > p { margin: 0 0 24px; }
.ewb-prose h2 { font-size: 30px; line-height: 1.18; letter-spacing: -0.01em; margin: 44px 0 16px; font-weight: 600; scroll-margin-top: 24px; }
.ewb-prose h2 .ewb-anchor { opacity: 0; margin-left: 10px; color: var(--hub); font-size: 0.7em; text-decoration: none; border: 0; }
.ewb-prose h2:hover .ewb-anchor { opacity: 1; }
.ewb-prose a.ewb-inlink { color: var(--hub); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; border: 0; font-weight: 500; }
.ewb-prose a.ewb-inlink:hover { color: var(--ew-black); }
.ewb-prose .ewb-svcmention { color: var(--hub); font-weight: 600; white-space: nowrap; }

/* editor's note */
.ewb-ednote { background: var(--hub-tint); border-left: 3px solid var(--hub); border-radius: 0 var(--card-radius) var(--card-radius) 0; padding: 22px 26px; margin: 30px 0; }
.ewb-ednote-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ewb-ednote-head .ewb-face-ph { width: 32px; height: 32px; font-size: 12px; }
.ewb-ednote-head span { font: 700 12px/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--hub); }
.ewb-ednote p { font-size: 16.5px; line-height: 1.6; color: #33312e; margin: 0; }
.ewb-ednote p a { color: var(--ew-black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hub); text-decoration-thickness: 2px; text-underline-offset: 2px; border: 0; }

/* pull quote */
.ewb-pull { margin: 36px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--hub); }
.ewb-pull p { font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1.28; color: var(--ew-black); margin: 0; font-weight: 400; }

/* stat callout */
.ewb-stat { margin: 32px 0; padding: 30px 32px; background: var(--ew-green-deep); border-radius: var(--card-radius); color: #fff; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.ewb-stat-num { font: 700 60px/0.9 var(--head-font); color: var(--ew-orange); flex: 0 0 auto; }
.ewb-stat-body { flex: 1; min-width: 200px; }
.ewb-stat-body p { font-size: 18px; line-height: 1.4; margin: 0 0 6px; color: #fff; font-weight: 500; }
.ewb-stat-cite { font: 400 13px/1.4 var(--font-body); color: rgba(255,255,255,0.6); }

/* in-content related service block */
.ewb-related-svc { margin: 40px 0; padding: 30px 32px; border: 1px solid var(--hub); border-radius: var(--card-radius); background: var(--hub-tint); }
.ewb-related-svc .ewb-rs-eyebrow { font: 700 11.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hub); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ewb-related-svc h4 { font-size: 22px; line-height: 1.25; margin: 0 0 14px; font-weight: 600; max-width: 30ch; }
.ewb-related-svc-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ewb-rs-anchor { font: 700 15px/1 var(--font-body); color: var(--hub); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.ewb-rs-anchor:hover { color: var(--ew-black); }
.ewb-rs-faces { display: flex; align-items: center; }
.ewb-rs-faces .ewb-face-ph { width: 38px; height: 38px; font-size: 13px; border: 2px solid var(--hub-tint); margin-left: -10px; }
.ewb-rs-faces .ewb-face-ph:first-child { margin-left: 0; }

/* end author bio */
.ewb-authbio { margin: 44px 0; padding: 30px 0; border-top: 1px solid var(--ew-line); border-bottom: 1px solid var(--ew-line); display: flex; gap: 24px; align-items: flex-start; }
.ewb-authbio .ewb-face-ph { width: 80px; height: 80px; font-size: 26px; }
.ewb-authbio-body h4 { font-size: 22px; margin: 0 0 2px; font-weight: 600; }
.ewb-authbio-role { font: 500 14px/1 var(--font-body); color: var(--ew-gray-2); margin: 0 0 12px; }
.ewb-authbio-body p { font-size: 16px; line-height: 1.6; color: var(--ew-gray); margin: 0 0 14px; max-width: 62ch; }
.ewb-authbio-foot { display: flex; align-items: center; gap: 18px; }
.ewb-authbio-foot a { font: 600 14px/1 var(--font-body); color: var(--hub); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.ewb-authbio-foot .ewb-li { width: 34px; height: 34px; border-radius: 8px; background: var(--ew-cream); display: flex; align-items: center; justify-content: center; color: var(--ew-gray); border: 0; }
.ewb-authbio-foot .ewb-li:hover { background: var(--hub); color: #fff; }

/* related articles + services */
.ewb-relsec { padding: 16px 0; }
.ewb-relsec h3.ewb-relhead { font-size: 24px; margin: 0 0 22px; font-weight: 600; }
.ewb-relsvc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ewb-svccard { border: 1px solid var(--ew-line); border-radius: var(--card-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.ewb-svccard .ewb-svc-icn { width: 40px; height: 40px; border-radius: 9px; background: var(--ew-green-dark); color: #fff; display: flex; align-items: center; justify-content: center; }
.ewb-svccard .ewb-svc-icn svg { width: 21px; height: 21px; }
.ewb-svccard h4 { font-size: 18px; margin: 4px 0 0; font-weight: 600; }
.ewb-svccard p { font-size: 14px; line-height: 1.5; color: var(--ew-gray); margin: 0; flex: 1; }
.ewb-svccard a { font: 600 14px/1.3 var(--font-body); color: var(--ew-orange); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; align-self: flex-start; }
.ewb-svccard a:hover { color: var(--ew-green-dark); }

/* comments (quiet) */
.ewb-comments { padding: 36px 0 8px; }
.ewb-comments h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ew-gray-2); margin: 0 0 18px; font-family: var(--font-body); }
.ewb-comment { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ew-line); }
.ewb-comment .ewb-face-ph { width: 38px; height: 38px; font-size: 13px; }
.ewb-comment-body .ewb-comment-who { font: 600 14px/1 var(--font-body); color: var(--ew-black); margin-bottom: 5px; }
.ewb-comment-body .ewb-comment-who span { font-weight: 400; color: var(--ew-gray-3); margin-left: 8px; font-size: 12.5px; }
.ewb-comment-body p { font-size: 14.5px; line-height: 1.55; color: var(--ew-gray); margin: 0; }
.ewb-comment-form { display: flex; gap: 12px; padding-top: 18px; }
.ewb-comment-form input { flex: 1; height: 46px; border: 1px solid var(--ew-line-strong); border-radius: var(--hub-radius); padding: 0 14px; font: 400 14px/1 var(--font-body); }
.ewb-comment-form button { padding: 0 22px; border: 0; border-radius: var(--hub-radius); background: var(--ew-green-dark); color: #fff; font: 700 14px/1 var(--font-body); cursor: pointer; }

/* bottom share row */
.ewb-share { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-top: 1px solid var(--ew-line); margin-top: 8px; }
.ewb-share span { font: 600 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ew-gray-3); }
.ewb-share a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--ew-line-strong); display: flex; align-items: center; justify-content: center; color: var(--ew-gray); text-decoration: none; }
.ewb-share a:hover { border-color: var(--hub); color: var(--hub); }

/* ============================================================ WARM VARIANT */
.ew-blog.warm { background: var(--ew-cream); --head-font: var(--font-serif); --card-radius: 14px; --hub-radius: 12px; --pill-radius: 999px; }
.ew-blog.warm .ewb-header { background: rgba(250,247,242,0.97); }
.ew-blog.warm .ewb-hero h1 { font-size: 60px; font-weight: 500; letter-spacing: -0.015em; }
.ew-blog.warm .ewb-hero p { font-size: 21px; }
.ew-blog.warm .ewb-hubcard, .ew-blog.warm .ewb-card, .ew-blog.warm .ewb-feat, .ew-blog.warm .ewb-svccard { border-color: #ece5d8; }
.ew-blog.warm .ewb-hubcard h3 { font-weight: 500; }
.ew-blog.warm .ewb-feat-body h3, .ew-blog.warm .ewb-card h3, .ew-blog.warm .ewb-arthead h1 { font-weight: 500; }
.ew-blog.warm .ewb-prose h2 { font-weight: 500; }
.ew-blog.warm .ewb-seclabel h2 { font-family: var(--font-body); }
.ew-blog.warm .ewb-hubicon { border-radius: 999px; }
.ew-blog.warm .ewb-news, .ew-blog.warm .ewb-stat { background: var(--ew-green-dark); }

/* ============================================================ STRUCTURAL VARIANT */
.ew-blog.structural { background: #fff; --head-font: var(--font-body); --card-radius: 4px; --hub-radius: 3px; --pill-radius: 3px; }
.ew-blog.structural .ewb-hero { border-bottom: 2px solid var(--ew-black); }
.ew-blog.structural .ewb-hero h1 { font-weight: 700; letter-spacing: -0.025em; font-size: 46px; }
.ew-blog.structural .ewb-hubcard h3, .ew-blog.structural .ewb-card h3, .ew-blog.structural .ewb-feat-body h3, .ew-blog.structural .ewb-arthead h1, .ew-blog.structural .ewb-prose h2 { letter-spacing: -0.02em; font-weight: 700; }
.ew-blog.structural .ewb-hubcard { border-color: var(--ew-line-strong); }
.ew-blog.structural .ewb-hubcard::before { height: 100%; width: 3px; right: auto; }
.ew-blog.structural .ewb-hubicon { border-radius: 3px; }
.ew-blog.structural .ewb-card, .ew-blog.structural .ewb-feat, .ew-blog.structural .ewb-svccard { border-color: var(--ew-line-strong); }
.ew-blog.structural .ewb-pull p { font-family: var(--font-body); font-style: normal; font-weight: 600; letter-spacing: -0.01em; }
.ew-blog.structural .ewb-stat-num { font-family: var(--font-body); }
/* structural: number the grid + tighter meta */
.ew-blog.structural .ewb-card-meta { font-variant-numeric: tabular-nums; }

/* ============================================================ MOBILE MODE
   Artboard widths are fixed, so media queries can't fire — a .mobile class
   drives the phone layout instead. */
.ew-blog.mobile { width: 402px; font-size: 16px; }
.ew-blog.mobile .ewb-wrap { padding: 0 20px; }
.ew-blog.mobile .ewb-header-in { display: none; }

/* hero */
.ew-blog.mobile .ewb-hero { padding: 32px 0 26px; }
.ew-blog.mobile .ewb-hero h1 { font-size: 40px; margin-bottom: 10px; }
.ew-blog.mobile .ewb-hero p { font-size: 17px; }

/* section labels */
.ew-blog.mobile .ewb-seclabel { margin-bottom: 16px; }
.ew-blog.mobile .ewb-hubsec, .ew-blog.mobile .ewb-featsec, .ew-blog.mobile .ewb-gridsec { padding: 30px 0 4px; }

/* hubs → horizontal scroll */
.ew-blog.mobile .ewb-hubgrid { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 12px; scroll-snap-type: x mandatory; }
.ew-blog.mobile .ewb-hubcard { flex: 0 0 232px; scroll-snap-align: start; }

/* featured → stacked */
.ew-blog.mobile .ewb-feat { grid-template-columns: 1fr; }
.ew-blog.mobile .ewb-feat-img { min-height: 0; aspect-ratio: 16/9; }
.ew-blog.mobile .ewb-feat-body { padding: 24px 22px 26px; }
.ew-blog.mobile .ewb-feat-body h3 { font-size: 28px; margin: 14px 0 12px; }
.ew-blog.mobile .ewb-feat-dek { font-size: 16px; margin-bottom: 20px; }

/* post grid → 1 col */
.ew-blog.mobile .ewb-postgrid { grid-template-columns: 1fr; gap: 22px; }
.ew-blog.mobile .ewb-card h3 { font-size: 20px; }

/* pagination */
.ew-blog.mobile .ewb-pager { padding: 32px 0 4px; gap: 6px; flex-wrap: wrap; }

/* newsletter → stacked */
.ew-blog.mobile .ewb-newssec { padding: 34px 0; }
.ew-blog.mobile .ewb-news { grid-template-columns: 1fr; gap: 22px; padding: 30px 26px; }
.ew-blog.mobile .ewb-news h3 { font-size: 23px; }
.ew-blog.mobile .ewb-news-form { flex-direction: column; }
.ew-blog.mobile .ewb-news-form button { height: 50px; }

/* browse + f500 */
.ew-blog.mobile .ewb-browse-grid { grid-template-columns: repeat(2, 1fr); }
.ew-blog.mobile .ewb-f500-row { gap: 12px 22px; }
.ew-blog.mobile .ewb-f500-row span { font-size: 15px; }

/* footer */
.ew-blog.mobile .ewb-footer { padding: 44px 0 24px; }
.ew-blog.mobile .ewb-footer-top { grid-template-columns: 1fr; gap: 32px; }
.ew-blog.mobile .ewb-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ew-blog.mobile .ewb-footer-bot { flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---- single post mobile ---- */
.ew-blog.mobile .ewb-arthead h1 { font-size: 32px; max-width: none; }
.ew-blog.mobile .ewb-art-dek { font-size: 18px; }
.ew-blog.mobile .ewb-byline { gap: 12px; }
.ew-blog.mobile .ewb-byline-meta { font-size: 12.5px; }
.ew-blog.mobile .ewb-art-feat .ewb-art-figwrap { aspect-ratio: 16/10; }
.ew-blog.mobile .ewb-art-layout { grid-template-columns: 1fr; gap: 0; padding: 26px 0 4px; }
.ew-blog.mobile .ewb-toc { position: static; border: 1px solid var(--ew-line-strong); border-radius: var(--card-radius); padding: 16px 18px; margin-bottom: 28px; background: rgba(255,255,255,0.5); }
.ew-blog.mobile .ewb-toc-lab { margin-bottom: 10px; }
.ew-blog.mobile .ewb-prose { max-width: none; font-size: 17.5px; }
.ew-blog.mobile .ewb-prose h2 { font-size: 25px; margin: 32px 0 12px; }
.ew-blog.mobile .ewb-pull p { font-size: 23px; }
.ew-blog.mobile .ewb-stat { flex-direction: column; gap: 8px; padding: 24px 24px; }
.ew-blog.mobile .ewb-stat-num { font-size: 46px; }
.ew-blog.mobile .ewb-related-svc { padding: 24px 22px; }
.ew-blog.mobile .ewb-related-svc h4 { font-size: 20px; }
.ew-blog.mobile .ewb-authbio { flex-direction: column; gap: 16px; }
.ew-blog.mobile .ewb-relsvc-grid { grid-template-columns: 1fr; }
.ew-blog.mobile .ewb-comments .ewb-narrow, .ew-blog.mobile .ewb-arthead.ewb-narrow { max-width: none; }

/* ============================================================ HUB PAGE */
.ewb-hubmast { background: var(--hub-tint); border-bottom: 1px solid color-mix(in srgb, var(--hub) 22%, transparent); padding: 52px 0 48px; }
.ewb-hubmast-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ewb-hubmast-badge { width: 60px; height: 60px; border-radius: 14px; background: var(--hub); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ewb-hubmast-badge svg { width: 32px; height: 32px; }
.ewb-hubmast-eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hub); margin: 0 0 6px; }
.ewb-hubmast h1 { font-size: 52px; line-height: 1.04; margin: 0; color: var(--hub); font-weight: 600; white-space: nowrap; }
.ewb-hubmast-intro { max-width: 760px; }
.ewb-hubmast-intro p { font-size: 18.5px; line-height: 1.62; color: #41433f; margin: 0 0 14px; }
.ewb-hubmast-intro p:last-child { margin-bottom: 0; }
.ewb-hubmast-count { margin-top: 22px; font: 600 13px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--hub) 80%, #000); }
.ewb-warm .ewb-hubmast-badge { border-radius: 999px; }
.ew-blog.warm .ewb-hubmast-badge { border-radius: 999px; }

/* recently rail */
.ewb-recent { display: flex; flex-direction: column; }
.ewb-recent-item { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ew-line); text-decoration: none; }
.ewb-recent-item:hover h4 { color: var(--hub); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ewb-recent-date { flex: 0 0 110px; font: 600 13px/1.4 var(--font-body); color: var(--ew-gray-3); letter-spacing: 0.02em; }
.ewb-recent-item h4 { font-size: 19px; line-height: 1.3; margin: 0; color: var(--ew-black); font-weight: 600; flex: 1; }
.ewb-recent-item .ewb-recent-meta { font: 500 13px/1 var(--font-body); color: var(--ew-gray-2); flex: 0 0 auto; }

/* hub service CTA (full band) */
.ewb-hubcta { background: var(--ew-green-dark); border-radius: var(--card-radius); padding: 40px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; color: #fff; }
.ewb-hubcta .ewb-rs-eyebrow { color: var(--ew-orange); }
.ewb-hubcta h3 { font-size: 26px; line-height: 1.18; margin: 8px 0 0; color: #fff; font-weight: 600; }
.ewb-hubcta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ewb-hubcta p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.72); margin: 0; }

/* ============================================================ AUTHOR ARCHIVE */
.ewb-authmast { padding: 40px 0 36px; border-bottom: 1px solid var(--ew-line); display: grid; grid-template-columns: 132px 1fr; gap: 34px; align-items: start; }
.ewb-authmast .ewb-face-ph { width: 132px; height: 132px; font-size: 42px; }
.ewb-authmast-eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ew-orange); margin: 0 0 10px; }
.ewb-authmast h1 { font-size: 44px; line-height: 1.05; margin: 0 0 8px; font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ewb-authmast-role { font: 500 16px/1.3 var(--font-body); color: var(--ew-gray-2); margin: 0 0 16px; }
.ewb-authmast-bio { font-size: 17.5px; line-height: 1.62; color: var(--ew-gray); margin: 0 0 18px; max-width: 64ch; }
.ewb-authmast-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ewb-authmast-stats { display: flex; gap: 22px; }
.ewb-authmast-stat { font: 500 14px/1.3 var(--font-body); color: var(--ew-gray-2); }
.ewb-authmast-stat strong { display: block; font: 700 22px/1 var(--head-font); color: var(--ew-black); margin-bottom: 4px; }
.ewb-authmast-li { width: 36px; height: 36px; border-radius: 9px; background: var(--ew-cream); display: flex; align-items: center; justify-content: center; color: var(--ew-gray); border: 1px solid var(--ew-line); }
.ewb-authmast-li:hover { background: var(--ew-green-dark); color: #fff; border-color: var(--ew-green-dark); }

/* author archive mobile */
.ew-blog.mobile .ewb-authmast { grid-template-columns: 1fr; gap: 20px; }
.ew-blog.mobile .ewb-authmast h1 { font-size: 32px; }
.ew-blog.mobile .ewb-hubmast h1 { font-size: 38px; }
.ew-blog.mobile .ewb-hubmast { padding: 36px 0 32px; }
.ew-blog.mobile .ewb-hubcta { grid-template-columns: 1fr; gap: 22px; padding: 30px 26px; }
.ew-blog.mobile .ewb-recent-date { flex-basis: 86px; }
