/* Ipzy global stylesheet - extracted from existing page designs. */

/* Base and homepage styles */

:root {
    --bg: #0d0d1c;
    --bg-dim: #121221;
    --bg-nav: rgba(18, 18, 33, 0.85);
    --bg-card: #1e1e2e;
    --bg-card-high: #292839;
    --bg-card-highest: #343344;
    --border: #464554;
    --border-dim: rgba(70, 69, 84, 0.3);
    --text: #e3e0f6;
    --text-2: #c7c4d7;
    --text-3: #908fa0;
    --primary: #c0c1ff;
    --primary-dim: rgba(192, 193, 255, 0.2);
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ffb95d;
    --secondary-dim: rgba(255, 185, 93, 0.2);
    --cta: #6366f1;
    --cta-h: #d4601a;
    --green: #4ade80;
    --green-bg: rgba(74, 222, 128, 0.15);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.15);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.15);
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-blur: blur(12px);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --r-full: 9999px;
    --t: 0.3s;
  }
  [data-theme="light"] {
    --bg: #f4f5fa;
    --bg-dim: #e8e9f4;
    --bg-nav: rgba(244, 245, 250, 0.9);
    --bg-card: #ffffff;
    --bg-card-high: #f0f1f8;
    --bg-card-highest: #e4e5f0;
    --border: #d1d1e0;
    --border-dim: rgba(167, 170, 193, 0.45);
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #7a7a9a;
    --primary: #f27121;
    --primary-dim: rgba(242, 113, 33, 0.1);
    --primary-glow: rgba(242, 113, 33, 0.25);
    --secondary: #8b5cf6;
    --secondary-dim: rgba(139, 92, 246, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  [data-theme="light"] .hero-pill {
    background: #f27121;
    border-color: #f27121;
    color: #fff;
  }
  [data-theme="light"] .hero-band {
    background: linear-gradient(180deg, rgba(242, 113, 33, 0.08) 0%, transparent 100%);
  }
  [data-theme="light"] .hero-band::before {
    display: none;
  }
  [data-theme="light"] .hero-band::after {
    display: none;
  }
  [data-theme="light"] .hero-title {
    color: #f27121;
  }
  [data-theme="light"] .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] .hero-band::before {
    display: none;
  }
  [data-theme="light"] .hero-band::after {
    display: none;
  }
  [data-theme="light"] .logo-mark {
    background: #f27121;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }
  [data-theme="light"] .logo:hover .logo-mark {
    box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5);
  }
  [data-theme="light"] .chip {
    border-color: rgba(242, 113, 33, 0.4);
    background: rgba(242, 113, 33, 0.1);
    color: #d4601a;
  }
  [data-theme="light"] .hero-ip {
    color: #f27121;
    text-shadow: none;
  }
  [data-theme="light"] .hero-title {
    color: #f27121;
  }
  [data-theme="light"] .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] .btn-copy-hero {
    border-color: rgba(242, 113, 33, 0.4);
    background: rgba(242, 113, 33, 0.1);
    color: #f27121;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
  html { scroll-behavior: smooth; }
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dim);
    background-image: radial-gradient(ellipse at 20% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t) ease, color var(--t) ease;
  }
  h1, h2, h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  *:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
  ::selection { background: var(--primary); color: #fff; }

  .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease;
  }
  .nav.scrolled { box-shadow: var(--sh-md); }
  .nav-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: opacity var(--t) ease;
  }
  .logo:hover { opacity: .85; }
  .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform var(--t) ease, box-shadow var(--t) ease;
  }
  .logo:hover .logo-mark { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); }
  .logo-text { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
  .logo-text em { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }

  .nav-links { display: flex; align-items: center; gap: .25rem; }
  .nav-a {
    padding: .5rem .9rem; border-radius: var(--r-xs);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-2); cursor: pointer;
    transition: color var(--t) ease, background var(--t) ease;
  }
  .nav-a:hover { color: #f27121; background: rgba(242, 113, 33, 0.1); }
  .nav-a.on { color: var(--primary); background: var(--primary-dim); font-weight: 700; }

  .nav-right { display: flex; align-items: center; gap: .5rem; }
  .lang-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .lang-select {
    height: 40px;
    min-width: 78px;
    border-radius: var(--r-xs);
    border: 1px solid var(--border-dim);
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 1.75rem 0 .65rem;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--t) ease, color var(--t) ease, background var(--t) ease;
  }
  .lang-select:hover,
  .lang-select:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
  }
  .lang-select-wrap::after {
    content: '';
    position: absolute;
    right: .7rem;
    width: .45rem;
    height: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    color: var(--text-3);
    pointer-events: none;
  }
  .lang-select option {
    background: var(--bg-card);
    color: var(--text);
  }
  .icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-xs);
    border: 1px solid var(--border-dim); background: transparent;
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t) ease;
  }
  .icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
  .sun { display: none; }
  .moon { display: block; }
  [data-theme="light"] .sun { display: block; }
  [data-theme="light"] .moon { display: none; }

  .burger { display: none; }
  .mob-menu { display: none; flex-direction: column; gap: .2rem; padding: .75rem 1.5rem 1rem; border-bottom: 1px solid var(--border-dim); background: var(--bg-nav); backdrop-filter: var(--glass-blur); }
  .mob-menu.open { display: flex; }

  .hero-band {
    background: var(--bg-dim);
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative; overflow: hidden;
  }
  .hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  .hero-band::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dim));
    pointer-events: none;
  }
  .hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; animation: fadeInUp .6s ease both; }

  @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  .hero-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, .95);
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    padding: .35rem .9rem; border-radius: var(--r-full);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp .6s .1s ease both;
  }
  .home-hero-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.5rem, 5vw, 2.45rem);
    line-height: 1.12;
    font-weight: 800;
    text-wrap: balance;
    animation: fadeInUp .6s .12s ease both;
  }
  .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
    animation: pulse-ring 2.5s infinite;
  }
  @keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

  .hero-ip-row {
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; margin-bottom: .85rem;
    animation: fadeInUp .6s .15s ease both;
  }
  .hero-ip {
    font-family: 'Courier New', monospace;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700; color: #fff;
    letter-spacing: -.02em;
    text-shadow: 0 2px 30px rgba(139, 92, 246, .5), 0 0 60px rgba(139, 92, 246, .3);
  }
  .btn-copy-hero {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: var(--r-sm);
    border: 1.5px solid rgba(139, 92, 246, .4);
    background: rgba(139, 92, 246, .2);
    color: rgba(255, 255, 255, .9); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .btn-copy-hero:hover:not(:disabled) { background: var(--primary-dim); border-color: var(--primary); transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 15px var(--primary-glow); }
  .btn-copy-hero:active:not(:disabled) { transform: translateY(0) scale(.98); }
  .btn-copy-hero:disabled { opacity: .3; cursor: default; }

  .hero-meta {
    display: flex; align-items: center; justify-content: center;
    gap: .6rem; flex-wrap: wrap;
    font-size: .8rem; color: rgba(255, 255, 255, .7);
    margin-bottom: 2rem;
    animation: fadeInUp .6s .2s ease both;
  }
  .chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .7rem; border-radius: var(--r-full);
    font-size: .72rem; font-weight: 700;
    border: 1px solid rgba(139, 92, 246, .4);
    background: rgba(139, 92, 246, .2);
    color: #fff;
  }

  .search-box {
    position: relative;
    max-width: 600px; margin: 0 auto;
    animation: fadeInUp .6s .25s ease both;
  }
  .search-glow-container {
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    overflow: hidden;
    z-index: -1;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .search-box:hover .search-glow-container,
  .search-box:focus-within .search-glow-container {
    opacity: 1;
  }
  .search-glow {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, #f27121, #cf30aa, #8b5cf6, #f27121);
    transform: rotate(0deg);
    filter: blur(8px);
    transition: transform .5s ease;
  }
  .search-box:hover .search-glow,
  .search-box:focus-within .search-glow {
    animation: glow-rotate 2s linear infinite;
  }
  .search-glow-2 {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 180deg, #cf30aa, #8b5cf6, #f27121, #cf30aa);
    transform: rotate(0deg);
    filter: blur(12px);
    transition: transform .5s ease;
  }
  .search-box:hover .search-glow-2,
  .search-box:focus-within .search-glow-2 {
    animation: glow-rotate-reverse 3s linear infinite;
  }
  @keyframes glow-rotate {
    to { transform: rotate(360deg); }
  }
  @keyframes glow-rotate-reverse {
    to { transform: rotate(-360deg); }
  }
  .search-inner {
    position: relative;
    display: flex; gap: .5rem;
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid rgba(100, 100, 120, 0.2);
    border-radius: 16px; padding: .5rem .5rem .5rem 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all .3s ease;
    overflow: hidden;
  }
  .search-box:hover .search-inner,
  .search-box:focus-within .search-inner { 
    border-color: #f27121; 
    box-shadow: 0 0 40px rgba(242, 113, 33, 0.5), 0 0 80px rgba(207, 48, 170, 0.3), inset 0 0 30px rgba(242, 113, 33, 0.1);
  }
  .search-box:focus-within .search-inner { 
    box-shadow: 0 0 50px rgba(242, 113, 33, 0.6), 0 0 100px rgba(207, 48, 170, 0.4), inset 0 0 40px rgba(242, 113, 33, 0.15);
  }
  .search-glow-pulse {
    position: absolute;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #f27121, #cf30aa);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    top: 50%; left: 30%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity .5s ease;
  }
  .search-box:hover .search-glow-pulse,
  .search-box:focus-within .search-glow-pulse { opacity: 0.8; animation: pulse-glow 2s ease-in-out infinite; }
  @keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.8); opacity: 1; }
  }
  .search-box:hover .search-icon-svg,
  .search-box:focus-within .search-icon-svg {
    stroke: #f27121;
    filter: drop-shadow(0 0 6px rgba(242, 113, 33, 0.6));
  }
  .search-border-anim {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(90deg, #f27121, #cf30aa, #8b5cf6, #f27121);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity .3s ease;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .search-box:hover .search-border-anim,
  .search-box:focus-within .search-border-anim {
    opacity: 1;
    animation: border-flow 2s linear infinite;
  }
  @keyframes border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
  }
  .search-input {
    flex: 1; border: none; background: transparent;
    font-family: 'Courier New', monospace;
    font-size: .9rem; color: var(--text);
    min-width: 0;
    transition: color .3s ease, text-shadow .3s ease;
  }
  [data-theme="light"] .search-input { color: #fff; }
  .search-input::placeholder { color: var(--text-3); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: color .3s ease; }
  [data-theme="light"] .search-input::placeholder { color: rgba(255,255,255,0.6); }
  .search-input:focus { outline: none; }
  .search-box:hover .search-input::placeholder,
  .search-box:focus-within .search-input::placeholder { color: rgba(242, 113, 33, 0.6); }
  .search-box:focus-within .search-input { text-shadow: 0 0 10px rgba(242, 113, 33, 0.3); }
  .btn-search {
    height: 48px; padding: 0 1.5rem;
    border: none; border-radius: var(--r-sm);
    background: linear-gradient(135deg, #f27121, #f59e0b);
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .85rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: .4rem;
    transition: all .3s ease;
    white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(242, 113, 33, .4);
    position: relative;
    overflow: hidden;
  }
  .btn-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
  }
  .btn-search:hover:not(:disabled)::before { transform: translateX(100%); }
  .btn-search:hover:not(:disabled) { 
    background: linear-gradient(135deg, #d4601a, #d4871a); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 30px rgba(242, 113, 33, .8), 0 0 50px rgba(207, 48, 170, 0.4);
  }
  .search-box:hover .btn-search {
    box-shadow: 0 4px 20px rgba(242, 113, 33, .5);
  }
  .btn-search:active:not(:disabled) { transform: translateY(0) scale(.98); }
  .btn-search:disabled { opacity: .6; cursor: default; }
  .search-err { display: none; margin-top: .6rem; font-size: .78rem; color: #fca5a5; text-align: left; }
  .search-err.show { display: block; }

  .stats-bar {
    background: linear-gradient(135deg, rgba(242, 113, 33, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-bottom: 1px solid rgba(242, 113, 33, 0.2);
    backdrop-filter: var(--glass-blur);
  }
  .stats-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: center;
    gap: 2.5rem; flex-wrap: wrap;
  }
  .stats-bar { margin-bottom: 3rem; }
  .stat-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--text-2); font-weight: 500;
  }
  .stat-item svg { color: #f27121; flex-shrink: 0; }
  .stat-item strong { color: #f27121; font-weight: 700; }

  .content {
    --content-readable-width: 1120px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
  }

  .alert {
    display: none; align-items: flex-start; gap: .75rem;
    padding: 1rem 1.25rem; border-radius: var(--r-sm);
    border-left: 4px solid var(--warn);
    background: var(--warn-bg);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    animation: slideInDown .4s ease;
  }
  .alert.show { display: flex; }
  @keyframes slideInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .alert-t { font-size: .85rem; color: var(--text); line-height: 1.6; }
  .alert-t a { font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--secondary); transition: opacity .2s ease; }
  .alert-t a:hover { opacity: .8; }

  .grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: var(--content-readable-width);
    margin-left: auto;
    margin-right: auto;
  }

  .card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
    animation: fadeInUp .5s ease both;
  }
  .card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); transform: translateY(-2px); border-color: var(--primary); }
  .editorial-card {
    max-width: var(--content-readable-width);
    margin: 1.5rem auto 0;
    padding: clamp(1.25rem, 3vw, 2rem);
  }
  .editorial-card + .editorial-card { margin-top: 1rem; }
  .editorial-card:hover {
    border-color: var(--border);
    box-shadow: var(--sh-md);
    transform: none;
  }
  .editorial-card h2 {
    margin: 0 0 .8rem;
    color: var(--text);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.25;
  }
  .editorial-card p {
    max-width: 78ch;
    margin: 0 0 .85rem;
    color: var(--text-2);
    font-size: .98rem;
    line-height: 1.75;
  }
  .editorial-card p:last-child { margin-bottom: 0; }
  .card-hd {
    display: flex; align-items: center; gap: .6rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-dim);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  }
  .card-hd-icon {
    width: 32px; height: 32px; border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dim); flex-shrink: 0;
  }
  .card-hd-icon svg { stroke: var(--primary); }
  .card-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }

  .data-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 1.35rem;
    border-bottom: 1px solid var(--border-dim);
    gap: .75rem;
    transition: background .2s ease;
  }
  .data-row:last-child { border-bottom: none; }
  .data-row:hover { background: rgba(242, 113, 33, 0.1); }
  .dk { font-size: .8rem; color: var(--text-2); flex-shrink: 0; }
  .dv { font-size: .8rem; font-weight: 600; color: var(--text); font-family: 'Courier New', monospace; text-align: right; word-break: break-all; max-width: 55%; }
  .dv.plain { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

  #map { width: 100%; height: 380px; display: none; border-radius: 0 0 var(--r) var(--r); position: relative; z-index: 0; }
  .map-ph {
    height: 380px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .5rem; color: var(--text-3);
    font-size: .8rem;
    border-radius: 0 0 var(--r) var(--r);
  }

  .badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem; border-radius: var(--r-full);
    font-size: .7rem; font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .b-blue  { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(99, 102, 241, .3); }
  .b-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(74, 222, 128, .3); }
  .b-warn  { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(251, 191, 36, .3); }
  .b-red   { background: var(--red-bg); color: var(--red); border: 1px solid rgba(248, 113, 113, .3); }

  .sk {
    display: inline-block; border-radius: 4px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .1) 25%, rgba(139, 92, 246, .15) 50%, rgba(99, 102, 241, .1) 75%);
    background-size: 200% 100%;
    animation: sk 1.6s ease-in-out infinite;
  }
  @keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  .trust-band {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    max-width: var(--content-readable-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
  }
  .trust-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 1.25rem;
    display: flex; align-items: flex-start; gap: .85rem;
    box-shadow: var(--sh-sm);
    backdrop-filter: var(--glass-blur);
    transition: all .3s ease;
    cursor: default;
  }
  .trust-card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); transform: translateY(-3px); border-color: var(--primary); }
  .trust-icon {
    width: 42px; height: 42px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .trust-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
  .trust-desc  { font-size: .75rem; color: var(--text-2); line-height: 1.55; }

  .speed-content { padding-top: 0; }
  .speed-panel {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  .speed-gauge {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    border-radius: var(--r-sm);
    background: radial-gradient(circle at 50% 20%, rgba(242, 113, 33, .16), transparent 48%), var(--bg-card-high);
    border: 1px solid var(--border-dim);
    padding: 1.5rem;
  }
  .speed-status {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .speed-main-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .speed-main-value span {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    line-height: .95;
  }
  .speed-main-value small,
  .speed-metric small {
    color: var(--text-3);
    font-weight: 700;
  }
  .speed-phase {
    min-height: 1.4rem;
    color: var(--text-2);
    font-size: .9rem;
  }
  .speed-percent {
    min-width: 3.5rem;
    color: var(--primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
  }
  .speed-percent::after {
    content: "/100";
    color: var(--text-3);
    font-size: .78rem;
    font-weight: 700;
    margin-left: .15rem;
  }
  .speed-progress {
    width: min(420px, 100%);
    height: 8px;
    border-radius: var(--r-full);
    background: var(--bg-card-highest);
    overflow: hidden;
  }
  .speed-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .35s ease;
  }
  .speed-progress span.speed-progress-download {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
  }
  .speed-progress span.speed-progress-upload {
    background: linear-gradient(90deg, #fbbf24, #f27121);
  }
  .speed-progress span.speed-progress-latency {
    background: linear-gradient(90deg, #4ade80, #22c55e);
  }
  .speed-start {
    min-height: 46px;
    padding: 0 1.25rem;
  }
  .speed-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .speed-metric {
    min-height: 140px;
    border: 1px solid var(--border-dim);
    border-radius: var(--r-sm);
    background: var(--bg-card-high);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
  }
  .speed-metric span {
    color: var(--text-2);
    font-size: .82rem;
    font-weight: 700;
  }
  .speed-metric strong {
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
  }
  .speed-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  .speed-verdict-body {
    padding: 1.4rem 1.5rem;
  }
  .speed-verdict-body h2,
  .speed-article h2 {
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.35rem;
    margin-bottom: .75rem;
  }
  .speed-verdict-body p,
  .speed-article p {
    color: var(--text-2);
    line-height: 1.75;
  }
  .speed-article {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2rem);
  }
  .speed-article ul {
    margin: .25rem 0 1.25rem 1.35rem;
    padding-left: .35rem;
  }
  .speed-article li {
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: .45rem;
    padding-left: .15rem;
  }
  .speed-article h2:not(:first-child) { margin-top: 1.5rem; }

  [data-theme="light"] .card,
  [data-theme="light"] .trust-card,
  [data-theme="light"] .speed-gauge,
  [data-theme="light"] .speed-metric,
  [data-theme="light"] .speed-article {
    border-color: rgba(156, 160, 184, .45);
    box-shadow: 0 2px 10px rgba(36, 39, 58, .08);
  }

  .aff-wrap {
    margin-top: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    backdrop-filter: var(--glass-blur);
  }
  .aff-header {
    display: flex; align-items: center; gap: .85rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-bottom: 1px solid var(--border-dim);
  }
  .aff-header-text { flex: 1; }
  .aff-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .95rem; font-weight: 800; color: var(--text); }
  .aff-sub   { font-size: .78rem; color: var(--text-2); margin-top: .15rem; }
  .aff-body  { padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .vpn-a {
    display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.15rem;
    border: 1.5px solid var(--border-dim);
    border-radius: var(--r-sm);
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: all .3s ease;
    background: var(--bg-card-high);
  }
  .vpn-a:hover { border-color: var(--primary); box-shadow: var(--sh-md), 0 0 12px var(--primary-glow); transform: translateY(-2px); }
  .vpn-logo { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .vpn-name  { font-size: .85rem; font-weight: 700; color: var(--text); }
  .vpn-desc  { font-size: .72rem; color: var(--text-2); margin-top: .15rem; }
  .vpn-arr   { margin-left: auto; color: var(--text-3); flex-shrink: 0; transition: transform .2s ease, color .2s ease; }
  .vpn-a:hover .vpn-arr { transform: translateX(4px); color: #f27121; }

  .edu-carousel { position: relative; margin-top: 1rem; padding-top: 0.5rem; }
  .edu-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: .5rem 0 1rem;
  }
  .edu-carousel-track::-webkit-scrollbar { display: none; }
  .edu-carousel-item {
    flex: 0 0 calc(33.333% - 0.667rem);
    scroll-snap-align: start;
  }
  @media (max-width: 768px) {
    .edu-carousel-item { flex: 0 0 calc(80% - 0.5rem); }
  }
  .edu-carousel-nav {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
  }
  .edu-carousel-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-dim);
    background: var(--bg-card);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
  }
  .edu-carousel-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }
  .edu-carousel-btn svg { width: 18px; height: 18px; }

  .edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
  .edu-a {
    display: block; text-decoration: none; cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--sh-sm);
    backdrop-filter: var(--glass-blur);
    transition: all .3s ease;
    margin-top: 0;
  }
  .edu-a:hover { border-color: var(--primary); box-shadow: var(--sh-md), 0 0 15px var(--primary-glow); }
  .edu-icon-wrap {
    width: 44px; height: 44px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .85rem;
  }
  .edu-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
  .edu-desc  { font-size: .78rem; color: var(--text-2); line-height: 1.6; }
  .edu-arrow {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 700; color: var(--primary);
    margin-top: .75rem;
    transition: gap .2s ease;
  }
  .edu-a:hover .edu-arrow { gap: .5rem; }

  .partner-card {
    min-height: 15rem;
  }
  .partner-banner {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 4;
    object-fit: cover;
    border-radius: var(--r-sm);
    margin-bottom: .85rem;
    border: 1px solid var(--border-dim);
    background: var(--bg-card);
  }
  .partner-logo-img {
    display: block;
    width: 100%;
    height: 4.75rem;
    object-fit: contain;
    border-radius: var(--r-sm);
    padding: 0;
    margin-bottom: .85rem;
    border: 1px solid var(--border-dim);
    background: #111827;
  }
  .partner-logo-nordpass {
    background: #102a32;
  }
  .partner-logo-text {
    display: flex;
    align-items: center;
    height: 4.75rem;
    border-radius: var(--r-sm);
    padding: 1rem;
    margin-bottom: .85rem;
    border: 1px solid var(--border-dim);
    background: linear-gradient(135deg, #123057, #0d7a75);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
  }
  .partner-logo-vpn {
    background: linear-gradient(135deg, #2563eb, #111827);
  }
  .partner-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .22rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--border-dim);
    color: var(--text-3);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .55rem;
  }

  .section-label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-3); margin-bottom: .85rem;
  }
  .resource-section {
    max-width: var(--content-readable-width);
    margin: 2rem auto 0;
  }

  footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
  }
  .foot-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .foot-brand { display: flex; align-items: center; gap: .6rem; }
  .foot-copy { font-size: .75rem; color: var(--text-3); }
  .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  .foot-links a { font-size: .75rem; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color .2s ease; }
  .foot-links a:hover { color: #f27121; }

  #toast {
    position: fixed; bottom: 1.75rem; left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: linear-gradient(135deg, #6366f1, #6366f1);
    color: #fff;
    padding: .7rem 1.5rem; border-radius: var(--r-full);
    font-size: .8rem; font-weight: 600;
    display: flex; align-items: center; gap: .5rem;
    box-shadow: var(--sh-lg), 0 0 20px rgba(99, 102, 241, .5);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .4s;
    opacity: 0; pointer-events: none; z-index: 100;
  }
  #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

  @media (max-width: 1024px) {
    .nav-wrap { max-width: 100%; }
    .hero-inner { max-width: 90%; }
    .content { max-width: 100%; }
  }
  @media (max-width: 920px) {
    .grid2 { grid-template-columns: 1fr; }
    .trust-band { grid-template-columns: 1fr 1fr; }
    .speed-panel,
    .speed-details { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .burger { display: flex; }
  }
  @media (max-width: 600px) {
    .editorial-card {
      margin-top: 1.1rem;
      padding: 1.1rem;
      border-radius: var(--r-sm);
    }
    .editorial-card + .editorial-card { margin-top: .85rem; }
    .editorial-card h2 {
      font-size: 1.15rem;
      line-height: 1.3;
      margin-bottom: .65rem;
    }
    .editorial-card p {
      font-size: .93rem;
      line-height: 1.65;
      margin-bottom: .75rem;
    }
    .aff-body  { grid-template-columns: 1fr; }
    .edu-grid  { grid-template-columns: 1fr; }
    .trust-band { grid-template-columns: 1fr; }
    .speed-metrics { grid-template-columns: 1fr; }
    .stats-inner { gap: 1.25rem; }
    .hero-band { padding: 3rem 1rem 4rem; }
    .hero-ip { font-size: 2rem; }
    .foot-inner { flex-direction: column; align-items: flex-start; }
    .search-input { font-size: 1rem; }
    .btn-search { padding: 0 1.1rem; }
    .btn-search { font-size: 0; white-space: nowrap; }
    .speed-start { font-size: .86rem; }
    .btn-search svg { font-size: 16px; margin-right: 0; }
    .search-inner { padding: .4rem .4rem .4rem 1rem; }
    .btn-copy-hero { width: 46px; height: 46px; }
  }
  @keyframes spin { to { transform: rotate(360deg); } }

/* Article index and article detail styles */

:root {
  --bg: #0d0d1c;
  --bg-dim: #121221;
  --bg-nav: rgba(18, 18, 33, 0.9);
  --bg-card: #1e1e2e;
  --border: rgba(70, 69, 84, 0.45);
  --text: #e3e0f6;
  --text-2: #c7c4d7;
  --text-3: #908fa0;
  --primary: #c0c1ff;
  --primary-dim: rgba(192, 193, 255, 0.15);
  --secondary: #ffb95d;
  --glass-bg: rgba(30, 30, 46, 0.72);
  --glass-blur: blur(12px);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --sh-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --t: 0.3s;
}

[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-dim: #e8e9f4;
  --bg-nav: rgba(244, 245, 250, 0.92);
  --bg-card: #ffffff;
  --border: rgba(209, 209, 224, 0.75);
  --text: #1a1a2e;
  --text-2: #4a4a6a;
  --text-3: #7a7a9a;
  --primary: #f27121;
  --primary-dim: rgba(242, 113, 33, 0.12);
  --secondary: #8b5cf6;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sh-md: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body:is(.page-articles, .page-article) *, body:is(.page-articles, .page-article) *::before, body:is(.page-articles, .page-article) *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  body:is(.page-articles, .page-article) *, body:is(.page-articles, .page-article) *::before, body:is(.page-articles, .page-article) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html { scroll-behavior: smooth; }

body:is(.page-articles, .page-article) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dim);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:is(.page-articles, .page-article) h1, body:is(.page-articles, .page-article) h2, body:is(.page-articles, .page-article) h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body:is(.page-articles, .page-article) a { color: inherit; }

*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

body:is(.page-articles, .page-article) .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

body:is(.page-articles, .page-article) .nav.scrolled { box-shadow: var(--sh-md); }

body:is(.page-articles, .page-article) .nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body:is(.page-articles, .page-article) .logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
}

body:is(.page-articles, .page-article) .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] body:is(.page-articles, .page-article) .logo-mark {
  background: #f27121;
  box-shadow: 0 4px 16px rgba(242, 113, 33, 0.35);
}

body:is(.page-articles, .page-article) .logo-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

body:is(.page-articles, .page-article) .logo-text em {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

body:is(.page-articles, .page-article) .nav-links, body:is(.page-articles, .page-article) .nav-right, body:is(.page-articles, .page-article) .foot-links {
  display: flex;
  align-items: center;
}

body:is(.page-articles, .page-article) .nav-links { gap: .25rem; }
body:is(.page-articles, .page-article) .nav-right { gap: .5rem; }

body:is(.page-articles, .page-article) .nav-a {
  padding: .5rem .9rem;
  border-radius: var(--r-xs);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  transition: color var(--t) ease, background var(--t) ease;
}

body:is(.page-articles, .page-article) .nav-a:hover, body:is(.page-articles, .page-article) .nav-a.on {
  color: var(--primary);
  background: var(--primary-dim);
}

body:is(.page-articles, .page-article) .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:is(.page-articles, .page-article) .icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

body:is(.page-articles, .page-article) .sun { display: none; }
body:is(.page-articles, .page-article) .moon { display: block; }
[data-theme="light"] body:is(.page-articles, .page-article) .sun { display: block; }
[data-theme="light"] body:is(.page-articles, .page-article) .moon { display: none; }

body:is(.page-articles, .page-article) .burger { display: none; }

body:is(.page-articles, .page-article) .mob-menu {
  display: none;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
}

body:is(.page-articles, .page-article) .mob-menu.open { display: flex; }

body:is(.page-articles, .page-article) .hero-band {
  background: var(--bg-dim);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body:is(.page-articles, .page-article) .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="light"] body:is(.page-articles, .page-article) .hero-band {
  background: linear-gradient(180deg, rgba(242, 113, 33, 0.08), transparent);
}

[data-theme="light"] body:is(.page-articles, .page-article) .hero-band::before { display: none; }

body:is(.page-articles, .page-article) .hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body.page-article .hero-inner {
  max-width: 1100px;
}

body:is(.page-articles, .page-article) .hero-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1rem;
}

[data-theme="light"] body:is(.page-articles, .page-article) .hero-title { color: #f27121; }

body:is(.page-articles, .page-article) .hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto;
}

body.page-article .hero-desc {
  max-width: 820px;
}

[data-theme="light"] body:is(.page-articles, .page-article) .hero-desc { color: var(--text); }

body:is(.page-articles, .page-article) .content {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

body.page-articles .editorial-card {
  max-width: 100%;
  margin: 1.5rem auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

body.page-articles .editorial-card:hover {
  border-color: var(--border);
  box-shadow: var(--sh-md);
  transform: none;
}

body.page-articles .editorial-card h2 {
  margin: 0 0 .8rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.25;
}

body.page-articles .editorial-card p {
  max-width: 78ch;
  margin: 0 0 .85rem;
  color: var(--text-2);
  font-size: .98rem;
  line-height: 1.75;
}

body.page-articles .editorial-card p:last-child { margin-bottom: 0; }

body:is(.page-articles, .page-article) .article-content {
  max-width: 760px;
}

body:is(.page-articles, .page-article) .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-3);
  margin-bottom: 2rem;
}

body:is(.page-articles, .page-article) .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

body:is(.page-articles, .page-article) .breadcrumb a:hover { text-decoration: underline; }

body:is(.page-articles, .page-article) .article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.page-articles .article-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

body.page-articles .dashboard-panel,
body.page-articles .dashboard-stat,
body.page-articles .article-categories span {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

body.page-articles .dashboard-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

body.page-articles .dashboard-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}

body.page-articles .dashboard-panel h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}

body.page-articles .dashboard-panel p:not(.dashboard-kicker) {
  color: var(--text-2);
  max-width: 640px;
}

body.page-articles .dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

body.page-articles .dashboard-stat {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

body.page-articles .dashboard-stat strong {
  color: var(--primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

body.page-articles .dashboard-stat span {
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

body.page-articles .article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

body.page-articles .article-categories span {
  border-radius: 999px;
  padding: .5rem .85rem;
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 700;
}

body.page-articles .article-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.15rem;
  margin-top: 2rem;
}

body:is(.page-articles, .page-article) .article-card, body:is(.page-articles, .page-article) .article-box, body:is(.page-articles, .page-article) .affiliate-cta {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

body:is(.page-articles, .page-article) .article-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.45rem;
  text-decoration: none;
  transition: transform var(--t) ease, box-shadow var(--t) ease, border-color var(--t) ease;
}

body.page-articles .article-card {
  position: relative;
  overflow: hidden;
}

body.page-articles .article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #f27121, #8b5cf6);
  opacity: .85;
}

body.page-articles .article-card.featured {
  grid-column: span 2;
  min-height: 275px;
  background:
    linear-gradient(135deg, rgba(242, 113, 33, .18), rgba(139, 92, 246, .12)),
    var(--glass-bg);
}

body.page-articles .article-card.featured.privacy {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(74, 222, 128, .1)),
    var(--glass-bg);
}

body:is(.page-articles, .page-article) .article-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--sh-md);
}

body:is(.page-articles, .page-article) .article-card h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: .75rem;
}

body.page-articles .article-card.featured h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  max-width: 540px;
}

body.page-articles .article-card small {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .85rem;
}

body:is(.page-articles, .page-article) .article-card p {
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.65;
}

body:is(.page-articles, .page-article) .article-card span {
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  margin-top: auto;
  padding-top: 1rem;
}

body.page-articles .article-card span::after {
  content: " →";
}

body:is(.page-articles, .page-article) .article-box {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

body:is(.page-articles, .page-article) .article-box h2, body:is(.page-articles, .page-article) .article-box h3 {
  color: var(--text);
  line-height: 1.25;
}

body:is(.page-articles, .page-article) .article-box h2 {
  font-size: 1.45rem;
  margin: 2rem 0 .8rem;
}

body:is(.page-articles, .page-article) .article-box h2:first-child, body:is(.page-articles, .page-article) .article-box h3:first-child { margin-top: 0; }

body:is(.page-articles, .page-article) .article-box h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 .65rem;
}

body:is(.page-articles, .page-article) .article-box p, body:is(.page-articles, .page-article) .article-box li {
  color: var(--text-2);
  font-size: 1rem;
}

body:is(.page-articles, .page-article) .article-box p { margin-bottom: 1rem; }

body:is(.page-articles, .page-article) .article-box ul {
  margin: 0 0 1.1rem 1.25rem;
}

body:is(.page-articles, .page-article) .article-box li { margin-bottom: .45rem; }

body:is(.page-articles, .page-article) .article-meta {
  color: var(--text-3);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

body.page-article .article-lead {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

body.page-article .article-visual {
  margin: .5rem 0 2rem;
}

body.page-article .article-visual img {
  aspect-ratio: 8 / 3;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

body.page-article .key-takeaways,
body.page-article .article-faq {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
}

[data-theme="light"] body.page-article .key-takeaways,
[data-theme="light"] body.page-article .article-faq {
  background: rgba(242, 113, 33, .055);
}

body.page-article .key-takeaways h2,
body.page-article .article-faq h2 {
  margin-top: 0;
}

body.page-article .article-faq h3 {
  color: var(--text);
  font-size: 1.02rem;
  margin-top: 1.35rem;
}

body.page-article .article-faq h3:first-of-type {
  margin-top: .5rem;
}

body.page-article .article-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

body.page-article .article-table th,
body.page-article .article-table td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-2);
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
}

body.page-article .article-table th {
  background: rgba(242, 113, 33, .12);
  color: var(--text);
  font-weight: 800;
}

body.page-article .article-table tr:last-child td {
  border-bottom: 0;
}

body.page-article .article-table th:last-child,
body.page-article .article-table td:last-child {
  border-right: 0;
}

body:is(.page-articles, .page-article) .affiliate-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  text-align: center;
}

body:is(.page-articles, .page-article) .btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: var(--r-xs);
  background: linear-gradient(135deg, #f27121, #ef9f27);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  margin: .35rem;
}

body:is(.page-articles, .page-article) .related-links {
  margin-top: 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

body:is(.page-articles, .page-article) .related-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

body:is(.page-articles, .page-article) footer {
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
}

body:is(.page-articles, .page-article) .foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body:is(.page-articles, .page-article) .foot-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

body:is(.page-articles, .page-article) .foot-copy {
  font-size: .75rem;
  color: var(--text-3);
}

body:is(.page-articles, .page-article) .foot-links {
  gap: 1.25rem;
  flex-wrap: wrap;
}

body:is(.page-articles, .page-article) .foot-links a {
  font-size: .75rem;
  color: var(--text-2);
  text-decoration: none;
}

body:is(.page-articles, .page-article) .foot-links a:hover { color: var(--primary); }

@media (max-width: 900px) {
  body.page-articles .article-dashboard { grid-template-columns: 1fr; }
  body.page-articles .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
  body:is(.page-articles, .page-article) .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-articles .article-card.featured { grid-column: span 1; }
}

@media (max-width: 768px) {
  body:is(.page-articles, .page-article) .nav-links { display: none; }
  body:is(.page-articles, .page-article) .burger { display: flex; }
  body:is(.page-articles, .page-article) .hero-title { font-size: 2rem; }
  body:is(.page-articles, .page-article) .content { padding: 2rem 1rem 4rem; }
  body.page-articles .editorial-card {
    margin-top: 1.1rem;
    padding: 1.1rem;
    border-radius: var(--r-sm);
  }
  body.page-articles .editorial-card h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: .65rem;
  }
  body.page-articles .editorial-card p {
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: .75rem;
  }
  body.page-articles .dashboard-stats { grid-template-columns: 1fr; }
  body.page-articles .dashboard-stat { align-items: center; }
  body:is(.page-articles, .page-article) .article-grid { grid-template-columns: 1fr; }
}

/* about.html specific styles */

:root {
    --bg: #0d0d1c;
    --bg-dim: #121221;
    --bg-nav: rgba(18, 18, 33, 0.85);
    --bg-card: #1e1e2e;
    --bg-card-high: #292839;
    --bg-card-highest: #343344;
    --border: #464554;
    --border-dim: rgba(70, 69, 84, 0.3);
    --text: #e3e0f6;
    --text-2: #c7c4d7;
    --text-3: #908fa0;
    --primary: #c0c1ff;
    --primary-dim: rgba(192, 193, 255, 0.15);
    --primary-glow: rgba(242, 113, 33, 0.4);
    --secondary: #ffb95d;
    --secondary-dim: rgba(255, 185, 93, 0.15);
    --green: #4ade80;
    --green-bg: rgba(74, 222, 128, 0.12);
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-blur: blur(12px);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --r-full: 9999px;
    --t: 0.3s;
  }
  [data-theme="light"] {
    --bg: #f4f5fa;
    --bg-dim: #e8e9f4;
    --bg-nav: rgba(244, 245, 250, 0.9);
    --bg-card: #ffffff;
    --bg-card-high: #f0f1f8;
    --bg-card-highest: #e4e5f0;
    --border: #d1d1e0;
    --border-dim: rgba(167, 170, 193, 0.45);
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #7a7a9a;
    --primary: #f27121;
    --primary-dim: rgba(242, 113, 33, 0.1);
    --primary-glow: rgba(242, 113, 33, 0.25);
    --secondary: #8b5cf6;
    --secondary-dim: rgba(139, 92, 246, 0.1);
    --green: #16a34a;
    --green-bg: rgba(22, 163, 74, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  [data-theme="light"] body.page-about .hero-band {
    background: linear-gradient(180deg, rgba(242, 113, 33, 0.08) 0%, transparent 100%);
  }
  [data-theme="light"] body.page-about .hero-band::before {
    display: none;
  }
  [data-theme="light"] body.page-about .hero-band::after {
    display: none;
  }
  [data-theme="light"] body.page-about .hero-title {
    color: #f27121;
  }
  [data-theme="light"] body.page-about .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] body.page-about .logo-mark {
    background: #f27121;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }

  body.page-about *, body.page-about *::before, body.page-about *::after { box-sizing: border-box; margin: 0; padding: 0; }
  @media (prefers-reduced-motion: reduce) { body.page-about *, body.page-about *::before, body.page-about *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
  html { scroll-behavior: smooth; }
  body.page-about {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dim);

    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t) ease, color var(--t) ease;
  }
  body.page-about h1, body.page-about h2, body.page-about h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  *:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
  ::selection { background: var(--primary); color: #fff; }

  body.page-about .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease;
  }
  body.page-about .nav.scrolled { box-shadow: var(--sh-md); }
  body.page-about .nav-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
  }
  body.page-about .logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: opacity var(--t) ease;
  }
  body.page-about .logo:hover { opacity: .85; }
  body.page-about .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform var(--t) ease, box-shadow var(--t) ease;
  }
  body.page-about .logo:hover .logo-mark { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); }
  [data-theme="light"] body.page-about .logo:hover .logo-mark { box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5); }
  body.page-about .logo-text { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
  body.page-about .logo-text em { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }

  body.page-about .nav-links { display: flex; align-items: center; gap: .25rem; }
  body.page-about .nav-a {
    padding: .5rem .9rem; border-radius: var(--r-xs);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-2); cursor: pointer;
    transition: color var(--t) ease, background var(--t) ease;
  }
  body.page-about .nav-a:hover { color: var(--primary); background: var(--primary-dim); }
  body.page-about .nav-a.on { color: var(--primary); background: var(--primary-dim); font-weight: 700; }

  body.page-about .nav-right { display: flex; align-items: center; gap: .5rem; }
  body.page-about .icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-xs);
    border: 1px solid var(--border-dim); background: transparent;
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t) ease;
  }
  body.page-about .icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
  body.page-about .sun { display: none; }
  body.page-about .moon { display: block; }
  [data-theme="light"] body.page-about .sun { display: block; }
  [data-theme="light"] body.page-about .moon { display: none; }

  body.page-about .burger { display: none; }
  body.page-about .mob-menu { display: none; flex-direction: column; gap: .2rem; padding: .75rem 1.5rem 1rem; border-bottom: 1px solid var(--border-dim); background: var(--bg-nav); backdrop-filter: var(--glass-blur); }
  body.page-about .mob-menu.open { display: flex; }

  body.page-about .hero-band {
    background: var(--bg-dim);
    padding: 4.5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
  }
  body.page-about .hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  body.page-about .hero-band::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dim));
    pointer-events: none;
  }
  body.page-about .hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; animation: fadeInUp .6s ease both; }
  @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  body.page-about .hero-logo {
    width: 88px; height: 88px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(242, 113, 33, 0.3);
  }
  body.page-about .hero-logo svg { width: 44px; height: 44px; }
  body.page-about .hero-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1.15;
    margin-bottom: 1rem;
  }
  body.page-about .hero-desc {
    font-size: 1.1rem; color: rgba(255, 255, 255, 0.8);
    max-width: 560px; margin: 0 auto;
    line-height: 1.7;
  }

  body.page-about .content {
    max-width: 900px; margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }

  body.page-about .breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--text-3);
    margin-bottom: 2rem;
    animation: fadeInUp .5s ease both;
  }
  body.page-about .breadcrumb a { color: var(--primary); text-decoration: none; }
  body.page-about .breadcrumb a:hover { text-decoration: underline; }

  body.page-about .card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 2rem;
    box-shadow: var(--sh-sm);
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease, transform var(--t) ease, border-color var(--t) ease;
    animation: fadeInUp .5s ease both;
  }
  body.page-about .card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); transform: translateY(-2px); border-color: var(--primary); }
  body.page-about .card h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-dim);
  }
  body.page-about .card p {
    font-size: .95rem; color: var(--text-2);
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  body.page-about .card p:last-child { margin-bottom: 0; }
  body.page-about .card a { color: var(--primary); text-decoration: none; font-weight: 600; }
  body.page-about .card a:hover { text-decoration: underline; }

  body.page-about .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
  }
  body.page-about .feature-item {
    display: flex; align-items: flex-start; gap: .85rem;
    padding: 1.25rem;
    background: var(--bg-card-high);
    border-radius: var(--r-sm);
    transition: all var(--t) ease;
  }
  body.page-about .feature-item:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
  body.page-about .feature-icon {
    width: 44px; height: 44px; border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  body.page-about .feature-icon.blue { background: var(--primary-dim); }
  body.page-about .feature-icon.blue svg { stroke: var(--primary); }
  body.page-about .feature-icon.green { background: var(--green-bg); }
  body.page-about .feature-icon.green svg { stroke: var(--green); }
  body.page-about .feature-icon.orange { background: var(--secondary-dim); }
  body.page-about .feature-icon.orange svg { stroke: var(--secondary); }
  body.page-about .feature-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
  body.page-about .feature-desc { font-size: .8rem; color: var(--text-2); line-height: 1.55; }

  body.page-about .stack-section {
    background: var(--bg-card-high);
    border-radius: var(--r-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
  body.page-about .stack-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
  body.page-about .stack-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
  body.page-about .stack-tag {
    padding: .4rem .9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-full);
    font-size: .75rem; font-weight: 600; color: var(--text-2);
    transition: all var(--t) ease;
  }
  body.page-about .stack-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

  body.page-about .cta-section { text-align: center; margin-top: 2.5rem; }
  body.page-about .btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .9rem 2rem;
    background: linear-gradient(135deg, #f27121, #ef9f27);
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .95rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
    border-radius: var(--r-sm);
    border: none;
    transition: all var(--t) ease;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }
  body.page-about .btn-primary:hover { background: linear-gradient(135deg, #d4601a, #d4871a); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5); }
  body.page-about .btn-primary:active { transform: translateY(0); }
  body.page-about .btn-primary svg { width: 18px; height: 18px; }

  body.page-about footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
  }
  body.page-about .foot-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  }
  body.page-about .foot-brand { display: flex; align-items: center; gap: .6rem; }
  body.page-about .foot-copy { font-size: .75rem; color: var(--text-3); }
  body.page-about .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  body.page-about .foot-links a { font-size: .75rem; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color var(--t) ease; }
  body.page-about .foot-links a:hover { color: var(--primary); }

  @media (max-width: 768px) {
    body.page-about .nav-links { display: none; }
    body.page-about .burger { display: flex; }
    body.page-about .features-grid { grid-template-columns: 1fr; }
    body.page-about .card { padding: 1.5rem; }
    body.page-about .hero-band { padding: 3.5rem 1.5rem; }
  }

/* contact.html specific styles */

:root {
    --bg: #0d0d1c;
    --bg-dim: #121221;
    --bg-nav: rgba(18, 18, 33, 0.85);
    --bg-card: #1e1e2e;
    --bg-card-high: #292839;
    --bg-card-highest: #343344;
    --border: #464554;
    --border-dim: rgba(70, 69, 84, 0.3);
    --text: #e3e0f6;
    --text-2: #c7c4d7;
    --text-3: #908fa0;
    --primary: #c0c1ff;
    --primary-dim: rgba(192, 193, 255, 0.15);
    --primary-glow: rgba(242, 113, 33, 0.4);
    --secondary: #ffb95d;
    --secondary-dim: rgba(255, 185, 93, 0.15);
    --green: #4ade80;
    --green-bg: rgba(74, 222, 128, 0.12);
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-blur: blur(12px);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --r-full: 9999px;
    --t: 0.3s;
  }
  [data-theme="light"] {
    --bg: #f4f5fa;
    --bg-dim: #e8e9f4;
    --bg-nav: rgba(244, 245, 250, 0.9);
    --bg-card: #ffffff;
    --bg-card-high: #f0f1f8;
    --bg-card-highest: #e4e5f0;
    --border: #d1d1e0;
    --border-dim: rgba(167, 170, 193, 0.45);
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #7a7a9a;
    --primary: #f27121;
    --primary-dim: rgba(242, 113, 33, 0.1);
    --primary-glow: rgba(242, 113, 33, 0.25);
    --secondary: #8b5cf6;
    --secondary-dim: rgba(139, 92, 246, 0.1);
    --green: #16a34a;
    --green-bg: rgba(22, 163, 74, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  [data-theme="light"] body.page-contact .hero-band {
    background: linear-gradient(180deg, rgba(242, 113, 33, 0.08) 0%, transparent 100%);
  }
  [data-theme="light"] body.page-contact .hero-band::before {
    display: none;
  }
  [data-theme="light"] body.page-contact .hero-band::after {
    display: none;
  }
  [data-theme="light"] body.page-contact .hero-title {
    color: #f27121;
  }
  [data-theme="light"] body.page-contact .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] body.page-contact .logo-mark {
    background: #f27121;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }

  body.page-contact *, body.page-contact *::before, body.page-contact *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body.page-contact {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dim);

    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t) ease, color var(--t) ease;
  }
  body.page-contact h1, body.page-contact h2, body.page-contact h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  *:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

  body.page-contact .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  body.page-contact .nav-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
  }
  body.page-contact .logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: opacity var(--t) ease;
  }
  body.page-contact .logo:hover { opacity: .85; }
  body.page-contact .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform var(--t) ease, box-shadow var(--t) ease;
  }
  body.page-contact .logo:hover .logo-mark { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); }
  [data-theme="light"] body.page-contact .logo:hover .logo-mark { box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5); }
  body.page-contact .logo-text { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
  body.page-contact .logo-text em { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }

  body.page-contact .nav-links { display: flex; align-items: center; gap: .25rem; }
  body.page-contact .nav-a {
    padding: .5rem .9rem; border-radius: var(--r-xs);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-2); cursor: pointer;
    transition: color var(--t) ease, background var(--t) ease;
  }
  body.page-contact .nav-a:hover { color: var(--primary); background: var(--primary-dim); }
  body.page-contact .nav-a.on { color: var(--primary); background: var(--primary-dim); font-weight: 700; }

  body.page-contact .nav-right { display: flex; align-items: center; gap: .5rem; }
  body.page-contact .icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-xs);
    border: 1px solid var(--border-dim); background: transparent;
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t) ease;
  }
  body.page-contact .icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
  body.page-contact .sun { display: none; }
  body.page-contact .moon { display: block; }
  [data-theme="light"] body.page-contact .sun { display: block; }
  [data-theme="light"] body.page-contact .moon { display: none; }

  body.page-contact .burger { display: none; }
  body.page-contact .mob-menu { display: none; flex-direction: column; gap: .2rem; padding: .75rem 1.5rem 1rem; border-bottom: 1px solid var(--border-dim); background: var(--bg-nav); }
  body.page-contact .mob-menu.open { display: flex; }

  body.page-contact .hero-band {
    background: var(--bg-dim);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
  }
  body.page-contact .hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  body.page-contact .hero-band::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dim));
    pointer-events: none;
  }
  body.page-contact .hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
  body.page-contact .hero-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1.2;
  }

  body.page-contact .content {
    max-width: 600px; margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }

  body.page-contact .breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--text-3);
    margin-bottom: 2rem;
  }
  body.page-contact .breadcrumb a { color: var(--primary); text-decoration: none; }
  body.page-contact .breadcrumb a:hover { text-decoration: underline; }

  body.page-contact .card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 2.5rem;
    box-shadow: var(--sh-sm);
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease, border-color var(--t) ease;
  }
  body.page-contact .card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); border-color: var(--primary); }

  body.page-contact .contact-icon {
    width: 80px; height: 80px; border-radius: 20px;
    background: var(--primary-dim);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--t) ease;
  }
  body.page-contact .card:hover .contact-icon { background: var(--primary); transform: scale(1.05); }
  body.page-contact .contact-icon svg { width: 36px; height: 36px; stroke: var(--primary); transition: stroke var(--t) ease; }
  body.page-contact .card:hover .contact-icon svg { stroke: #fff; }

  body.page-contact .card h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
  }
  body.page-contact .card > p {
    font-size: .95rem; color: var(--text-2);
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-contact .email-box {
    background: var(--bg-card-high);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-sm);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all var(--t) ease;
    text-decoration: none;
  }
  body.page-contact .email-box:hover { border-color: var(--primary); box-shadow: var(--sh-md), 0 0 15px var(--primary-glow); transform: translateY(-2px); }
  body.page-contact .email-icon {
    width: 48px; height: 48px; border-radius: var(--r-xs);
    background: var(--primary-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--t) ease;
  }
  body.page-contact .email-box:hover .email-icon { background: var(--primary); }
  body.page-contact .email-icon svg { width: 22px; height: 22px; stroke: var(--primary); transition: stroke var(--t) ease; }
  body.page-contact .email-box:hover .email-icon svg { stroke: #fff; }
  body.page-contact .email-content { text-align: left; }
  body.page-contact .email-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .15rem; }
  body.page-contact .email-address { font-size: 1rem; font-weight: 700; color: var(--primary); font-family: 'Courier New', monospace; }
  body.page-contact .email-note { font-size: .78rem; color: var(--text-2); margin-top: .2rem; }

  body.page-contact .topics-section {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dim);
  }
  body.page-contact .topics-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
  body.page-contact .topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
  body.page-contact .topic-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1rem;
    background: var(--bg-card-high);
    border-radius: var(--r-sm);
    transition: all var(--t) ease;
  }
  body.page-contact .topic-item:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
  body.page-contact .topic-icon {
    width: 34px; height: 34px; border-radius: var(--r-xs);
    background: var(--primary-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  body.page-contact .topic-icon svg { width: 16px; height: 16px; stroke: var(--primary); }
  body.page-contact .topic-text { font-size: .82rem; font-weight: 600; color: var(--text); }

  body.page-contact .social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dim);
  }
  body.page-contact .social-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
  body.page-contact .social-grid { display: flex; justify-content: center; gap: .75rem; }
  body.page-contact .social-btn {
    width: 48px; height: 48px; border-radius: var(--r-sm);
    border: 1px solid var(--border-dim);
    background: transparent;
    color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t) ease;
  }
  body.page-contact .social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-2px); }
  body.page-contact .social-btn svg { width: 20px; height: 20px; }

  body.page-contact .response-time {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--green-bg);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--r-full);
    padding: .4rem 1rem;
    margin-top: 1.5rem;
    font-size: .78rem; font-weight: 600; color: var(--green);
  }
  body.page-contact .response-time svg { width: 14px; height: 14px; }

  body.page-contact footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
  }
  body.page-contact .foot-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  }
  body.page-contact .foot-brand { display: flex; align-items: center; gap: .6rem; }
  body.page-contact .foot-copy { font-size: .75rem; color: var(--text-3); }
  body.page-contact .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  body.page-contact .foot-links a { font-size: .75rem; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color var(--t) ease; }
  body.page-contact .foot-links a:hover { color: var(--primary); }

  @media (max-width: 768px) {
    body.page-contact .nav-links { display: none; }
    body.page-contact .burger { display: flex; }
    body.page-contact .card { padding: 2rem 1.5rem; }
    body.page-contact .topics-grid { grid-template-columns: 1fr; }
  }

/* privacy-policy.html specific styles */

:root {
    --bg: #0d0d1c;
    --bg-dim: #121221;
    --bg-nav: rgba(18, 18, 33, 0.85);
    --bg-card: #1e1e2e;
    --bg-card-high: #292839;
    --bg-card-highest: #343344;
    --border: #464554;
    --border-dim: rgba(70, 69, 84, 0.3);
    --text: #e3e0f6;
    --text-2: #c7c4d7;
    --text-3: #908fa0;
    --primary: #c0c1ff;
    --primary-dim: rgba(192, 193, 255, 0.15);
    --primary-glow: rgba(242, 113, 33, 0.4);
    --secondary: #ffb95d;
    --secondary-dim: rgba(255, 185, 93, 0.15);
    --green: #4ade80;
    --green-bg: rgba(74, 222, 128, 0.12);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.12);
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-blur: blur(12px);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --r-full: 9999px;
    --t: 0.3s;
  }
  [data-theme="light"] {
    --bg: #f4f5fa;
    --bg-dim: #e8e9f4;
    --bg-nav: rgba(244, 245, 250, 0.9);
    --bg-card: #ffffff;
    --bg-card-high: #f0f1f8;
    --bg-card-highest: #e4e5f0;
    --border: #d1d1e0;
    --border-dim: rgba(167, 170, 193, 0.45);
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #7a7a9a;
    --primary: #f27121;
    --primary-dim: rgba(242, 113, 33, 0.1);
    --primary-glow: rgba(242, 113, 33, 0.25);
    --secondary: #8b5cf6;
    --secondary-dim: rgba(139, 92, 246, 0.1);
    --green: #16a34a;
    --green-bg: rgba(22, 163, 74, 0.1);
    --warn: #d97706;
    --warn-bg: rgba(217, 119, 6, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  [data-theme="light"] body.page-legal .hero-band {
    background: linear-gradient(180deg, rgba(242, 113, 33, 0.08) 0%, transparent 100%);
  }
  [data-theme="light"] body.page-legal .hero-band::before {
    display: none;
  }
  [data-theme="light"] body.page-legal .hero-band::after {
    display: none;
  }
  [data-theme="light"] body.page-legal .hero-title {
    color: #f27121;
  }
  [data-theme="light"] body.page-legal .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] body.page-legal .logo-mark {
    background: #f27121;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }

  body.page-legal *, body.page-legal *::before, body.page-legal *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body.page-legal {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dim);

    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t) ease, color var(--t) ease;
  }
  body.page-legal h1, body.page-legal h2, body.page-legal h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  *:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

  body.page-legal .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  body.page-legal .nav-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
  }
  body.page-legal .logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: opacity var(--t) ease;
  }
  body.page-legal .logo:hover { opacity: .85; }
  body.page-legal .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform var(--t) ease, box-shadow var(--t) ease;
  }
  body.page-legal .logo:hover .logo-mark { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); }
  [data-theme="light"] body.page-legal .logo:hover .logo-mark { box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5); }
  body.page-legal .logo-text { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
  body.page-legal .logo-text em { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }

  body.page-legal .nav-links { display: flex; align-items: center; gap: .25rem; }
  body.page-legal .nav-a {
    padding: .5rem .9rem; border-radius: var(--r-xs);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-2); cursor: pointer;
    transition: color var(--t) ease, background var(--t) ease;
  }
  body.page-legal .nav-a:hover { color: var(--primary); background: var(--primary-dim); }
  body.page-legal .nav-a.on { color: var(--primary); background: var(--primary-dim); font-weight: 700; }

  body.page-legal .nav-right { display: flex; align-items: center; gap: .5rem; }
  body.page-legal .icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-xs);
    border: 1px solid var(--border-dim); background: transparent;
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t) ease;
  }
  body.page-legal .icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
  body.page-legal .sun { display: none; }
  body.page-legal .moon { display: block; }
  [data-theme="light"] body.page-legal .sun { display: block; }
  [data-theme="light"] body.page-legal .moon { display: none; }

  body.page-legal .burger { display: none; }
  body.page-legal .mob-menu { display: none; flex-direction: column; gap: .2rem; padding: .75rem 1.5rem 1rem; border-bottom: 1px solid var(--border-dim); background: var(--bg-nav); }
  body.page-legal .mob-menu.open { display: flex; }

  body.page-legal .hero-band {
    background: var(--bg-dim);
    padding: 3.5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
  }
  body.page-legal .hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  body.page-legal .hero-band::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dim));
    pointer-events: none;
  }
  body.page-legal .hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
  body.page-legal .hero-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1.2;
  }

  body.page-legal .content {
    max-width: 800px; margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }

  body.page-legal .breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--text-3);
    margin-bottom: 2rem;
  }
  body.page-legal .breadcrumb a { color: var(--primary); text-decoration: none; }
  body.page-legal .breadcrumb a:hover { text-decoration: underline; }

  body.page-legal .card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 2rem;
    box-shadow: var(--sh-sm);
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease, border-color var(--t) ease;
  }
  body.page-legal .card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); border-color: var(--primary); }
  body.page-legal .card h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-dim);
  }
  body.page-legal .card h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--text);
    margin: 1.25rem 0 .5rem;
  }
  body.page-legal .card p {
    font-size: .9rem; color: var(--text-2);
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  body.page-legal .card ul {
    list-style: none; margin-bottom: 1rem;
    padding-left: 0;
  }
  body.page-legal .card li {
    font-size: .9rem; color: var(--text-2);
    padding: .4rem 0 .4rem 1.5rem;
    position: relative;
    line-height: 1.6;
  }
  body.page-legal .card li::before {
    content: ''; position: absolute;
    left: 0; top: .85rem;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
  }
  body.page-legal .card a { color: var(--primary); text-decoration: none; font-weight: 600; }
  body.page-legal .card a:hover { text-decoration: underline; }

  body.page-legal .info-box {
    background: var(--primary-dim);
    border: 1px solid rgba(242, 113, 33, 0.3);
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
  }
  body.page-legal .info-box p {
    font-size: .88rem;
    color: var(--text);
    margin-bottom: 0;
  }
  body.page-legal .info-box strong { color: var(--primary); }

  body.page-legal .email-highlight {
    background: var(--bg-card-high);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-sm);
    padding: .75rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    color: var(--primary);
  }

  body.page-legal footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
  }
  body.page-legal .foot-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  }
  body.page-legal .foot-brand { display: flex; align-items: center; gap: .6rem; }
  body.page-legal .foot-copy { font-size: .75rem; color: var(--text-3); }
  body.page-legal .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  body.page-legal .foot-links a { font-size: .75rem; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color var(--t) ease; }
  body.page-legal .foot-links a:hover { color: var(--primary); }

  @media (max-width: 768px) {
    body.page-legal .nav-links { display: none; }
    body.page-legal .burger { display: flex; }
    body.page-legal .card { padding: 1.5rem; }
  }

/* terms.html specific styles */

:root {
    --bg: #0d0d1c;
    --bg-dim: #121221;
    --bg-nav: rgba(18, 18, 33, 0.85);
    --bg-card: #1e1e2e;
    --bg-card-high: #292839;
    --bg-card-highest: #343344;
    --border: #464554;
    --border-dim: rgba(70, 69, 84, 0.3);
    --text: #e3e0f6;
    --text-2: #c7c4d7;
    --text-3: #908fa0;
    --primary: #c0c1ff;
    --primary-dim: rgba(192, 193, 255, 0.15);
    --primary-glow: rgba(242, 113, 33, 0.4);
    --secondary: #ffb95d;
    --secondary-dim: rgba(255, 185, 93, 0.15);
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-blur: blur(12px);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --r-full: 9999px;
    --t: 0.3s;
  }
  [data-theme="light"] {
    --bg: #f4f5fa;
    --bg-dim: #e8e9f4;
    --bg-nav: rgba(244, 245, 250, 0.9);
    --bg-card: #ffffff;
    --bg-card-high: #f0f1f8;
    --bg-card-highest: #e4e5f0;
    --border: #d1d1e0;
    --border-dim: rgba(167, 170, 193, 0.45);
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #7a7a9a;
    --primary: #f27121;
    --primary-dim: rgba(242, 113, 33, 0.1);
    --primary-glow: rgba(242, 113, 33, 0.25);
    --secondary: #8b5cf6;
    --secondary-dim: rgba(139, 92, 246, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  [data-theme="light"] body.page-legal .hero-band {
    background: linear-gradient(180deg, rgba(242, 113, 33, 0.08) 0%, transparent 100%);
  }
  [data-theme="light"] body.page-legal .hero-band::before {
    display: none;
  }
  [data-theme="light"] body.page-legal .hero-band::after {
    display: none;
  }
  [data-theme="light"] body.page-legal .hero-title {
    color: #f27121;
  }
  [data-theme="light"] body.page-legal .hero-desc {
    color: var(--text);
  }
  [data-theme="light"] body.page-legal .logo-mark {
    background: #f27121;
    box-shadow: 0 4px 16px rgba(242, 113, 33, 0.4);
  }

  body.page-legal *, body.page-legal *::before, body.page-legal *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body.page-legal {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dim);

    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t) ease, color var(--t) ease;
  }
  body.page-legal h1, body.page-legal h2, body.page-legal h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  *:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

  body.page-legal .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  body.page-legal .nav-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
  }
  body.page-legal .logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: opacity var(--t) ease;
  }
  body.page-legal .logo:hover { opacity: .85; }
  body.page-legal .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform var(--t) ease, box-shadow var(--t) ease;
  }
  body.page-legal .logo:hover .logo-mark { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); }
  [data-theme="light"] body.page-legal .logo:hover .logo-mark { box-shadow: 0 6px 24px rgba(242, 113, 33, 0.5); }
  body.page-legal .logo-text { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
  body.page-legal .logo-text em { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }

  body.page-legal .nav-links { display: flex; align-items: center; gap: .25rem; }
  body.page-legal .nav-a {
    padding: .5rem .9rem; border-radius: var(--r-xs);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-2); cursor: pointer;
    transition: color var(--t) ease, background var(--t) ease;
  }
  body.page-legal .nav-a:hover { color: var(--primary); background: var(--primary-dim); }
  body.page-legal .nav-a.on { color: var(--primary); background: var(--primary-dim); font-weight: 700; }

  body.page-legal .nav-right { display: flex; align-items: center; gap: .5rem; }
  body.page-legal .icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-xs);
    border: 1px solid var(--border-dim); background: transparent;
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t) ease;
  }
  body.page-legal .icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
  body.page-legal .sun { display: none; }
  body.page-legal .moon { display: block; }
  [data-theme="light"] body.page-legal .sun { display: block; }
  [data-theme="light"] body.page-legal .moon { display: none; }

  body.page-legal .burger { display: none; }
  body.page-legal .mob-menu { display: none; flex-direction: column; gap: .2rem; padding: .75rem 1.5rem 1rem; border-bottom: 1px solid var(--border-dim); background: var(--bg-nav); }
  body.page-legal .mob-menu.open { display: flex; }

  body.page-legal .hero-band {
    background: var(--bg-dim);
    padding: 3.5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
  }
  body.page-legal .hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  body.page-legal .hero-band::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dim));
    pointer-events: none;
  }
  body.page-legal .hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
  body.page-legal .hero-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1.2;
  }

  body.page-legal .content {
    max-width: 800px; margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }

  body.page-legal .breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--text-3);
    margin-bottom: 2rem;
  }
  body.page-legal .breadcrumb a { color: var(--primary); text-decoration: none; }
  body.page-legal .breadcrumb a:hover { text-decoration: underline; }

  body.page-legal .card {
    background: var(--glass-bg);
    border: 1px solid var(--border-dim);
    border-radius: var(--r);
    padding: 2rem;
    box-shadow: var(--sh-sm);
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: box-shadow var(--t) ease, border-color var(--t) ease;
  }
  body.page-legal .card:hover { box-shadow: var(--sh-lg), 0 0 20px var(--primary-glow); border-color: var(--primary); }
  body.page-legal .card h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-dim);
  }
  body.page-legal .card h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--text);
    margin: 1.25rem 0 .5rem;
  }
  body.page-legal .card p {
    font-size: .9rem; color: var(--text-2);
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  body.page-legal .card ul {
    list-style: none; margin-bottom: 1rem;
    padding-left: 0;
  }
  body.page-legal .card li {
    font-size: .9rem; color: var(--text-2);
    padding: .4rem 0 .4rem 1.5rem;
    position: relative;
    line-height: 1.6;
  }
  body.page-legal .card li::before {
    content: ''; position: absolute;
    left: 0; top: .85rem;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
  }
  body.page-legal .card a { color: var(--primary); text-decoration: none; font-weight: 600; }
  body.page-legal .card a:hover { text-decoration: underline; }

  body.page-legal footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
  }
  body.page-legal .foot-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  }
  body.page-legal .foot-brand { display: flex; align-items: center; gap: .6rem; }
  body.page-legal .foot-copy { font-size: .75rem; color: var(--text-3); }
  body.page-legal .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  body.page-legal .foot-links a { font-size: .75rem; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color var(--t) ease; }
  body.page-legal .foot-links a:hover { color: var(--primary); }

  @media (max-width: 768px) {
    body.page-legal .nav-links { display: none; }
    body.page-legal .burger { display: flex; }
    body.page-legal .card { padding: 1.5rem; }
  }

/* plan-couleurs.html reference page styles */
body.page-colors { font-family: system-ui; padding: 20px; background: #0a0a0a; color: #fff; }body.page-colors h1 { text-align: center; margin-bottom: 30px; }body.page-colors .section {
      border: 2px dashed #444;
      margin: 20px 0;
      padding: 30px;
      border-radius: 12px;
      position: relative;
    }body.page-colors .label {
      position: absolute;
      top: -12px;
      left: 20px;
      background: #222;
      padding: 2px 12px;
      border-radius: 4px;
      font-size: 14px;
      font-weight: bold;
      color: #fff;
    }body.page-colors /* 1. HEADER/NAV */
    .header { background: #1a1a2e; }body.page-colors .header-content {
      background: #fff;
      color: #000;
      padding: 15px 20px;
      border-radius: 8px;
      display: flex;
      gap: 20px;
      align-items: center;
    }body.page-colors .header .label { background: #e74c3c; }body.page-colors /* 2. HERO BAND */
    .hero { background: #1a1a2e; }body.page-colors .hero .label { background: #3498db; }body.page-colors .hero-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }body.page-colors .hero h2 { background: #fff; color: #000; padding: 10px 30px; border-radius: 8px; }body.page-colors .hero p { background: rgba(255,255,255,0.3); padding: 8px 20px; border-radius: 20px; }body.page-colors .hero .chips { display: flex; gap: 10px; }body.page-colors .hero .chip { background: rgba(139,92,246,0.3); border: 1px solid rgba(139,92,246,0.5); padding: 5px 15px; border-radius: 20px; font-size: 12px; }body.page-colors /* 3. SEARCH BAR */
    .search { background: #e8e9f4; padding: 40px 20px; }body.page-colors .search .label { background: #9b59b6; }body.page-colors .search-box {
      max-width: 500px;
      margin: 0 auto;
      display: flex;
      gap: 10px;
      background: #fff;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid #d1d1e0;
    }body.page-colors .search-input { flex: 1; border: none; background: #f4f5fa; padding: 15px; border-radius: 8px; }body.page-colors .search-btn { background: linear-gradient(135deg, #f27121, #f59e0b); color: #fff; border: none; padding: 15px 25px; border-radius: 8px; font-weight: bold; }body.page-colors /* 4. STATS BAR */
    .stats { background: rgba(242,113,33,0.1); border-top: 1px solid rgba(242,113,33,0.2); border-bottom: 1px solid rgba(242,113,33,0.2); padding: 15px; }body.page-colors .stats .label { background: #f39c12; }body.page-colors .stats-content { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }body.page-colors .stat-item { color: #4a4a6a; }body.page-colors .stat-item strong { color: #f27121; }body.page-colors /* 5. CONTENT/CARDS */
    .content { background: #e8e9f4; padding: 40px 20px; }body.page-colors .content .label { background: #27ae60; }body.page-colors .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }body.page-colors .card { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #d1d1e0; }body.page-colors .card:hover { border-color: rgba(242,113,33,0.3); box-shadow: 0 4px 20px rgba(242,113,33,0.2); }body.page-colors .card h3 { color: #1a1a2e; margin-bottom: 10px; }body.page-colors .card p { color: #7a7a9a; font-size: 14px; }body.page-colors /* 6. FOOTER */
    .footer { background: #1a1a2e; padding: 40px 20px; }body.page-colors .footer .label { background: #1abc9c; }body.page-colors .footer-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }body.page-colors .footer a { color: rgba(255,255,255,0.6); text-decoration: none; }body.page-colors .footer a:hover { color: #f27121; }body.page-colors /* Color picker instructions */
    .instructions {
      background: #222;
      padding: 20px;
      border-radius: 12px;
      margin: 20px 0;
    }body.page-colors .instructions h2 { color: #3498db; margin-top: 0; }body.page-colors .instructions p { color: #ccc; line-height: 1.6; }body.page-colors .instructions code { background: #333; padding: 2px 8px; border-radius: 4px; color: #f27121; }

/* Wide layout tuning */
@media (min-width: 1024px) {
  body.page-articles .content {
    max-width: 1120px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body.page-articles .article-dashboard,
  body.page-articles .article-gallery {
    gap: 1.25rem;
  }

  body.page-articles .article-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.page-about .content,
  body.page-legal .content {
    max-width: 1120px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body.page-contact .content {
    max-width: 1120px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body.page-article .content {
    max-width: 1120px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body.page-article .article-content {
    max-width: 100%;
  }

  body.page-about .features-grid,
  body.page-contact .topics-grid {
    gap: 1.25rem;
  }

  body.page-about .card,
  body.page-contact .card,
  body.page-legal .card,
  body.page-article .article-box,
  body.page-articles .article-card,
  body.page-articles .dashboard-panel,
  body.page-articles .dashboard-stat {
    padding-left: 1.65rem;
    padding-right: 1.65rem;
  }

  body.page-article .article-box {
    padding: 2.75rem 3rem;
  }

  body.page-article .article-box h2 {
    font-size: 1.6rem;
    margin-top: 2.6rem;
    margin-bottom: 1rem;
  }

  body.page-article .article-box h3 {
    margin-top: 2rem;
    margin-bottom: .85rem;
  }

  body.page-article .article-box p {
    font-size: 1.03rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
  }

  body.page-article .article-lead {
    font-size: 1.15rem;
  }

  body.page-article .key-takeaways,
  body.page-article .article-faq {
    padding: 1.6rem 1.75rem;
  }

  body.page-article .article-box ul {
    margin-top: .35rem;
    margin-bottom: 1.35rem;
  }

  body.page-article .article-box li {
    line-height: 1.75;
    margin-bottom: .65rem;
  }
}

@media (min-width: 1440px) {
  body.page-article .content {
    max-width: 1120px;
  }

  body.page-article .article-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.page-article .article-table {
    display: block;
    overflow-x: auto;
  }

  body.page-article .article-table th,
  body.page-article .article-table td {
    min-width: 8.5rem;
  }
}

/* Layout corrections */
#map {
  isolation: isolate;
  overflow: hidden;
}

#map .leaflet-tile,
#map .leaflet-tile-container img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#map .leaflet-tile-container {
  will-change: transform;
}

#map .leaflet-container {
  background: #090b12;
}

#map .leaflet-popup-content-wrapper {
  border-radius: var(--r-xs);
  box-shadow: var(--sh-md);
}

body.page-contact .content {
  max-width: 760px;
}

body.page-speed-test .content {
  background: var(--bg-dim);
  max-width: 1120px;
  padding: 3rem 1.5rem 5rem;
}

body.page-speed-test {
  background: var(--bg-dim);
  background-image: none;
}

body.page-contact .card + .card {
  margin-top: 1.25rem;
}

body.page-contact .info-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-dim);
  border-radius: var(--r-sm);
  background: var(--bg-card-high);
  text-align: left;
}

body.page-contact .info-box p {
  max-width: none;
  margin: 0;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.7;
}

body.page-contact .info-box strong {
  color: var(--text);
}

body.page-contact .card:nth-of-type(2) {
  text-align: left;
}

body.page-contact .card:nth-of-type(2) h2,
body.page-contact .card:nth-of-type(2) > p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.page-article .article-content {
  max-width: 1120px;
}

body.page-article .article-box {
  overflow-wrap: anywhere;
}

/* Match secondary-page hero gradients with the speed test hero. */
html[data-theme="dark"] body:is(.page-articles, .page-article, .page-about, .page-contact, .page-legal) .hero-band {
  background: var(--bg-dim);
  padding-bottom: 5rem;
}

html[data-theme="dark"] body:is(.page-articles, .page-article, .page-about, .page-contact, .page-legal) .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(207, 48, 170, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

html[data-theme="dark"] body:is(.page-articles, .page-article, .page-about, .page-contact, .page-legal) .hero-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dim));
  pointer-events: none;
}

body:is(.page-articles, .page-article, .page-about, .page-contact, .page-legal) .hero-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  body.page-speed-test .content {
    max-width: 1120px;
    padding: 3rem 2rem 5rem;
  }

  body.page-contact .content {
    max-width: 760px;
  }

  body.page-article .article-content {
    max-width: 1120px;
  }
}

@media (max-width: 640px) {
  body.page-speed-test .content {
    padding: 2rem 1rem 4rem;
  }

  body.page-contact .content,
  body.page-article .content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.page-contact .card,
  body.page-article .article-box {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  body.page-contact .email-box {
    align-items: flex-start;
    padding: 1rem;
  }

  body.page-contact .email-address {
    overflow-wrap: anywhere;
  }

  body.page-article .article-visual img {
    aspect-ratio: 4 / 3;
  }
}
