/* ==========================================================================
   Claire Silène Couture — custom child theme styles
   Design System : Minimaliste Shaker Bois (Petrona + Sintony, wood palette)
   Hero : classic-overlay | Header : sticky-minimal | Category : sandwich
   Mega menu layout : D (hero banner)
   ========================================================================== */

:root {
  --ac9-primary:   #3B2E22;
  --ac9-accent:    #9B7A4F;
  --ac9-text:      #3B2E22;
  --ac9-text-soft: #7F6B53;
  --ac9-bg:        #F1ECE2;
  --ac9-surface:   #FFFFFF;
  --ac9-line:      #D9CFBF;
  --ac9-pink:      #C9748A;

  --ac9-font-head: "Petrona", Georgia, "Times New Roman", serif;
  --ac9-font-body: "Sintony", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ac9-radius: 6px;
  --ac9-radius-lg: 12px;
  --ac9-shadow-sm: 0 1px 3px rgba(59, 46, 34, 0.06);
  --ac9-shadow-md: 0 6px 20px rgba(59, 46, 34, 0.08);
  --ac9-shadow-lg: 0 20px 50px rgba(59, 46, 34, 0.12);

  --ac9-header-h: 76px;
  --ac9-container: 1180px;
  --ac9-container-narrow: 880px;
}

/* ==========================================================================
   Base / reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.ac9-body {
  margin: 0;
  font-family: var(--ac9-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ac9-text);
  background: var(--ac9-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .ac9-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: block;
}

a {
  color: var(--ac9-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
a:hover { color: var(--ac9-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac9-font-head);
  font-weight: 600;
  color: var(--ac9-primary);
  margin: 0 0 .6em;
  line-height: 1.25;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

::selection { background: var(--ac9-accent); color: #fff; }

/* container helpers */
.ac9-container { max-width: var(--ac9-container); margin: 0 auto; padding: 0 1.5rem; }
.ac9-container-narrow { max-width: var(--ac9-container-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 1rem; background: var(--ac9-primary);
  color: #fff; padding: .5rem 1rem; z-index: 100000;
}
.skip-link:focus { left: 1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.ac9-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  background: var(--ac9-primary);
  color: #FFFFFF !important;
  font-family: var(--ac9-font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 1px solid var(--ac9-primary);
  border-radius: var(--ac9-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.ac9-btn:hover, .ac9-btn:focus { background: var(--ac9-accent); border-color: var(--ac9-accent); color: #fff; }

.ac9-btn--ghost {
  background: transparent;
  color: var(--ac9-primary) !important;
  border-color: var(--ac9-primary);
}
.ac9-btn--ghost:hover { background: var(--ac9-primary); color: #fff !important; }

.ac9-btn--cta {
  background: var(--ac9-accent);
  border-color: var(--ac9-accent);
  color: #FFFFFF !important;
}
.ac9-btn--cta:hover { background: var(--ac9-primary); border-color: var(--ac9-primary); color: #fff !important; }

/* ==========================================================================
   Animations — CTA scroll_triggered, CTR progress bar, CTO countdown
   ========================================================================== */

@keyframes ac9-cta-attract-scroll {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(155, 122, 79, 0); }
  50%  { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(155, 122, 79, 0.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(155, 122, 79, 0); }
}
.ac9-btn--cta.ac9-cta-attracting { animation: ac9-cta-attract-scroll 1.6s ease-in-out 2; }

#ac9-progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ac9-primary), var(--ac9-accent));
  z-index: 99999;
  transition: width .1s linear;
  will-change: width;
}

@keyframes ac9-cto-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.ac9-cto-countdown .ac9-cto-digit { animation: ac9-cto-pulse 1s ease-in-out infinite; }

/* ==========================================================================
   Header — sticky-minimal
   ========================================================================== */

.ac9-header {
  position: sticky; top: 0; left: 0; right: 0;
  background: rgba(241, 236, 226, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ac9-line);
  z-index: 1000;
  transition: padding .2s ease, box-shadow .2s ease, background .25s ease;
}
.ac9-header.ac9-header--scrolled {
  background: rgba(241, 236, 226, 0.98);
  box-shadow: var(--ac9-shadow-sm);
}

.ac9-header-inner {
  max-width: var(--ac9-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--ac9-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

/* Brand: simple link + image + name */
.ac9-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ac9-primary);
  flex-shrink: 0;
}
.ac9-brand:hover { color: var(--ac9-accent); }
.ac9-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.ac9-brand-logo {
  width: auto;
  display: block;
}
.ac9-brand-name {
  font-family: var(--ac9-font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Desktop nav — horizontal inline (always visible >= 1024px) */
.ac9-nav-desktop { display: none; }
.ac9-nav-desktop-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac9-nav-desktop-list > li { position: relative; }
.ac9-nav-desktop-list > li > a {
  display: inline-block;
  color: var(--ac9-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 1.65rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.ac9-nav-desktop-list > li > a:hover,
.ac9-nav-desktop-list > li:hover > a,
.ac9-nav-desktop-list > li:focus-within > a {
  color: var(--ac9-accent);
  border-bottom-color: var(--ac9-accent);
}

/* Burger button — mobile only */
.ac9-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(59, 46, 34, 0.18);
  border-radius: 8px;
  color: var(--ac9-primary);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}
.ac9-burger-bars { display: flex; flex-direction: column; gap: 4px; width: 24px; height: 16px; }
.ac9-burger-bars span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.ac9-burger[aria-expanded="true"] .ac9-burger-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ac9-burger[aria-expanded="true"] .ac9-burger-bars span:nth-child(2) { opacity: 0; }
.ac9-burger[aria-expanded="true"] .ac9-burger-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Mega menu — Layout D (hero banner)
   ========================================================================== */

.ac9-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 720px;
  max-width: 960px;
  background: var(--ac9-surface);
  border: 1px solid var(--ac9-line);
  border-radius: var(--ac9-radius-lg);
  box-shadow: var(--ac9-shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 999;
}
.ac9-nav-desktop-list > li:hover > .ac9-megamenu,
.ac9-nav-desktop-list > li:focus-within > .ac9-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ac9-megamenu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.ac9-megamenu-featured a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--ac9-radius);
  overflow: hidden;
}
.ac9-megamenu-featured img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ac9-radius);
  margin-bottom: .8rem;
  transition: transform .35s ease;
}
.ac9-megamenu-featured a:hover img { transform: scale(1.03); }
.ac9-megamenu-featured h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: .3rem 0 .35rem;
  color: var(--ac9-primary);
  line-height: 1.35;
}
.ac9-megamenu-featured .ac9-mm-meta {
  font-size: .8rem;
  color: var(--ac9-text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ac9-megamenu-featured .ac9-mm-excerpt {
  font-size: .92rem;
  color: var(--ac9-text-soft);
  margin-top: .4rem;
  line-height: 1.45;
}

.ac9-megamenu-list { display: flex; flex-direction: column; gap: 1rem; }
.ac9-megamenu-list a {
  display: flex;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.ac9-megamenu-list img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--ac9-radius);
}
.ac9-megamenu-list .ac9-mm-item-title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ac9-primary);
  line-height: 1.35;
  margin: 0 0 .15rem;
}
.ac9-megamenu-list .ac9-mm-item-date {
  font-size: .78rem;
  color: var(--ac9-text-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ac9-megamenu-list a:hover .ac9-mm-item-title { color: var(--ac9-accent); }

.ac9-megamenu-empty {
  padding: 2rem;
  text-align: center;
  color: var(--ac9-text-soft);
}
.ac9-megamenu-empty a {
  color: var(--ac9-accent);
  font-weight: 600;
}
.ac9-megamenu-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ac9-line);
  text-align: right;
}
.ac9-megamenu-cta a {
  color: var(--ac9-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: .92rem;
}
.ac9-megamenu-cta a:hover { color: var(--ac9-primary); }

/* No megamenu on touch / no hover */
@media (hover: none) {
  .ac9-megamenu { display: none !important; }
}

/* ==========================================================================
   Mobile nav drawer
   ========================================================================== */

.ac9-nav-mobile { display: none; }
.ac9-nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: #FFFFFF;
  padding: 4.5rem 0 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
  animation: ac9-drawer-in .25s ease both;
}
@keyframes ac9-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

.ac9-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}
.ac9-nav-mobile-list li { border-bottom: 1px solid var(--ac9-line); }
.ac9-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}
.ac9-nav-mobile-list a:hover, .ac9-nav-mobile-list a:focus {
  background: var(--ac9-bg);
  color: var(--ac9-accent);
}

.ac9-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: var(--ac9-bg);
  border: 1px solid var(--ac9-line);
  border-radius: 6px;
  color: var(--ac9-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac9-nav-mobile-close:hover { background: var(--ac9-primary); color: #fff; }

/* Drawer CTA at bottom */
.ac9-drawer-cta {
  display: block;
  margin: 1.5rem 1.5rem 0;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--ac9-accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.ac9-drawer-cta:hover { background: var(--ac9-primary); color: #fff !important; }

/* Backdrop */
.ac9-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 31, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.ac9-nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero — classic-overlay (CLEAN image, NO overlay when no video)
   ========================================================================== */

.ac9-hero {
  position: relative;
  min-height: clamp(420px, 60vh, 640px);
  overflow: hidden;
  background: var(--ac9-primary);
}
.ac9-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ac9-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--ac9-container);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ac9-hero-inner-block {
  background: rgba(241, 236, 226, 0.92);
  border-left: 4px solid var(--ac9-accent);
  padding: 1.75rem 2rem;
  max-width: 640px;
  border-radius: 0 var(--ac9-radius-lg) var(--ac9-radius-lg) 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--ac9-shadow-md);
}
.ac9-hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ac9-accent);
  margin-bottom: .85rem;
}
.ac9-hero-title {
  font-family: var(--ac9-font-head);
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 .7rem;
  color: var(--ac9-primary);
  line-height: 1.2;
}
.ac9-hero-subtitle {
  font-size: 1.05rem;
  color: var(--ac9-text-soft);
  margin: 0 0 1.4rem;
  line-height: 1.55;
}
.ac9-hero-cta { display: inline-flex; gap: .8rem; flex-wrap: wrap; }

/* Overlay only when video — kept available but conditional */
.ac9-hero--has-video .ac9-hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
}
.ac9-hero--has-video .ac9-hero-title,
.ac9-hero--has-video .ac9-hero-subtitle { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* ==========================================================================
   Editorial block (after-hero, 400-700 words SEO)
   ========================================================================== */

.ac9-editorial {
  padding: 5rem 1.5rem 4rem;
  background: var(--ac9-bg);
}
.ac9-editorial-inner { max-width: var(--ac9-container-narrow); margin: 0 auto; }
.ac9-editorial-eyebrow {
  display: block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ac9-accent);
  font-weight: 700;
  margin-bottom: .8rem;
}
.ac9-editorial h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 1.5rem;
  color: var(--ac9-primary);
}
.ac9-editorial h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 .6rem;
  color: var(--ac9-primary);
}
.ac9-editorial p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ac9-text);
  margin: 0 0 1.1em;
}
.ac9-editorial a {
  color: var(--ac9-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.ac9-editorial a:hover { color: var(--ac9-primary); }

.ac9-editorial-pull {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--ac9-surface);
  border-left: 4px solid var(--ac9-accent);
  border-radius: 0 var(--ac9-radius) var(--ac9-radius) 0;
  font-family: var(--ac9-font-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ac9-primary);
  line-height: 1.5;
}

/* ==========================================================================
   Sections (rubriques)
   ========================================================================== */

.ac9-section {
  padding: 5rem 1.5rem 4rem;
}
.ac9-section--surface { background: var(--ac9-surface); }
.ac9-section-inner { max-width: var(--ac9-container); margin: 0 auto; }
.ac9-section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.ac9-section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ac9-accent);
  font-weight: 700;
  margin-bottom: .6rem;
}
.ac9-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .6rem;
  color: var(--ac9-primary);
}
.ac9-section-lead {
  font-size: 1.1rem;
  color: var(--ac9-text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Categories grid */
.ac9-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.ac9-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--ac9-surface);
  border-radius: var(--ac9-radius-lg);
  overflow: hidden;
  box-shadow: var(--ac9-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.ac9-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac9-shadow-md);
  color: inherit;
}
.ac9-cat-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--ac9-primary);
  background-size: cover;
  background-position: center;
}
.ac9-cat-card-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ac9-primary), var(--ac9-accent));
}
.ac9-cat-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ac9-cat-card-title {
  font-family: var(--ac9-font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 .35rem;
  color: var(--ac9-primary);
}
.ac9-cat-card-desc {
  font-size: .95rem;
  color: var(--ac9-text-soft);
  line-height: 1.5;
  margin: 0 0 .8rem;
  flex-grow: 1;
}
.ac9-cat-card-more {
  color: var(--ac9-accent);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
}

/* ==========================================================================
   Latest articles grid
   ========================================================================== */

.ac9-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.ac9-card {
  background: var(--ac9-surface);
  border-radius: var(--ac9-radius-lg);
  overflow: hidden;
  box-shadow: var(--ac9-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.ac9-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac9-shadow-md);
}
.ac9-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ac9-card-img--placeholder {
  background: linear-gradient(135deg, var(--ac9-primary), var(--ac9-accent));
}
.ac9-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ac9-card-cat {
  display: inline-block;
  font-size: .73rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ac9-accent);
  font-weight: 700;
  margin-bottom: .55rem;
}
.ac9-card-cat a { color: inherit; text-decoration: none; }
.ac9-card-cat a:hover { color: var(--ac9-primary); }
.ac9-card-title {
  font-family: var(--ac9-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 .6rem;
  line-height: 1.35;
}
.ac9-card-title a { color: var(--ac9-primary); text-decoration: none; }
.ac9-card-title a:hover { color: var(--ac9-accent); }
.ac9-card-excerpt {
  font-size: .95rem;
  color: var(--ac9-text-soft);
  margin: 0 0 .8rem;
  line-height: 1.55;
  flex-grow: 1;
}
.ac9-card-meta {
  font-size: .8rem;
  color: var(--ac9-text-soft);
  margin-top: auto;
  letter-spacing: .04em;
}

/* Empty state */
.ac9-latest-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ac9-text-soft);
  background: var(--ac9-surface);
  border-radius: var(--ac9-radius-lg);
}

/* ==========================================================================
   Metrics links block
   ========================================================================== */

.ac9-metrics-section {
  padding: 4rem 1.5rem;
  background: var(--ac9-surface);
}
.ac9-metrics-inner { max-width: var(--ac9-container); margin: 0 auto; }
.ac9-metrics-title {
  font-size: 1.4rem;
  text-align: center;
  margin: 0 0 1.5rem;
}
.ac9-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.ac9-metrics-grid a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--ac9-bg);
  border: 1px solid var(--ac9-line);
  border-radius: var(--ac9-radius);
  text-decoration: none;
  color: var(--ac9-primary);
  font-weight: 500;
  transition: background .2s ease, transform .15s ease;
}
.ac9-metrics-grid a:hover {
  background: var(--ac9-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Single / category common
   ========================================================================== */

.ac9-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--ac9-primary);
}
.ac9-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ac9-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--ac9-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.ac9-cat-hero-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 .3rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.ac9-cat-hero-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: .9rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ac9-cat-body { padding: 4rem 1.5rem; }
.ac9-cat-body-inner { max-width: var(--ac9-container); margin: 0 auto; }
.ac9-cat-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  font-size: 1.04rem;
  color: var(--ac9-text);
  line-height: 1.7;
}

/* ==========================================================================
   About / Contact pages
   ========================================================================== */

.ac9-page {
  padding: 4rem 1.5rem;
  background: var(--ac9-bg);
}
.ac9-page-inner {
  max-width: var(--ac9-container-narrow);
  margin: 0 auto;
  background: var(--ac9-surface);
  border-radius: var(--ac9-radius-lg);
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--ac9-shadow-sm);
}
.ac9-page-title {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin: 0 0 2rem;
  text-align: center;
}
.ac9-page-content h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.ac9-page-content h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.ac9-page-content p { font-size: 1.04rem; line-height: 1.7; }

.ac9-persona-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1.5rem auto;
  display: block;
  box-shadow: var(--ac9-shadow-md);
  border: 4px solid var(--ac9-surface);
}

.ac9-home-about {
  max-width: 900px;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 1.8rem;
  text-align: left;
}
.ac9-home-about-media {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.ac9-home-about-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.ac9-home-about-body .ac9-section-title { text-align: left; }
.ac9-home-about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ac9-text-soft);
  margin: 0 0 1.5rem;
  text-align: left;
}
.ac9-home-persona {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--ac9-shadow-md);
  border: 4px solid var(--ac9-surface);
}
@media (max-width: 640px) {
  .ac9-home-about {
    grid-template-columns: 110px 1fr;
    gap: 1.2rem;
  }
  .ac9-home-persona { width: 110px; height: 110px; }
}

.ac9-about-intro {
  font-size: 1.15rem;
  font-style: italic;
  font-family: var(--ac9-font-head);
  color: var(--ac9-text-soft);
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.ac9-contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ac9-contact-form {
  margin-top: 2.5rem;
  background: var(--ac9-bg);
  padding: 1.5rem;
  border-radius: var(--ac9-radius-lg);
  border: 1px solid var(--ac9-line);
}
.ac9-contact-form iframe {
  background: transparent;
  border-radius: var(--ac9-radius);
}

/* ==========================================================================
   Tool page wrapper
   ========================================================================== */

.ac9-tool-page {
  padding: 4rem 1.5rem;
  background: var(--ac9-bg);
}
.ac9-tool-page-inner {
  max-width: var(--ac9-container-narrow);
  margin: 0 auto;
}
.ac9-tool-title {
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  margin: 0 0 1rem;
  text-align: center;
}
.ac9-tool-intro {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ac9-text);
  margin-bottom: 2.5rem;
  text-align: left;
}
.ac9-tool-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ac9-line);
}
.ac9-tool-faq h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.ac9-tool-faq details {
  background: var(--ac9-surface);
  border: 1px solid var(--ac9-line);
  border-radius: var(--ac9-radius);
  margin-bottom: .8rem;
  padding: 0;
}
.ac9-tool-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.25rem;
  color: var(--ac9-primary);
  font-family: var(--ac9-font-head);
  font-size: 1.05rem;
}
.ac9-tool-faq summary:hover { color: var(--ac9-accent); }
.ac9-tool-faq details[open] summary { border-bottom: 1px solid var(--ac9-line); }
.ac9-tool-faq details p {
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  color: var(--ac9-text);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ac9-footer {
  background: #F1ECE2;
  color: #000000;
  padding: 4rem 1.5rem 2rem;
}
/* Force black for every text node and link inside header and footer (user request) */
.ac9-header, .ac9-header *,
.ac9-footer, .ac9-footer * { color: #000000 !important; }
.ac9-header a, .ac9-header a:visited,
.ac9-footer a, .ac9-footer a:visited { color: #000000 !important; text-decoration: none; }
.ac9-header a:hover, .ac9-header a:focus,
.ac9-footer a:hover, .ac9-footer a:focus { color: #000000 !important; text-decoration: underline; }
.ac9-nav-desktop-list > li > a:hover,
.ac9-nav-desktop-list > li:hover > a,
.ac9-nav-desktop-list > li:focus-within > a { color: #000000 !important; border-bottom-color: #000000 !important; }
.ac9-megamenu .ac9-mm-item-title,
.ac9-megamenu-list a:hover .ac9-mm-item-title,
.ac9-megamenu-featured h3,
.ac9-megamenu-cta a,
.ac9-megamenu-cta a:hover { color: #000000 !important; }
.ac9-nav-mobile-list a,
.ac9-nav-mobile-list a:hover,
.ac9-nav-mobile-list a:focus { color: #000000 !important; }

.ac9-footer-grid {
  max-width: var(--ac9-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.ac9-footer-col { min-width: 0; }
.ac9-footer-title {
  font-family: var(--ac9-font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #000000;
  margin: 0 0 1.1rem;
}
.ac9-footer-links { list-style: none; padding: 0; margin: 0; }
.ac9-footer-links li { margin: 0 0 .55rem; font-size: .94rem; }

.ac9-footer-logo {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 1rem;
}
.ac9-footer-brand-pitch {
  font-size: .95rem;
  color: #000000;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.ac9-footer-brand-cta {
  display: inline-block;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.ac9-footer-brand-cta:hover {
  border-bottom-color: #000000;
  text-decoration: none;
}

.ac9-footer-bottom {
  max-width: var(--ac9-container);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  font-size: .88rem;
  color: #B6ABAE;
}
.ac9-footer-bottom-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ac9-footer-bottom-row a { color: #000000; font-size: .88rem; }

.ac9-footer-social {
  display: flex;
  gap: .8rem;
  margin-top: .5rem;
}
.ac9-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.ac9-footer-social a:hover { background: var(--ac9-accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & up */
@media (min-width: 768px) {
  .ac9-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .ac9-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Desktop */
@media (min-width: 1024px) {
  .ac9-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin: 0 1.5rem;
  }
  .ac9-burger { display: none !important; }
  .ac9-drawer-cta { display: none !important; }
  .ac9-nav-mobile { display: none !important; }
  .ac9-latest-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Larger desktop */
@media (min-width: 1280px) {
  .ac9-header-inner { padding: 0 2rem; }
}

/* Mobile */
@media (max-width: 1023px) {
  .ac9-header-inner {
    justify-content: space-between;
    gap: 1rem;
  }
  .ac9-brand-name { font-size: 1.2rem; }
  .ac9-nav-desktop { display: none !important; }
  .ac9-megamenu { display: none !important; }
  .ac9-header-cta-desktop, .ac9-header .ac9-btn--cta:not(.ac9-drawer-cta) {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .ac9-latest-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ac9-categories-grid { grid-template-columns: 1fr; }
  .ac9-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .ac9-section, .ac9-editorial, .ac9-page, .ac9-tool-page { padding: 3rem 1rem; }
  .ac9-hero { min-height: 360px; }
  .ac9-hero-inner { padding: 3rem 1rem 2rem; }
  .ac9-hero-title { font-size: 1.7rem; }
  .ac9-hero-subtitle { font-size: 1rem; }
  .ac9-hero-inner-block { padding: 1.3rem 1.4rem; }
  .ac9-page-inner { padding: 1.75rem 1.25rem; }
  .ac9-megamenu-grid { grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .ac9-header, .ac9-footer, .ac9-burger, .ac9-nav-mobile, .ac9-nav-desktop, #ac9-progress-bar { display: none !important; }
  body { background: #fff; color: #000; }
}
