/*
Theme Name: FaceShape Pro
Theme URI: https://example.com/
Description: Professional face shape detector theme with an on-device AI detector, 7 face shape guides, calculator, hairstyle, glasses and beard finders, blog and SEO-ready structure. After activating, open Appearance > Site Setup.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Author: Your Name
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faceshape-pro
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #f5f6fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #111633;
  --muted: #565c78;
  --faint: #8a8fa8;
  --line: #e5e7f1;
  --line-2: #dcdff0;
  --violet: #7c3aed;
  --indigo: #4f46e5;
  --violet-soft: #efeafe;
  --fuchsia: #c026d3;
  --pink: #db2777;
  --pink-soft: #fde8f3;
  --blue: #2563eb;
  --teal: #0ea5e9;
  --blue-soft: #e3edff;
  --navy: #0e1124;
  --green: #16a34a;
  --amber-bg: #fefbea;
  --amber-line: #f5e7a8;
  --grad: linear-gradient(90deg, #7c3aed 0%, #a21caf 60%, #c026d3 100%);
  --btn-grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --btn-grad-hover: linear-gradient(135deg, #6d28d9 0%, #4338ca 100%);
  --grad-blue: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --shadow: 0 1px 2px rgba(17, 22, 51, .04), 0 12px 32px -20px rgba(49, 46, 129, .30);
  --shadow-lg: 0 24px 60px -30px rgba(49, 46, 129, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter Tight", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --header-h: 76px;

  /* detector measurement colours (also read by detector.js) */
  --fsd-c-fore: #c026d3;
  --fsd-c-cheek: #0ea5e9;
  --fsd-c-jaw: #d97706;
  --fsd-c-len: #7c3aed;
  --fsd-muted: var(--muted);

  /* shape accents */
  --a-violet: #8b5cf6; --a-violet-bg: #f5f0ff;
  --a-pink: #ec4899;   --a-pink-bg: #fdf0f7;
  --a-indigo: #6366f1; --a-indigo-bg: #eef0ff;
  --a-rose: #f43f5e;   --a-rose-bg: #fff1f3;
  --a-fuchsia: #d946ef; --a-fuchsia-bg: #fcf0fe;
  --a-purple: #a855f7; --a-purple-bg: #f7f0ff;
  --a-orange: #f97316; --a-orange-bg: #fff6ec;
}

:root[data-theme="dark"] {
  --bg: #0b0d1a;
  --bg-2: #10132a;
  --surface: #151a33;
  --surface-2: #1a1f3b;
  --ink: #eef0fb;
  --muted: #aeb3cc;
  --faint: #868ba6;
  --line: #262c4b;
  --line-2: #323a5e;
  --violet-soft: #251f4a;
  --pink-soft: #3a1c31;
  --blue-soft: #19264a;
  --amber-bg: #2a2412;
  --amber-line: #4a3f19;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --a-violet-bg: #211a36; --a-pink-bg: #2c1726; --a-indigo-bg: #1b1d3a; --a-rose-bg: #2c171d;
  --a-fuchsia-bg: #2a1630; --a-purple-bg: #231a36; --a-orange-bg: #2c1f14;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 0% -8%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(1000px 640px at 100% 0%, rgba(168, 85, 247, .09), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video, canvas { max-width: 100%; }
a { color: var(--violet); text-underline-offset: 3px; }
:root[data-theme="dark"] a { color: #c4a1ff; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; }
p, ul, ol, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; padding: 10px 16px; background: var(--surface); border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
:root[data-theme="dark"] .eyebrow { color: #c4a1ff; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 56px clamp(20px, 5vw, 64px); }
.panel--soft { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35)); }
:root[data-theme="dark"] .panel--soft { background: rgba(26, 23, 38, .6); }

/* ==========================================================================
   Buttons, chips, pills
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--grad { background: var(--btn-grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .75); }
.btn--grad:hover { background: var(--btn-grad-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(79, 70, 229, .85); }
.btn--blue { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .7); }
.btn--blue:hover { color: #fff; transform: translateY(-1px); }
.btn--outline { background: var(--surface); color: var(--indigo); border-color: #c7cbf5; }
:root[data-theme="dark"] .btn--outline { color: #9fbcff; border-color: #33446e; }
.btn--outline:hover { border-color: var(--indigo); color: var(--indigo); background: var(--violet-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; border: 1px solid currentColor; line-height: 1.4; }
.pill { display: block; padding: 8px 12px; border-radius: 10px; font-size: .8rem; line-height: 1.45; background: var(--violet-soft); color: #6b21a8; }
:root[data-theme="dark"] .pill { color: #d8b8ff; }
.pill--pink { background: var(--pink-soft); color: #9d174d; }
:root[data-theme="dark"] .pill--pink { color: #f9a8d4; }

.icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); flex: none; }
.icon-box svg { width: 20px; height: 20px; }
.icon-box--pink { background: var(--pink-soft); color: var(--pink); }
.icon-box--blue { background: var(--blue-soft); color: var(--blue); }
.icon-box--green { background: #e7f7ee; color: var(--green); }
:root[data-theme="dark"] .icon-box--green { background: #173024; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--navy); color: #c9cde4; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__msg { display: inline-flex; align-items: center; gap: 8px; }
.topbar__msg svg { width: 15px; height: 15px; color: #34d399; }
.topbar__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #e4e6f5; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -20px rgba(17, 22, 51, .35); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
:root[data-theme="dark"] .header { background: rgba(11, 13, 26, .9); }
.header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--btn-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9); }
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.01em; color: var(--ink); }
.brand__tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.brand img { max-height: 46px; width: auto; display: block; }

.nav { display: flex; align-items: center; margin: 0 auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav__drop > button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav__drop > button:hover, .nav__drop[data-open="true"] > button { color: var(--indigo); background: var(--violet-soft); }
.nav a[aria-current="page"] { color: var(--indigo); }
:root[data-theme="dark"] .nav a[aria-current="page"], :root[data-theme="dark"] .nav a:hover, :root[data-theme="dark"] .nav__drop > button:hover { color: #c7c9ff; }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 15px; height: 15px; transition: transform .15s ease; }
.nav__drop[data-open="true"] > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 300px; padding: 10px; list-style: none; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: none; }
.nav__menu--grid { display: none; grid-template-columns: 1fr 1fr; min-width: 420px; gap: 2px; }
.nav__drop[data-open="true"] .nav__menu { display: block; }
.nav__drop[data-open="true"] .nav__menu--grid { display: grid; }
.nav__menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; font-weight: 600; }
.nav__menu small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 1px; }
.nav__menu .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--violet-soft); color: var(--indigo); display: grid; place-items: center; flex: none; }
.nav__menu .ico svg { width: 18px; height: 18px; }
.nav__menu .ico svg.shape-ico { width: 16px; height: 20px; }
.nav__menu .shape-ico ellipse, .nav__menu .shape-ico path { fill: none; stroke: currentColor; stroke-width: 9; }
.nav__menu .nav__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav__menu .nav__all a { justify-content: center; color: var(--indigo); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--indigo); color: var(--indigo); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.nav-open .menu-btn .i-close { display: block; }
.nav-open .menu-btn .i-menu { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .header__cta { display: none; }
  .topbar__links { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 12px 22px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav__drop > button { width: 100%; padding: 12px 8px; font-size: 1.02rem; justify-content: space-between; }
  .nav__menu, .nav__menu--grid { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0; }
  .nav__menu--grid { grid-template-columns: 1fr 1fr; }
  .nav__menu a { justify-content: flex-start; padding: 8px; }
  .nav__menu small { display: none; }
  .nav > ul > li.nav__mobile-cta { display: block; margin-top: 12px; }
  .header__actions { margin-left: auto; }
}
.nav > ul > .nav__mobile-cta { display: none; }
.nav a.btn--grad, .nav a.btn--grad:hover { background: var(--btn-grad); color: #fff; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { text-align: center; padding: 56px 0 40px; }
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 920px; margin: 0 auto; }
.hero__sub { max-width: 680px; margin: 22px auto 0; color: var(--muted); font-size: 1.1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; list-style: none; padding: 0; font-size: .9rem; color: var(--muted); }
.badges li { display: inline-flex; align-items: center; gap: 7px; }
.badges svg { width: 17px; height: 17px; }

/* ==========================================================================
   Detector: method cards
   ========================================================================== */
.tool-section { padding: 36px 0 72px; }
.tool-head { text-align: center; margin-bottom: 22px; }
.tool-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
.tool-head p { margin-top: 6px; color: var(--muted); }
.tool { max-width: 900px; margin: 0 auto; min-height: 360px; display: flex; flex-direction: column; }
.fsd-panel { width: 100%; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method {
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 18px; padding: 30px 26px 22px;
  text-align: center; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s ease, background-color .15s ease;
}
.method--upload { border-color: #e7d6fb; }
.method--camera { border-color: #d3e1fb; }
:root[data-theme="dark"] .method--upload, :root[data-theme="dark"] .method--camera { border-color: var(--line-2); }
.method.is-over { border-color: var(--violet); border-style: dashed; background: var(--violet-soft); }
.method__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.method--camera .method__icon { background: var(--blue-soft); color: var(--blue); }
.method__icon svg { width: 28px; height: 28px; }
.method h3 { font-size: 1.3rem; font-weight: 700; }
.method > p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 8px; text-align: left; font-size: .9rem; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.method .btn { margin-top: auto; }
.method__hint { margin-top: 10px; font-size: .78rem; color: var(--faint); }

.tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; padding: 12px 18px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); font-size: .85rem; }
.tips strong { color: #b45309; }
:root[data-theme="dark"] .tips strong { color: #fbbf24; }
.tips span { display: inline-flex; align-items: center; gap: 6px; }
.tips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 14px; list-style: none; padding: 0; font-size: .8rem; color: var(--faint); }
.tech li { display: inline-flex; align-items: center; gap: 6px; }
.tech li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.tool-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: .95rem; }

/* camera, loading and error states */
.state-card { background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.cam { position: relative; aspect-ratio: 4 / 3; max-height: 520px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0f0d17; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam__guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam__guide ellipse { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 8; opacity: .9; }
.state-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.state-card--center { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scan { position: relative; width: 120px; height: 150px; border-radius: 50% / 45%; border: 3px solid var(--violet); overflow: hidden; margin-bottom: 20px; }
.scan span { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
@media (prefers-reduced-motion: no-preference) { .scan span { animation: scan 1.3s ease-in-out infinite alternate; } }
@keyframes scan { to { top: calc(100% - 4px); } }
.status { font-weight: 600; }
.error-title { font-size: 1.3rem; font-weight: 700; }
.error-text { color: var(--muted); margin-top: 8px; max-width: 30em; }

/* ==========================================================================
   Detector: result
   ========================================================================== */
.result { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.result__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.result__figure { position: sticky; top: calc(var(--header-h) + 20px); }
.result__figure canvas { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--violet-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; }
.fsd-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; flex: none; }
.fsd-m-fore { background: var(--fsd-c-fore); stroke: var(--fsd-c-fore); }
.fsd-m-cheek { background: var(--fsd-c-cheek); stroke: var(--fsd-c-cheek); }
.fsd-m-jaw { background: var(--fsd-c-jaw); stroke: var(--fsd-c-jaw); }
.fsd-m-len { background: var(--fsd-c-len); stroke: var(--fsd-c-len); }
svg .fsd-m-fore, svg .fsd-m-cheek, svg .fsd-m-jaw, svg .fsd-m-len { background: none; }
.result__pre { color: var(--muted); font-weight: 500; }
.result__shape { font-size: clamp(2.8rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-top: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; outline: none; padding-bottom: 4px; }
.result__summary { margin-top: 14px; font-size: 1.05rem; }
.result__guide { margin-top: 12px; font-weight: 600; }
.fsd-notes:empty { display: none; }
.fsd-notes { margin-top: 16px; display: grid; gap: 8px; }
.fsd-note { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--amber-bg); border: 1px solid var(--amber-line); font-size: .92rem; }
.result h3.result__h { font-size: 1.05rem; font-weight: 700; margin: 30px 0 12px; }
.fsd-bars { display: grid; gap: 8px; }
.fsd-bar { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 12px; font-size: .93rem; }
.fsd-bar__track { height: 10px; border-radius: 99px; background: var(--violet-soft); overflow: hidden; }
.fsd-bar__fill { height: 100%; border-radius: 99px; background: #c7cbf5; width: 0; transition: width .6s ease-out; }
.fsd-bar.is-top { font-weight: 700; }
.fsd-bar.is-top .fsd-bar__fill { background: var(--btn-grad); }
.fsd-bar__pct { text-align: right; font-variant-numeric: tabular-nums; }
.fsd-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
.fsd-metrics > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.fsd-metrics dt { display: flex; align-items: center; font-size: .85rem; color: var(--muted); }
.fsd-metrics dd { font-size: 1.3rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tabs { margin-top: 30px; }
.tabs__list { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs__list button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs__list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--fuchsia); }
.tabs__pane { padding-top: 16px; }
.tabs__pane h4 { font-size: .95rem; margin: 16px 0 6px; }
.tabs__pane h4:first-child { margin-top: 0; }
.tabs__pane ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.tabs__pane li { position: relative; padding-left: 18px; }
.tabs__pane li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.tabs__pane p { color: var(--muted); }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ==========================================================================
   Stats, measurement cards, steps, features
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow); }
.stat__num { display: block; font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .8rem; color: var(--muted); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.card__num { font-size: .8rem; font-weight: 700; color: var(--violet); }
.card--pink .card__num { color: var(--pink); }
.card h3 { font-size: 1rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.card .pill { margin-top: auto; }
.card p + .pill { margin-top: 16px; }

.interpret { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.interpret__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--btn-grad); color: #fff; display: grid; place-items: center; flex: none; }
.interpret__icon svg { width: 18px; height: 18px; }
.interpret h3 { font-size: .98rem; font-weight: 700; }
.interpret p { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.interpret strong { color: var(--ink); }

.face-strip { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.face-strip figure { width: 130px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); text-align: center; }
.face-strip svg { display: block; width: 100%; height: auto; background: linear-gradient(180deg, var(--violet-soft), var(--surface)); }
.face-strip figcaption { font-size: .8rem; font-weight: 600; padding: 6px 0 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -26px; width: 16px; height: 16px; border-top: 2px solid #c7cbf5; border-right: 2px solid #c7cbf5; transform: translateY(-50%) rotate(45deg); }
.step__art { height: 96px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; }
.step:nth-child(2) .step__art { background: var(--a-pink-bg); }
.step__art svg { height: 76px; width: auto; }
.step p { flex: 1; }

.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-bar h3 { font-size: 1rem; font-weight: 700; }
.cta-bar p { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* benefits + article */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; margin: 0 auto; }
.benefit { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.benefit h3 { font-size: .95rem; font-weight: 700; }
.benefit p { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.article { max-width: 900px; margin: 44px auto 0; }
.article h3 { font-size: 1.2rem; font-weight: 700; margin-top: 28px; }
.article h3:first-child { margin-top: 0; }
.article p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.article strong { color: var(--ink); }
.figure svg { display: block; width: 100%; height: auto; background: linear-gradient(180deg, var(--violet-soft), var(--surface)); }
.figure { max-width: 320px; margin: 30px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.figure figcaption { padding: 10px 14px 14px; font-size: .8rem; text-align: center; color: var(--muted); }

/* ==========================================================================
   Face shape cards
   ========================================================================== */
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shape-card { --ac: var(--a-violet); --ac-bg: var(--a-violet-bg); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--ac-bg); border: 1.5px solid color-mix(in srgb, var(--ac) 35%, transparent); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.shape-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.portrait { overflow: visible; }
.shape-card__art { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 14%, #fff), color-mix(in srgb, var(--ac) 6%, #fff)); aspect-ratio: 1 / 0.86; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
:root[data-theme="dark"] .shape-card__art { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 22%, #1a1726), #1a1726); }
.shape-card__art svg { height: 94%; width: auto; display: block; }
.shape-card__body { padding: 18px 18px 14px; display: flex; flex-direction: column; flex: 1; }
.shape-card__head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ac) 20%, transparent); margin-bottom: 12px; }
.shape-card__icon { width: 34px; height: 40px; flex: none; }
.shape-card__icon path, .shape-card__icon ellipse { fill: color-mix(in srgb, var(--ac) 18%, transparent); stroke: var(--ac); stroke-width: 5; }
.shape-card h3 { font-size: 1.08rem; font-weight: 700; }
.shape-card h3 a { color: inherit; text-decoration: none; }
.shape-card h3 a::after { content: ""; position: absolute; inset: 0; }
.shape-card { position: relative; }
.shape-card__tag { font-size: .8rem; font-style: italic; color: var(--muted); }
.shape-card__desc { font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips .chip { color: var(--ac); background: var(--surface); border-color: color-mix(in srgb, var(--ac) 40%, transparent); }
.shape-card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--faint); border-top: 1px solid color-mix(in srgb, var(--ac) 20%, transparent); margin-top: 14px; }
.shape-card__foot b { color: var(--ac); font-weight: 600; }
.ac-violet { --ac: var(--a-violet); --ac-bg: var(--a-violet-bg); }
.ac-pink { --ac: var(--a-pink); --ac-bg: var(--a-pink-bg); }
.ac-indigo { --ac: var(--a-indigo); --ac-bg: var(--a-indigo-bg); }
.ac-rose { --ac: var(--a-rose); --ac-bg: var(--a-rose-bg); }
.ac-fuchsia { --ac: var(--a-fuchsia); --ac-bg: var(--a-fuchsia-bg); }
.ac-purple { --ac: var(--a-purple); --ac-bg: var(--a-purple-bg); }
.ac-orange { --ac: var(--a-orange); --ac-bg: var(--a-orange-bg); }

/* tools */
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #c7cbf5; }
.tool-card__head { display: flex; gap: 12px; align-items: flex-start; }
.tool-card h3 { font-size: 1rem; font-weight: 700; }
.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-card__kicker { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; color: var(--violet); }
.tool-card:nth-child(3n+2) .tool-card__kicker { color: var(--teal); }
.tool-card:nth-child(3n+3) .tool-card__kicker { color: var(--pink); }
.tool-card p { color: var(--muted); font-size: .9rem; margin-top: 12px; flex: 1; }
.tool-card__go { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--violet); }

/* guides */
.guide-card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.guide-card__art { aspect-ratio: 16 / 9; background: var(--btn-grad); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; position: relative; }
.guide-card__art span { position: absolute; left: 14px; top: 12px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 999px; }
.guide-card__art svg { height: 92%; width: auto; display: block; }
.guide-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.guide-card__meta { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.guide-card h3 { font-size: 1.05rem; font-weight: 700; margin-top: 6px; }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.center-link { text-align: center; margin-top: 26px; font-weight: 600; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; max-width: 1000px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; position: relative; font-weight: 600; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--fuchsia); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { font: inherit; display: inline; letter-spacing: 0; }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: .92rem; }
.faq-more { text-align: center; margin-top: 26px; color: var(--muted); font-size: .92rem; }

/* testimonials (only rendered when real reviews are configured) */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.review blockquote { margin: 0; font-size: .92rem; color: var(--muted); }
.review figcaption { margin-top: 14px; font-weight: 600; font-size: .9rem; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.page-hero { padding: 44px 0 20px; }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.page-hero__art { border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1; max-width: 360px; justify-self: center; width: 100%; }
.page-hero__art svg { height: 92%; width: auto; }
.page-hero .chips { margin-top: 18px; }
.prose { font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--fuchsia); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.box ul { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0; }
.box li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--muted); }
.box li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.box--avoid li::before { background: #e5484d; border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; top: .6em; }
.box li strong { color: var(--ink); }
.box + .box { margin-top: 0; }

/* forms + tool pages */
.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field small { font-weight: 400; color: var(--faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface-2);
  color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: none; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface-2); font-size: .9rem; font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--btn-grad); color: #fff; border-color: transparent; }
.seg input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.out { margin-top: 22px; }
.out-card { border-radius: 18px; padding: 24px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.out-card__kicker { color: var(--muted); font-weight: 500; }
.out-card__title { font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 2px; }
.out-card p { margin-top: 10px; color: var(--muted); }
.out-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.error-msg { color: #c0262d; font-weight: 600; margin-top: 12px; }
:root[data-theme="dark"] .error-msg { color: #ff8a8f; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }

/* ==========================================================================
   Pre-footer CTA and footer
   ========================================================================== */
.prefooter { padding: 12px 0 64px; }
.prefooter__box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; background: var(--btn-grad); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.prefooter__box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.prefooter h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; }
.prefooter p { color: #e0e3ff; margin-top: 6px; }
.prefooter .btn { background: #fff; color: var(--indigo); position: relative; z-index: 1; }
.prefooter .btn:hover { background: #f1f0ff; color: var(--indigo); }

.footer { background: var(--navy); color: #b9bdd6; padding: 64px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #8d92b3; }
.footer__about p { margin-top: 18px; color: #b9bdd6; font-size: .93rem; max-width: 32em; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.footer__badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #e4e6f5; }
.footer__badges svg { width: 14px; height: 14px; color: #34d399; }
.footer h2 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer ul.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #b9bdd6; text-decoration: none; font-size: .93rem; }
.footer a:hover { color: #fff; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: #8d92b3; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer__legal a { font-size: .85rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .shape-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .methods, .benefits, .faq, .split, .field-grid, .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step:not(:last-child)::after { display: none; }
  .result__grid, .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .result__figure { position: static; max-width: 520px; }
  .page-hero__art { max-width: 260px; order: -1; }
  .panel { border-radius: 20px; padding: 40px 18px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .shape-grid, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .cta-bar .btn { width: 100%; }
  .fsd-bar { grid-template-columns: 72px 1fr 40px; gap: 8px; }
  .face-strip figure { width: calc(50% - 7px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .prefooter__box { padding: 28px 22px; }
  .prefooter .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   WordPress extras: blog, comments, forms, editor content
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
.guide-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-card__art span { z-index: 1; }
.post-meta { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.post-image { margin-top: 8px; }
.post-image img { width: 100%; height: auto; border-radius: 20px; display: block; }
.post-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--indigo); text-decoration: none; font-size: .88rem; font-weight: 600; }
.empty-box { max-width: 640px; }
.empty-box h2 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-box p { color: var(--muted); }

.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: .88rem; color: var(--faint); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--indigo); font-size: 1.1rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }
.prose a { color: var(--indigo); }
.alignwide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.pagination .page-numbers.current { background: var(--btn-grad); border-color: transparent; color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--indigo); color: var(--indigo); }

.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-form label { flex: 1; }
.search-form .search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 1rem/1.5 var(--font);
}
.search-form .search-submit, .comment-form .submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--btn-grad); color: #fff; font: 600 1rem/1 var(--font); cursor: pointer; }

.comments__title { font-size: 1.4rem; margin-bottom: 16px; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 24px; }
.comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comments__list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-reply-title { font-size: 1.3rem; margin: 28px 0 12px; }

.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.notice--ok { background: #e6f6ee; border: 1px solid #b6e3c9; color: #14532d; }
.notice--err { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--ink); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .field textarea { min-height: 150px; resize: vertical; }
