/* The China Guys — static rebuild stylesheet
   Design tokens taken from the original Astra/Elementor site: Rosario type,
   rose accent #d24a59, dark red #902729, warm off-white backgrounds. */

:root {
  --font: "Rosario", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #fffbfb;
  --bg-alt: #f9f6f1;
  --bg-alt2: #f5f3ef;
  --pink: #fff1f1;
  --rose: #f3e8ee;
  --white: #ffffff;
  --accent: #d24a59;
  --accent-dark: #902729;
  --text: #464946;
  --heading: #282a28;
  --muted: #757575;
  --line: #e9e2e2;
  --footer-bg: #2f3439;
  --footer-bg2: #3e4347;
  --footer-text: #f9f9f9;
  --link: #d24a59;
  --link-hover: #e79ca5;
  --btn-hover: #db6e7b;
  --nav: #665555;
  --dots: #b88ea3;
  --max: 1200px;
  --mid: 1050px;
  --narrow: 800px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(40, 42, 40, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--link-hover); text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--heading); font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--accent); }
h1 { font-size: 2.6rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
strong { font-weight: 700; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.container--mid { max-width: var(--mid); }
.container--narrow { max-width: var(--narrow); }
.text-center { text-align: center; }
.text-left, .section__title.text-left { text-align: left; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent-dark); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.accent { color: var(--accent); }
.accent-dark { color: var(--accent-dark); }
.kicker { text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.125rem; font-weight: 600; color: #717271; margin-bottom: 0.3em; }
.lead { font-size: 1.25rem; line-height: 1.4; color: var(--heading); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover, .btn:focus { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--bg); text-decoration: none; }
.btn--outline-light { background: transparent; border-color: #f9f9f9; color: #fff; }
.btn--outline-light:hover, .btn--outline-light:focus { background: rgba(210, 74, 89, 0.8); border-color: #f9f9f9; color: #fff; }
.btn--accent { background: var(--accent); }
.btn--small { padding: 9px 20px; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--ghost:hover { background: var(--btn-hover); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.link-arrow svg { flex: none; transition: transform 0.3s; }
.link-arrow:hover, .link-arrow:focus { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid #f3ebee; position: relative; z-index: 20; }
.topbar { background: var(--bg); font-size: 0.85rem; border-bottom: 1px solid #f3e8e3; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; min-height: 42px; padding-block: 8px; }
.topbar .social svg { width: 15px; height: 15px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.social a { color: var(--heading); display: inline-flex; align-items: center; gap: 6px; }
.social a:hover { color: var(--btn-hover); }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.logo img { width: 160px; height: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav__item { position: relative; }
.nav__item > a { color: var(--nav); font-size: 1.05rem; padding: 6px 0; display: inline-block; }
.nav__item > a:hover, .nav__item:hover > a, .nav__item > a[aria-current] { color: var(--accent); text-decoration: none; }
.nav__item:hover .sub-toggle::after { border-color: var(--accent); }
.sub-toggle { background: none; border: 0; padding: 4px; cursor: pointer; width: 20px; height: 20px; position: relative; vertical-align: middle; }
.sub-toggle::after { content: ""; position: absolute; left: 5px; top: 3px; width: 7px; height: 7px; border-right: 1.5px solid var(--heading); border-bottom: 1.5px solid var(--heading); transform: rotate(45deg); }
.sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; left: -12px; top: 100%; min-width: 260px;
  background: #fff; box-shadow: 0 8px 24px rgba(40, 42, 40, 0.12); border-radius: var(--radius);
  display: none;
}
.sub a { display: block; padding: 8px 18px; color: var(--nav); }
.sub a:hover { background: var(--pink); color: var(--accent); text-decoration: none; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { display: block; }
.search-form { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px 4px 2px 14px; }
.search-form input { border: 0; background: transparent; font: inherit; font-size: 0.95rem; width: 130px; color: var(--text); outline: none; }
.search-form button { border: 0; background: transparent; color: var(--heading); cursor: pointer; padding: 6px; display: inline-flex; }
.search-form button:hover { color: var(--accent); }
.search-form--aside { padding-left: 14px; margin-bottom: 14px; }
.search-form--aside input { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle__bars { display: block; width: 24px; height: 2px; background: var(--heading); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--heading); }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--heading) var(--hero-img) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.hero__inner { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: flex-end; padding-block: 60px; }
.hero__inner--center { justify-content: center; text-align: center; flex-direction: column; min-height: 420px; }
.hero__text { max-width: 560px; text-align: right; }
.hero__title { color: #f9f9f9; font-size: 3.75rem; font-weight: 400; margin-bottom: 0.4em; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero__sub { color: #f9f9f9; font-size: 1.3rem; margin-bottom: 1.4em; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero--home .btn { font-size: 1.3rem; padding: 14px 34px; }
.hero--page .hero__title { font-size: 3rem; font-weight: 700; }
.hero--page .hero__sub { font-size: 2.25rem; font-weight: 400; margin-bottom: 1em; }
.hero--page .btn { font-size: 1.5rem; font-weight: 600; padding: 14px 36px; }

/* Sections */
.section { padding-block: 80px; background: #fff; }
.section--rule { border-top: 2px solid #f7f7f7; }
.section--rule-thin { border-top: 1px solid #f7f7f7; }
.section--tint { background: var(--bg); }
.section--alt { background: var(--bg); }
.section--white { background: #fff; }
.section__title { text-align: center; margin-bottom: 0.6em; }
.section__title a { color: inherit; }
.section__sub { text-align: center; color: var(--accent-dark); font-size: 2rem; font-weight: 600; margin-top: -0.4em; }
.section__lead { max-width: 900px; margin-bottom: 2em; }
.band { padding-block: 22px; }
.band--rose { background: #f3e8ee; border-top: 2px solid #e0e0e0; }
.band h2 { margin: 0; }
.band--cta { background: #f3eaee; border-top: 1px solid #b88ea3; box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); padding: 24px 0 30px; }
.band--cta .band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band--cta h3 { margin-bottom: 0.25em; }
.band--cta p { margin: 0; font-weight: 600; color: var(--heading); }
.cta { background: var(--bg); border-top: 2px solid #f7f7f7; padding: 60px 0 40px; }
.cta--thin { border-top: 1px solid #f3eaee; }
.cta .section__title { font-size: 2rem; margin-bottom: 0.4em; }

/* Cited-by logos: continuous marquee (the original was a 5-up autoplaying carousel) */
.cited { background: var(--pink); padding-block: 28px; }
.cited__inner { display: flex; align-items: center; gap: 32px; }
.cited__title { font-size: 1rem; margin: 0; white-space: nowrap; flex: none; }
.marquee { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.cited__logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex: none; }
.cited__logos li { padding-inline: 32px; }
.cited__logos img { height: 84px; width: auto; max-width: none; opacity: 0.9; transition: opacity 0.3s, transform 0.3s; }
.cited__logos li:hover img { opacity: 1; transform: scale(1.05); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { mask-image: none; -webkit-mask-image: none; } .cited__logos { flex-wrap: wrap; row-gap: 12px; } .marquee__track > .cited__logos + .cited__logos { display: none; } }

/* Feature cards (home) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.feature { background: var(--bg-alt); border: 1px solid #f4ece2; border-radius: 4px; box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); padding: 52px 30px; display: flex; flex-direction: column; transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
.feature:hover { background: var(--pink); border-color: rgba(255, 219, 227, 0.34); box-shadow: 0 0 25px rgba(51, 51, 51, 0.1); }
.feature:hover .feature__title a { color: var(--accent-dark); }
.feature__icon { width: 64px; height: 64px; margin-bottom: 20px; }
.feature__title { font-size: 1.75rem; margin-bottom: 0.6em; }
.feature__title a { color: var(--heading); }
.feature p { flex: 1; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-block: 24px; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__text h3, .split__text h4 { margin-top: 0; }

/* Post cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 32px; }
.card { background: #fff; border: 1px solid #f4ece2; border-radius: 4px; box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.card:hover { box-shadow: 0 8px 28px rgba(40, 42, 40, 0.12); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; margin-bottom: 0.5em; }
.card__kicker a { color: #844866; font-weight: 700; }
.card__kicker a:hover { color: var(--accent); }
.card__title { font-size: 1.25rem; margin-bottom: 0.5em; }
.card__title a { color: var(--heading); }
.card:hover .card__title a, .card__title a:hover { color: var(--accent); }
.card__excerpt { font-size: 0.95rem; color: var(--text); flex: 1; }
.card__meta { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Featured Insights overlay cards (home): image with gradient caption, excerpt slides in on hover */
.ocard-grid { display: grid; gap: 15px; margin-bottom: 20px; }
.ocard-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ocard-grid--3 { grid-template-columns: repeat(3, 1fr); }
.featured .ocard-grid + .ocard-grid { margin-bottom: 40px; }
.ocard { position: relative; height: 318px; overflow: hidden; background: var(--heading); }
.ocard__link { display: block; position: absolute; inset: 0; color: #fffbfb; }
.ocard__link:hover { color: #fffbfb; }
.ocard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ocard:hover .ocard__img { transform: scale(1.1); }
.ocard__overlay { position: absolute; inset: 0; background: #000; opacity: 0.18; transition: opacity 0.3s; }
.ocard:hover .ocard__overlay { opacity: 0.35; }
.ocard__desc { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 30px 30px; background: linear-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.65) 70%); }
.ocard__title { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: #fffbfb; }
.ocard-grid--2 .ocard__title { font-size: 1.75rem; }
.ocard__excerpt { display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: 1rem; line-height: 1.5; color: #fffbfb; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; }
.ocard:hover .ocard__excerpt, .ocard:focus-within .ocard__excerpt { max-height: 72px; opacity: 1; margin-top: 15px; }
.ocard__cat { position: absolute; top: 15px; left: 15px; background: #fffbfb; color: #844866; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px; line-height: 1.2; transition: background 0.3s, color 0.3s; }
.ocard__cat:hover { background: #fffbfb; color: var(--accent); }

/* Testimonials: scroll-snap slider, 2 per view (1 on phones), dots + autoplay in main.js */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--dots); opacity: 0.35; cursor: pointer; transition: opacity 0.3s, transform 0.3s; }
.slider__dot[aria-current="true"] { opacity: 1; transform: scale(1.2); }
.slider__arrow { position: absolute; top: 45%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; z-index: 2; }
.slider__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.slider__arrow--prev { left: -20px; }
.slider__arrow--next { right: -20px; }
.testimonial { margin: 0; height: 100%; background: #fff; border: 1px solid #f4ece2; border-radius: 4px; box-shadow: 0 0 10px rgba(51, 51, 51, 0.08); padding: 30px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 18px; flex: 1; font-size: 0.98rem; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* Hub pages */
.hub main { background: #f3f3f3 url('/media/2020/06/Background_1366x729.webp') top center/contain no-repeat; position: relative; }
.hub main::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.9); pointer-events: none; }
.hub main > * { position: relative; }
.hub--join main, .hub--job main { background-color: #e7dfd1; background-image: url('/media/2020/06/81604.webp'); }
.hub .section, .hub .hub-intro { background: transparent; }
.hub-hero { position: relative; }
.hub-hero .container { position: relative; padding-block: 56px; text-align: center; }
.hub-hero__title { margin: 0; font-size: 3.75rem; }
.hub-intro { padding-block: 56px; }
.hub-intro__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.hub-intro__text h2 { font-size: 2.25rem; }
.hub-intro__aside {
  background: rgba(255, 251, 251, 0.9) url('/media/2020/06/TCG-Icon-Watermark.webp') right -20px bottom -20px/160px no-repeat;
  border: 1px solid #f3e8ee; border-radius: 30px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.15); padding: 39px; text-align: center;
}
.hub-intro__aside h3 { color: #21080b; font-weight: 700; font-size: 1.6rem; margin-bottom: 0.3em; }
.aside-links { list-style: none; padding: 0; margin: 0; text-align: left; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: 8px 4px; color: var(--heading); }
.aside-links a:hover { color: var(--accent); padding-left: 8px; transition: padding 0.2s, color 0.2s; }
.aside-links a[aria-current] { color: var(--accent-dark); font-weight: 700; }
.aside-links--big a { font-size: 1.15rem; padding: 12px 4px; }
.hub-list .section__title { font-size: 2rem; margin-bottom: 0.8em; }
.hub-list .section__lead { margin-top: -0.6em; }
.job-body h2 { font-size: 2.25rem; }
.job-body ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.job-body li { margin-bottom: 0.35em; }
.job-body .lead { color: var(--accent); font-weight: 600; font-size: 1.25rem; }
.job-body h3 { margin-top: 1.4em; font-size: 2rem; }
.job-body h4 { margin-top: 1em; }
.hub--join .lead { color: var(--accent); font-weight: 600; font-size: 1.25rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; }
.pagination__link { font-weight: 600; }
.pagination__link:hover { color: var(--accent-dark); }
.pagination__status { color: var(--muted); font-size: 0.9rem; }

/* Topic filters on the hub pages */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters__label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 8px; }
.filters__btn { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 6px 16px; font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; color: var(--heading); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filters__btn:hover { border-color: var(--accent); color: var(--accent); }
.filters__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters__more { text-align: center; margin: 8px 0 0; }
.filters__empty { color: var(--muted); }
.card[hidden] { display: none; }

/* Documents (cheat sheets & whitepapers) */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.doc { background: #fff; border: 1px solid #f4ece2; border-radius: 4px; box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); padding: 24px; }
.doc__preview img { border: 1px solid var(--line); margin-bottom: 16px; }
.doc__title { font-size: 1.35rem; }
.doc__title a { color: var(--heading); }
.doc__preview img { transition: box-shadow 0.3s, transform 0.3s; }
.doc__preview:hover img { box-shadow: 0 8px 28px rgba(40, 42, 40, 0.15); transform: translateY(-3px); }
.doc .btn { margin-top: 6px; margin-right: 8px; }
.doc--cover { grid-column: 1 / -1; display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.doc--cover .doc__preview img { margin: 0; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program { background: #fff; border-radius: 4px; box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); padding: 28px 40px 40px; display: flex; flex-direction: column; }
.program__kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--accent-dark); margin-bottom: 0.3em; }
.program__title { font-size: 1.5rem; }
.program { transition: background 0.3s, box-shadow 0.3s; }
.program:hover { background: var(--pink); box-shadow: 0 0 25px rgba(51, 51, 51, 0.1); }
.program__title a { color: var(--heading); }
.program:hover .program__title a { color: var(--accent-dark); }
.program p { flex: 1; }

/* Cheat sheet landing pages */
.sheet { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.sheet__text { padding: 64px 56px; background: var(--bg); }
.cheat-sheet main { background: #fff; }
.sheet__heading { font-size: 2rem; color: #474747; }
.sheet__preview { display: block; margin-top: 28px; }
.sheet__preview img { border: 1px solid var(--line); box-shadow: var(--shadow); }
.sheet__hero { position: relative; color: #fff; background: #474747 var(--hero-img) center/cover no-repeat; display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; }
.sheet__hero::before { content: ""; position: absolute; inset: 0; background: rgba(71, 71, 71, 0.72); }
.sheet__hero h1, .sheet__hero p { position: relative; color: #fff; }
.sheet__hero h1 { font-size: 2rem; font-weight: 400; }
.sheet__tag { font-size: 2rem; font-weight: 700; }

/* PRD whitepaper landing */
.prd-hero { position: relative; color: #fff; background: #050113 var(--hero-img) center/cover no-repeat; }
.prd-hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 1, 19, 0.7); }
.prd-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 64px; }
.prd-hero__cover img { max-width: 420px; margin: 0 auto; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.prd-hero__text h1 { color: #fff; font-size: 2.5rem; }
.prd-hero__text p { font-size: 1.15rem; }
.prd-glance { background: #f7f7f7; padding-top: 100px; }
.prd-authors { background: #fff; }
.rule-heading { display: flex; align-items: center; gap: 24px; text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 1.2em; }
.rule-heading::before, .rule-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { background: var(--bg); border: 1px solid var(--line); padding: 28px 12px; }
.stat__value { display: block; font-size: 2.2rem; color: var(--accent-dark); font-weight: 700; }
.stat__label { display: block; color: var(--muted); }
.prd-contents { background: #f7f7f7; padding-top: 20px; }
.prd-authors { padding: 100px 0 120px; }
.prd .cta { padding: 100px 0 80px; border-top: 1px solid #f3eaee; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.contributors { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.contributor { display: flex; gap: 24px; align-items: flex-start; background: #fff; border-radius: 30px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.15); padding: 40px; }
.contributor img { width: 80px; height: 80px; flex: none; border-radius: 50%; }

/* Anchor nav (Business Advisory) */
.anchor-nav { background: var(--rose); position: sticky; top: 0; z-index: 10; }
.anchor-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; }
.anchor-nav a { display: inline-block; padding: 20px 0; color: var(--heading); font-size: 1.05rem; }
.anchor-nav a:hover { color: var(--accent); text-decoration: none; }
.advisory .section { padding: 80px 0 100px; }
.advisory .section > .container > h2, .advisory .split__text > h2 { font-size: 1.125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #717271; margin-bottom: 0.6em; }
.advisory .section h2 + h3 { margin-top: 0; margin-bottom: 0.5em; font-size: 2rem; }
.advisory .split { margin: 64px 0 0; }
.advisory .split--first { margin-top: 0; }
.advisory .split__text h4 { font-size: 1.25rem; margin-bottom: 0.6em; }
.split--tall .split__media img { max-height: 620px; width: auto; margin: 0 auto; }
[id] { scroll-margin-top: 64px; }

/* Archives */
.archive-head { background: var(--bg); border-bottom: 1px solid #f3ebee; padding-block: 44px; }
.archive-head h1 { margin-bottom: 0.2em; }
.archive-count { color: var(--muted); margin: 0; }

/* Single post */
.post { padding-top: 40px; }
.container--post { max-width: var(--narrow); }
.post__image { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.post__title { font-size: 2.2rem; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; margin-bottom: 2em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.post__byline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post__byline a { color: var(--accent-dark); font-weight: 600; }
.post__byline a:hover { color: var(--accent); }
.post__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dots); display: inline-block; }
.post__topics { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; background: var(--pink); color: var(--accent-dark); padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; transition: background 0.3s, color 0.3s; }
.tag:hover { background: var(--accent); color: #fff; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.2em; }
.entry-content img { margin: 0 auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-block-image.aligncenter { text-align: center; }
.entry-content .wp-block-spacer { max-height: 30px; }
.entry-content hr.wp-block-separator { border: 0; margin: 2em 0; }
.entry-content blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; color: var(--heading); font-style: italic; }
.entry-content .has-inline-color { font-weight: 700; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px; }
.entry-content iframe { max-width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 32px 48px; border-top: 1px solid var(--line); }
.post-nav__link { display: block; color: var(--heading); }
.post-nav__link:hover { color: var(--accent); }
.post-nav__link span { display: block; color: var(--muted); font-size: 0.85rem; }
.post-nav__next { text-align: right; }

/* Search page (Pagefind UI) */
.search #search { --pagefind-ui-font: var(--font); --pagefind-ui-primary: var(--accent-dark); --pagefind-ui-text: var(--text); --pagefind-ui-background: #fff; --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--pink); --pagefind-ui-border-radius: 4px; }

/* Footer */
.site-footer { background: var(--footer-bg2); color: var(--footer-text); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 50px 60px; }
.footer__heading { font-size: 1.25rem; color: #fff; margin-bottom: 0.8em; font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: var(--footer-text); }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.social--footer { flex-direction: column; gap: 8px; }
.social--footer a { color: var(--footer-text); }
.footer__bottom { background: var(--footer-bg); border-top: 3px solid #fff; padding-block: 24px; font-size: 0.8rem; color: #fff; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { margin: 0; }

/* About Us */
.about .band--rose { padding-block: 22px; }
.about .about-rows { padding: 40px 0 60px; }
.about .split { margin: 64px 0 0; }
.about .split:first-child { margin-top: 0; }
.about .split__text h3 { font-size: 2rem; }
.about .cta { border-top: 1px solid #f3eaee; }
.about .about-rows { background: var(--bg); }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid, .card-grid, .program-grid, .ocard-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .slider__arrow { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 3rem; }
  .hub-hero__title { font-size: 3rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid #f3ebee; box-shadow: 0 12px 24px rgba(40,42,40,0.12); padding: 8px 20px 20px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid #f3ebee; }
  .nav__item > a { padding: 14px 0; flex: 1; font-size: 1.1rem; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub-toggle::after { left: 17px; top: 15px; transition: transform 0.2s; }
  .has-sub.is-open > .sub-toggle::after { transform: rotate(-135deg); top: 20px; }
  .sub { position: static; display: none; box-shadow: none; background: transparent; width: 100%; padding: 0 0 10px; margin: 0; border-radius: 0; }
  .sub a { padding: 9px 0 9px 18px; border-left: 2px solid #f3e8ee; margin-left: 4px; font-size: 1rem; color: var(--text); }
  .sub a:hover { background: transparent; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .nav__search { padding-top: 16px; border-bottom: 0; }
  .search-form { width: 100%; }
  .search-form input { width: 100%; }
  .hero__inner { justify-content: center; }
  .hero__text { text-align: center; }
  .hero__title { font-size: 2.1rem; }
  .split, .hub-intro__grid, .prd-hero__grid, .contributors, .sheet, .doc-grid, .doc--cover { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; }
  .sheet__hero { order: -1; min-height: 320px; }
  .sheet__text { padding: 40px 20px; }
  .anchor-nav { display: none; }
  .rule-heading { font-size: 1.3rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 44px; }
  .feature-grid, .card-grid, .program-grid, .footer__grid, .stat-grid, .ocard-grid--2, .ocard-grid--3 { grid-template-columns: 1fr; }
  .ocard { height: 260px; }
  .ocard__excerpt { display: none; }
  .slider__track { grid-auto-columns: 100%; }
  .cited__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .cited__logos img { height: 56px; }
  .feature { padding: 36px 24px; }
  .advisory .section { padding: 48px 0 56px; }
  .advisory .split, .about .split { margin-top: 40px; }
  .hero__title, .hub-hero__title { font-size: 2.2rem; }
  .hero--page .hero__sub { font-size: 1.4rem; }
  .hero--page .btn, .hero--home .btn { font-size: 1.1rem; padding: 12px 26px; }
  .program { padding: 24px; }
  .filters__btn { font-size: 0.85rem; padding: 5px 13px; }
  .filters__label { width: 100%; margin: 0 0 2px; }
  .contributor { padding: 24px; flex-direction: column; }
  .hub-intro__aside { padding: 26px; border-radius: 16px; }
  h1, .hub-hero__title { font-size: 1.9rem; }
  .post__title { font-size: 1.7rem; }
  .prd-hero__text h1, .sheet__hero h1 { font-size: 2rem; }
  .logo img { width: 130px; }
}
