/*
Theme Name: iFraldas US
Theme URI: https://ifraldas.com.br
Author: iFraldas Design System
Description: The modern diaper fund & baby shower registry theme for iFraldas US. Editorial milestone aesthetic — Newsreader serif headlines, Manrope interface, Iris Blue / Blue Marguerite / Salmon palette. Classic PHP theme, no build step, no CDN dependencies (fonts bundled locally).
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ifraldas
Tags: blog, news, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   0. FONTS (bundled locally — no Google Fonts CDN dependency)
   ========================================================================== */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/newsreader-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-400-normal.woff2') format('woff2');
}

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Iris Blue (tertiary / functional) */
  --iris-50: #e6f8f9;
  --iris-100: #ccf0f2;
  --iris-200: #b3e9eb;
  --iris-600: #019296;
  --iris-700: #016d71;
  --iris-default: #01b6bc;
  /* Blue Marguerite (primary) */
  --marguerite-50: #f0eef9;
  --marguerite-100: #e2e1f6;
  --marguerite-200: #d4d1f0;
  --marguerite-600: #5953a8;
  --marguerite-700: #3f3d7e;
  --primary: #564fb7;
  --primary-container: #6f69d2;
  --primary-fixed: #e3dfff;
  --primary-fixed-dim: #c4c0ff;
  --surface-tint: #5750b8;
  /* Salmon Pink (secondary) */
  --salmon-50: #ffe8f6;
  --salmon-100: #ffddee;
  --salmon-600: #cc7081;
  --secondary: #9c3f53;
  --secondary-container: #fd8ca0;
  --secondary-fixed: #ffd9dd;
  --on-secondary-fixed: #400013;
  /* Slate / text */
  --on-surface: #171933;
  --on-surface-variant: #474552;
  --on-background: #171933;
  --outline: #787584;
  --outline-variant: #c8c4d4;
  /* Surfaces */
  --surface: #fbf8ff;
  --surface-dim: #d7d7fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f2ff;
  --surface-container: #eeecff;
  --surface-container-high: #e7e6ff;
  --surface-container-highest: #e0e0ff;
  --surface-bright: #fbf8ff;
  /* Misc */
  --tertiary: #00686c;
  --tertiary-container: #008387;
  --warning-amber: #efb100;
  --error-rose: #ff395b;
  --inverse-surface: #2c2e49;
  --inverse-on-surface: #f1efff;
  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;
  /* Shadows (editorial luminous elevations) */
  --shadow-flat: 0 0 0 1px rgba(111, 105, 210, 0.12);
  --shadow-sm: 0 2px 8px -2px rgba(54, 56, 83, 0.05), 0 1px 3px rgba(111, 105, 210, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(111, 105, 210, 0.05);
  --shadow-lg: 0 12px 24px -6px rgba(111, 105, 210, 0.12), 0 4px 8px -2px rgba(54, 56, 83, 0.04);
  --shadow-xl: 0 20px 40px -12px rgba(54, 56, 83, 0.16);
  --shadow-iris: 0 2px 8px -2px rgba(1, 182, 188, 0.3);
  --shadow-iris-hover: 0 4px 12px -2px rgba(1, 182, 188, 0.4);
  --shadow-violet: 0 2px 8px -2px rgba(86, 79, 183, 0.3);
  --shadow-violet-hover: 0 4px 14px -2px rgba(86, 79, 183, 0.45);
  /* Spacing */
  --gutter: 24px;
  --gutter-sm: 16px;
  --margin: 32px;
  --margin-sm: 20px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  /* Layout */
  --header-h: 80px;
  --container: 1200px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--primary-container); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marguerite-100); }

/* Fixed-ratio image containers (aspect-ratio CSS is NOT used — padding-top method) */
.if-img-wrap { position: relative; display: block; height: 0; overflow: hidden; }
.if-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { padding-top: 125%; }
.ratio-16x9 { padding-top: 56.25%; }
.ratio-3x2 { padding-top: 66.6667%; }
.ratio-1x1 { padding-top: 100%; }

/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */
.f-display-lg { font-family: var(--font-serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.17; letter-spacing: -0.02em; font-weight: 600; }
.f-headline-lg { font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500; }
.f-headline-md { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; font-weight: 500; }
.f-headline-sm { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; font-weight: 600; }
.f-body-lg { font-size: 18px; line-height: 1.55; font-weight: 400; }
.f-body-md { font-size: 16px; line-height: 1.5; font-weight: 400; }
.f-body-sm { font-size: 14px; line-height: 1.43; font-weight: 400; }
.f-label-lg { font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: 0.01em; }
.f-label-md { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.02em; }
.f-label-sm { font-size: 11px; line-height: 1.45; font-weight: 700; letter-spacing: 0.04em; }
.text-primary { color: var(--primary); }
.text-iris { color: var(--iris-600); }
.text-salmon { color: var(--salmon-600); }
.text-tertiary { color: var(--tertiary); }
.text-outline { color: var(--outline); }
.text-muted { color: var(--on-surface-variant); }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.if-container { max-width: var(--container); margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }
.if-main { padding-top: var(--header-h); min-height: calc(100vh - 320px); }
.if-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.if-grid { display: grid; gap: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 0; }

/* Ambient decorative glows */
.if-glow { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }

/* ==========================================================================
   5. BADGES & PILLS
   ========================================================================== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; line-height: 1.4; }
.pill-eyebrow { padding: 6px 16px; }
.pill .ic { width: 14px; height: 14px; flex: none; }
.pill-iris { background: var(--iris-50); color: var(--iris-600); }
.pill-marguerite { background: var(--marguerite-50); color: var(--primary); }
.pill-marguerite-100 { background: var(--marguerite-100); color: var(--primary); }
.pill-salmon { background: var(--salmon-100); color: var(--salmon-600); }
.pill-white { background: var(--surface-container-lowest); color: var(--on-surface); box-shadow: var(--shadow-sm); }
.pill-glass { background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); color: var(--on-surface); box-shadow: var(--shadow-sm); }
.pill-glass-iris { background: rgba(230, 248, 249, 0.95); backdrop-filter: blur(8px); color: var(--iris-600); font-weight: 600; }
.pill-glass-salmon { background: rgba(255, 232, 246, 0.95); backdrop-filter: blur(8px); color: var(--salmon-600); font-weight: 600; }
.pill-glass-secondary { background: rgba(255, 217, 221, 0.9); backdrop-filter: blur(8px); color: var(--on-secondary-fixed); font-weight: 600; }
.pill-frosted { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); color: #fff; text-transform: uppercase; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-full); font-weight: 600; font-size: 15px; line-height: 1.35; padding: 10px 20px; transition: all 0.2s ease; text-align: center; }
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform 0.2s ease; }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn-iris { background: var(--iris-default); color: #fff; box-shadow: var(--shadow-iris); }
.btn-iris:hover { background: var(--iris-600); box-shadow: var(--shadow-iris-hover); }
.btn-violet { background: var(--primary); color: #fff; box-shadow: var(--shadow-violet); }
.btn-violet:hover { background: var(--marguerite-600); box-shadow: var(--shadow-violet-hover); }
.btn-white { background: var(--surface-container-lowest); color: var(--iris-600); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--iris-50); }
.btn-white-violet { background: var(--surface-container-lowest); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-white-violet:hover { background: var(--marguerite-50); }
.btn-ghost-violet { background: transparent; color: var(--primary); }
.btn-ghost-violet:hover { background: var(--marguerite-50); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-xl { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ==========================================================================
   7. HEADER
   ========================================================================== */
.if-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(251, 248, 255, 0.9); backdrop-filter: blur(24px); box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04); }
.if-header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-icon { width: 32px; height: 32px; flex: none; display: block; }
.brand-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--primary); white-space: nowrap; }
.brand-name .brand-i { color: var(--iris-default); font-style: normal; }
.brand-us { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-full); background: var(--iris-50); color: var(--iris-600); }
.if-nav { display: flex; align-items: center; gap: var(--space-lg); }
.if-nav a { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--on-surface-variant); transition: color 0.2s ease; padding: 6px 12px; border-radius: var(--r-full); }
.if-nav a:hover { color: var(--on-surface); }
.if-nav a.active { color: var(--primary); font-weight: 700; background: var(--marguerite-50); }
.if-header-actions { display: flex; align-items: center; gap: var(--space-md); }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.header-avatar-link { display: flex; border-radius: 50%; transition: box-shadow 0.2s ease; }
.header-avatar-link:hover { box-shadow: 0 0 0 4px var(--primary-fixed-dim); }
.header-bell { display: none; position: relative; color: var(--on-surface); padding: 4px; }
.header-bell .ic { width: 22px; height: 22px; }
@media (max-width: 1023px) {
  .if-nav { display: none; }
  .header-bell { display: inline-flex; }
  .header-start-btn { display: none; }
}

/* ==========================================================================
   8. MOBILE BOTTOM NAV
   ========================================================================== */
.mobile-tabbar { display: none; }
@media (max-width: 1023px) {
  .mobile-tabbar {
    display: grid; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
    border-top: 1px solid var(--surface-container-high);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
  .mobile-tabbar a .ic { width: 22px; height: 22px; }
  .mobile-tabbar a.active { color: var(--iris-default); }
  body { padding-bottom: 64px; }
}

/* ==========================================================================
   9. HERO (front page)
   ========================================================================== */
.hero-section { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: var(--r-full); background: var(--iris-50); box-shadow: var(--shadow-sm); margin-bottom: var(--space-md); }
.hero-eyebrow .emoji { font-size: 14px; line-height: 1; }
.hero-eyebrow span:last-child { font-size: 13px; font-weight: 700; color: var(--iris-600); letter-spacing: -0.01em; }
.hero-title { margin-bottom: var(--space-md); max-width: 576px; }
.hero-sub { margin-bottom: var(--space-lg); max-width: 512px; color: var(--on-surface-variant); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-bottom: var(--space-xl); }
.hero-trust { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding-top: var(--space-xs); }
@media (min-width: 640px) { .hero-trust { flex-direction: row; align-items: center; gap: var(--space-md); } }
.hero-stars { display: flex; gap: 2px; color: var(--warning-amber); }
.hero-stars .ic { width: 18px; height: 18px; }
.hero-trust-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.hero-trust-meta b { color: var(--on-surface); font-weight: 700; }
.hero-trust-meta .dot { color: var(--outline); }

.hero-mosaic { position: relative; }
.hero-photo { position: relative; border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--surface-container-low); }
.hero-photo .if-img-wrap { padding-top: 125%; border-radius: var(--r-3xl); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,25,51,0.5), transparent 45%); }
.hero-fund-card { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-radius: var(--r-2xl); padding: 16px; box-shadow: var(--shadow-lg); }
.hero-fund-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hero-fund-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-fund-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--salmon-50); color: var(--salmon-600); display: flex; align-items: center; justify-content: center; flex: none; }
.hero-fund-ava .ic { width: 16px; height: 16px; }
.hero-fund-name { font-size: 13px; font-weight: 700; color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-fund-sub { font-size: 12px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-fund-pct { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--iris-50); color: var(--iris-600); flex: none; }
.hero-fund-raised { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
.hero-fund-raised b { color: var(--on-surface); font-weight: 700; }
.hero-payout-badge { position: absolute; top: -20px; left: -24px; z-index: 3; background: var(--surface-container-lowest); border-radius: var(--r-2xl); padding: 12px 16px; box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 12px; }
@media (min-width: 640px) { .hero-payout-badge { display: flex; } }
.hero-payout-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--iris-100); color: var(--iris-default); display: flex; align-items: center; justify-content: center; flex: none; }
.hero-payout-ic .ic { width: 20px; height: 20px; }
.hero-payout-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--outline); }
.hero-payout-value { font-size: 13px; font-weight: 700; color: var(--on-surface); }

/* Progress bars */
.if-progress { width: 100%; height: 8px; border-radius: var(--r-full); background: var(--surface-container); overflow: hidden; }
.if-progress > span { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--iris-default), var(--primary-container)); }
.if-progress.h-2 { height: 8px; }
.if-progress.bg-dim { background: var(--surface-dim); }

/* ==========================================================================
   10. SECTION HEADERS
   ========================================================================== */
.sec-head { text-align: center; max-width: 576px; margin: 0 auto var(--space-xl); }
.sec-head .pill-eyebrow { margin-bottom: var(--space-xs); }
.sec-head h2 { margin-bottom: var(--space-xs); }
.sec-head p { color: var(--on-surface-variant); }
.sec-head-left { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.sec-split { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .sec-split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--primary); transition: color 0.2s ease; }
.link-arrow:hover { color: var(--marguerite-600); }
.link-arrow .ic { width: 16px; height: 16px; }

/* ==========================================================================
   11. HOW IT WORKS STEPS
   ========================================================================== */
.band { background: var(--surface-container-low); padding: var(--space-xl) 0; margin: var(--space-lg) 0; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--surface-container-lowest); border-radius: var(--r-2xl); padding: var(--space-lg); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.step-card:hover { box-shadow: var(--shadow-md); }
.step-ic { width: 56px; height: 56px; border-radius: var(--r-2xl); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); transition: transform 0.3s ease; }
.step-card:hover .step-ic { transform: scale(1.05); }
.step-ic .ic { width: 24px; height: 24px; }
.step-ic-iris { background: var(--iris-50); color: var(--iris-default); }
.step-ic-salmon { background: var(--salmon-50); color: var(--salmon-600); }
.step-ic-violet { background: var(--marguerite-50); color: var(--primary); }
.step-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-xs); }
.step-k-iris { color: var(--iris-600); } .step-k-salmon { color: var(--salmon-600); } .step-k-violet { color: var(--primary); }
.step-card h3 { margin-bottom: var(--space-xs); }
.step-card p { color: var(--on-surface-variant); }
.step-foot { display: flex; align-items: center; gap: 6px; padding-top: var(--space-md); margin-top: var(--space-md); font-size: 13px; font-weight: 600; }
.step-foot .ic { width: 14px; height: 14px; }
.step-f-iris { color: var(--iris-600); } .step-f-salmon { color: var(--salmon-600); } .step-f-violet { color: var(--primary); }

/* ==========================================================================
   12. CALCULATOR
   ========================================================================== */
.calc-card { border-radius: var(--r-3xl); background: var(--surface-container); padding: var(--space-lg); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .calc-card { padding: var(--space-xl); } }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .calc-grid { grid-template-columns: 7fr 5fr; } }
.calc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--r-full); background: var(--surface-container-lowest); color: var(--iris-600); font-size: 11px; font-weight: 700; box-shadow: var(--shadow-sm); margin-bottom: var(--space-md); }
.calc-badge .ic { width: 14px; height: 14px; }
.calc-card h2 { margin-bottom: var(--space-md); }
.calc-desc { color: var(--on-surface-variant); max-width: 576px; margin-bottom: var(--space-md); }
.calc-slider-box { background: var(--surface-container-lowest); padding: var(--space-md); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); max-width: 576px; }
.calc-slider-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-slider-head .lab { font-size: 13px; font-weight: 600; color: var(--on-surface); }
.calc-slider-head .val { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--primary); }
.calc-slider { width: 100%; height: 8px; margin: 14px 0 10px; appearance: none; -webkit-appearance: none; background: var(--surface-container); border-radius: var(--r-lg); cursor: pointer; }
.calc-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: var(--shadow-md); }
.calc-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: var(--shadow-md); }
.calc-slider-ticks { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--outline); }
.calc-stats { display: flex; flex-direction: column; gap: var(--space-md); }
.calc-stat-card { background: var(--surface-container-lowest); border-radius: var(--r-2xl); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.calc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.calc-stat { padding: var(--space-sm); border-radius: var(--r-xl); }
.calc-stat-iris { background: var(--iris-50); }
.calc-stat-salmon { background: var(--salmon-50); }
.calc-stat .lab { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.calc-stat-iris .lab { color: var(--iris-600); } .calc-stat-salmon .lab { color: var(--salmon-600); }
.calc-stat .num { font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.calc-stat-iris .num { color: var(--on-surface); } .calc-stat-salmon .num { color: var(--secondary); }
.calc-stat .sub { display: block; margin-top: 4px; font-size: 14px; color: var(--on-surface-variant); }
.calc-note { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: var(--space-md); color: var(--on-surface-variant); }
.calc-note .ic { width: 14px; height: 14px; color: var(--iris-600); flex: none; }

/* ==========================================================================
   13. FEATURED CATEGORY CARDS
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card { background: var(--surface-container-lowest); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease; display: flex; flex-direction: column; }
.cat-card:hover { box-shadow: var(--shadow-md); }
.cat-card-img { position: relative; height: 192px; overflow: hidden; background: var(--surface-container); }
.cat-card-img .if-img-wrap { padding-top: 192px; }
.cat-card-img img { transition: transform 0.5s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.cat-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cat-card-body h3 { margin-bottom: 4px; transition: color 0.2s ease; }
.cat-card:hover .cat-card-body h3 { color: var(--primary); }
.cat-card-body .desc { font-size: 14px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }
.cat-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--outline); }
.cat-card-meta .arr { color: var(--primary); font-weight: 700; transition: transform 0.2s ease; display: inline-flex; }
.cat-card:hover .cat-card-meta .arr { transform: translateX(3px); }
.cat-card-img-grad { background: linear-gradient(135deg, var(--salmon-50), var(--marguerite-50)); display: flex; align-items: center; justify-content: center; }
.cat-card-img-grad .big-ic { width: 80px; height: 80px; border-radius: 50%; background: var(--surface-container-lowest); box-shadow: var(--shadow-md); color: var(--secondary); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.cat-card:hover .cat-card-img-grad .big-ic { transform: scale(1.1); }
.cat-card-img-grad .big-ic .ic { width: 36px; height: 36px; }

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { background: var(--surface-container-lowest); border-radius: var(--r-2xl); padding: var(--space-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.testi-stars { display: flex; gap: 2px; color: var(--warning-amber); margin-bottom: var(--space-md); }
.testi-stars .ic { width: 16px; height: 16px; }
.testi-quote { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; font-weight: 600; font-style: italic; margin-bottom: var(--space-md); }
.testi-person { display: flex; align-items: center; gap: var(--space-md); padding-top: var(--space-md); }
.testi-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); flex: none; }
.testi-person .name { font-size: 13px; font-weight: 700; color: var(--on-surface); }
.testi-person .meta { font-size: 14px; color: var(--outline); }

/* ==========================================================================
   15. FAQ
   ========================================================================== */
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--surface-container-lowest); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease; margin-bottom: var(--space-sm); }
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-toggle { width: 100%; padding: var(--space-lg); background: none; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-toggle .q { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--on-surface); }
.faq-icon { color: var(--outline); flex: none; transition: transform 0.2s ease; width: 22px; height: 22px; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-content { display: none; padding: 0 var(--space-lg) var(--space-lg); }
.faq-item.open .faq-content { display: block; }
.faq-content p { color: var(--on-surface-variant); }

/* ==========================================================================
   16. CTA BANNER
   ========================================================================== */
.cta-banner { position: relative; border-radius: var(--r-3xl); overflow: hidden; background: linear-gradient(90deg, var(--primary), var(--primary-container)); padding: var(--space-lg); color: #fff; box-shadow: var(--shadow-xl); }
@media (min-width: 1024px) { .cta-banner { padding: var(--space-xl); } }
.cta-banner::before { content: ''; position: absolute; right: -64px; top: -64px; width: 288px; height: 288px; border-radius: 50%; background: rgba(255,255,255,0.1); filter: blur(24px); pointer-events: none; }
.cta-banner::after { content: ''; position: absolute; left: -64px; bottom: -64px; width: 288px; height: 288px; border-radius: 50%; background: rgba(111, 246, 252, 0.1); filter: blur(24px); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 672px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-banner .pill-frosted { margin-bottom: var(--space-md); }
.cta-banner h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-banner .cta-sub { color: var(--primary-fixed); font-size: 18px; max-width: 512px; margin-bottom: var(--space-lg); }
.cta-note { display: flex; align-items: center; gap: 8px; margin-top: var(--space-md); font-size: 11px; font-weight: 600; color: var(--primary-fixed-dim); }
.cta-note .ic { width: 14px; height: 14px; }

/* ==========================================================================
   17. FIND A REGISTRY (directory)
   ========================================================================== */
.dir-hero { position: relative; overflow: hidden; background: var(--surface-container-low); padding: var(--space-xl) var(--margin-sm); text-align: center; }
@media (min-width: 768px) { .dir-hero { padding-left: var(--margin); padding-right: var(--margin); } }
.dir-hero-inner { max-width: 768px; margin: 0 auto; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.dir-hero h1 { max-width: 672px; margin-bottom: var(--space-xs); }
.dir-hero .sub { font-size: 18px; color: var(--on-surface-variant); max-width: 576px; margin-bottom: var(--space-lg); }
.dir-search { width: 100%; max-width: 768px; background: var(--surface-container-lowest); border-radius: var(--r-full); padding: 6px; display: flex; align-items: center; gap: 4px; box-shadow: var(--shadow-md); transition: box-shadow 0.3s ease; margin-bottom: var(--space-md); }
.dir-search:hover { box-shadow: var(--shadow-lg); }
.dir-search .search-ic { color: var(--primary); flex: none; display: flex; padding-left: 12px; }
.dir-search .search-ic .ic { width: 20px; height: 20px; }
.dir-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 12px 8px; font-size: 16px; color: var(--on-surface); }
.dir-search input::placeholder { color: var(--outline-variant); }
.dir-search .us-only { display: none; align-items: center; gap: 4px; padding-right: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--on-surface-variant); flex: none; }
.dir-search .us-only .ic { width: 16px; height: 16px; }
@media (min-width: 640px) { .dir-search .us-only { display: flex; } }
.dir-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-xs); }
.filter-chip { padding: 8px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; border: 0; background: var(--surface-container-lowest); color: var(--on-surface-variant); box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
.filter-chip:hover { background: var(--marguerite-50); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; }

.results-strip { display: flex; flex-direction: column; gap: var(--space-md); padding-top: var(--space-lg); padding-bottom: var(--space-sm); }
@media (min-width: 768px) { .results-strip { flex-direction: row; align-items: center; justify-content: space-between; } }
.results-count { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--on-surface); }
.results-count .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--iris-default); animation: ifpulse 2s ease-in-out infinite; flex: none; }
@keyframes ifpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.results-controls { display: flex; align-items: center; gap: var(--space-sm); flex: none; }
.results-controls .sort-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--outline); }
.sort-select-wrap { position: relative; display: inline-flex; align-items: center; }
.sort-select { appearance: none; -webkit-appearance: none; background: var(--surface-container-lowest); border: 0; color: var(--on-surface); font-size: 13px; font-weight: 600; padding: 10px 36px 10px 16px; border-radius: var(--r-full); box-shadow: var(--shadow-sm); cursor: pointer; }
.sort-select:hover { background: var(--surface-container-low); }
.sort-select-wrap .ic { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--outline); pointer-events: none; }
.view-toggle { display: none; align-items: center; background: var(--surface-container-low); padding: 4px; border-radius: var(--r-full); }
@media (min-width: 640px) { .view-toggle { display: flex; } }
.view-toggle button { border: 0; background: transparent; padding: 6px; border-radius: 50%; color: var(--on-surface-variant); display: flex; }
.view-toggle button .ic { width: 14px; height: 14px; }
.view-toggle button.active { background: var(--surface-container-lowest); box-shadow: var(--shadow-sm); color: var(--primary); }

.registry-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); padding-top: var(--space-md); padding-bottom: var(--space-md); }
@media (min-width: 768px) { .registry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .registry-grid { grid-template-columns: repeat(3, 1fr); } }
.registry-grid.list-view { grid-template-columns: 1fr; }
.registry-card { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--space-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.registry-card:hover { box-shadow: var(--shadow-lg); }
.rc-img { position: relative; height: 192px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-container); margin-bottom: var(--space-md); }
.rc-img .if-img-wrap { padding-top: 192px; }
.rc-img img { transition: transform 0.5s ease; }
.registry-card:hover .rc-img img { transform: scale(1.05); }
.rc-badge-due { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: rgba(251, 248, 255, 0.9); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; color: var(--on-surface); box-shadow: var(--shadow-sm); }
.rc-badge-due .ic { width: 12px; height: 12px; color: var(--iris-600); }
.rc-badge-fund { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.rc-badge-iris { background: rgba(230, 248, 249, 0.95); color: var(--iris-600); }
.rc-badge-salmon { background: rgba(255, 232, 246, 0.95); color: var(--salmon-600); }
.rc-badge-secondary { background: rgba(255, 217, 221, 0.9); color: var(--on-secondary-fixed); }
.rc-loc { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--outline); margin-bottom: 4px; flex-wrap: wrap; }
.rc-loc .ic { width: 12px; height: 12px; color: var(--secondary); }
.rc-loc .sep { margin: 0 4px; }
.rc-title { margin-bottom: var(--space-xs); transition: color 0.2s ease; }
.registry-card:hover .rc-title { color: var(--primary); }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-md); }
.rc-tag { padding: 2px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; }
.rc-tag-t0 { background: var(--marguerite-50); color: var(--primary); }
.rc-tag-t1 { background: var(--surface-container); color: var(--on-surface-variant); }
.rc-tag-t2 { background: var(--salmon-50); color: var(--salmon-600); }
.rc-tag-t3 { background: var(--iris-50); color: var(--iris-600); }
.rc-meter { background: var(--surface-container-low); padding: var(--space-sm); border-radius: var(--r-lg); margin-bottom: var(--space-md); }
.rc-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.rc-meter-head .lab { font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
.rc-meter-head .val { font-size: 13px; font-weight: 700; color: var(--on-surface); white-space: nowrap; }
.rc-meter-head .val .of { color: var(--outline); font-weight: 400; }
.rc-meter-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 600; }
.rc-cta { margin-top: auto; }
.registry-card .btn-violet { width: 100%; padding-top: 12px; padding-bottom: 12px; }

/* Pagination */
.if-pagination { display: flex; justify-content: center; padding: var(--space-xl) 0; }
.if-pagination .nav-links { display: flex; align-items: center; gap: 4px; background: var(--surface-container-lowest); padding: 8px; border-radius: var(--r-full); box-shadow: var(--shadow-sm); }
.if-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); padding: 0 8px; transition: all 0.2s ease; }
.if-pagination a.page-numbers:hover { color: var(--primary); background: var(--marguerite-50); }
.if-pagination .current { background: var(--iris-default); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(1, 182, 188, 0.35); }
.if-pagination .dots { color: var(--outline); font-weight: 700; width: 24px; text-align: center; }

/* Concierge banner */
.concierge { background: linear-gradient(90deg, var(--surface-container-high), var(--surface-container), var(--surface-container-low)); border-radius: var(--r-xl); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: var(--space-xl); }
@media (min-width: 768px) { .concierge { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-xl); } }
.concierge::before { content: ''; position: absolute; right: -64px; top: -64px; width: 256px; height: 256px; border-radius: 50%; background: rgba(227, 223, 255, 0.4); filter: blur(24px); pointer-events: none; }
.concierge-left { display: flex; align-items: flex-start; gap: var(--space-md); max-width: 672px; position: relative; z-index: 1; }
.concierge-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-container-lowest); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--shadow-sm); }
.concierge-ic .ic { width: 24px; height: 24px; }
.concierge-kicker { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.concierge h4 { margin: 4px 0 var(--space-xs); }
.concierge p { color: var(--on-surface-variant); }
.concierge-actions { display: flex; flex-direction: column; gap: var(--space-sm); flex: none; position: relative; z-index: 1; width: 100%; }
@media (min-width: 640px) { .concierge-actions { flex-direction: row; } }
@media (min-width: 768px) { .concierge-actions { width: auto; } }

/* ==========================================================================
   18. CATEGORY / TAG ARCHIVES
   ========================================================================== */
.arch-head { text-align: center; max-width: 768px; margin: 0 auto; padding: var(--space-xl) 0 var(--space-lg); position: relative; z-index: 1; }
.arch-head .pill-eyebrow { margin-bottom: var(--space-sm); }
.arch-head h1 { margin-bottom: var(--space-xs); }
.arch-head .arch-desc { color: var(--on-surface-variant); font-size: 18px; max-width: 576px; margin: 0 auto var(--space-md); }
.arch-head .arch-count { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-container-lowest); border-radius: var(--r-full); padding: 8px 20px; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.arch-head .arch-count b { color: var(--primary); }
.arch-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--space-md); }

/* ==========================================================================
   19. SINGLE REGISTRY DETAIL
   ========================================================================== */
.single-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; padding: var(--space-lg) var(--margin-sm); }
@media (min-width: 1024px) { .single-layout { grid-template-columns: 230px 1fr; padding: var(--space-lg) var(--margin); } }
.portal-sidebar { display: none; }
@media (min-width: 1024px) { .portal-sidebar { display: block; position: sticky; top: calc(var(--header-h) + 16px); } }
.portal-progress { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--space-md); box-shadow: var(--shadow-sm); margin-bottom: var(--space-md); }
.portal-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.portal-progress-head .lab { font-size: 11px; font-weight: 700; color: var(--on-surface-variant); }
.portal-progress-head .pct { font-size: 11px; font-weight: 700; color: var(--iris-600); }
.portal-progress .nums { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--outline); margin-top: 8px; }
.portal-menu { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--space-sm); box-shadow: var(--shadow-sm); }
.portal-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-lg); font-size: 13px; font-weight: 600; color: var(--on-surface-variant); transition: all 0.2s ease; }
.portal-menu a:hover { background: var(--marguerite-50); color: var(--primary); }
.portal-menu a.active { background: var(--primary); color: #fff; }
.portal-menu a .ic { width: 16px; height: 16px; flex: none; }
.portal-back { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); padding: 12px 4px 0; transition: color 0.2s ease; }
.portal-back:hover { color: var(--primary); }
.portal-back .ic { width: 14px; height: 14px; }
.portal-parent { display: flex; align-items: center; gap: 10px; padding: var(--space-md) 4px 0; }
.portal-parent img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.portal-parent .name { font-size: 12px; font-weight: 700; color: var(--on-surface); }
.portal-parent .sub { font-size: 11px; color: var(--outline); }

.story-hero { border-radius: var(--r-xl); background: var(--surface-container-lowest); box-shadow: var(--shadow-md); overflow: hidden; display: grid; grid-template-columns: 1fr; gap: var(--space-lg); padding: var(--space-lg); margin-bottom: var(--space-lg); }
@media (min-width: 1024px) { .story-hero { grid-template-columns: 5fr 7fr; } }
.story-img { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.story-img .if-img-wrap { padding-top: 70%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.story-due { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(251,248,255,0.92); backdrop-filter: blur(8px); border-radius: var(--r-full); padding: 5px 12px; font-size: 11px; font-weight: 600; color: var(--on-surface); box-shadow: var(--shadow-sm); }
.story-due .ic { width: 12px; height: 12px; color: var(--tertiary-container); }
.story-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.story-hero h1 { margin-bottom: var(--space-md); }
.story-msg { font-size: 16px; color: var(--on-surface-variant); font-style: italic; margin-bottom: var(--space-lg); }
.story-share { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.story-share .btn { background: var(--marguerite-50); color: var(--primary); font-size: 13px; padding: 8px 16px; }
.story-share .btn:hover { background: var(--marguerite-100); }
.story-share .btn .ic { width: 15px; height: 15px; }

.fund-spotlight { border-radius: var(--r-xl); padding: 4px; background: linear-gradient(135deg, rgba(230, 248, 249, 0.4), var(--surface-container-lowest) 50%, rgba(240, 238, 249, 0.3)); box-shadow: var(--shadow-xl); margin-bottom: var(--space-lg); }
.fund-spotlight-inner { background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-radius: calc(var(--r-xl) - 3px); padding: var(--space-lg); }
@media (min-width: 768px) { .fund-spotlight-inner { padding: var(--space-xl); } }
.fund-head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .fund-head { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.fund-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-container-lowest); border: 1px solid var(--iris-100); color: var(--tertiary); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-full); box-shadow: var(--shadow-sm); margin-bottom: var(--space-md); }
.fund-badge .ic { width: 13px; height: 13px; }
.fund-title { font-size: clamp(22px, 2.6vw, 26px); margin-bottom: var(--space-xs); }
.fund-desc { color: var(--on-surface-variant); max-width: 480px; }
.fund-joined { display: flex; align-items: center; gap: 12px; background: var(--marguerite-50); border-radius: var(--r-full); padding: 8px 16px 8px 8px; flex: none; }
.fund-joined-avas { display: flex; }
.fund-joined-avas span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid #fff; margin-left: -8px; }
.fund-joined-avas span:first-child { margin-left: 0; }
.fund-joined .txt { font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--on-surface); }
.fund-joined .txt b { display: block; font-size: 13px; }
.fund-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: var(--space-md); }
.fund-metric .amount { font-family: var(--font-serif); font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--on-surface); }
.fund-metric .of { font-size: 14px; color: var(--outline); font-weight: 600; }
.fund-metric .pct-note { font-size: 13px; font-weight: 700; color: var(--tertiary); margin-left: auto; }
.fund-stages { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.fund-stages span { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--on-surface-variant); text-align: center; flex: 1; }
.fund-stages span.done { color: var(--iris-600); }
.fund-stages span.now { color: var(--primary); }
.contribute-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface-variant); margin: var(--space-lg) 0 var(--space-sm); }
.contrib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
@media (min-width: 640px) { .contrib-grid { grid-template-columns: repeat(4, 1fr); } }
.contrib-chip { border: 1.5px solid var(--surface-container-highest); background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: 12px 16px; text-align: left; transition: all 0.2s ease; }
.contrib-chip .amt { display: block; font-size: 16px; font-weight: 700; color: var(--on-surface); }
.contrib-chip .sub { display: block; font-size: 11px; color: var(--outline); margin-top: 2px; }
.contrib-chip:hover { border-color: var(--marguerite-200); }
.contrib-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.contrib-chip.active .amt { color: #fff; }
.contrib-chip.active .sub { color: var(--primary-fixed-dim); }
.contrib-custom { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); margin-top: var(--space-sm); }
@media (min-width: 640px) { .contrib-custom { grid-template-columns: 1fr 1.6fr; } }
.input-pill { display: flex; align-items: center; background: var(--surface-container-lowest); border: 1.5px solid var(--surface-container-highest); border-radius: var(--r-full); padding: 0 16px; height: 48px; transition: all 0.2s ease; }
.input-pill:focus-within { border-color: var(--primary-container); box-shadow: 0 0 0 3px var(--marguerite-100); }
.input-pill .cur { color: var(--outline); font-weight: 700; margin-right: 8px; }
.input-pill input, .input-pill textarea { border: 0; outline: none; background: transparent; width: 100%; font-size: 14px; color: var(--on-surface); }
.input-pill input::placeholder, .input-pill textarea::placeholder { color: var(--outline-variant); }
.contrib-action { display: flex; flex-direction: column; gap: var(--space-lg); align-items: stretch; margin-top: var(--space-lg); }
@media (min-width: 768px) { .contrib-action { flex-direction: row; align-items: center; justify-content: space-between; } }
.contrib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--iris-default); color: #fff; border: 0; border-radius: var(--r-full); padding: 18px 32px; font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px -4px rgba(1, 182, 188, 0.5); transition: all 0.2s ease; }
.contrib-btn:hover { background: var(--iris-600); }
.contrib-btn .ic { width: 20px; height: 20px; }
.contrib-side { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.contrib-side .secure { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--on-surface-variant); max-width: 110px; line-height: 1.4; }
.pay-seal { background: var(--marguerite-50); color: var(--marguerite-700); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-md); }

.items-head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .items-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.items-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.items-tab { border: 0; background: var(--surface-container-low); color: var(--on-surface-variant); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: var(--r-full); transition: all 0.2s ease; }
.items-tab:hover { background: var(--marguerite-50); color: var(--primary); }
.items-tab.active { background: var(--primary); color: #fff; }
.items-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .items-grid { grid-template-columns: repeat(3, 1fr); } }
.items-grid .item-card.wide { grid-column: span 1; }
@media (min-width: 768px) and (max-width: 1023px) { .items-grid .item-card.wide { grid-column: span 2; flex-direction: row; } }
.item-card { display: none; flex-direction: column; justify-content: space-between; border-radius: var(--r-xl); background: var(--surface-container-lowest); padding: var(--space-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease; }
.item-card.show { display: flex; }
.item-card:hover { box-shadow: var(--shadow-md); }
.item-img { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-container-low); margin-bottom: var(--space-md); }
.item-img .if-img-wrap { padding-top: 93%; }
.item-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(251,248,255,0.92); backdrop-filter: blur(6px); border-radius: var(--r-full); padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--tertiary); box-shadow: var(--shadow-sm); }
.item-badge.hot { color: var(--salmon-600); background: rgba(255, 232, 246, 0.92); }
.item-badge .ic { width: 13px; height: 13px; }
.item-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.item-price { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--on-surface); }
.item-qty { font-size: 11px; font-weight: 600; color: var(--outline); }
.item-name { margin-bottom: var(--space-xs); }
.item-desc { font-size: 14px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }
.item-foot { margin-top: auto; padding-top: var(--space-sm); }
.item-gifted { display: flex; align-items: center; gap: 8px; background: var(--marguerite-50); border-radius: var(--r-lg); padding: 10px 14px; font-size: 12px; color: var(--on-surface-variant); }
.item-gifted .ava { width: 22px; height: 22px; border-radius: 50%; background: var(--secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }
.item-progress { height: 6px; border-radius: var(--r-full); background: var(--surface-container); overflow: hidden; margin-bottom: 10px; }
.item-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--iris-default), var(--primary-container)); border-radius: var(--r-full); }
.item-card-wide { display: none; flex-direction: column; gap: var(--space-md); border-radius: var(--r-xl); background: var(--surface-container-lowest); padding: var(--space-md); box-shadow: var(--shadow-sm); }
.item-card-wide.show { display: flex; }
.item-card-wide:hover { box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .item-card-wide.show { flex-direction: row; } }
.item-card-wide .item-thumb { width: 130px; flex: none; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-container-low); position: relative; }
.item-card-wide .item-thumb .if-img-wrap { padding-top: 74%; }

/* Guestbook / comments */
.guestbook { display: grid; grid-template-columns: 1fr; gap: var(--gutter); align-items: start; }
@media (min-width: 1024px) { .guestbook { grid-template-columns: 5fr 7fr; } }
.guestbook-form { border-radius: var(--r-xl); background: var(--surface-container-lowest); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.gb-badge { display: inline-block; background: var(--salmon-50); color: var(--salmon-600); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-full); margin-bottom: var(--space-md); }
.guestbook-form h3 { margin-bottom: var(--space-xs); }
.guestbook-form .gb-sub { font-size: 14px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }
.gb-field { margin-bottom: var(--space-md); }
.gb-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-surface-variant); margin-bottom: 6px; }
.gb-input { width: 100%; background: var(--surface-container-low); border: 1.5px solid transparent; border-radius: var(--r-xl); padding: 12px 16px; font-size: 14px; color: var(--on-surface); outline: none; transition: all 0.2s ease; }
.gb-input:focus { background: #fff; border-color: var(--primary-fixed-dim); }
textarea.gb-input { min-height: 96px; resize: vertical; }
.gb-submit { display: inline-flex; align-items: center; gap: 8px; background: var(--secondary); color: #fff; border: 0; border-radius: var(--r-full); padding: 12px 24px; font-size: 14px; font-weight: 700; transition: background 0.2s ease; }
.gb-submit:hover { background: #7e273c; }
.gb-submit .ic { width: 15px; height: 15px; }
.guestbook-feed { border-radius: var(--r-xl); background: var(--surface-container-lowest); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.gb-feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: var(--space-md); }
.gb-feed-head h3 { font-size: 20px; }
.gb-feed-head .count { font-size: 11px; font-weight: 700; color: var(--outline); text-transform: uppercase; letter-spacing: 0.04em; }
.wish { display: flex; gap: 12px; padding: var(--space-md) 0; border-top: 1px solid rgba(54, 56, 83, 0.08); }
.wish:first-of-type { border-top: 0; padding-top: 0; }
.wish-ava { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.wish-ava-1 { background: var(--secondary-container); } .wish-ava-2 { background: var(--iris-default); } .wish-ava-3 { background: var(--salmon-600); } .wish-ava-4 { background: var(--primary-container); }
.wish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wish-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--on-surface); }
.wish-time { font-size: 11px; font-weight: 600; color: var(--outline); flex: none; }
.wish-msg { font-size: 14px; color: var(--on-surface-variant); margin: 4px 0 6px; }
.wish-contrib { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--tertiary); }
.wish-contrib .ic { width: 13px; height: 13px; }
.gb-empty { font-size: 14px; color: var(--on-surface-variant); padding: var(--space-md) 0; }
.comment-reply-title, .comment-notes { display: none; }
.gb-logged-in { font-size: 13px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }

/* ==========================================================================
   20. CATEGORIES & TAGS EXPLORER PAGE
   ========================================================================== */
.explore-head { position: relative; z-index: 1; padding: var(--space-xl) 0 var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
@media (min-width: 768px) { .explore-head { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.explore-head h1 { margin-bottom: var(--space-xs); }
.explore-head .sub { color: var(--on-surface-variant); max-width: 576px; }
.stat-pill { display: flex; align-items: center; gap: 12px; background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: 12px 20px; box-shadow: var(--shadow-sm); flex: none; }
.stat-pill-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--marguerite-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.stat-pill-ic .ic { width: 18px; height: 18px; }
.stat-pill .big { font-size: 15px; font-weight: 700; color: var(--on-surface); }
.stat-pill .small { font-size: 11px; color: var(--outline); font-weight: 600; }
.cat-tabs { display: inline-flex; padding: 6px; border-radius: var(--r-full); background: var(--surface-container-low); box-shadow: var(--shadow-sm); gap: 4px; max-width: 100%; overflow-x: auto; }
.cat-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--on-surface-variant); white-space: nowrap; transition: all 0.2s ease; }
.cat-tabs a .ic { width: 15px; height: 15px; }
.cat-tabs a:hover { color: var(--primary); }
.cat-tabs a.active { background: var(--primary); color: #fff; }
.trend-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface-container-lowest); border-radius: var(--r-full); padding: 12px 20px; box-shadow: var(--shadow-sm); margin: var(--space-md) 0; }
.trend-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--on-surface); }
.trend-label .ic { width: 15px; height: 15px; color: var(--salmon-600); }
.trend-tag { padding: 4px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; transition: transform 0.2s ease; }
.trend-tag:hover { transform: translateY(-1px); }
.tt-marguerite { background: var(--marguerite-100); color: var(--primary); }
.tt-salmon { background: var(--salmon-100); color: var(--on-secondary-fixed); }
.tt-iris { background: var(--iris-50); color: var(--iris-600); }
.tt-mint { background: var(--iris-100); color: var(--tertiary); }
.tt-plain { background: var(--surface-container); color: var(--on-surface-variant); }

.blueprint-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 640px) { .blueprint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blueprint-grid { grid-template-columns: repeat(3, 1fr); } }
.blueprint-card { position: relative; border-radius: var(--r-xl); background: var(--surface-container-lowest); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.blueprint-card:hover { box-shadow: var(--shadow-lg); }
.bp-img { position: relative; height: 180px; overflow: hidden; background: var(--surface-container); }
.bp-img .if-img-wrap { padding-top: 180px; }
.bp-img img { transition: transform 0.5s ease; }
.blueprint-card:hover .bp-img img { transform: scale(1.04); }
.bp-img-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(251,248,255,0.92); backdrop-filter: blur(6px); border-radius: var(--r-full); padding: 5px 12px; font-size: 11px; font-weight: 700; }
.bp-img-badge .ic { width: 13px; height: 13px; }
.bp-img-badge.hot { color: var(--salmon-600); }
.bp-img-badge.teal { color: var(--tertiary); }
.bp-img-badge.violet { color: var(--primary); }
.bp-img-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: linear-gradient(to top, rgba(23,25,51,0.55), transparent); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.bp-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.bp-kicker { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--tertiary); margin-bottom: 6px; }
.bp-kicker .ic { width: 13px; height: 13px; }
.bp-kicker.k-salmon { color: var(--salmon-600); }
.bp-kicker.k-violet { color: var(--primary); }
.bp-body h3 { margin-bottom: var(--space-xs); }
.bp-body .desc { font-size: 14px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-md); }
.bp-chip { padding: 3px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; background: var(--surface-container); color: var(--on-surface-variant); }
.bp-chip.c-iris { background: var(--iris-50); color: var(--iris-600); }
.bp-chip.c-marguerite { background: var(--marguerite-50); color: var(--primary); }
.bp-chip.c-salmon { background: var(--salmon-50); color: var(--salmon-600); }
.bp-chip.c-teal { background: var(--iris-100); color: var(--tertiary); }
.bp-sizes { display: flex; gap: 6px; margin-bottom: var(--space-md); }
.bp-size { flex: 1; background: var(--marguerite-50); border-radius: var(--r-md); text-align: center; padding: 8px 4px; }
.bp-size .sz { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--primary); }
.bp-size .lbs { display: block; font-size: 9px; font-weight: 600; color: var(--outline); }
.bp-progress-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-container-low); border-radius: var(--r-lg); padding: 8px 12px; margin-bottom: var(--space-md); font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
.bp-progress-mini b { color: var(--primary); }
.bp-progress-mini .track { flex: 1; height: 6px; border-radius: var(--r-full); background: var(--surface-container-highest); overflow: hidden; max-width: 120px; }
.bp-progress-mini .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--iris-default), var(--primary-container)); border-radius: var(--r-full); }
.bp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: var(--space-sm); border-top: 1px solid rgba(54, 56, 83, 0.08); }
.bp-foot .count { font-size: 11px; font-weight: 600; color: var(--outline); }
.bp-foot .explore { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary); }
.bp-foot .explore .ic { width: 14px; height: 14px; transition: transform 0.2s ease; }
.blueprint-card:hover .bp-foot .explore .ic { transform: translateX(3px); }

.brands-band { background: var(--surface-container-low); border-radius: var(--r-3xl); padding: var(--space-lg); margin: var(--space-lg) 0; }
@media (min-width: 768px) { .brands-band { padding: var(--space-xl); } }
.brands-head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .brands-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.brands-head .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tertiary); margin-bottom: var(--space-xs); }
.brands-head .kicker .ic { width: 14px; height: 14px; }
.brands-head h2 { margin-bottom: var(--space-xs); }
.brands-head .sub { color: var(--on-surface-variant); max-width: 576px; }
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter-sm); }
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands-grid { grid-template-columns: repeat(7, 1fr); } }
.brand-card { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--space-md) var(--space-sm); text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-mono { width: 44px; height: 44px; margin: 0 auto var(--space-sm); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.brand-card .name { font-size: 13px; font-weight: 700; color: var(--on-surface); }
.brand-card .sub { font-size: 10px; font-weight: 600; color: var(--outline); margin-top: 2px; }

.guide-banner { border-radius: var(--r-3xl); background: linear-gradient(135deg, var(--primary), var(--marguerite-600)); color: #fff; padding: var(--space-lg); display: grid; grid-template-columns: 1fr; gap: var(--space-lg); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .guide-banner { grid-template-columns: 6fr 5fr; padding: var(--space-xl); align-items: center; } }
.guide-banner::before { content: ''; position: absolute; right: 180px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.08); filter: blur(8px); pointer-events: none; }
.guide-kicker { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16); border-radius: var(--r-full); padding: 5px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-md); }
.guide-kicker .ic { width: 14px; height: 14px; }
.guide-banner h2 { color: #fff; margin-bottom: var(--space-md); }
.guide-banner .desc { color: var(--primary-fixed); font-size: 15px; margin-bottom: var(--space-lg); max-width: 480px; }
.guide-ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.guide-ctas .btn-danger { background: var(--error-rose); color: #fff; }
.guide-ctas .btn-danger:hover { background: #e0274a; }
.guide-ctas .btn-outline-w { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.guide-ctas .btn-outline-w:hover { background: rgba(255,255,255,0.12); }
.diaper-math { background: var(--surface-container-lowest); color: var(--on-surface); border-radius: var(--r-xl); padding: var(--space-lg); box-shadow: var(--shadow-xl); position: relative; z-index: 1; }
.dm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--space-md); }
.dm-head .t { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.dm-head .aap { font-size: 10px; font-weight: 700; background: var(--iris-50); color: var(--iris-600); padding: 3px 10px; border-radius: var(--r-full); }
.dm-row { padding: 10px 0; border-bottom: 1px solid rgba(54, 56, 83, 0.08); }
.dm-row:last-of-type { border-bottom: 0; }
.dm-row .lab { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--on-surface-variant); margin-bottom: 6px; }
.dm-row .lab b { color: var(--on-surface); }
.dm-bar { height: 8px; border-radius: var(--r-full); background: var(--surface-container); overflow: hidden; }
.dm-bar span { display: block; height: 100%; border-radius: var(--r-full); }
.dm-bar .b1 { background: var(--marguerite-200); }
.dm-bar .b2 { background: var(--iris-default); }
.dm-bar .b3 { background: var(--tertiary-container); }
.dm-bar .b4 { background: var(--salmon-600); }
.dm-total { text-align: right; font-size: 11px; font-weight: 700; color: var(--primary); padding-top: var(--space-sm); }

/* ==========================================================================
   21. SEARCH / 404 / GENERIC PAGE
   ========================================================================== */
.page-hero { text-align: center; padding: var(--space-xl) 0; position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: var(--space-sm); }
.notfound-card { max-width: 560px; margin: 0 auto var(--space-xl); background: var(--surface-container-lowest); border-radius: var(--r-2xl); padding: var(--space-xl) var(--space-lg); text-align: center; box-shadow: var(--shadow-sm); }
.notfound-card .code { font-family: var(--font-serif); font-size: 64px; font-weight: 600; color: var(--primary); line-height: 1; margin-bottom: var(--space-sm); }
.entry-content { max-width: 760px; margin: 0 auto; padding: var(--space-lg) var(--margin-sm) var(--space-xl); font-size: 16px; line-height: 1.7; }
@media (min-width: 768px) { .entry-content { padding-left: 0; padding-right: 0; } }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 0.6em; }
.entry-content h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 3px solid var(--primary-container); background: var(--surface-container-low); border-radius: 0 var(--r-lg) var(--r-lg) 0; font-style: italic; }
.entry-content img { border-radius: var(--r-lg); }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 1.1em; }
.entry-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 1.1em; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.entry-content th, .entry-content td { border: 1px solid var(--surface-container-highest); padding: 8px 12px; text-align: left; }

/* ==========================================================================
   22. FOOTER
   ========================================================================== */
.if-footer { background: var(--surface-container-low); margin-top: var(--space-xl); }
.if-footer-inner { padding: var(--space-xl) 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); margin-bottom: var(--space-xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 2; padding-right: var(--space-md); } }
.footer-brand .brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-md); }
.footer-brand p { font-size: 14px; color: var(--on-surface-variant); max-width: 384px; }
.footer-newsletter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--outline); margin: var(--space-md) 0 var(--space-xs); }
.newsletter-form { display: flex; align-items: center; gap: 6px; max-width: 384px; }
.newsletter-input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-full); background: var(--surface-container-lowest); font-size: 14px; color: var(--on-surface); outline: none; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease; }
.newsletter-input:focus { box-shadow: 0 0 0 2px var(--primary); }
.newsletter-btn { height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-full); background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.2s ease; }
.newsletter-btn:hover { background: var(--marguerite-600); }
.newsletter-msg { font-size: 12px; font-weight: 600; color: var(--tertiary); margin-top: 8px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--on-surface); margin-bottom: var(--space-md); }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul a { font-size: 14px; color: var(--on-surface-variant); transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 0; font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-badges { display: flex; align-items: center; gap: var(--space-md); font-size: 14px; }
.footer-badges .b1 { display: inline-flex; align-items: center; gap: 4px; color: var(--iris-600); }
.footer-badges .b2 { display: inline-flex; align-items: center; gap: 4px; color: var(--secondary); }
.footer-badges .ic { width: 14px; height: 14px; }

/* ==========================================================================
   23. ARTICLE CARDS (feed) & ARTICLE SINGLE — v1.1.0
   ========================================================================== */
.post-card { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--space-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.pc-cat { background: var(--marguerite-50); color: var(--primary); }
.pc-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--outline); margin-bottom: 6px; }
.pc-meta .sep { color: var(--outline-variant); }
.post-card .rc-title { margin-bottom: 8px; }
.pc-excerpt { font-size: 14px; color: var(--on-surface-variant); margin-bottom: var(--space-md); }
.pc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary); transition: color 0.2s ease; }
.pc-more:hover { color: var(--marguerite-600); }
.pc-more .ic { width: 14px; height: 14px; transition: transform 0.2s ease; }
.post-card:hover .pc-more .ic { transform: translateX(3px); }
.registry-grid.list-view .post-card { flex-direction: row; align-items: center; gap: var(--space-md); }
.registry-grid.list-view .post-card .rc-img { width: 280px; flex: none; }
.registry-grid.list-view .post-card .pc-more { margin-top: 8px; }

/* Article single */
.art-wrap { max-width: 900px; margin: 0 auto; padding: var(--space-lg) var(--margin-sm) var(--space-xl); }
@media (min-width: 768px) { .art-wrap { padding-left: 0; padding-right: 0; } }
.art-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-lg); }
.art-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--space-md); }
.art-title { margin-bottom: var(--space-md); }
.art-meta { display: flex; align-items: center; justify-content: center; gap: 12px; }
.art-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--iris-default), var(--primary-container)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none; }
.art-author { font-size: 13px; font-weight: 700; color: var(--on-surface); text-align: left; }
.art-sub { font-size: 12px; font-weight: 600; color: var(--outline); text-align: left; }
.art-feat { max-width: 900px; margin: 0 auto var(--space-lg); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.art-feat .if-img-wrap { border-radius: var(--r-xl); }
.art-body { max-width: 760px; padding-bottom: var(--space-md); }
.art-tags { max-width: 760px; margin: 0 auto var(--space-lg); display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a { padding: 4px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; background: var(--marguerite-100); color: var(--primary); transition: transform 0.2s ease; }
.art-tags a:hover { transform: translateY(-1px); color: var(--marguerite-600); }
.art-share { max-width: 760px; margin: 0 auto var(--space-xl); padding-bottom: var(--space-md); border-bottom: 1px solid rgba(54, 56, 83, 0.08); }
.art-related { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* ==========================================================================
   24. MAGAZINE HOMEPAGE — v1.2.0
   ========================================================================== */
.home-hero { display: grid; grid-template-columns: 1fr; gap: var(--gutter); align-items: center; }
@media (min-width: 1024px) { .home-hero { grid-template-columns: 6fr 6fr; gap: 32px; } }
.home-hero-title { margin: 12px 0 12px; }
.home-hero-title a { transition: color 0.2s ease; }
.home-hero-title a:hover { color: var(--primary); }
.home-hero-sub { margin-bottom: 20px; }
.home-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.home-hero-meta .art-ava { width: 40px; height: 40px; font-size: 13px; }
.home-hero-cover { display: block; border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.home-hero-cover .if-img-wrap { padding-top: 75%; border-radius: var(--r-3xl); box-shadow: none; }
.home-hero-cover img { transition: transform 0.6s ease; }
.home-hero-cover:hover img { transform: scale(1.04); }
.home-welcome { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0 8px; }
.home-welcome .pill-eyebrow { margin-bottom: 4px; }

.topic-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface-container-lowest); border-radius: var(--r-full); padding: 12px 20px; box-shadow: var(--shadow-sm); }
.topic-bar-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--on-surface); margin-right: 4px; }
.topic-bar-label .ic { width: 15px; height: 15px; color: var(--primary); }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-full); background: var(--surface-container-low); color: var(--on-surface-variant); font-size: 13px; font-weight: 600; transition: all 0.2s ease; }
.topic-chip:hover { background: var(--marguerite-50); color: var(--primary); transform: translateY(-1px); }
.topic-count { font-size: 11px; font-weight: 700; background: var(--marguerite-100); color: var(--primary); border-radius: var(--r-full); padding: 1px 7px; }

.cat-section { padding-top: 16px; padding-bottom: 24px; }
.cat-section-cover { display: block; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: var(--gutter); }
.cat-section-cover .if-img-wrap { padding-top: 38%; }
.cat-section-cover img { transition: transform 0.6s ease; }
.cat-section-cover:hover img { transform: scale(1.03); }

.ratio-21x9 { padding-top: 42.857%; }

.topics-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 640px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topics-grid { grid-template-columns: repeat(3, 1fr); } }
.topic-card { background: var(--surface-container-lowest); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; display: flex; flex-direction: column; }
.topic-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.topic-cover { position: relative; }
.topic-cover .if-img-wrap { padding-top: 56.25%; }
.topic-cover img { transition: transform 0.5s ease; }
.topic-card:hover .topic-cover img { transform: scale(1.04); }
.topic-cover-grad { width: 100%; padding-top: 56.25%; position: relative; background: linear-gradient(135deg, var(--marguerite-100), var(--iris-100)); }
.topic-cover-grad span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 56px; font-weight: 600; color: rgba(255,255,255,0.85); }
.topic-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.topic-count-badge { font-size: 11px; font-weight: 700; background: var(--marguerite-50); color: var(--primary); border-radius: var(--r-full); padding: 3px 10px; white-space: nowrap; }
.topic-body .desc { font-size: 14px; color: var(--on-surface-variant); margin: 6px 0 var(--space-md); }
.topic-body .pc-more { margin-top: auto; }
