/*
Theme Name: Habitat Clair Pro
Author: Habitat Clair
Description: Thème WordPress éditorial premium pour l'habitat, la rénovation, l'aménagement intérieur et les matériaux. Responsive mobile-first, accessible, performant et préparé pour une intégration AdSense prudente.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: habitat-clair-pro
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, accessibility-ready
*/

:root {
  --hc-bg: #f4f2ec;
  --hc-bg-deep: #ebe7de;
  --hc-surface: #fff;
  --hc-surface-soft: #eeece5;
  --hc-surface-sage: #e8ede6;
  --hc-ink: #18211d;
  --hc-ink-soft: #2d3933;
  --hc-muted: #65706a;
  --hc-line: #d9ddd7;
  --hc-line-strong: #c8cec7;
  --hc-accent: #6f846b;
  --hc-accent-dark: #465a43;
  --hc-accent-soft: #dce6d9;
  --hc-warm: #b66f4f;
  --hc-warm-soft: #f1dfd6;
  --hc-danger: #9b3939;
  --hc-success: #34704a;
  --hc-shadow-sm: 0 10px 30px rgba(24, 33, 29, .06);
  --hc-shadow: 0 24px 70px rgba(24, 33, 29, .11);
  --hc-shadow-lg: 0 38px 110px rgba(24, 33, 29, .16);
  --hc-radius-xs: 8px;
  --hc-radius-sm: 12px;
  --hc-radius: 20px;
  --hc-radius-lg: 34px;
  --hc-container: 1240px;
  --hc-reading: 780px;
  --hc-header-height: 84px;
  --hc-safe-left: env(safe-area-inset-left, 0px);
  --hc-safe-right: env(safe-area-inset-right, 0px);
  --hc-safe-top: env(safe-area-inset-top, 0px);
  --hc-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
html.hc-scroll-locked { overflow: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--hc-bg);
  color: var(--hc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, .96rem + .14vw, 1.075rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.hc-menu-open, body.hc-search-open { overflow: hidden; }
::selection { background: var(--hc-accent-soft); color: var(--hc-ink); }
img, picture, video, canvas, svg { max-width: 100%; }
img { height: auto; }
iframe { max-width: 100%; }
figure { max-width: 100%; }
a { color: var(--hc-accent-dark); text-decoration-thickness: .08em; text-underline-offset: .19em; }
a:hover { color: var(--hc-warm); }
p, h1, h2, h3, h4, h5, h6, li { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
button, .button, .wp-element-button {
  border: 0;
  border-radius: 999px;
  background: var(--hc-ink);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  min-height: 48px;
  padding: .82rem 1.3rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
button:disabled, input:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--hc-accent);
  outline-offset: 3px;
}
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hc-line-strong);
  border-radius: var(--hc-radius-sm);
  background: #fff;
  color: var(--hc-ink);
  padding: .8rem .95rem;
  font-size: max(16px, 1rem);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--hc-accent); box-shadow: 0 0 0 4px rgba(111, 132, 107, .13); }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; min-height: 1.2rem; accent-color: var(--hc-accent-dark); }
textarea { min-height: 160px; resize: vertical; }
label { display: block; margin-bottom: .38rem; font-weight: 750; }
hr { border: 0; border-top: 1px solid var(--hc-line); }

.hc-container { width: min(calc(100% - clamp(32px, 6vw, 64px)), var(--hc-container)); margin-inline: auto; }
.hc-reading { width: min(calc(100% - clamp(32px, 6vw, 64px)), var(--hc-reading)); margin-inline: auto; }
.hc-section { padding-block: clamp(4.2rem, 8vw, 8rem); }
.hc-section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.hc-section-title {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hc-section-lead { max-width: 680px; margin: 0; color: var(--hc-muted); font-size: clamp(1rem, .94rem + .3vw, 1.15rem); }
.hc-section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); align-items: end; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.hc-section-heading--inline { grid-template-columns: 1fr auto; }
.hc-eyebrow { display: inline-flex; align-items: center; gap: .62rem; margin: 0 0 1rem; color: var(--hc-accent-dark); font-size: .74rem; font-weight: 850; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.hc-eyebrow::before { content: ""; flex: 0 0 30px; width: 30px; height: 1px; background: currentColor; }
.hc-eyebrow a { color: inherit; text-decoration: none; }
.hc-muted { color: var(--hc-muted); }
.hc-sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hc-skip-link:focus { position: fixed !important; z-index: 100000; top: calc(12px + var(--hc-safe-top)); left: calc(12px + var(--hc-safe-left)); width: auto; height: auto; clip: auto; padding: .72rem 1rem; border-radius: 10px; background: #fff; color: #000; box-shadow: var(--hc-shadow); }
.hc-button--primary { background: var(--hc-ink); }
.hc-button--secondary { border: 1px solid var(--hc-line-strong); background: rgba(255,255,255,.55); color: var(--hc-ink); box-shadow: none; backdrop-filter: blur(8px); }
.hc-text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; text-decoration: none; }

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 200;
  top: 0;
  min-height: var(--hc-header-height);
  border-bottom: 1px solid transparent;
  background: rgba(244, 242, 236, .78);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  transition: min-height .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(244,242,236,.96); opacity: 0; transition: opacity .22s ease; z-index: -1; }
.site-header.is-scrolled { border-bottom-color: rgba(217, 221, 215, .9); box-shadow: 0 8px 28px rgba(24,33,29,.055); }
.site-header.is-scrolled::before { opacity: 1; }
.admin-bar .site-header { top: 32px; }
.hc-header-inner { min-height: var(--hc-header-height); display: grid; grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto; align-items: center; gap: clamp(.8rem, 2.4vw, 1.8rem); padding-left: var(--hc-safe-left); padding-right: var(--hc-safe-right); transition: min-height .22s ease; }
.site-header.is-scrolled .hc-header-inner { min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-branding-copy { min-width: 0; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; }
.custom-logo { display: block; max-width: min(180px, 36vw); max-height: 48px; width: auto; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 1rem + .5vw, 1.48rem); line-height: 1; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-title a { color: var(--hc-ink); text-decoration: none; }
.site-description { max-width: 260px; margin: .28rem 0 0; color: var(--hc-muted); font-size: .69rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary-navigation { justify-self: center; min-width: 0; }
.primary-navigation ul { display: flex; align-items: center; gap: .16rem; list-style: none; margin: 0; padding: 0; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: flex; align-items: center; min-height: 44px; border-radius: 999px; color: var(--hc-ink); padding: .68rem .82rem; font-size: .89rem; font-weight: 760; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { background: rgba(255,255,255,.75); color: var(--hc-accent-dark); }
.primary-navigation .sub-menu { position: absolute; z-index: 10; top: calc(100% + 10px); left: 0; display: block; min-width: 240px; max-width: 320px; padding: .55rem; border: 1px solid var(--hc-line); border-radius: 16px; background: #fff; box-shadow: var(--hc-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-navigation .sub-menu a { min-height: 42px; border-radius: 10px; padding: .7rem .8rem; white-space: normal; }
.primary-navigation .sub-menu .sub-menu { top: 0; left: calc(100% + 8px); }
.hc-submenu-toggle { display: none; }
.hc-mobile-nav-head, .primary-navigation .hc-mobile-nav-cta { display: none; }
.hc-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; min-width: max-content; }
.hc-header-cta { min-height: 44px; padding: .68rem 1.05rem; font-size: .86rem; }
.hc-icon-button { width: 46px; min-width: 46px; min-height: 46px; padding: 0; border: 1px solid var(--hc-line); background: rgba(255,255,255,.75); color: var(--hc-ink); box-shadow: none; }
.hc-menu-toggle { display: none; }
.hc-nav-overlay { position: fixed; z-index: 190; inset: 0; background: rgba(15,22,18,.54); opacity: 0; visibility: hidden; backdrop-filter: blur(3px); transition: opacity .22s ease, visibility .22s ease; }
.hc-nav-overlay.is-visible { opacity: 1; visibility: visible; }
.hc-menu-open .site-header { pointer-events: none; }
.hc-menu-open .primary-navigation { pointer-events: auto; }

/* Search */
.hc-search-panel { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: max(8vh, calc(52px + var(--hc-safe-top))) max(16px, var(--hc-safe-right)) max(20px, var(--hc-safe-bottom)) max(16px, var(--hc-safe-left)); background: rgba(14, 21, 17, .67); opacity: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .22s ease; }
.hc-search-panel[hidden] { display: none; }
.hc-search-panel.is-open { opacity: 1; }
.hc-search-dialog { width: min(100%, 760px); max-height: 82vh; max-height: min(82dvh, 680px); overflow: auto; border: 1px solid rgba(255,255,255,.35); border-radius: clamp(22px, 4vw, 36px); background: #fff; padding: clamp(1.3rem, 4vw, 2.7rem); box-shadow: var(--hc-shadow-lg); transform: translateY(-14px) scale(.985); transition: transform .22s ease; }
.hc-search-panel.is-open .hc-search-dialog { transform: translateY(0) scale(1); }
.hc-search-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.hc-search-dialog .hc-eyebrow { margin-bottom: .55rem; }
.hc-search-dialog h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.65rem); line-height: 1.08; letter-spacing: -.035em; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.search-form label { margin: 0; }
.search-form .search-field { min-height: 54px; }
.search-form .search-submit { min-height: 54px; }
.hc-search-hint { margin: 1rem 0 0; color: var(--hc-muted); font-size: .84rem; }

/* Reading progress */
.hc-reading-progress { position: fixed; z-index: 1001; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.admin-bar .hc-reading-progress { top: 32px; }
.hc-reading-progress span { display: block; width: 100%; height: 100%; background: var(--hc-warm); transform: scaleX(0); transform-origin: left center; will-change: transform; }

/* Hero */
.hc-hero { position: relative; overflow: clip; min-height: min(820px, calc(100svh - var(--hc-header-height))); display: flex; align-items: center; padding-block: clamp(4rem, 8vw, 8.2rem); isolation: isolate; }
.hc-hero::before { content: ""; position: absolute; z-index: -2; width: min(700px, 70vw); aspect-ratio: 1; border-radius: 50%; top: -32%; right: -14%; background: radial-gradient(circle, rgba(111,132,107,.24) 0, rgba(111,132,107,.08) 42%, transparent 70%); }
.hc-hero::after { content: ""; position: absolute; z-index: -2; width: 420px; height: 420px; border-radius: 50%; left: -230px; bottom: -260px; background: rgba(182,111,79,.09); filter: blur(2px); }
.hc-hero-grid-pattern { position: absolute; z-index: -1; inset: 0; opacity: .36; background-image: linear-gradient(rgba(24,33,29,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,33,29,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, #000, transparent 65%); }
.hc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hc-hero-content { min-width: 0; }
.hc-hero h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.15rem, 6.8vw, 6.55rem); line-height: .96; letter-spacing: -.063em; text-wrap: balance; }
.hc-hero-copy { max-width: 690px; margin: 1.55rem 0 0; color: var(--hc-muted); font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); line-height: 1.65; }
.hc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.hc-hero-proof { display: flex; flex-wrap: wrap; gap: .75rem 1.15rem; margin-top: 2rem; color: var(--hc-muted); font-size: .78rem; font-weight: 700; }
.hc-hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hc-hero-proof svg { color: var(--hc-accent-dark); }
.hc-hero-visual { position: relative; min-height: 560px; }
.hc-architecture-card { position: absolute; inset: 2% 5% 4% 4%; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 48% 10% 28% 11%; background: linear-gradient(145deg, #d9e0d5 0%, #9aae95 52%, #6f846b 100%); box-shadow: var(--hc-shadow-lg); }
.hc-architecture-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.36), transparent 42%); }
.hc-architecture-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, rgba(24,33,29,.16)); }
.hc-sun-disc { position: absolute; top: 12%; right: 14%; width: 130px; aspect-ratio: 1; border-radius: 50%; background: rgba(244,234,208,.72); box-shadow: 0 0 0 28px rgba(255,255,255,.08); }
.hc-house-lines { position: absolute; inset: 21% 14% 15% 13%; border: 2px solid rgba(255,255,255,.9); border-top: 0; clip-path: polygon(50% 0, 100% 35%, 100% 100%, 0 100%, 0 35%); }
.hc-house-lines::before { content: ""; position: absolute; left: 16%; right: 16%; top: 25%; height: 2px; background: rgba(255,255,255,.84); transform: rotate(-34deg); transform-origin: left; }
.hc-house-lines span { position: absolute; left: 39%; bottom: 0; width: 24%; height: 46%; border: 2px solid rgba(255,255,255,.9); border-bottom: 0; }
.hc-house-lines i, .hc-house-lines b { position: absolute; top: 49%; width: 18%; aspect-ratio: 1.25; border: 2px solid rgba(255,255,255,.8); }
.hc-house-lines i { left: 12%; }
.hc-house-lines b { right: 12%; }
.hc-material-swatches { position: absolute; z-index: 2; left: 9%; bottom: 8%; display: flex; gap: .45rem; padding: .55rem; border-radius: 999px; background: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.hc-material-swatches span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.hc-material-swatches span:nth-child(1) { background: #e9e1d3; }
.hc-material-swatches span:nth-child(2) { background: #7c8f76; }
.hc-material-swatches span:nth-child(3) { background: #b67658; }
.hc-floating-note { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: rgba(255,255,255,.88); padding: 1rem 1.1rem; box-shadow: var(--hc-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hc-floating-note small { display: block; color: var(--hc-muted); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hc-floating-note strong { display: block; margin-top: .25rem; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.2; }
.hc-floating-note--top { top: 4%; left: 0; }
.hc-floating-note--bottom { right: 0; bottom: 0; display: flex; align-items: center; gap: .75rem; max-width: 275px; }
.hc-floating-note--bottom > svg { flex: 0 0 auto; color: var(--hc-accent-dark); }

/* Trust strip */
.hc-trust-strip { border-block: 1px solid rgba(217,221,215,.88); background: rgba(255,255,255,.42); }
.hc-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hc-trust-grid > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .1rem .8rem; align-items: center; min-width: 0; padding: 1.35rem clamp(1rem, 3vw, 2.25rem); border-right: 1px solid var(--hc-line); }
.hc-trust-grid > div:first-child { padding-left: 0; }
.hc-trust-grid > div:last-child { border-right: 0; padding-right: 0; }
.hc-trust-grid > div > span { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--hc-surface-sage); color: var(--hc-accent-dark); }
.hc-trust-grid strong { font-size: .9rem; line-height: 1.25; }
.hc-trust-grid small { color: var(--hc-muted); font-size: .73rem; line-height: 1.3; }

/* Grids, topic cards and content cards */
.hc-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
.hc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hc-topic-card { position: relative; min-height: 280px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; padding: 1.35rem; box-shadow: 0 8px 28px rgba(24,33,29,.035); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hc-topic-card::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -60px; top: -70px; background: var(--hc-accent-soft); opacity: .75; }
.hc-topic-card:nth-child(2n)::before { background: var(--hc-warm-soft); }
.hc-topic-icon { position: relative; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--hc-surface-sage); color: var(--hc-accent-dark); }
.hc-topic-number { display: block; margin-top: 1.8rem; color: var(--hc-muted); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.hc-topic-card h3 { margin: .35rem 0 .45rem; font-family: Georgia, serif; font-size: 1.58rem; line-height: 1.12; letter-spacing: -.03em; }
.hc-topic-card p { margin: 0; color: var(--hc-muted); font-size: .87rem; line-height: 1.55; }
.hc-topic-card > a { position: absolute; z-index: 2; inset: 0; }
.hc-topic-arrow { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--hc-bg); color: var(--hc-ink); transition: transform .22s ease, background .22s ease, color .22s ease; }
.hc-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: var(--hc-surface); box-shadow: 0 10px 34px rgba(24,33,29,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hc-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(140deg, var(--hc-surface-soft), #d4ddd1); }
.hc-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(24,33,29,.16)); opacity: 0; transition: opacity .3s ease; }
.hc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hc-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--hc-accent-dark); background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.75), transparent 25%), linear-gradient(145deg, #dbe3d8, #9caf97); }
.hc-card-placeholder > span { width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.58); border-radius: 32px; background: rgba(255,255,255,.28); }
.hc-card-media-arrow { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--hc-ink); opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.hc-card-body { padding: 1.3rem; }
.hc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .75rem; margin-bottom: .7rem; color: var(--hc-muted); font-size: .72rem; line-height: 1.35; }
.hc-card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.hc-card-category { color: var(--hc-accent-dark); font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.hc-card-title { margin: 0; font-family: Georgia, serif; font-size: clamp(1.28rem, 1.06rem + .75vw, 1.72rem); line-height: 1.16; letter-spacing: -.028em; text-wrap: balance; }
.hc-card-title a { color: var(--hc-ink); text-decoration: none; }
.hc-card-excerpt { margin: .72rem 0 0; color: var(--hc-muted); font-size: .89rem; line-height: 1.58; }
.hc-card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 800; font-size: .82rem; text-decoration: none; }

/* Featured editorial */
.hc-editorial-section { background: var(--hc-ink); color: #fff; }
.hc-feature-story { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); min-height: 560px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--hc-radius-lg); background: #232e28; box-shadow: 0 32px 90px rgba(0,0,0,.24); }
.hc-feature-story-media { min-height: 100%; overflow: hidden; background: #859982; }
.hc-feature-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hc-feature-placeholder { width: 100%; height: 100%; min-height: 480px; display: grid; place-items: center; color: rgba(255,255,255,.75); background: radial-gradient(circle at 65% 25%, rgba(255,255,255,.18), transparent 22%), linear-gradient(145deg, #95a990, #53664f); }
.hc-feature-story-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.hc-feature-story .hc-eyebrow { color: #d9e8d6; }
.hc-feature-story h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.hc-feature-story h2 a { color: #fff; text-decoration: none; }
.hc-feature-story-content > p:not(.hc-eyebrow) { margin: 1.2rem 0 0; color: rgba(255,255,255,.68); }
.hc-feature-story .hc-card-meta { margin-top: 1.4rem; color: rgba(255,255,255,.58); }
.hc-feature-story .hc-text-link { margin-top: 1.5rem; color: #fff; }
.hc-latest-section { background: #ecefe9; }

/* Method and CTA */
.hc-method-section { background: #fff; }
.hc-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hc-method-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: var(--hc-bg); padding: 1.5rem; }
.hc-method-card > span { position: absolute; right: 1rem; top: .55rem; color: rgba(24,33,29,.08); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.hc-method-card > svg { color: var(--hc-accent-dark); }
.hc-method-card h3 { margin: 4.4rem 0 .55rem; font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.1; }
.hc-method-card p { margin: 0; color: var(--hc-muted); font-size: .9rem; }
.hc-tools-section { padding-top: 0; }
.hc-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 2rem; border-radius: var(--hc-radius-lg); background: linear-gradient(135deg, var(--hc-accent-dark), #28362f); color: #fff; padding: clamp(2rem, 6vw, 5rem); box-shadow: var(--hc-shadow); }
.hc-cta::after { content: ""; position: absolute; width: 380px; aspect-ratio: 1; right: -170px; top: -210px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.025); }
.hc-cta .hc-eyebrow { color: #dce8d9; }
.hc-cta h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.03; letter-spacing: -.045em; }
.hc-cta p:not(.hc-eyebrow) { max-width: 720px; margin: 1rem 0 0; color: rgba(255,255,255,.7); }
.hc-cta .button { position: relative; z-index: 2; background: #fff; color: var(--hc-ink); white-space: nowrap; }

/* Archive and page headers */
.hc-breadcrumbs { width: min(calc(100% - clamp(32px, 6vw, 64px)), var(--hc-container)); margin: 1.35rem auto 0; color: var(--hc-muted); font-size: .76rem; }
.hc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .38rem; list-style: none; margin: 0; padding: 0; }
.hc-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .38rem; opacity: .5; }
.hc-breadcrumbs a { color: inherit; text-decoration: none; }
.hc-page-header { padding-block: clamp(3.2rem, 7vw, 6.7rem) 2.5rem; }
.hc-page-header h1 { max-width: 980px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.65rem, 6.3vw, 5.7rem); line-height: 1; letter-spacing: -.057em; text-wrap: balance; }
.hc-page-header > p, .hc-page-header .hc-section-lead { max-width: 760px; margin: 1.05rem 0 0; color: var(--hc-muted); }
.hc-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.hc-post-list { display: grid; gap: 1.15rem; min-width: 0; }
.hc-post-list .hc-card { display: grid; grid-template-columns: minmax(210px, 34%) minmax(0, 1fr); }
.hc-post-list .hc-card-media { aspect-ratio: auto; min-height: 100%; }
.hc-pagination { margin-top: 2rem; }
.hc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.hc-pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--hc-line); border-radius: 12px; background: #fff; color: var(--hc-ink); text-decoration: none; }
.hc-pagination .current, .hc-pagination .page-numbers:hover { background: var(--hc-ink); color: #fff; }

/* Sidebar */
.hc-sidebar { position: sticky; top: calc(var(--hc-header-height) + 24px); display: grid; gap: 1rem; min-width: 0; }
.widget { overflow: hidden; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; padding: 1.25rem; }
.widget-title { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.2; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: .66rem; padding-top: .66rem; border-top: 1px solid var(--hc-line); }
.widget a { text-decoration: none; }

/* Article */
.hc-article-header { padding-block: clamp(3rem, 6vw, 6.4rem) clamp(2rem, 4vw, 3rem); }
.hc-article-header-inner { width: min(calc(100% - clamp(32px, 6vw, 64px)), 980px); margin-inline: auto; }
.hc-article-header h1 { margin: .75rem 0 1.1rem; font-family: Georgia, serif; font-size: clamp(2.7rem, 6.5vw, 6rem); line-height: .99; letter-spacing: -.06em; text-wrap: balance; }
.hc-article-deck { max-width: 820px; margin: 0; color: var(--hc-muted); font-size: clamp(1.08rem, 1rem + .55vw, 1.38rem); line-height: 1.62; }
.hc-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1.55rem; color: var(--hc-muted); font-size: .8rem; }
.hc-byline span { display: inline-flex; align-items: center; gap: .35rem; }
.hc-byline strong, .hc-byline a { color: var(--hc-ink); }
.hc-featured-image { width: min(calc(100% - clamp(24px, 5vw, 56px)), 1320px); margin: 0 auto clamp(2.3rem, 5vw, 4.8rem); }
.hc-featured-image img { display: block; width: 100%; max-height: min(74vh, 760px); object-fit: cover; border-radius: clamp(18px, 3vw, 36px); box-shadow: var(--hc-shadow); }
.hc-featured-image figcaption { margin-top: .65rem; color: var(--hc-muted); font-size: .75rem; text-align: center; }
.hc-article-layout { width: min(calc(100% - clamp(32px, 6vw, 64px)), 1260px); margin-inline: auto; display: grid; grid-template-columns: 54px minmax(0, var(--hc-reading)) minmax(210px, 1fr); align-items: start; justify-content: center; gap: clamp(1.2rem, 3vw, 2.5rem); }
.hc-article-content { min-width: 0; }
.hc-share-rail { position: sticky; top: 112px; display: grid; gap: .48rem; }
.hc-share-rail a, .hc-share-rail button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--hc-line); border-radius: 50%; background: #fff; color: var(--hc-ink); box-shadow: none; text-decoration: none; }
.hc-share-rail .is-success { background: var(--hc-success); color: #fff; }
.hc-share-native[hidden] { display: none; }
.hc-article-aside { position: sticky; top: 112px; min-width: 0; }
.hc-toc { border-left: 2px solid var(--hc-line); padding-left: 1rem; color: var(--hc-muted); font-size: .78rem; }
.hc-toc[hidden] { display: none; }
.hc-toc-title { display: block; margin-bottom: .75rem; color: var(--hc-ink); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hc-toc ol { list-style: none; margin: 0; padding: 0; }
.hc-toc li + li { margin-top: .58rem; }
.hc-toc a { display: block; color: inherit; line-height: 1.4; text-decoration: none; }
.hc-toc--mobile { display: none; margin-bottom: 2rem; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; padding: 1rem 1.1rem; }
.entry-content { min-width: 0; font-size: clamp(1rem, .98rem + .16vw, 1.08rem); }
.entry-content > * { max-width: 100%; margin-top: 0; margin-bottom: 1.5rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: 112px; font-family: Georgia, serif; line-height: 1.16; letter-spacing: -.028em; text-wrap: balance; }
.entry-content h2 { margin-top: 3.2rem; font-size: clamp(1.95rem, 3.7vw, 2.85rem); }
.entry-content h3 { margin-top: 2.35rem; font-size: clamp(1.48rem, 2.8vw, 2.08rem); }
.entry-content h4 { margin-top: 2rem; font-size: 1.3rem; }
.entry-content a { word-break: break-word; }
.entry-content blockquote { margin-inline: 0; border-left: 4px solid var(--hc-accent); border-radius: 0 var(--hc-radius) var(--hc-radius) 0; background: #edf1eb; padding: 1.25rem 1.45rem; font-family: Georgia, serif; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { color: var(--hc-muted); font-size: .77rem; text-align: center; }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; border-radius: 12px; background: #fff; font-size: .88rem; }
.entry-content th, .entry-content td { min-width: 120px; border: 1px solid var(--hc-line); padding: .78rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--hc-surface-soft); }
.entry-content pre { max-width: 100%; overflow-x: auto; border-radius: 12px; padding: 1rem; }
.entry-content code { border-radius: 5px; background: #e9ece7; padding: .12rem .35rem; font-size: .9em; overflow-wrap: anywhere; }
.entry-content .wp-block-separator { border-color: var(--hc-line); }
.entry-content .wp-block-image img, .entry-content .wp-block-cover, .entry-content .wp-block-media-text { border-radius: var(--hc-radius); }
.entry-content .wp-block-embed__wrapper { position: relative; max-width: 100%; overflow: hidden; }
.alignwide { width: min(calc(100vw - clamp(32px, 6vw, 64px)), 1120px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.hc-author-box { display: grid; grid-template-columns: 88px 1fr; gap: 1.2rem; margin-top: 3.5rem; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; padding: 1.35rem; }
.hc-author-box img { border-radius: 50%; }
.hc-author-label { margin: 0 0 .22rem !important; color: var(--hc-accent-dark) !important; font-size: .7rem !important; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hc-author-box h2 { margin: 0 0 .35rem; font-size: 1.3rem; }
.hc-author-box h2 a { color: var(--hc-ink); text-decoration: none; }
.hc-author-box p { margin: 0; color: var(--hc-muted); font-size: .88rem; }
.hc-post-navigation { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hc-post-navigation a { display: block; min-width: 0; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; color: var(--hc-ink); padding: 1.2rem; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hc-post-navigation span { display: block; color: var(--hc-muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.hc-post-navigation strong { display: block; margin-top: .35rem; font-family: Georgia, serif; line-height: 1.25; }
.hc-related-section { margin-top: clamp(4rem, 8vw, 8rem); background: #ecefe9; }

/* Ads */
.hc-ad-zone { width: 100%; min-height: 128px; display: grid; place-items: center; margin-block: clamp(2.2rem, 5vw, 4rem); border: 1px solid rgba(217,221,215,.6); border-radius: 12px; background: rgba(233,235,229,.5); overflow: clip; text-align: center; contain: layout paint; }
.hc-ad-zone--leaderboard, .hc-ad-zone--footer { min-height: 128px; width: min(calc(100% - clamp(32px, 6vw, 64px)), 1040px); margin-inline: auto; }
.hc-ad-zone--inarticle { min-height: 300px; }
.hc-ad-zone--sidebar { min-height: 300px; margin: 0; }
.hc-ad-label { display: block; padding: .45rem .5rem 0; color: #7a817d; font-size: .61rem; letter-spacing: .09em; text-transform: uppercase; }
.hc-ad-zone ins.adsbygoogle { width: 100%; }

/* Tools and forms */
.hc-tool { border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg); background: #fff; padding: clamp(1.3rem, 4vw, 2.7rem); box-shadow: var(--hc-shadow-sm); }
.hc-tool + .hc-tool { margin-top: 1.5rem; }
.hc-tool h2 { margin: 0 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.hc-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; }
.hc-tool-grid > p { min-width: 0; }
.hc-tool-result { margin-top: 1rem; border-radius: 14px; background: var(--hc-surface-soft); padding: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.hc-form-status { border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem; }
.hc-form-status--success { background: #e4f1e7; color: #245735; }
.hc-form-status--error { background: #f7e5e5; color: #762929; }
.hc-honeypot { position: absolute; left: -9999px; }

/* Comments */
.comments-area { margin-top: 3.5rem; }
.comments-title { font-family: Georgia, serif; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(1rem, 4vw, 2rem); }
.comment-body { margin-bottom: 1rem; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; padding: 1.1rem; }
.comment-meta { font-size: .8rem; color: var(--hc-muted); }

/* Footer */
.site-footer { position: relative; overflow: hidden; margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--hc-line); background: #1b241f; color: rgba(255,255,255,.75); }
.hc-footer-glow { position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; top: -360px; left: 8%; background: rgba(111,132,107,.16); filter: blur(2px); }
.hc-footer-main { position: relative; display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.hc-footer-brand { min-width: 0; }
.site-footer .site-title { overflow: visible; white-space: normal; }
.site-footer .site-title a { color: #fff; }
.site-footer h2 { margin: 0 0 .9rem; color: #fff; font-family: Georgia, serif; font-size: 1.17rem; }
.site-footer p { max-width: 480px; margin: .85rem 0 0; color: rgba(255,255,255,.58); font-size: .87rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.hc-footer-badge { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.35rem; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: .55rem .8rem; color: rgba(255,255,255,.68); font-size: .7rem; }
.hc-footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.11); padding-block: 1.25rem calc(1.25rem + var(--hc-safe-bottom)); font-size: .72rem; }
.hc-back-to-top { position: fixed; z-index: 180; right: max(18px, calc(18px + var(--hc-safe-right))); bottom: max(18px, calc(18px + var(--hc-safe-bottom))); width: 48px; min-width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.65); background: var(--hc-ink); opacity: 0; transform: translateY(12px); box-shadow: var(--hc-shadow); transition: opacity .2s ease, transform .2s ease; }
.hc-back-to-top[hidden] { display: none; }
.hc-back-to-top.is-visible { opacity: 1; transform: translateY(0); }

/* Empty and 404 */
.hc-empty { max-width: 720px; margin: 4rem auto; text-align: center; }
.hc-empty-code { font-family: Georgia, serif; font-size: clamp(6rem, 18vw, 12rem); line-height: .8; color: var(--hc-accent); opacity: .34; }
.hc-empty h1 { font-family: Georgia, serif; font-size: clamp(2.1rem, 6vw, 3.2rem); }

/* Motion */
.hc-reveal-ready .hc-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease var(--hc-reveal-delay, 0ms), transform .65s cubic-bezier(.2,.7,.2,1) var(--hc-reveal-delay, 0ms); }
.hc-reveal-ready .hc-reveal.is-visible { opacity: 1; transform: translateY(0); }
.hc-animations-enabled .hc-hero-visual { animation: hc-float 7s ease-in-out infinite; }
.hc-animations-enabled .hc-floating-note--top { animation: hc-note-float 5.5s ease-in-out infinite; }
.hc-animations-enabled .hc-floating-note--bottom { animation: hc-note-float 6.5s ease-in-out 1s infinite; }
@keyframes hc-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hc-note-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (hover: hover) and (pointer: fine) {
  button:hover, .button:hover, .wp-element-button:hover { background: var(--hc-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(24,33,29,.14); }
  .hc-button--secondary:hover { border-color: var(--hc-accent); background: #fff; color: var(--hc-ink); }
  .primary-navigation > ul > li > a:hover { background: rgba(255,255,255,.82); color: var(--hc-accent-dark); }
  .hc-icon-button:hover { background: var(--hc-ink); color: #fff; }
  .hc-topic-card:hover { transform: translateY(-6px); border-color: var(--hc-accent); box-shadow: var(--hc-shadow); }
  .hc-topic-card:hover .hc-topic-arrow { transform: translateX(3px); background: var(--hc-ink); color: #fff; }
  .hc-card:hover { transform: translateY(-6px); border-color: var(--hc-accent); box-shadow: var(--hc-shadow); }
  .hc-card:hover .hc-card-media img, .hc-feature-story:hover .hc-feature-story-media img { transform: scale(1.045); }
  .hc-card:hover .hc-card-media::after { opacity: 1; }
  .hc-card:hover .hc-card-media-arrow { opacity: 1; transform: translateY(0); }
  .hc-share-rail a:hover, .hc-share-rail button:hover { background: var(--hc-ink); color: #fff; transform: translateY(-1px); }
  .hc-toc a:hover { color: var(--hc-ink); }
  .hc-post-navigation a:hover { transform: translateY(-3px); border-color: var(--hc-accent); box-shadow: var(--hc-shadow-sm); }
}

/* Large tablet and small laptop */
@media (max-width: 1180px) {
  .hc-article-layout { grid-template-columns: 52px minmax(0, var(--hc-reading)); max-width: 920px; }
  .hc-article-aside { display: none; }
  .hc-toc--mobile { display: block; }
  .primary-navigation a { padding-inline: .66rem; font-size: .84rem; }
  .hc-header-cta { display: none; }
}

/* Mobile navigation breakpoint */
@media (max-width: 1024px) {
  :root { --hc-header-height: 76px; }
  .site-header { background: rgba(244,242,236,.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .admin-bar .site-header { top: 46px; }
  .admin-bar .hc-reading-progress { top: 46px; }
  .hc-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .hc-menu-toggle { display: inline-flex; }
  .primary-navigation {
    position: fixed;
    z-index: 300;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 91vw);
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-self: auto;
    border-left: 1px solid var(--hc-line);
    background: var(--hc-bg);
    padding: calc(1rem + var(--hc-safe-top)) calc(1rem + var(--hc-safe-right)) calc(1.25rem + var(--hc-safe-bottom)) 1rem;
    box-shadow: -24px 0 70px rgba(24,33,29,.18);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 0 100%);
    transition: clip-path .28s cubic-bezier(.2,.7,.2,1), opacity .2s ease, visibility .28s ease;
  }
  .primary-navigation.is-open { visibility: visible; opacity: 1; pointer-events: auto; clip-path: inset(0); }
  .hc-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hc-line); }
  .hc-mobile-nav-head strong { font-family: Georgia, serif; font-size: 1.35rem; }
  .primary-navigation ul { display: block; }
  .primary-navigation li { display: grid; grid-template-columns: minmax(0, 1fr) 48px; border-bottom: 1px solid var(--hc-line); }
  .primary-navigation li > a { min-height: 54px; border-radius: 0; padding: .85rem .3rem; font-size: 1rem; white-space: normal; }
  .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { background: transparent; color: var(--hc-accent-dark); }
  .hc-submenu-toggle { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 48px; min-width: 48px; min-height: 48px; padding: 0; border-radius: 12px; background: transparent; color: var(--hc-ink); box-shadow: none; }
  .hc-submenu-toggle svg { transition: transform .2s ease; }
  .hc-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .primary-navigation .sub-menu { grid-column: 1 / -1; position: static; min-width: 0; max-width: none; width: auto; padding: 0 0 .7rem .8rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .primary-navigation .sub-menu[hidden] { display: none; }
  .primary-navigation .sub-menu li { border-bottom: 0; }
  .primary-navigation .sub-menu a { min-height: 46px; padding: .65rem .7rem; border-radius: 10px; color: var(--hc-muted); font-size: .9rem; }
  .primary-navigation .hc-mobile-nav-cta { display: flex; justify-content: center; width: 100%; margin-top: 1.25rem; color: #fff; }
  .hc-hero { min-height: auto; }
  .hc-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr); gap: 2rem; }
  .hc-hero h1 { font-size: clamp(3rem, 7.8vw, 5.6rem); }
  .hc-hero-visual { min-height: 470px; }
  .hc-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-feature-story { grid-template-columns: 1fr; }
  .hc-feature-story-media { min-height: 420px; }
  .hc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-content-layout { grid-template-columns: 1fr; }
  .hc-sidebar { position: static; }
  .hc-method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-footer-main { grid-template-columns: 1.15fr .85fr .85fr; }
}

/* Tablet portrait */
@media (max-width: 820px) {
  .site-description { display: none; }
  .hc-hero { padding-top: 3.5rem; }
  .hc-hero-grid { grid-template-columns: 1fr; }
  .hc-hero-content { max-width: 760px; }
  .hc-hero-visual { width: min(100%, 620px); min-height: 470px; margin-inline: auto; }
  .hc-trust-grid { grid-template-columns: 1fr; }
  .hc-trust-grid > div { border-right: 0; border-bottom: 1px solid var(--hc-line); padding-inline: 0; }
  .hc-trust-grid > div:last-child { border-bottom: 0; }
  .hc-section-heading, .hc-section-heading--inline { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .hc-section-heading--inline .button { justify-self: start; }
  .hc-feature-story-content { padding: 2rem; }
  .hc-method-grid { grid-template-columns: 1fr; }
  .hc-method-card { min-height: 230px; }
  .hc-method-card h3 { margin-top: 2.8rem; }
  .hc-cta { grid-template-columns: 1fr; }
  .hc-cta .button { justify-self: start; }
  .hc-post-list .hc-card { grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); }
  .hc-article-layout { grid-template-columns: 1fr; width: min(calc(100% - 32px), var(--hc-reading)); }
  .hc-share-rail { position: static; display: flex; flex-wrap: wrap; order: 2; margin-top: 1.5rem; }
  .hc-article-content { order: 1; }
  .hc-footer-main { grid-template-columns: 1fr 1fr; }
  .hc-footer-brand { grid-column: 1 / -1; }
}

/* Smartphone */
@media (max-width: 640px) {
  :root { --hc-header-height: 70px; --hc-radius-lg: 26px; }
  body { line-height: 1.66; }
  .hc-container, .hc-reading { width: min(calc(100% - 28px), var(--hc-container)); }
  .hc-header-inner { width: calc(100% - 20px); gap: .45rem; }
  .custom-logo { max-width: 126px; max-height: 42px; }
  .site-title { font-size: 1.18rem; }
  .hc-header-actions { gap: .35rem; }
  .hc-icon-button { width: 44px; min-width: 44px; min-height: 44px; }
  .hc-hero { padding-block: 3.1rem 4.5rem; }
  .hc-hero-grid-pattern { background-size: 42px 42px; }
  .hc-hero h1 { font-size: clamp(2.65rem, 13.5vw, 4.2rem); line-height: .99; letter-spacing: -.055em; }
  .hc-hero-copy { margin-top: 1.2rem; font-size: 1.04rem; }
  .hc-hero-actions { display: grid; grid-template-columns: 1fr; }
  .hc-hero-actions .button { width: 100%; }
  .hc-hero-proof { display: grid; grid-template-columns: 1fr; gap: .55rem; }
  .hc-hero-visual { min-height: 340px; margin-top: .8rem; }
  .hc-architecture-card { inset: 0 3% 5% 3%; border-radius: 42% 10% 24% 10%; }
  .hc-sun-disc { width: 88px; }
  .hc-floating-note { padding: .75rem .8rem; border-radius: 16px; }
  .hc-floating-note strong { font-size: .88rem; }
  .hc-floating-note--top { left: -1%; top: 0; }
  .hc-floating-note--bottom { right: -1%; max-width: 220px; }
  .hc-trust-grid > div { padding-block: 1rem; }
  .hc-section { padding-block: 4.5rem; }
  .hc-section-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hc-topic-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 340px); grid-template-columns: none; gap: .8rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding: .2rem max(0px, calc((100vw - 100%) / 2)) 1rem; scrollbar-width: thin; }
  .hc-topic-card { min-height: 260px; scroll-snap-align: start; }
  .hc-grid--3, .hc-grid--4 { grid-template-columns: 1fr; }
  .hc-card-body { padding: 1.15rem; }
  .hc-feature-story { min-height: 0; }
  .hc-feature-story-media { min-height: 280px; }
  .hc-feature-story-content { padding: 1.55rem; }
  .hc-feature-story h2 { font-size: 2.15rem; }
  .hc-cta { padding: 1.6rem; }
  .hc-cta .button { width: 100%; }
  .hc-page-header { padding-top: 2.7rem; }
  .hc-page-header h1 { font-size: clamp(2.45rem, 12vw, 3.9rem); }
  .hc-post-list .hc-card { grid-template-columns: 1fr; }
  .hc-post-list .hc-card-media { aspect-ratio: 16/9; }
  .hc-article-header { padding-top: 2.7rem; }
  .hc-article-header h1 { font-size: clamp(2.5rem, 12.2vw, 4.2rem); }
  .hc-featured-image { width: calc(100% - 20px); }
  .hc-featured-image img { border-radius: 20px; }
  .hc-article-layout { width: calc(100% - 28px); }
  .hc-share-rail { gap: .4rem; }
  .hc-share-rail a, .hc-share-rail button { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  .entry-content { font-size: 1rem; }
  .entry-content h2 { margin-top: 2.7rem; }
  .entry-content blockquote { padding: 1rem 1.1rem; }
  .alignwide, .alignfull { width: 100%; margin-left: 0; transform: none; }
  .hc-author-box { grid-template-columns: 64px 1fr; gap: .8rem; padding: 1rem; }
  .hc-author-box img { width: 64px; height: 64px; }
  .hc-post-navigation { grid-template-columns: 1fr; }
  .hc-tool-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .search-form .search-submit { width: 100%; }
  .hc-footer-main { grid-template-columns: 1fr; }
  .hc-footer-brand { grid-column: auto; }
  .hc-footer-bottom { flex-direction: column; }
  .hc-ad-zone--leaderboard, .hc-ad-zone--footer { width: calc(100% - 20px); min-height: 100px; }
}

/* Very small smartphones */
@media (max-width: 390px) {
  .hc-header-inner { width: calc(100% - 16px); }
  .custom-logo { max-width: 105px; }
  .site-title { max-width: 145px; font-size: 1.08rem; }
  .hc-hero h1 { font-size: clamp(2.4rem, 13vw, 3.35rem); }
  .hc-hero-visual { min-height: 300px; }
  .hc-floating-note--top { max-width: 180px; }
  .hc-floating-note--bottom { max-width: 190px; }
  .hc-material-swatches span { width: 22px; height: 22px; }
  .hc-section-title { font-size: 2.05rem; }
  .hc-topic-grid { grid-auto-columns: 88vw; }
  .hc-page-header h1, .hc-article-header h1 { overflow-wrap: anywhere; }
  .hc-byline { gap: .45rem .75rem; }
  .hc-search-dialog { padding: 1.1rem; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
  .primary-navigation { width: min(520px, 78vw); }
  .hc-search-panel { padding-top: max(16px, var(--hc-safe-top)); }
  .hc-search-dialog { max-height: calc(100dvh - 32px); }
  .hc-hero { min-height: auto; padding-block: 2.5rem; }
  .hc-hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hc-hero-visual { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hc-reveal { opacity: 1 !important; transform: none !important; }
}

@media (forced-colors: active) {
  .hc-icon-button, .hc-card, .hc-topic-card, .widget, .hc-tool, .hc-author-box, .hc-post-navigation a { border: 1px solid ButtonText; }
  .hc-architecture-card, .hc-card-placeholder { background: Canvas; }
}

@media print {
  .site-header, .site-footer, .hc-share-rail, .hc-ad-zone, .comments-area, .hc-post-navigation, .hc-related-section, .hc-reading-progress, .hc-back-to-top, .hc-toc { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hc-article-layout, .hc-article-content { display: block; width: 100%; }
  .hc-featured-image { width: 100%; }
  a { color: #000; text-decoration: none; }
}


/* Navigation remains usable if JavaScript is blocked or fails to load. */
@media (max-width: 1024px) {
  html.no-js .site-header { position: relative; }
  html.no-js .hc-header-inner { height: auto; min-height: var(--hc-header-height); grid-template-columns: minmax(0, 1fr); padding-block: .7rem; }
  html.no-js .hc-header-actions { display: none; }
  html.no-js .primary-navigation { position: static; width: 100%; max-width: none; visibility: visible; opacity: 1; pointer-events: auto; clip-path: none; overflow: visible; border: 0; border-top: 1px solid var(--hc-line); padding: .7rem 0 0; box-shadow: none; background: transparent; }
  html.no-js .hc-mobile-nav-head, html.no-js .primary-navigation .hc-mobile-nav-cta, html.no-js .hc-submenu-toggle { display: none; }
  html.no-js .primary-navigation ul { display: block; }
  html.no-js .primary-navigation li { display: block; }
  html.no-js .primary-navigation .sub-menu, html.no-js .primary-navigation .sub-menu[hidden] { display: block; padding-left: 1rem; }
  html.no-js .hc-hero { min-height: auto; }
}
