/*
Theme Name: Strandshint Balanced
Theme URI: https://thestrandshint.com
Author: The Strands Hint
Description: A balanced SaaS-style publishing theme: a light content base with a mid-tone indigo band for the hero and calls to action.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: strandshint
*/

/* ------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------ */
:root {
  --ss-bg: #f5f7fc;
  --ss-bg-2: #eef2fb;
  --ss-surface: #ffffff;
  --ss-ink: #141a33;
  --ss-text: #39425c;
  --ss-muted: #6b7394;
  --ss-border: #e2e7f3;
  --ss-primary: #4f46e5;
  --ss-primary-dark: #3d35c4;
  --ss-mid: #4338ca;
  --ss-accent: #06b6d4;
  --ss-band: linear-gradient(135deg, #3f3bd1 0%, #5b5bf0 55%, #14a8c4 100%);
  --ss-grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --ss-radius: 18px;
  --ss-radius-sm: 12px;
  --ss-shadow: 0 1px 2px rgba(20, 26, 51, .05), 0 14px 34px -16px rgba(20, 26, 51, .22);
  --ss-shadow-lg: 0 30px 60px -24px rgba(67, 56, 202, .35);
  --ss-container: 1200px;
  --ss-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ss-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ss-font); font-size: 16px; line-height: 1.65; color: var(--ss-text); background: var(--ss-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ss-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ss-primary-dark); }
h1, h2, h3, h4 { color: var(--ss-ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; font-family: var(--ss-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--ss-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-tight { padding: 20px 0 100px; }
.section-soft { background: var(--ss-bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-head p { color: var(--ss-muted); font-size: 1.08rem; }
.section-more { text-align: center; margin: 48px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px;
  background: #eaeafd; color: var(--ss-primary-dark);
}
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { clip: auto; width: auto; height: auto; padding: 8px 12px; background: #fff; color: var(--ss-ink); z-index: 999; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px;
  border-radius: 12px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; line-height: 1.2; font-family: var(--ss-font);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ss-primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--ss-primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ss-ink); border-color: var(--ss-border); }
.btn-ghost:hover { border-color: var(--ss-primary); color: var(--ss-primary); }
.btn-light { background: #fff; color: var(--ss-primary-dark); }
.btn-light:hover { color: var(--ss-ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--ss-border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--ss-ink); font-family: var(--ss-display); white-space: nowrap; }
.brand:hover { color: var(--ss-ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ss-grad); font-family: var(--ss-font); }
.custom-logo { max-height: 40px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav .menu, .primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.primary-nav a { color: var(--ss-text); font-weight: 500; font-size: .95rem; white-space: nowrap; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--ss-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ss-primary); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; margin-left: auto; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ss-ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------
   Hero: mid-tone band with a white card stack
------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--ss-band); padding: 96px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; background: #fff; }
.orbs span:nth-child(1) { width: 380px; height: 380px; top: -140px; left: -120px; animation: float 16s ease-in-out infinite; }
.orbs span:nth-child(2) { width: 300px; height: 300px; bottom: -120px; right: 10%; animation: float 20s ease-in-out infinite reverse; }
.orbs span:nth-child(3) { display: none; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(28px, -36px, 0); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-lead { font-size: 1.18rem; color: rgba(255, 255, 255, .88); max-width: 540px; margin-bottom: 34px; }
.hero .btn-primary { background: #fff; color: var(--ss-primary-dark); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .3); }
.hero .btn-primary:hover { background: #f1f2ff; color: var(--ss-ink); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.stack-wrap { perspective: 1400px; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.stack3d { position: relative; width: 100%; max-width: 480px; height: 400px; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -12deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.layer {
  position: absolute; left: 0; right: 0; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 30px 60px -24px rgba(20, 26, 51, .45); color: var(--ss-text); transition: transform .4s ease;
}
.layer strong { color: var(--ss-ink); font-family: var(--ss-display); font-size: 1.2rem; line-height: 1.3; }
.layer-tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ss-primary); font-weight: 700; }
.layer-more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--ss-primary); }
a.layer:hover { color: var(--ss-text); }
.layer-1 { top: 0; transform: translateZ(70px); height: 230px; z-index: 3; }
.layer-2 { top: 80px; transform: translateZ(10px) translateX(40px); height: 220px; z-index: 2; background: #f3f4ff; }
.layer-3 { top: 160px; transform: translateZ(-50px) translateX(80px); height: 210px; z-index: 1; background: #e8f9fc; opacity: .95; }

/* ------------------------------------------------------------------
   Cards
------------------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); padding: 34px; box-shadow: var(--ss-shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; transform-style: preserve-3d; }
.card:hover { border-color: #c7cdfa; box-shadow: var(--ss-shadow-lg); }
.card p { color: var(--ss-muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--ss-grad); color: #fff; font-size: 1.3rem; }
.feature-stack { display: grid; gap: 14px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); padding: 22px 24px; box-shadow: var(--ss-shadow); }
.feature-item strong { display: block; color: var(--ss-ink); margin-bottom: 2px; }
.feature-item span:not(.feature-icon) { color: var(--ss-muted); font-size: .95rem; }
.feature-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ss-grad); color: #fff; font-size: 1.1rem; }

/* Post cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.post-card .post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: 0; border-radius: 0; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card .post-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: 10px; }
.post-card h3 a { color: var(--ss-ink); }
.post-card h3 a:hover { color: var(--ss-primary); }
.post-card p { color: var(--ss-muted); margin-bottom: 18px; font-size: .97rem; }
.post-card .read-more { margin-top: auto; }
.read-more { font-weight: 600; font-size: .95rem; color: var(--ss-primary); }
.entry-meta { color: var(--ss-muted); font-size: .85rem; margin-bottom: 12px; letter-spacing: .02em; }
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; min-height: 180px; background: var(--ss-grad); color: #fff; font-family: var(--ss-display); font-size: 4rem; font-weight: 700; }

/* ------------------------------------------------------------------
   Blog and categories
------------------------------------------------------------------ */
.blog-hero { text-align: left; }
.blog-listing { padding-top: 60px; }
.blog-grid { margin-top: 8px; }
.blog-listing .pagination { margin-top: 56px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 52px; }
.cat-pill { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ss-border); background: #fff; color: var(--ss-text); font-weight: 600; font-size: .92rem; transition: all .25s ease; }
.cat-pill:hover { border-color: var(--ss-primary); color: var(--ss-primary); }
.cat-pill.is-active { background: var(--ss-primary); border-color: var(--ss-primary); color: #fff; }
.cat-home { padding-bottom: 24px; }
.cat-block { margin-bottom: 64px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.cat-head h2 { font-size: 1.7rem; margin: 0; }

/* ------------------------------------------------------------------
   Pages and content
------------------------------------------------------------------ */
.page-hero { padding: 84px 0 56px; text-align: center; background: var(--ss-band); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.page-hero .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.page-body { padding: 80px 0; }
.entry-content { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 1.07rem; color: var(--ss-text); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { border-left: 3px solid var(--ss-primary); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--ss-ink); font-style: italic; }
.entry-content code { background: var(--ss-bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: var(--ss-ink); color: #e6e9f7; padding: 20px; border-radius: var(--ss-radius-sm); overflow-x: auto; }
.entry-content img { border-radius: var(--ss-radius-sm); }
.post-thumb-wide { max-width: 960px; margin: 0 auto 48px; border-radius: var(--ss-radius); overflow: hidden; box-shadow: var(--ss-shadow); }
.post-thumb-wide img { width: 100%; height: auto; }
.empty-state { text-align: center; padding: 80px 0; margin: 0 auto; }
.related-section { margin-top: 80px; }
.related-section .section-head { margin-bottom: 40px; }
.comments-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ss-border); color: var(--ss-text); background: #fff; font-weight: 500; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ss-primary); border-color: var(--ss-primary); color: #fff; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius-sm); padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--ss-shadow); transition: border-color .25s ease; }
.faq details[open] { border-color: #c7cdfa; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ss-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ss-primary); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ss-muted); }
.faq summary:focus-visible { outline: 2px solid var(--ss-primary); outline-offset: 4px; border-radius: 6px; }

/* Closing CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 60px; background: var(--ss-band); box-shadow: var(--ss-shadow-lg); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -130px; top: -170px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 540px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Forms and notices */
.inquiry-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.inquiry-form { background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); padding: 40px; box-shadow: var(--ss-shadow); }
.inquiry-form label { display: block; margin-bottom: 18px; }
.inquiry-form label > span { display: block; font-weight: 600; color: var(--ss-ink); font-size: .92rem; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.inquiry-form input[type="text"], .inquiry-form input[type="email"], .inquiry-form input[type="url"], .inquiry-form select, .inquiry-form textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ss-ink); background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-sm);
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--ss-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.inquiry-form .btn { margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--ss-radius-sm); margin-bottom: 24px; font-weight: 500; }
.notice-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ------------------------------------------------------------------
   Footer: mid-tone slate band
------------------------------------------------------------------ */
.site-footer { background: #2b3561; color: #c3c9e6; padding: 80px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--ss-primary-dark); }
.site-footer p { max-width: 320px; margin-top: 16px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-family: var(--ss-font); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-menu a { color: #c3c9e6; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }

/* ------------------------------------------------------------------
   Motion
------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbs span, .stack3d, .layer, .card, .btn { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .primary-nav .menu, .primary-nav ul { gap: 18px; }
  .primary-nav a { font-size: .9rem; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 64px 0 84px; }
  .stack-wrap { min-height: 380px; }
  .stack3d { height: 340px; max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .primary-nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ss-border); padding: 8px 24px 24px; margin: 0; display: none; box-shadow: var(--ss-shadow); }
  .nav-open .primary-nav { display: block; }
  .primary-nav .menu, .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ss-border); }
  .primary-nav a::after { display: none; }
  .section { padding: 80px 0; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .inquiry-form { padding: 24px; }
  .layer { padding: 22px; }
  .stack3d { height: 300px; }
  .layer-1 { height: 200px; }
  .layer-2 { top: 70px; height: 190px; }
  .layer-3 { top: 140px; height: 180px; }
}

/* Hero category links */
.hero-cats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; }
.hero-cats-label { width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 2px; }
.hero-cat { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38); color: #fff; font-weight: 600; font-size: .9rem; transition: background .2s ease, color .2s ease; }
.hero-cat:hover { background: #fff; color: var(--ss-primary-dark); }

/* Footer: four columns including Categories */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Branded article tiles */
.tile-card { background: var(--ss-band); position: relative; }
.post-thumb-wide.tile-card { aspect-ratio: 16 / 9; }
.tile-inner {
  position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; color: #fff;
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .28), transparent 45%), radial-gradient(circle at 0% 100%, rgba(6, 182, 212, .35), transparent 50%);
  transition: transform .6s ease;
}
.post-card:hover .tile-inner { transform: scale(1.03); }
.tile-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.tile-title { font-family: var(--ss-display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-mark { font-size: .8rem; opacity: .85; font-weight: 600; }

/* Hero category row: full-width, below the hero copy and cards */
.hero .hero-cats { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero .hero-cats-label { width: auto; margin-right: 6px; }

/* Topics bar in the header */
.topic-bar { border-top: 1px solid var(--ss-border); background: #fff; }
.topic-nav { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.topic-nav::-webkit-scrollbar { display: none; }
.topic-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ss-muted); white-space: nowrap; }
.topic-link { white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--ss-text); padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.topic-link:hover { color: var(--ss-primary); }
.topic-link.is-active { color: var(--ss-primary); border-bottom-color: var(--ss-primary); }

/* Categories inside the main menu row */
.primary-nav .menu { gap: 18px; }
.primary-nav a { font-size: .9rem; }
.primary-nav .menu-topic a { color: var(--ss-muted); }
.primary-nav .menu-topic a:hover { color: var(--ss-primary); }
@media (min-width: 861px) and (max-width: 1240px) {
  .primary-nav .menu { gap: 14px; }
  .primary-nav a { font-size: .86rem; }
  .nav-cta { margin-left: 4px; padding: 10px 16px; }
}

/* Header: logo at the left edge, menu at the right */
.site-header > .container.nav-wrap { max-width: 1440px; padding-left: 32px; padding-right: 32px; }

/* Hero: equal-width category buttons */
.hero .hero-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: stretch; }
.hero .hero-cats-label { grid-column: 1 / -1; margin-bottom: 0; }
.hero .hero-cat { text-align: center; padding: 13px 16px; }

/* Hero buttons: equal width */
.hero-actions .btn { min-width: 210px; }
