:root {
      --blue:var(--color-accent);
      --blue-strong:var(--color-accent-strong);
      --blue-soft:#edf5ff;
      --blue-faint:#f7fbff;
      --ink:var(--color-text);
      --ink-soft:#34445d;
      --muted:var(--color-text-muted);
      --muted-light:#8b97a8;
      --line:var(--color-line);
      --line-strong:#d5deea;
      --surface:#ffffff;
      --surface-soft:#f7f9fc;
      --max:1180px;
      --radius-sm:12px;
      --radius-md:18px;
      --radius-lg:24px;
      --shadow-sm:0 10px 28px rgba(31,53,88,.06);
      --shadow-md:0 18px 48px rgba(31,53,88,.10);
      --shadow-lg:0 30px 90px rgba(16,35,67,.28);
    }

    * { box-sizing:border-box; }
    html { scroll-behavior:smooth; }
    body {
      margin:0;
      color:var(--ink);
      background:#fff;
      font-family:var(--font-sans);
      font-size:16px;
      line-height:var(--leading-ui);
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility;
    }
    body.search-open { overflow:hidden; }
    a { color:inherit; text-decoration:none; }
    button,input { font:inherit; }
    button { cursor:pointer; }
    button, input, a { -webkit-tap-highlight-color:transparent; }
    :focus-visible {
      outline:3px solid rgba(23,105,224,.22);
      outline-offset:3px;
    }
    .container {
      width:min(var(--max),calc(100% - 40px));
      margin-inline:auto;
    }

    /* Header */
    .site-header {
      position:sticky;
      top:0;
      z-index:50;
      border-bottom:1px solid rgba(227,233,241,.92);
      background:rgba(255,255,255,.94);
      backdrop-filter:blur(18px);
    }
    .header-inner {
      min-height:74px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:26px;
    }
    .logo img { width:174px; display:block; }
    .main-nav {
      display:flex;
      align-items:center;
      gap:28px;
      color:#526176;
      font-size:14px;
      font-weight:700;
    }
    .main-nav a {
      position:relative;
      padding:26px 0;
      transition:color .18s ease;
    }
    .main-nav a::after {
      content:"";
      position:absolute;
      left:0;
      right:0;
      bottom:19px;
      height:2px;
      border-radius:999px;
      background:var(--blue);
      transform:scaleX(0);
      transform-origin:center;
      transition:transform .18s ease;
    }
    .main-nav a:hover,
    .main-nav a:focus-visible { color:var(--blue); }
    .main-nav a:hover::after,
    .main-nav a:focus-visible::after { transform:scaleX(1); }

    .header-actions { display:flex; align-items:center; gap:9px; }
    .icon-button {
      width:43px;
      height:43px;
      display:grid;
      place-items:center;
      border:1px solid var(--line);
      border-radius:50%;
      background:#fff;
      color:var(--ink);
      box-shadow:0 4px 14px rgba(31,53,88,.035);
      transition:transform .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
    }
    .icon-button:hover {
      transform:translateY(-1px);
      color:var(--blue);
      border-color:#bfd0e5;
      box-shadow:0 8px 22px rgba(31,53,88,.08);
    }

    /* Live search */
    .search-overlay {
      position:fixed;
      z-index:100;
      inset:0;
      display:flex;
      justify-content:center;
      align-items:flex-start;
      padding:84px 20px 24px;
      background:rgba(21,34,54,.38);
      backdrop-filter:blur(6px);
      opacity:0;
      visibility:hidden;
      transition:opacity .18s ease,visibility .18s ease;
    }
    .search-overlay.open {
      opacity:1;
      visibility:visible;
    }
    .live-search {
      width:min(680px,100%);
      max-height:min(650px,calc(100vh - 108px));
      overflow:hidden;
      border:1px solid rgba(255,255,255,.76);
      border-radius:20px;
      background:#fff;
      box-shadow:0 28px 80px rgba(17,34,61,.24);
      transform:translateY(-8px) scale(.992);
      opacity:0;
      transition:transform .2s ease,opacity .2s ease;
    }
    .search-overlay.open .live-search {
      transform:translateY(0) scale(1);
      opacity:1;
    }
    .live-search-top {
      min-height:54px;
      padding:0 16px 0 20px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      border-bottom:1px solid #edf1f6;
    }
    .live-search-label {
      margin:0;
      color:var(--ink);
      font-size:14px;
      font-weight:800;
    }
    .live-search-subtitle { display:none; }
    .close-search {
      width:34px;
      height:34px;
      display:grid;
      place-items:center;
      border:0;
      border-radius:50%;
      background:transparent;
      color:#7b8798;
      transition:background .16s ease,color .16s ease;
    }
    .close-search:hover {
      color:var(--ink);
      background:#f2f5f8;
    }
    .live-search-field {
      margin:16px 18px 0;
      min-height:52px;
      padding:0 15px;
      display:grid;
      grid-template-columns:auto minmax(0,1fr);
      align-items:center;
      gap:11px;
      border:1px solid #dce4ee;
      border-radius:14px;
      background:#fff;
      transition:border-color .16s ease,box-shadow .16s ease;
    }
    .live-search-field:focus-within {
      border-color:#91b4e7;
      box-shadow:0 0 0 3px rgba(23,105,224,.08);
    }
    .live-search-field input {
      min-width:0;
      height:50px;
      border:0;
      outline:0;
      background:transparent;
      color:var(--ink);
      font-size:16px;
    }
    .live-search-field input::placeholder { color:#9aa5b3; }
    .shortcut { display:none; }
    .live-search-body {
      max-height:500px;
      overflow:auto;
      padding:0 18px 15px;
      scrollbar-width:thin;
      scrollbar-color:#cfd8e5 transparent;
    }
    .search-hint {
      padding:14px 3px 8px;
      color:var(--muted);
      font-size:var(--text-label);
      font-weight:700;
    }
    .quick-searches {
      display:flex;
      flex-wrap:wrap;
      gap:7px;
      padding:1px 0 4px;
    }
    .quick-searches button {
      min-height:34px;
      padding:0 12px;
      border:1px solid #e1e7ef;
      border-radius:999px;
      background:#fff;
      color:var(--muted);
      font-size:13px;
      font-weight:700;
      transition:border-color .16s ease,color .16s ease,background .16s ease;
    }
    .quick-searches button:hover {
      border-color:#bfd0e6;
      background:#f8fbff;
      color:var(--blue);
    }
    .live-results {
      display:grid;
    }
    .live-result {
      width:100%;
      min-height:68px;
      padding:11px 8px;
      display:grid;
      grid-template-columns:38px minmax(0,1fr) auto;
      gap:12px;
      align-items:center;
      border:0;
      border-top:1px solid #edf1f5;
      border-radius:0;
      background:transparent;
      text-align:left;
      transition:background .15s ease;
    }
    .live-result:first-child { border-top:0; }
    .live-result:hover,
    .live-result:focus-visible {
      transform:none;
      background:#f8fafc;
    }
    .live-result-icon {
      width:38px;
      height:38px;
      display:grid;
      place-items:center;
      border-radius:11px;
      background:#eef5ff;
      color:var(--blue);
    }
    .live-result small {
      display:block;
      margin-bottom:2px;
      color:var(--muted);
      font-size:var(--text-label);
      font-weight:650;
      letter-spacing:0;
      text-transform:none;
    }
    .live-result strong {
      display:block;
      color:var(--ink);
      font-size:15px;
      line-height:1.35;
      font-weight:760;
    }
    .live-result-arrow {
      width:30px;
      height:30px;
      display:grid;
      place-items:center;
      border-radius:50%;
      color:var(--muted);
      transition:background .15s ease,color .15s ease;
    }
    .live-result:hover .live-result-arrow {
      background:#fff;
      color:var(--blue);
    }
    .live-empty {
      display:none;
      padding:28px 8px 22px;
      text-align:center;
      color:var(--muted);
      font-size:var(--text-meta);
    }
    .view-all {
      width:100%;
      min-height:48px;
      margin-top:6px;
      padding:0 5px;
      display:none;
      align-items:center;
      justify-content:space-between;
      border:0;
      border-top:1px solid #e8edf3;
      border-radius:0;
      background:transparent;
      color:var(--blue);
      font-size:var(--text-meta);
      font-weight:800;
      transition:color .16s ease;
    }
    .view-all:hover {
      transform:none;
      border-color:#e8edf3;
      background:transparent;
      color:var(--blue-strong);
    }
    .view-all > span:last-child {
      width:28px;
      height:28px;
      display:grid;
      place-items:center;
      border-radius:50%;
      background:#eef5ff;
      transition:transform .16s ease,background .16s ease;
    }
    .view-all:hover > span:last-child {
      transform:translateX(2px);
      background:#e2efff;
    }

    /* Hero */
    .search-hero {
      padding:36px 0 42px;
      border-bottom:1px solid var(--line);
      background:
        radial-gradient(circle at 18% -8%,rgba(23,105,224,.09),transparent 31%),
        linear-gradient(180deg,#fff 0%,#fbfdff 100%);
    }
    .breadcrumb {
      display:flex;
      align-items:center;
      gap:8px;
      margin-bottom:25px;
      color:var(--muted);
      font-size:var(--text-meta);
    }
    .breadcrumb a:hover { color:var(--blue); }
    .breadcrumb svg { width:12px; opacity:.72; }
    h1 {
      margin:0;
      font-size:clamp(42px,5.2vw,60px);
      line-height:1.03;
      letter-spacing:-.05em;
    }
    .hero-copy {
      max-width:680px;
      margin:16px 0 0;
      color:var(--muted);
      font-size:var(--text-lead-desktop);
      line-height:1.6;
    }
    .page-search {
      max-width:780px;
      margin-top:27px;
      padding:7px;
      display:grid;
      grid-template-columns:auto 1fr auto;
      align-items:center;
      gap:8px;
      border:1px solid var(--line-strong);
      border-radius:18px;
      background:#fff;
      box-shadow:var(--shadow-sm);
      transition:border-color .18s ease,box-shadow .18s ease;
    }
    .page-search:focus-within {
      border-color:#a9c3e8;
      box-shadow:0 0 0 4px rgba(23,105,224,.07),var(--shadow-sm);
    }
    .page-search-icon {
      width:42px;
      height:42px;
      display:grid;
      place-items:center;
      color:#77869a;
    }
    .page-search input {
      min-width:0;
      min-height:50px;
      padding:0 4px;
      border:0;
      outline:0;
      color:var(--ink);
      font-size:16px;
    }
    .page-search input::placeholder { color:#9aa6b5; }
    .page-search button {
      min-width:116px;
      min-height:48px;
      border:0;
      border-radius:12px;
      background:linear-gradient(180deg,var(--blue),var(--blue-strong));
      color:#fff;
      font-weight:850;
      box-shadow:0 9px 20px rgba(23,105,224,.18);
      transition:transform .18s ease,box-shadow .18s ease;
    }
    .page-search button:hover {
      transform:translateY(-1px);
      box-shadow:0 12px 24px rgba(23,105,224,.24);
    }

    /* Results */
    .results-section { padding:49px 0 0; }
    .results-head {
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:20px;
    }
    .results-head h2 {
      margin:0;
      font-size:clamp(29px,3.5vw,38px);
      line-height:1.08;
      letter-spacing:-.04em;
    }
    .results-head p {
      margin:8px 0 0;
      color:var(--muted);
      font-size:var(--text-card);
    }
    .clear-link {
      padding:7px 0;
      border:0;
      background:transparent;
      color:#738196;
      font-size:var(--text-meta);
      font-weight:750;
      transition:color .18s ease;
    }
    .clear-link:hover { color:var(--blue); }

    .results-group + .results-group {
      margin-top:44px;
      padding-top:38px;
      border-top:1px solid var(--line);
    }
    .results-group-head {
      margin-bottom:15px;
    }
    .results-group-head h3 {
      margin:0;
      font-size:21px;
      line-height:1.25;
      letter-spacing:-.025em;
    }
    .results-group-head p {
      margin:5px 0 0;
      color:var(--muted);
      font-size:14px;
    }
    .search-context-note {
      margin-bottom:28px;
      padding:18px 20px;
      display:grid;
      gap:3px;
      border:1px solid #d8e6f7;
      border-radius:16px;
      background:var(--blue-faint);
      color:var(--ink-soft);
      font-size:14px;
    }
    .search-context-note strong {
      color:var(--ink);
      font-size:15px;
    }

    .results-list {
      display:grid;
      gap:13px;
    }
    .result-card {
      position:relative;
      padding:23px 24px;
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      gap:28px;
      align-items:center;
      overflow:hidden;
      border:1px solid var(--line);
      border-radius:20px;
      background:#fff;
      transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
    }
    .result-card::before {
      content:"";
      position:absolute;
      inset:0 auto 0 0;
      width:3px;
      background:var(--blue);
      opacity:0;
      transition:opacity .18s ease;
    }
    .result-card:hover {
      transform:translateY(-2px);
      border-color:#ccd9e8;
      box-shadow:var(--shadow-sm);
    }
    .result-card:hover::before { opacity:1; }
    .result-card--primary {
      border-color:#d4e4f8;
      box-shadow:0 8px 24px rgba(31,83,145,.045);
    }
    .result-card--primary::before { opacity:1; }
    .result-card--related {
      background:#fcfdff;
    }
    .result-meta {
      margin-bottom:9px;
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      gap:8px;
    }
    .result-topic {
      width:max-content;
      margin:0;
      color:var(--muted);
      font-size:var(--text-label);
      font-weight:800;
    }
    .result-match-label {
      padding:3px 8px;
      border:1px solid #cfe1f8;
      border-radius:999px;
      background:#edf5ff;
      color:#155ebf;
      font-size:var(--text-label);
      font-weight:850;
      letter-spacing:.015em;
    }
    .result-card h4 {
      margin:0;
      font-size:22px;
      line-height:1.24;
      letter-spacing:-.028em;
    }
    .result-card p {
      max-width:780px;
      margin:8px 0 0;
      color:var(--muted);
      font-size:var(--text-card);
      line-height:var(--leading-ui);
    }
    .result-link {
      min-width:124px;
      min-height:44px;
      padding:0 16px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border:1px solid #d8e5f7;
      border-radius:999px;
      background:var(--blue-faint);
      color:var(--blue);
      font-size:var(--text-meta);
      font-weight:850;
      white-space:nowrap;
      transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
    }
    .result-link:hover {
      transform:translateY(-1px);
      border-color:var(--blue);
      background:var(--blue);
      color:#fff;
    }

    /* Empty state */
    .no-results {
      display:none;
      max-width:760px;
      margin:0 auto;
      padding:56px 0 28px;
      text-align:center;
    }
    .no-results-icon {
      width:66px;
      height:66px;
      margin:0 auto 18px;
      display:grid;
      place-items:center;
      border-radius:50%;
      background:var(--blue-soft);
      color:var(--blue);
      box-shadow:inset 0 0 0 1px #dceaff;
    }
    .no-results h2 {
      margin:0;
      font-size:31px;
      letter-spacing:-.035em;
    }
    .no-results p {
      max-width:590px;
      margin:11px auto 0;
      color:var(--muted);
      line-height:1.62;
    }
    .popular {
      margin-top:25px;
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      gap:8px;
    }
    .popular button {
      min-height:38px;
      padding:0 14px;
      border:1px solid var(--line);
      border-radius:999px;
      background:#fff;
      color:#637185;
      font-size:12px;
      font-weight:780;
      transition:border-color .18s ease,color .18s ease,background .18s ease;
    }
    .popular button:hover {
      border-color:#bfd0e6;
      background:var(--blue-faint);
      color:var(--blue);
    }
    .suggest-button {
      margin-top:20px;
      min-height:46px;
      padding:0 18px;
      border:0;
      border-radius:999px;
      background:var(--blue);
      color:#fff;
      font-weight:850;
      box-shadow:0 10px 22px rgba(23,105,224,.18);
    }

    /* Footer */
    .site-footer {
      margin-top:72px;
      padding:38px 0 20px;
      background:#16263f;
      color:#d5dfec;
    }
    .footer-grid {
      display:grid;
      grid-template-columns:1.35fr repeat(3,.75fr);
      gap:34px;
    }
    .footer-brand img {
      width:174px;
      filter:brightness(0) invert(1);
      opacity:.94;
    }
    .footer-brand p {
      max-width:340px;
      color:#9fb0c5;
      font-size:14px;
    }
    .footer-col h3 { margin:0 0 13px; color:#fff; font-size:14px; }
    .footer-col a {
      display:block;
      margin:8px 0;
      color:#aebcd0;
      font-size:13px;
      transition:color .18s ease;
    }
    .footer-col a:hover { color:#fff; }
    .footer-bottom {
      margin-top:31px;
      padding-top:18px;
      border-top:1px solid rgba(255,255,255,.09);
      color:#8395ac;
      font-size:12px;
    }
    .preview-note {
      position:fixed;
      z-index:60;
      left:14px;
      bottom:14px;
      padding:7px 11px;
      border:1px solid var(--line);
      border-radius:999px;
      background:rgba(255,255,255,.94);
      box-shadow:var(--shadow-sm);
      color:var(--muted);
      font-size:var(--text-label);
    }

    @media(max-width:960px) {
      .main-nav { display:none; }
      .footer-grid { grid-template-columns:1.3fr repeat(2,1fr); }
      .footer-col:last-child { grid-column:2/-1; }
    }

    @media(max-width:720px) {
      .container { width:min(var(--max),calc(100% - 36px)); }
      .header-inner { min-height:68px; }
      .logo img { width:150px; }
      .search-overlay {
        align-items:flex-start;
        padding:76px 10px 10px;
      }
      .live-search {
        max-height:calc(100vh - 86px);
        border-radius:18px;
      }
      .live-search-top {
        min-height:52px;
        padding:0 11px 0 16px;
      }
      .live-search-field { margin:13px 12px 0; }
      .live-search-body { padding:0 12px 13px; }

      .search-hero { padding:27px 0 34px; }
      h1 { font-size:clamp(38px,11vw,50px); }
      .hero-copy { font-size:var(--text-lead-mobile); }
      .page-search {
        grid-template-columns:auto 1fr;
        padding:7px;
      }
      .page-search button {
        grid-column:1/-1;
        width:100%;
      }
      .results-head {
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
      }
      .results-group + .results-group {
        margin-top:34px;
        padding-top:30px;
      }
      .results-group-head h3 { font-size:19px; }
      .search-context-note { padding:16px; }
      .result-card {
        grid-template-columns:1fr;
        gap:17px;
        padding:21px;
      }
      .result-link { width:100%; }
      .footer-grid { grid-template-columns:1fr 1fr; }
      .footer-brand { grid-column:1/-1; }
      .footer-col:last-child { grid-column:auto; }
      .preview-note { display:none; }
    }

    @media(max-width:460px) {
      .live-search-top { align-items:flex-start; }
      .live-search-field input { font-size:16px; }
      .live-result {
        grid-template-columns:36px minmax(0,1fr) auto;
        gap:10px;
      }
      .live-result-icon {
        width:36px;
        height:36px;
      }
      .footer-grid { grid-template-columns:1fr; }
      .footer-brand { grid-column:auto; }
    }

    @media(prefers-reduced-motion:reduce) {
      *,*::before,*::after {
        scroll-behavior:auto !important;
        transition:none !important;
        animation:none !important;
      }
    }
