/* Blog (WordPress theme sense25: index, archives, search and posts). Converted once on 2026-11-06 from the design exports sense-blog-share.html and sense-blog-employment-tribunal-costs-uk-share.html, scoped to main.blog and trimmed to the rules the reference pages can match; the WordPress-only states follow in the page additions. Maintained by hand from here on. */

/* ===== PAGE-LEVEL RULES (html, body, the shared header): START: every other rule is scoped to main.blog */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F4F4F7; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-padding-top: 96px; }   /* focus and #anchor scrolling stop clear of the fixed overlay header (about 80 px tall) */
/* Light hero (body.hero-light): the overlay header starts with dark text and frosts on scroll as usual (as hr-feature.css). */
body.hero-light .nav.nav--overlay:not(.is-scrolled) { color: var(--text); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .logo { color: var(--brand); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-link:hover,
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-item.is-open > .nav-link { background: rgba(11, 10, 20, .06); }

/* ===== PAGE-LEVEL RULES: END */

/* css/tokens.css */
/* ==========================================================================
   Sense HR website — design tokens
   Layout/motion language recreated from the Zyntexa reference; colour + type
   are Sense's own (Satoshi display, Inter body, brand #634AFC).
   ========================================================================== */
.blog {
  /* Brand */
  --brand: #634AFC;
  --brand-hover: #4931DC;
  --brand-soft: #B8ADFF;
  --brand-10: #EFF1FF;
  --brand-20: #E5E7FF;
  --brand-glow: rgba(99, 74, 252, .35);

  /* Primary button — the ONE definition used by every primary CTA (nav, mobile menu, sections) */
  --btn-primary-bg: #634AFC;
  --btn-primary-bg-hover: #4931DC;
  --btn-primary-fg: #FFFFFF;          /* 5.4:1 on #634AFC — passes WCAG AA */
  --btn-radius: 10px;

  /* Neutrals */
  --ink: #0B0A14;                     /* dark panels */
  --ink-2: #15132A;
  --ink-3: #1C1A35;
  --page: #F4F4F7;                    /* off-white page, like the reference */
  --card: #FFFFFF;
  --text: #0B0A14;
  --text-2: #54536B;
  --text-3: #8B899E;
  --line: rgba(11, 10, 20, .08);
  --line-strong: rgba(11, 10, 20, .14);
  --line-dash: rgba(11, 10, 20, .18);
  --text-inv: #FFFFFF;
  --text-inv-2: rgba(255, 255, 255, .72);
  --text-inv-3: rgba(255, 255, 255, .5);
  --line-inv: rgba(255, 255, 255, .14);
  --live: #22B573;
  --live-bg: #E4FFE9;

  /* Type */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(40px, 5.2vw, 68px);
  --fs-h2: clamp(30px, 3.4vw, 46px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-h4: 19px;
  --fs-lede: clamp(16px, 1.25vw, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --ls-display: -0.035em;

  /* Layout */
  --container: 1320px;
  --container-wide: 1470px;
  --gutter: 24px;
  --frame-inset: 20px;
  --section-y: clamp(80px, 9vw, 128px);

  /* Radii (reference: 100 pill · 40 panel · 30/24/20 card · 15 dropdown · 10 small) */
  --r-panel: 40px;
  --r-card-lg: 30px;
  --r-card: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Shadows — soft, wide blurs */
  --shadow-sm: 0 1px 2px rgba(11, 10, 20, .06), 0 0 0 1px rgba(11, 10, 20, .05);
  --shadow-md: 0 24px 56px -12px rgba(11, 10, 20, .15);
  --shadow-lg: 0 57px 70px -20px rgba(11, 10, 20, .12), 0 0 0 1px rgba(11, 10, 20, .04);
  --shadow-float: 0 18px 40px -8px rgba(20, 12, 70, .28), 0 0 0 1px rgba(11, 10, 20, .05);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-reveal: .8s;
  --reveal-y: 40px;
}

@media (max-width: 767px) {
  .blog {
    --gutter: 16px;
    --frame-inset: 8px;
    --r-panel: 24px;
    --r-card-lg: 22px;
    --r-card: 20px;
  }
}

/* css/base.css */
/* ==========================================================================
   Base: reset, type, layout primitives, buttons, reveal + odometer motion
   ========================================================================== */
.blog *, .blog *::before, .blog *::after { box-sizing: border-box; }
.blog {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 var(--fs-body)/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.blog img, .blog picture, .blog svg { display: block; max-width: 100%; }
.blog img { height: auto; }
.blog a { color: inherit; text-decoration: none; }
.blog button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.blog ul { list-style: none; margin: 0; padding: 0; }
.blog p { margin: 0; }
.blog h1, .blog h2, .blog h3, .blog h4, .blog h5 { margin: 0; text-wrap: balance; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--ls-display); color: inherit; }
.blog h1 { font-size: var(--fs-h1); line-height: 1.06; }
.blog h2 { font-size: var(--fs-h2); line-height: 1.12; }
.blog h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
.blog h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.015em; }
.blog h5 { font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.blog b, .blog strong { font-weight: 600; }

.blog :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.blog .on-dark :focus-visible { outline-color: var(--brand-soft); }

.blog .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.blog .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.blog .section { padding-block: var(--section-y); }

/* Eyebrow pill */
.blog .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--font-body); letter-spacing: .01em;
  padding: 8px 14px; border-radius: 100px;
  background: var(--card); color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.blog .eyebrow.on-dark { background: rgba(255, 255, 255, .08); color: #DCD6FF; box-shadow: inset 0 0 0 1px var(--line-inv); }

/* ---------- Buttons ---------- */
.blog .btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 20px;
  border-radius: var(--btn-radius);
  font: 500 15px/1 var(--font-body); white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.blog .btn:hover { transform: scale(.97); }            /* standing rule: every button scales to .97 */
.blog .btn:active { transform: scale(.95); }
.blog .btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.blog .btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: 0 8px 24px -8px rgba(99, 74, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.blog .btn-primary:hover { background: var(--btn-primary-bg-hover); }
.blog .btn-secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.blog .btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-hover); }

.blog .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Scroll reveal (fade-up, staggered by JS via --i) ---------- */
.js .blog .reveal { opacity: 0; transform: translate3d(0, var(--reveal-y), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .blog .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything final, instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  .blog *, .blog *::before, .blog *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .blog .reveal { opacity: 1 !important; transform: none !important; }
  .blog .btn:hover, .blog .btn:active { transform: none; }
}

/* css/sections.css */

/* ==========================================================================
   01 HERO — dark inset frame, centred copy, dashboard + floating cards
   ========================================================================== */

.js .blog .hero-anim { opacity: 0; transform: translateY(16px); animation: heroIn .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.blog .word-reveal-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.blog .word-reveal { display: inline-block; transform: translateY(110%); animation: wordUp .8s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: none; } }

/* ==========================================================================
   13 FOOTER — full-bleed black (oma-melon layout): brand + copyright left,
   link columns right, oversized fading wordmark at the bottom
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .js .blog .hero-anim { opacity: 1; transform: none; }
}

/* css/agents.css */
/* ==========================================================================
   Agent pages — AMI hub page (sense-agent-ami.html)
   Builds on tokens/base/nav/sections from the home page; only page-specific
   patterns live here.
   ========================================================================== */

/* ---------- 05 MEET AMI IN PERSON — pay-co "Network of passionate users" layout ----------
   striped lavender card · centred copy · product shot cropped by the card's bottom edge
   inside the home page's glass frame · form bar under the copy */
.blog .ami-meet-wrap { position: relative; }
.blog .ami-meet { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-panel); padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
  background: linear-gradient(180deg, #F7F6FF 0%, #EFEDFF 55%, #E4E0FF 100%); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .08); text-align: center; }
.blog .ami-meet::before { /* vertical column stripes, fading in towards the bottom (reference texture, in Sense purple) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(99, 74, 252, .09) 0 72px, transparent 72px 89px) center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 95%); mask-image: linear-gradient(180deg, transparent 5%, #000 95%); }
.blog .ami-meet::after { /* purple haze rising from the lower corners */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(38% 60% at 0% 100%, rgba(99, 74, 252, .38), transparent 70%), radial-gradient(38% 60% at 100% 100%, rgba(99, 74, 252, .38), transparent 70%); }
.blog .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.blog .ami-meet-copy h2 { color: var(--text); }
.blog .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }
.blog .ami-meet-shot { position: relative; max-width: 1080px; margin: clamp(40px, 5vw, 64px) auto 0; height: clamp(240px, 33vw, 470px); overflow: hidden; }
/* same glass outline as the home page's dashboard frame (.hero-window), tuned for a light background */
.blog .ami-meet-window { padding: 8px 8px 0; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .28));
  box-shadow: 0 40px 100px -30px rgba(33, 18, 140, .35), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(99, 74, 252, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.blog .ami-meet-window img { width: 100%; border-radius: 19px 19px 0 0; }

/* form bar: Name · Email · button, directly under the copy */
@media (max-width: 767px) {
  .blog .ami-meet-shot { height: 220px; }
}

/* ---------- 06 FAQ — single rounded container with square toggles ---------- */
.blog .ami-faq { max-width: 1070px; margin: 56px auto 0; border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.blog .ami-faq-item + .ami-faq-item { border-top: 1px solid var(--line); }
.blog .ami-faq-q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 40px; cursor: pointer; font: 500 clamp(17px, 1.4vw, 20px)/1.4 var(--font-display); letter-spacing: -0.01em; color: var(--text); transition: background-color .2s; }
.blog .ami-faq-q::-webkit-details-marker { display: none; }
.blog .ami-faq-q:hover { background: var(--page); }
.blog .ami-faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 12px; }
.blog .ami-faq-ic { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s; }
.blog .ami-faq-ic svg { width: 14px; height: 14px; }
.blog .ami-faq-ic svg { transition: transform .35s var(--ease-out); }
.blog .ami-faq-item[open] .ami-faq-ic { background: var(--brand); }
.blog .ami-faq-item[open] .ami-faq-ic svg { transform: rotate(45deg); }
.blog .ami-faq-a { padding: 0 104px 26px 40px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .blog .ami-faq { interpolate-size: allow-keywords; }
  .blog .ami-faq-item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .blog .ami-faq-item[open]::details-content { height: auto; }
}
@media (max-width: 767px) { .blog .ami-faq { margin-top: 40px; } .blog .ami-faq-q { padding: 20px; } .blog .ami-faq-a { padding: 0 20px 20px; font-size: 15px; } }

/* css/workflows.css */
/* ==========================================================================
   Automate — workflow library (sense-automate-workflows.html)
   Structure + copy from Figma "Automate - Workflow Library"; styling follows the home + agent pages.
   ========================================================================== */

/* ---------- 02 LIBRARY — sticky frosted filter bar + grid ---------- */
.blog.blg-index .wf-filterbar { position: sticky; top: 72px; z-index: 20; padding: 32px 0 20px; margin-bottom: 32px; background: rgba(244, 244, 247, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.blog.blg-index .wf-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.blog.blg-index .wf-search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 44px; padding: 0 14px; border-radius: var(--btn-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-3); transition: box-shadow .2s; }
.blog.blg-index .wf-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.blog.blg-index .wf-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.blog.blg-index .wf-search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 15px/1 var(--font-body); color: var(--text); outline: none; }
.blog.blg-index .wf-search input::placeholder { color: var(--text-3); }
.blog.blg-index .wf-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.blog.blg-index .wf-chips-row { position: relative; margin-top: 16px; }
/* 22 categories: one scrollable row (arrows + edge fades) keeps the sticky bar compact */
.blog.blg-index .wf-chips { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.blog.blg-index .wf-chips::-webkit-scrollbar { display: none; }
.blog.blg-index .wf-chips-row.fade-l .wf-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px); mask-image: linear-gradient(90deg, transparent, #000 64px); }
.blog.blg-index .wf-chips-row.fade-r .wf-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.blog.blg-index .wf-chips-row.fade-l.fade-r .wf-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.blog.blg-index .wf-chips-nav { position: absolute; z-index: 2; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--text); box-shadow: var(--shadow-sm), 0 6px 16px -6px rgba(11, 10, 20, .25); transition: transform .2s var(--ease-out); }
.blog.blg-index .wf-chips-nav:hover { transform: scale(.94); }
.blog.blg-index .wf-chips-nav[hidden] { display: none; }
.blog.blg-index .wf-chips-nav svg { width: 14px; height: 14px; }
.blog.blg-index .wf-chips-prev { left: -6px; } .blog.blg-index .wf-chips-prev svg { transform: rotate(180deg); }
.blog.blg-index .wf-chips-next { right: -6px; }
.blog.blg-index .wf-chip { height: 40px; padding: 0 16px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 14px/1 var(--font-body); color: var(--text); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.blog.blg-index .wf-chip:hover { box-shadow: inset 0 0 0 1px var(--brand); transform: scale(.97); }
.blog.blg-index .wf-chip .wf-cnt { color: #B4B4B4; margin-left: 2px; }
.blog.blg-index .wf-chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.blog.blg-index .wf-chip.is-on .wf-cnt { color: rgba(255, 255, 255, .55); }
@media (max-width: 767px) {
  .blog.blg-index .wf-filterbar { top: 64px; padding: 16px 0 12px; }
  .blog.blg-index .wf-filter-top { flex-wrap: wrap; }
  .blog.blg-index .wf-search { width: 100%; }
  .blog.blg-index .wf-chips-row { margin: 12px calc(var(--gutter) * -1) 0; }
  .blog.blg-index .wf-chips { padding: 2px var(--gutter) 4px; }
  .blog.blg-index .wf-chips-nav { display: none !important; }
}

.blog.blg-index .wf-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 16px; text-align: center; color: var(--text-2); }
.blog.blg-index .wf-empty[hidden] { display: none; }
.blog.blg-index .wf-more { display: flex; justify-content: center; margin-top: 32px; }
.blog.blg-index .wf-more[hidden] { display: none; }
.blog.blg-index .wf-more-btn { background: #E5E7FF; color: #4931DC; }   /* Figma "Light" button */
.blog.blg-index .wf-more-btn:hover { background: #DCDFFF; }

/* css/blog.css */
/* ==========================================================================
   Blog index (body.blg-page): sense-blog.html (tools/product/gen_blog.py).
   Layout after the Lattis blog (user, 4 Nov): left-aligned two-tone headline → featured post (image left, dark panel right) →
   "Latest" + category chips → three-column grid closed by a promo tile → pagination → white card on a textured band.
   Styling is the site's own: the industry hero's light frame, the purple-dust dark panel, the "Meet" card's stripes and haze.
   ========================================================================== */

/* ---------- category line (pd-mod: purple dot, purple label) ---------- */
.blog .blg-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 13px/1.3 var(--font-body); letter-spacing: .01em; color: var(--brand-hover); }
.blog .blg-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.blog .blg-cat a { position: relative; z-index: 2; transition: color .2s; }
.blog .blg-cat a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.blog .blg-cat .sep { color: var(--text-3); }
.blog .blg-cat.on-dark { color: #DCD6FF; }
.blog .blg-cat.on-dark::before { background: var(--brand-soft); }
.blog .blg-cat.on-dark a:hover { color: #fff; }
.blog .blg-cat.on-dark .sep { color: var(--text-inv-3); }

/* ---------- byline: live avatar, name, date ---------- */
.blog .blg-by { display: flex; align-items: center; gap: 12px; }
.blog .blg-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--brand-10); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(99, 74, 252, .14); }
.blog .blg-by-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.blog .blg-by-txt a { position: relative; z-index: 2; font: 500 14px/1.35 var(--font-body); color: var(--text); transition: color .2s; }
.blog .blg-by-txt a:hover { color: var(--brand-hover); }
.blog .blg-by-txt time { font-size: 13px; color: var(--text-3); }

/* =====================================================================================================
   01 HERO — light frame (the industry hero's), left-aligned headline, the featured card overlapping the frame's foot
   ===================================================================================================== */
.blog .blg-hero { position: relative; isolation: isolate; padding: calc(var(--frame-inset) + clamp(150px, 13vw, 196px)) 0 0; }   /* more air under the nav (user, 4 Nov) */
.blog .blg-hero-bg { position: absolute; z-index: -1; inset: var(--frame-inset) var(--frame-inset) clamp(120px, 16vw, 240px); overflow: hidden; border-radius: var(--r-panel);
  background: #FFFFFF url("/assets/images/pages/blog/cta-bg.webp") center bottom / cover no-repeat;   /* BG features 2.webp, resized (user, 5 Nov): white at the top, purple diagonal stripes at the foot */
  box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .04); }
.blog .blg-hero .container { padding-inline: calc(var(--frame-inset) + clamp(16px, 3.4vw, 44px)); }
.blog .blg-hero-head { max-width: 1000px; }
.blog .blg-hero-head h1 { color: var(--ink); font-size: clamp(34px, 4.3vw, 62px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: initial; }
.blog .blg-accent { display: block; color: var(--brand); }

/* featured post */
.blog .blg-feat { position: relative; margin-top: clamp(44px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);   /* full width; the lighter shadow stays and the cover's card is smaller instead (user, 4 Nov) */
  border-radius: var(--r-card-lg); overflow: hidden; background: var(--ink); box-shadow: 0 22px 44px -30px rgba(33, 18, 140, .28), 0 0 0 1px rgba(11, 10, 20, .06); }
.blog .blg-feat-media { position: relative; display: block; overflow: hidden; background: #0A0916; min-height: 100%; }
.blog .blg-feat-media picture { display: contents; }
.blog .blg-feat-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.blog .blg-feat:hover .blg-feat-media img { transform: scale(1.03); }
.blog .blg-feat-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 3.2vw, 52px); color: #fff; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }   /* a hairline between the dark cover and the panel */
.blog .blg-feat-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 100% 100%, rgba(99, 74, 252, .38), transparent 70%), radial-gradient(50% 40% at 0% 0%, rgba(99, 74, 252, .14), transparent 70%); }
.blog .blg-feat-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/images/pages/blog/automate-bg.svg") center top / 160% auto no-repeat; opacity: .9; }
.blog .blg-feat-panel h2 { margin-top: 16px; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.035em; }
.blog .blg-feat-panel h2 a { transition: color .2s; }
.blog .blg-feat-panel h2 a:hover { color: var(--brand-soft); }
.blog .blg-feat-ex { margin-top: 14px; color: var(--text-inv-2); font-size: 16px; line-height: 1.6; max-width: 520px; }
.blog .blg-feat-panel .blg-by { margin-top: 24px; }
.blog .blg-feat-panel .blg-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); }
.blog .blg-feat-panel .blg-by-txt a { color: #fff; }
.blog .blg-feat-panel .blg-by-txt a:hover { color: var(--brand-soft); }
.blog .blg-feat-panel .blg-by-txt time { color: var(--text-inv-3); }
.blog .blg-feat-btn { align-self: flex-start; margin-top: 28px; }
.blog .blg-feat-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.blog .blg-feat-btn:hover svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .blog .blg-feat { grid-template-columns: minmax(0, 1fr); }
  .blog .blg-feat-media { min-height: 0; }
}
@media (max-width: 767px) {
  .blog .blg-hero { padding-top: calc(var(--frame-inset) + 136px); }
  .blog .blg-hero-bg { bottom: 280px; }
  .blog .blg-feat-panel { padding: 28px 22px 30px; }
  .blog .blg-feat-btn { align-self: stretch; }
}

/* =====================================================================================================
   02 LATEST — heading, chips, grid, pagination
   ===================================================================================================== */
.blog .blg-latest { padding-top: clamp(80px, 8vw, 120px); padding-bottom: clamp(56px, 6vw, 88px); }
.blog .blg-latest-h { font-size: var(--fs-h2); padding-bottom: .16em; }   /* room for descenders ("HR, page 4"): the sticky filter bar right under it painted over the g */
/* filter bar: the workflow library's (css/workflows.css .wf-filterbar, .wf-search, .wf-chip), sticky under the nav (user, 4 Nov) */
.blog .blg-filterbar { margin-bottom: clamp(24px, 2.6vw, 32px); padding: 20px 0; }   /* one row, so less height (user, 5 Nov) */
.blog .blg-filterbar .wf-filter-top { gap: 12px 20px; }
.blog .blg-filterbar .wf-search { flex: 0 0 300px; }
.blog .blg-filterbar .wf-chips-row { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.blog .blg-filterbar .wf-count { flex-shrink: 0; }
@media (max-width: 1100px) {   /* narrower screens: search and count on top, the tabs on their own row */
  .blog .blg-filterbar .wf-filter-top { flex-wrap: wrap; }
  .blog .blg-filterbar .wf-chips-row { order: 3; flex-basis: 100%; }
}
@media (max-width: 767px) {
  .blog .blg-filterbar { padding: 14px 0 10px; }
  .blog .blg-filterbar .wf-search { flex: 1 1 100%; }
  .blog .blg-filterbar .wf-chips-row { margin: 0 calc(var(--gutter) * -1); }
}
.blog .blg-more .btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.blog .blg-more .btn:hover svg { transform: translateX(3px); }

.blog .blg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1100px) { .blog .blg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .blog .blg-grid { grid-template-columns: minmax(0, 1fr); } }

/* post card: white card, inset image, whole card clickable through the title link */
.blog .blg-card { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity var(--dur-reveal) var(--ease-out); }
.blog .blg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 74, 252, .14); }
.js .blog .blg-grid > .reveal.is-settled { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); transition-delay: 0s; }   /* after the scroll reveal: quick hover lift, no stagger delay */
.blog .blg-card-media { position: relative; display: block; overflow: hidden; border-radius: calc(var(--r-card) - 8px); aspect-ratio: 16 / 9; background: #0A0916; }
.blog .blg-card-media picture { display: contents; }
.blog .blg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.blog .blg-card:hover .blg-card-media img { transform: scale(1.04); }
.blog .blg-card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 16px 16px; }
.blog .blg-card h3 { margin-top: 12px; font-size: 21px; line-height: 1.28; letter-spacing: -0.022em; }
.blog .blg-card h3 a { transition: color .2s; }
.blog .blg-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.blog .blg-card:hover h3 a { color: var(--brand-hover); }
.blog .blg-card h3 a:focus-visible { outline: none; }
.blog .blg-card:has(h3 a:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.blog .blg-card-ex { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.58;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.blog .blg-card .blg-by { margin-top: auto; padding-top: 22px; }

/* promo tile closing the grid: the "Meet" card's lilac, stripes and haze */
.blog .blg-tour { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 360px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-card);
  background: linear-gradient(180deg, #F7F6FF 0%, #EFEDFF 55%, #E4E0FF 100%); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .1); }
.blog .blg-tour::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(99, 74, 252, .09) 0 56px, transparent 56px 70px) center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 100%); mask-image: linear-gradient(180deg, transparent 10%, #000 100%); }
.blog .blg-tour::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 0% 100%, rgba(99, 74, 252, .32), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(99, 74, 252, .32), transparent 70%); }
.blog .blg-tour .eyebrow { margin-bottom: 0; }
.blog .blg-tour h3 { margin-top: 22px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
.blog .blg-tour p { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.58; max-width: 340px; }
.blog .blg-tour .btn { margin-top: auto; }
.blog .blg-tour-play { position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px); width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--brand);
  box-shadow: 0 12px 28px -10px rgba(99, 74, 252, .55), inset 0 0 0 1px rgba(99, 74, 252, .12); transition: transform .3s var(--ease-out); }
.blog .blg-tour-play span { display: grid; place-items: center; width: 20px; height: 20px; margin-left: 3px; }
.blog .blg-tour-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(99, 74, 252, .4); animation: blgPulse 2.4s var(--ease-out) infinite; }
.blog .blg-tour:hover .blg-tour-play { transform: scale(1.06); }
@keyframes blgPulse { to { box-shadow: 0 0 0 16px rgba(99, 74, 252, 0); } }
.blog .blg-tour p { margin-bottom: 28px; }
@media (max-width: 767px) { .blog .blg-tour { min-height: 0; } }
@media (min-width: 768px) and (max-width: 1100px) { .blog .blg-tour { grid-column: 1 / -1; min-height: 0; } }   /* two columns: the tile closes the grid as a full row */

.blog .blg-grid > [hidden] { display: none !important; }
.blog .blg-pages[hidden] { display: none; }
/* filtering: cards fade out, the grid re-flows, the shown cards pop back in, staggered */
.blog .blg-grid.is-switching > * { opacity: 0 !important; transform: translateY(10px) scale(.985) !important; transition: opacity .18s ease, transform .18s ease !important; }
.blog .blg-grid > .is-pop { animation: blgPop .55s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes blgPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* pagination (live: 1 2 3 4 5 … 29, Next Page) */
.blog .blg-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: clamp(48px, 5vw, 72px); }
.blog .blg-pages ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.blog .blg-pages ol a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 12px; font: 500 15px/1 var(--font-body); color: var(--text-2);
  font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.blog .blg-pages ol a:hover { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); transform: scale(.97); }
.blog .blg-pages ol a.is-on { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(99, 74, 252, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.blog .blg-ell { width: 24px; text-align: center; color: var(--text-3); }
.blog .blg-next { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm);
  font: 500 15px/1 var(--font-body); color: var(--text); transition: color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.blog .blg-next svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.blog .blg-next:hover { color: var(--brand-hover); box-shadow: inset 0 0 0 1px var(--brand); transform: scale(.97); }
.blog .blg-next:hover svg { transform: translateX(3px); }
@media (max-width: 480px) { .blog .blg-pages ol a { min-width: 38px; height: 38px; } .blog .blg-pages ol { gap: 2px; } }

/* =====================================================================================================
   03 CTA — the Core HR page's "Meet" card (css/agents.css .ami-meet), with the HR dashboard screen (user, 5 Nov)
   ===================================================================================================== */
.blog .blg-cta { padding-top: clamp(16px, 2vw, 32px); }
.blog .blg-cta .ami-meet-copy .eyebrow { margin-bottom: 18px; }
.blog .blg-meet-cta { justify-content: center; margin-top: 28px; }
@media (max-width: 767px) { .blog .blg-meet-cta { flex-direction: column; align-items: stretch; } }

@media (prefers-reduced-motion: reduce) {
  .blog .blg-tour-play::before { animation: none; }
  .blog .blg-grid > .is-pop { animation: none; }
}

/* css/blog-post.css */
/* ==========================================================================
   Blog article (body.bp-page): sense-blog-<slug>.html (tools/product/gen_blog_post.py), on top of css/blog.css.
   After the Lattis article (user, 5 Nov): left-aligned header → the cover stretched across the page in the site's rounded frame
   (side margin, round corners) → one reading column, no sticky contents → author card → Keep reading.
   ========================================================================== */

/* ---------- 01 header ---------- */
.blog.bp-page .bp-hero { padding: calc(var(--frame-inset) + clamp(132px, 11vw, 168px)) 0 0; }
.blog.bp-page .bp-hero .container { max-width: calc(var(--container) + var(--gutter) * 2); }
.blog.bp-page .bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 14px/1 var(--font-body); color: var(--text-3); }
.blog.bp-page .bp-crumbs a { color: var(--text-2); transition: color .2s; }
.blog.bp-page .bp-crumbs a:last-child { color: var(--brand-hover); }
.blog.bp-page .bp-crumbs a:hover { color: var(--brand); }
.blog.bp-page .bp-hero h1 { margin-top: 22px; max-width: 1040px; color: var(--ink); font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: initial; }
.blog.bp-page .bp-excerpt { margin-top: 22px; max-width: 680px; font-size: var(--fs-lede); line-height: 1.6; color: var(--text-2); }
.blog.bp-page .bp-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.blog.bp-page .bp-meta .blg-av { width: 44px; height: 44px; }
.blog.bp-page .bp-meta-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.blog.bp-page .bp-meta-txt a { font: 600 15px/1.3 var(--font-body); color: var(--text); transition: color .2s; }
.blog.bp-page .bp-meta-txt a:hover { color: var(--brand-hover); }
.blog.bp-page .bp-meta-txt > span { display: inline-flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--text-3); }

/* ---------- 02 cover: full width inside the frame margin, round corners like the site's panels ---------- */
.blog.bp-page .bp-cover { margin: clamp(36px, 4vw, 56px) var(--frame-inset) 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 2560 / 1000; max-width: calc(100% - var(--frame-inset) * 2);
  background: #E3F7F1; box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .04); }   /* mint, behind the cover while it loads */
.blog.bp-page .bp-cover picture { display: contents; }
.blog.bp-page .bp-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 767px) { .blog.bp-page .bp-cover { aspect-ratio: 16 / 10; } }   /* phones show the middle: the card */

/* ---------- 03 article: one reading column ---------- */
.blog.bp-page .bp-body { padding: clamp(56px, 6vw, 88px) 0 0; }
.blog.bp-page .bp-article { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.blog.bp-page .bp-article > * + * { margin-top: 22px; }
.blog.bp-page .bp-article .bp-lead { font-size: 20px; line-height: 1.65; color: var(--text); }
.blog.bp-page .bp-article h2 { margin-top: 64px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); scroll-margin-top: 110px; }
.blog.bp-page .bp-article h3 { margin-top: 40px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 110px; }
.blog.bp-page .bp-article h2 + *, .blog.bp-page .bp-article h3 + * { margin-top: 16px; }
.blog.bp-page .bp-article strong { color: var(--text); font-weight: 600; }
.blog.bp-page .bp-article a:not(.btn) { color: var(--brand-hover); text-decoration: underline; text-decoration-color: rgba(99, 74, 252, .35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .2s, text-decoration-color .2s; }
.blog.bp-page .bp-article a:not(.btn):hover { color: var(--brand); text-decoration-color: currentColor; }
.blog.bp-page .bp-article ul { display: flex; flex-direction: column; gap: 10px; }
.blog.bp-page .bp-article ul li { position: relative; padding-left: 28px; }
.blog.bp-page .bp-article ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* tables: a white card, the header strip in the site's purple (#F0EFFF, #4931DC semibold) */
.blog.bp-page .bp-table { margin-top: 28px; overflow-x: auto; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); }
.blog.bp-page .bp-article > .bp-table { margin-top: 28px; }
.blog.bp-page .bp-table table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.blog.bp-page .bp-table th { padding: 14px 22px; background: #F0EFFF; color: #4931DC; font-weight: 600; text-align: left; white-space: nowrap; }
.blog.bp-page .bp-table td { padding: 14px 22px; border-top: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.blog.bp-page .bp-table tr:nth-child(even) td { background: #FBFBFE; }

/* the post's call to action, and the editorial note */
.blog.bp-page .bp-article .bp-cta { margin-top: 28px; }
.blog.bp-page .bp-cta .btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.blog.bp-page .bp-cta .btn:hover svg { transform: translateX(3px); }
.blog.bp-page .bp-article .bp-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* FAQ: the site's accordion, fitted to the column */
.blog.bp-page .bp-article .bp-faq { max-width: none; margin: 20px 0 0; }
.blog.bp-page .bp-faq .ami-faq-q { padding: 20px 24px; font-size: 18px; }
.blog.bp-page .bp-faq .ami-faq-a p { font-size: 16px; }
.blog.bp-page .bp-faq .ami-faq-a a { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- author card ---------- */
.blog.bp-page .bp-author { max-width: 720px; margin: 56px auto 0; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm); }
.blog.bp-page .bp-author .blg-av { width: 56px; height: 56px; }
.blog.bp-page .bp-author-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.blog.bp-page .bp-author-txt > a { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.blog.bp-page .bp-author-txt > a:hover { color: var(--brand-hover); }
.blog.bp-page .bp-author-txt > span { font-size: 14px; color: var(--text-3); }
.blog.bp-page .bp-author-txt > span a { color: var(--brand-hover); }
.blog.bp-page .bp-share { --btn-h: 40px; flex-shrink: 0; padding: 0 16px; font-size: 14px; }
.blog.bp-page .bp-share svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .blog.bp-page .bp-author { flex-wrap: wrap; } .blog.bp-page .bp-share { width: 100%; justify-content: center; } }

/* ---------- 04 keep reading ---------- */
.blog.bp-page .bp-more { padding-top: clamp(72px, 8vw, 112px); }
.blog.bp-page .bp-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.blog.bp-page .bp-more-head h2 { font-size: var(--fs-h2); }

/* The filter bar's own sizes (blog.css .blg-filterbar) over the workflow library's (workflows.css .wf-filterbar): in the export
   workflows.css came first with the same weight, but here it is scoped to the listing pages (.blog.blg-index), which outweighs .blog. */
.blog.blg-index .blg-filterbar { margin-bottom: clamp(24px, 2.6vw, 32px); padding: 20px 0; }
@media (max-width: 767px) {
  .blog.blg-index .blg-filterbar { padding: 14px 0 10px; }
}

/* Focus rings (WCAG 2.4.7, 1.4.11; the kit's focus-ring check), in the design's ring (2px brand, blog.css :focus-visible):
   - a card's title link rings itself, not the whole card (the check reads the focused element);
   - the search field rings its pill, as the input itself has no box of its own;
   - the tab strip and the page numbers leave the ring room (the strip scrolls, so it clips; the current page's purple sat under it);
   - on the dark featured panel and the purple-lit tour tile the ring is white / ink, as brand on purple is under 3:1;
   - a byline name's ring sits close, clear of the date under it;
   - a link on an FAQ answer's first line keeps its ring top (the open answer clips its overflow). */
.blog .blg-card h3 a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.blog .blg-card:has(h3 a:focus-visible) { outline: none; }
.blog.blg-index .wf-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.blog.blg-index .wf-chips { padding: 6px; margin: -4px; scroll-padding-inline: 72px; }
@media (max-width: 767px) { .blog.blg-index .wf-chips { padding: 6px var(--gutter) 8px; margin: -4px 0; } }
.blog .blg-pages ol { gap: 8px; }
@media (max-width: 480px) { .blog .blg-pages ol { gap: 6px; } }
.blog .blg-feat-panel :focus-visible { outline-color: #fff; }
.blog .blg-tour :focus-visible { outline-color: var(--ink); }
.blog .blg-by-txt a:focus-visible { outline-offset: 1px; border-radius: 3px; }
.blog .ami-faq-item::details-content { overflow: clip; overflow-clip-margin: 6px; }

/* An inline link in the article: a ring close round its text, so a wrapped line keeps its ring clear of the next word. */
.blog.bp-page .bp-article a:not(.btn):focus-visible { outline-offset: 0; border-radius: 2px; }

/* The post's own call to action may wrap on the narrowest phones (its label is the post's, often long). */
@media (max-width: 400px) { .blog.bp-page .bp-cta .btn { height: auto; min-height: var(--btn-h); padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; } }

/* ---------- WordPress: what the theme's pages carry that the two design exports don't (the blog port's additions/wordpress.css,
   appended to the kit's build by sync.mjs). Every rule in the design's language: its tokens, radii and the post column's rhythm. ---------- */

/* The search box is a form (Enter, or no script: WordPress search) */
.blog.blg-index form.wf-search { margin: 0; }
.blog.blg-index .wf-search input::-webkit-search-cancel-button { cursor: pointer; }

/* The tabs are links to the category pages (the script swaps them in place): a link centres its label as the design's button did */
.blog.blg-index a.wf-chip { display: inline-flex; align-items: center; flex-shrink: 0; }

/* A post with no image at all (no featured image, none in its body; Costi, 6 Nov 2026): the Sense logo on the mint the cover
   loads on, so the panel reads as meant. A featured image set in wp-admin replaces it. */
.blog .blg-card-media.is-empty, .blog .blg-feat-media.is-empty {
  background: url("/assets/images/SenseHR-logo.svg") center / 34% auto no-repeat, linear-gradient(135deg, #E3F7F1, #EFF1FF); }
.blog .blg-feat-media.is-empty { min-height: 260px; }

/* The product tour tile closes every list, as wide as the last row's gap on three columns (Costi, 6 Nov 2026). Full width it
   takes the design's own two-column form (blog.css: the full row, no minimum height). */
@media (min-width: 1101px) {
  .blog .blg-tour.is-span-2 { grid-column: span 2; }
  .blog .blg-tour.is-span-3 { grid-column: 1 / -1; min-height: 0; }
}

/* Previous page: the Next page link, its arrow turned round, before the numbers */
.blog .blg-prev svg { transform: scaleX(-1); }
.blog .blg-prev:hover svg { transform: scaleX(-1) translateX(3px); }

/* The cover is the post's featured image at its own 16:9 (Costi, 6 Nov 2026), in the design's frame, no wider than the page */
.blog.bp-page .bp-cover.is-169 { aspect-ratio: 16 / 9; width: calc(100% - var(--frame-inset) * 2); max-width: var(--container); margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .blog.bp-page .bp-cover.is-169 { aspect-ratio: 16 / 9; } }

/* ---------- The post body: WordPress block markup in the design's column ---------- */
.blog.bp-page .bp-article > :first-child { margin-top: 0; }
.blog.bp-page .bp-article a { overflow-wrap: anywhere; }   /* a link whose text is a long address breaks rather than run off a phone */
.blog.bp-page .bp-article h4 { margin-top: 32px; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.blog.bp-page .bp-article h1 { margin-top: 64px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }   /* a few old posts */
.blog.bp-page .bp-article h4 + * { margin-top: 12px; }
.blog.bp-page .bp-article em { font-style: italic; }
.blog.bp-page .bp-article sup { font-size: .7em; line-height: 0; vertical-align: super; }

/* numbered lists: the bullets' indent, the number in the brand colour */
.blog.bp-page .bp-article ol { display: flex; flex-direction: column; gap: 10px; counter-reset: bp-ol; }
.blog.bp-page .bp-article ol > li { position: relative; padding-left: 32px; counter-increment: bp-ol; }
.blog.bp-page .bp-article ol > li::before { content: counter(bp-ol) "."; position: absolute; left: 0; width: 24px; text-align: right; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.blog.bp-page .bp-article li > ul, .blog.bp-page .bp-article li > ol { margin-top: 10px; }

/* images, figures and captions: the cover's rounded frame */
.blog.bp-page .bp-article img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.blog.bp-page .bp-article figure { margin-left: 0; margin-right: 0; }
.blog.bp-page .bp-article > figure, .blog.bp-page .bp-article > .wp-block-image { margin-top: 32px; }
.blog.bp-page .bp-article > figure + *, .blog.bp-page .bp-article > .wp-block-image + * { margin-top: 32px; }
.blog.bp-page .bp-article .wp-block-image img { display: block; margin: 0 auto; }
.blog.bp-page .bp-article .wp-block-image.is-resized img, .blog.bp-page .bp-article .wp-block-image .is-resized img { width: auto; }
.blog.bp-page .bp-article .alignright { float: right; max-width: 50%; margin: 6px 0 16px 24px; }
.blog.bp-page .bp-article .alignleft { float: left; max-width: 50%; margin: 6px 24px 16px 0; }
.blog.bp-page .bp-article .aligncenter { margin-left: auto; margin-right: auto; }
.blog.bp-page .bp-article figcaption, .blog.bp-page .bp-article .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-3); text-align: center; }
@media (max-width: 560px) { .blog.bp-page .bp-article .alignright, .blog.bp-page .bp-article .alignleft { float: none; max-width: 100%; margin: 24px 0 0; } }

/* video embeds: 16:9 (or the embed's own ratio) in the same frame */
.blog.bp-page .bp-article .wp-block-embed__wrapper { position: relative; overflow: hidden; border-radius: var(--r-md); background: #0A0916; }
.blog.bp-page .bp-article .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.blog.bp-page .bp-article .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { padding-top: 42.85%; }
.blog.bp-page .bp-article .wp-embed-aspect-9-16 .wp-block-embed__wrapper { max-width: 360px; margin: 0 auto; }
.blog.bp-page .bp-article .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { padding-top: 177.78%; }
.blog.bp-page .bp-article .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog.bp-page .bp-article iframe { max-width: 100%; border: 0; }

/* a quote: the brand's rule, the lead's size */
.blog.bp-page .bp-article blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand); font-size: 20px; line-height: 1.6; color: var(--text); }
.blog.bp-page .bp-article blockquote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--text-3); }

/* a separator: the editorial note's hairline */
.blog.bp-page .bp-article hr { height: 0; margin: 48px 0; border: 0; border-top: 1px solid var(--line-strong); }

/* tables: the design's card (.bp-table), its caption under it, and WordPress's own table borders turned off */
.blog.bp-page .bp-table table.has-fixed-layout { table-layout: auto; }
.blog.bp-page .bp-table th, .blog.bp-page .bp-table td { border-left: 0; border-right: 0; border-bottom: 0; }
.blog.bp-page .bp-table thead { border-bottom: 0; }
.blog.bp-page .bp-table figcaption { padding: 10px 22px 14px; text-align: left; }

/* a post's buttons: side by side, wrapping */
.blog.bp-page .bp-article .bp-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* groups and the old posts' boxes ("Key takeaways"): a white card */
.blog.bp-page .bp-article .wp-block-group.has-background, .blog.bp-page .bp-article .key-takeaways { padding: 24px 28px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm); }
.blog.bp-page .bp-article .wp-block-group__inner-container > * + *, .blog.bp-page .bp-article .key-takeaways > * + * { margin-top: 16px; }
.blog.bp-page .bp-article .wp-block-group__inner-container > :first-child, .blog.bp-page .bp-article .key-takeaways > :first-child { margin-top: 0; }

/* the article clears a floated image before the author card */
.blog.bp-page .bp-article::after { content: ""; display: table; clear: both; }

/* The 404 page and the one WordPress page: the post header without its cover */
.blog.bp-page .bp-hero .bp-cta { margin-top: 32px; }
