/* WheatOmics 2.0 shared shell — generated by scripts/extract_v2_shell.py
   from app/static/blast2/index.html (canonical V2.0 chrome).
   Do not edit by hand; edit the canonical page and re-run the script. */
/* ==================== 视觉变量与基础样式 ==================== */
    :root {
      --forest: #07583d;
      --forest-deep: #033f2d;
      --leaf: #118653;
      --sprout: #77b941;
      --wheat: #e6b94a;
      --mist: #f3f8f4;
      --ink: #163128;
      --muted: #66766e;
      --line: #dfe9e2;
      --white: #ffffff;
      --shadow: 0 12px 36px rgba(8, 69, 47, 0.09);
      --display: "Avenir Next", "Segoe UI", Arial, sans-serif;
      --body: Arial, Helvetica, sans-serif;
      --utility: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
      --page: min(1400px, calc(100% - 48px));
    }

    *, *::before, *::after { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: var(--body);
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    body.nav-open { overflow: hidden; }

    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button { color: inherit; }
    svg { display: block; }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible {
      outline: 3px solid rgba(230, 185, 74, 0.65);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      z-index: 1000;
      top: 12px;
      left: 12px;
      padding: 10px 14px;
      color: var(--white);
      background: var(--forest-deep);
      border-radius: 8px;
      transform: translateY(-160%);
      transition: transform 180ms ease;
    }

    .skip-link:focus { transform: translateY(0); }

    .container {
      width: var(--page);
      margin-inline: auto;
    }

    .icon {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ==================== 英雄区与导航 ==================== */
    .hero {
      position: relative;
      min-height: 720px;
      overflow: hidden;
      isolation: isolate;
      background: #fff;
    }

    /* 背景图容器：宽度与页面主体一致，水平居中，内部做 Ken Burns 动态缩放平移 */
    .hero-bg {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: var(--page);
      z-index: -2;
      overflow: hidden;
    }

    .hero-bg::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url("/V2.0/home.png");
      background-position: center;
      background-size: cover;
      animation: hero-kenburns 26s ease-in-out infinite alternate;
    }

    @keyframes hero-kenburns {
      0%   { transform: scale(1.02) translate(0, 0); }
      50%  { transform: scale(1.12) translate(-1.5%, -1%); }
      100% { transform: scale(1.06) translate(1.5%, 1%); }
    }

    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 200;
      border-bottom: 1px solid rgba(7, 88, 61, 0.10);
      background: #fff;
    }

    .header-row {
      min-height: 88px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 34px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .brand-mark { height: 40px; width: auto; flex: none; }

    .brand-name {
      display: block;
      color: var(--forest);
      font-family: var(--display);
      font-size: 21px;
      font-weight: 750;
      letter-spacing: -0.7px;
      line-height: 1.05;
    }

    .brand-name em {
      color: #21a552;
      font-style: normal;
    }

    .brand-tagline {
      display: block;
      margin-top: 5px;
      color: #65736c;
      font-size: 9px;
      letter-spacing: 0.03em;
      line-height: 1.3;
    }

    .main-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 25px;
    }

    .nav-item { position: relative; }

    .nav-link,
    .nav-trigger {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 42px;
      border: 0;
      padding: 0;
      color: #243e34;
      background: transparent;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
    }

    .nav-link::after,
    .nav-trigger::after {
      content: "";
      position: absolute;
      right: 50%;
      bottom: 0;
      left: 50%;
      height: 2px;
      border-radius: 2px;
      background: var(--leaf);
      transition: inset 180ms ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after,
    .nav-trigger:hover::after { right: 0; left: 0; }

    .nav-chevron {
      width: 12px;
      height: 12px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
    }

    .dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: -18px;
      min-width: 210px;
      margin: 0;
      border: 1px solid rgba(7,88,61,0.12);
      padding: 9px;
      list-style: none;
      background: rgba(255,255,255,0.98);
      border-radius: 12px;
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px);
      transition: 160ms ease;
    }

    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown a {
      display: block;
      padding: 9px 10px;
      border-radius: 8px;
      color: #355147;
      font-size: 13px;
    }

    .dropdown a:hover { color: var(--forest); background: var(--mist); }

    .header-actions { display: flex; align-items: center; gap: 10px; }

    .header-search {
      position: relative;
      width: 240px;
    }

    .header-search input {
      width: 100%;
      height: 38px;
      border: 1px solid rgba(7,88,61,0.15);
      padding: 0 42px 0 15px;
      color: var(--ink);
      background: rgba(255,255,255,0.9);
      border-radius: 999px;
      font-size: 12px;
    }

    .header-search button {
      position: absolute;
      top: 50%;
      right: 6px;
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border: 0;
      padding: 0;
      color: var(--forest);
      background: transparent;
      border-radius: 50%;
      cursor: pointer;
      transform: translateY(-50%);
    }

    .header-search .icon { width: 16px; height: 16px; }

    .contact-button,
    .primary-button,
    .secondary-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 42px;
      border: 1px solid transparent;
      padding: 0 18px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    }

    .contact-button,
    .primary-button {
      color: var(--white);
      background: var(--forest);
      box-shadow: 0 8px 20px rgba(7,88,61,0.18);
    }

    .contact-button:hover,
    .primary-button:hover {
      background: #087249;
      box-shadow: 0 10px 24px rgba(7,88,61,0.25);
      transform: translateY(-2px);
    }

    .contact-button { min-height: 38px; padding-inline: 16px; font-size: 12px; }

    .secondary-button {
      color: var(--forest);
      border-color: rgba(7,88,61,0.18);
      background: rgba(255,255,255,0.87);
    }

    .secondary-button:hover { background: var(--white); transform: translateY(-2px); }

    .button-arrow { font-size: 16px; line-height: 1; }

    .menu-toggle {
      position: relative;
      display: none;
      width: 42px;
      height: 42px;
      place-items: center;
      border: 1px solid rgba(7,88,61,0.16);
      padding: 0;
      background: rgba(255,255,255,0.8);
      border-radius: 50%;
      cursor: pointer;
    }

    .menu-toggle span,
    .menu-toggle::before,
    .menu-toggle::after {
      content: "";
      position: absolute;
      left: 11px;
      display: block;
      width: 18px;
      height: 2px;
      background: var(--forest);
      border-radius: 3px;
      transition: 180ms ease;
    }

    .menu-toggle::before { top: 14px; }
    .menu-toggle span { top: 20px; }
    .menu-toggle::after { top: 26px; }

    .hero-inner {
      min-height: 632px;
      display: flex;
      align-items: center;
      padding-block: 146px 50px;
    }

    .hero-copy { position: relative; z-index: 3; max-width: 620px; padding-left: 32px; text-align: left; }

    .hero h1 {
      margin: 0;
      color: var(--forest-deep);
      font-family: var(--display);
      font-size: clamp(58px, 5.4vw, 92px);
      font-weight: 760;
      letter-spacing: -0.065em;
      line-height: 0.9;
    }

    .hero h1 span { display: block; color: #1b9b4b; }

    .hero-lead {
      max-width: 560px;
      margin: 26px 0 0;
      color: #29493d;
      font-size: 18px;
      line-height: 1.55;
    }

    .stats-panel {
      width: min(100%, 610px);
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      margin-top: 26px;
      border: 1px solid rgba(255,255,255,0.86);
      background: rgba(255,255,255,0.80);
      border-radius: 12px;
      box-shadow: 0 16px 44px rgba(45,89,60,0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .stat {
      position: relative;
      min-width: 0;
      padding: 15px 8px 14px;
      text-align: center;
    }

    .stat + .stat::before {
      content: "";
      position: absolute;
      top: 18px;
      bottom: 18px;
      left: 0;
      width: 1px;
      background: rgba(7,88,61,0.10);
    }

    .stat .icon {
      width: 18px;
      height: 18px;
      margin: 0 auto 6px;
      color: var(--leaf);
    }

    .stat strong {
      display: block;
      color: var(--forest);
      font-family: var(--display);
      font-size: 17px;
      line-height: 1;
    }

    .stat span {
      display: block;
      margin-top: 6px;
      color: #5e7167;
      font-size: 9px;
      line-height: 1.2;
    }

    .hero-buttons { display: flex; gap: 12px; margin-top: 23px; }

    /* ==================== 引用与公告 ==================== */
    main { position: relative; background: var(--white); }

    .citation-wrap {
      position: relative;
      z-index: 5;
      margin-top: -1px;
      padding: 24px 0 0;
      background: var(--white);
      border-radius: 24px 24px 0 0;
    }

    .citation-grid {
      display: grid;
      grid-template-columns: minmax(0, 2.25fr) minmax(280px, 0.75fr);
      gap: 18px;
    }

    .citation-card,
    .call-card {
      min-height: 142px;
      border: 1px solid var(--line);
      background: #fbfdfb;
      border-radius: 14px;
    }

    .citation-card {
      display: block;
      padding: 23px 25px;
    }

    .citation-label {
      margin: 0 0 7px;
      color: var(--forest);
      font-size: 13px;
      font-weight: 750;
    }

    .citation-text {
      margin: 0;
      color: #53635c;
      font-size: 12px;
      line-height: 1.6;
    }

    .citation-title {
      display: block;
      margin-top: 6px;
      color: var(--forest-deep);
      font-weight: 700;
    }

    .call-card {
      position: relative;
      overflow: hidden;
      padding: 22px 112px 20px 22px;
      background: linear-gradient(135deg, #f8fbf7, #eef6ec);
    }

    .call-card::after {
      content: "";
      position: absolute;
      right: -24px;
      bottom: -33px;
      width: 145px;
      height: 165px;
      opacity: 0.16;
      background-image: url("/V2.0/home.png");
      background-position: 80% center;
      background-size: auto 100%;
      border-radius: 60% 0 0 0;
      filter: saturate(0.6);
    }

    .call-card strong { display: block; color: var(--forest-deep); font-size: 13px; }
    .call-card p { margin: 7px 0 11px; color: #30483f; font-size: 12px; line-height: 1.45; }

    .text-link {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--forest);
      font-size: 11px;
      font-weight: 750;
    }

    .news-bar {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 18px;
      min-height: 50px;
      border-bottom: 1px solid var(--line);
    }

    .news-labels { display: flex; gap: 6px; }

    .news-tab {
      border: 0;
      padding: 5px 11px;
      color: #718078;
      background: transparent;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }

    .news-tab.active { color: var(--white); background: var(--leaf); }

    .news-items { position: relative; min-width: 0; height: 22px; overflow: hidden; }

    .news-item {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      gap: 14px;
      opacity: 0;
      transform: translateY(8px);
      transition: 220ms ease;
      pointer-events: none;
    }

    .news-item.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .news-date { color: var(--forest); font-family: var(--utility); font-size: 10px; font-weight: 700; white-space: nowrap; }
    .news-item a { min-width: 0; overflow: hidden; color: #52635b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .news-more { color: var(--forest); font-size: 11px; font-weight: 700; white-space: nowrap; }

    /* ==================== 内容区标题与搜索 ==================== */
    .content-section { padding: 44px 0 10px; }
    .data-section { padding-top: 34px; padding-bottom: 26px; }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 20px;
    }

    .section-title { margin: 0; color: var(--forest-deep); font-family: var(--display); font-size: 24px; letter-spacing: -0.04em; }

    .section-title::after {
      content: "";
      display: block;
      width: 34px;
      height: 2px;
      margin-top: 9px;
      background: var(--leaf);
      border-radius: 2px;
    }

    .section-kicker { margin: 0 0 5px; color: #7b8a82; font-family: var(--utility); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

    .tool-filter {
      position: relative;
      width: min(400px, 40vw);
    }

    .tool-filter input {
      width: 100%;
      height: 40px;
      border: 1px solid var(--line);
      padding: 0 52px 0 17px;
      color: var(--ink);
      background: var(--white);
      border-radius: 999px;
      font-size: 12px;
    }

    .filter-button {
      position: absolute;
      top: 0;
      right: 0;
      width: 48px;
      height: 40px;
      display: grid;
      place-items: center;
      border: 0;
      padding: 0;
      color: var(--white);
      background: var(--leaf);
      border-radius: 0 999px 999px 0;
      cursor: pointer;
    }

    .filter-button .icon { width: 17px; height: 17px; }

    /* ==================== 工具与数据卡片 ==================== */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 12px;
    }

    .tool-card,
    .data-card {
      border: 1px solid var(--line);
      background: linear-gradient(145deg, #fff 10%, #fbfdfb 100%);
      border-radius: 10px;
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .tool-card {
      min-height: 91px;
      display: grid;
      grid-template-columns: 40px 1fr;
      align-items: center;
      gap: 11px;
      padding: 14px 13px;
    }

    .tool-card:hover,
    .data-card:hover {
      border-color: rgba(17,134,83,0.35);
      box-shadow: 0 13px 28px rgba(11,91,59,0.09);
      transform: translateY(-3px);
    }

    .tool-icon,
    .data-icon {
      position: relative;
      display: grid;
      place-items: center;
      color: var(--leaf);
      background: #f0f8f1;
      border-radius: 8px;
    }

    .tool-icon { width: 40px; height: 40px; }
    .tool-icon::after {
      content: "";
      position: absolute;
      inset: 5px;
      border: 1px solid rgba(17,134,83,0.12);
      border-radius: 5px;
    }

    .tool-icon .icon { position: relative; z-index: 1; width: 22px; height: 22px; }
    .tool-card h3, .data-card h3 { margin: 0; color: var(--forest-deep); font-family: var(--display); font-size: 13px; letter-spacing: -0.015em; line-height: 1.2; }
    .tool-card p, .data-card p { margin: 5px 0 0; color: #6b7972; font-size: 9px; line-height: 1.35; }
    .tool-card[hidden] { display: none; }

    .empty-state {
      display: none;
      border: 1px dashed var(--line);
      padding: 28px;
      color: var(--muted);
      background: var(--mist);
      border-radius: 10px;
      text-align: center;
      font-size: 13px;
    }

    .empty-state.visible { display: block; }

    .data-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 13px;
    }

    .data-card {
      min-height: 116px;
      display: grid;
      grid-template-columns: 56px 1fr;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
    }

    .data-icon {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: #eef7ef;
    }

    .data-icon .icon { width: 29px; height: 29px; }
    .data-card h3 { font-size: 14px; }
    .data-card p { max-width: 290px; font-size: 10px; }

    /* ==================== 平台能力与页脚 ==================== */
    .value-strip {
      margin-top: 10px;
      margin-bottom: 38px;
      padding: 22px 24px;
      background: linear-gradient(100deg, #f4f9f1, #f8fbf7 55%, #eff7ed);
      border-radius: 12px;
    }

    .value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

    .value-item {
      display: grid;
      grid-template-columns: 58px 1fr;
      align-items: center;
      gap: 15px;
      padding: 0 24px;
    }

    .value-item + .value-item { border-left: 1px solid rgba(7,88,61,0.10); }
    .value-art { width: 58px; height: 58px; display: grid; place-items: center; color: var(--sprout); }
    .value-art .icon { width: 48px; height: 48px; stroke-width: 1.15; }
    .value-item h3 { margin: 0; color: var(--forest-deep); font-family: var(--display); font-size: 14px; }
    .value-item p { margin: 5px 0 0; color: #65756d; font-size: 10px; line-height: 1.4; }

    .site-footer { color: rgba(255,255,255,0.82); background: var(--forest-deep); }

    .footer-main {
      display: grid;
      grid-template-columns: 1.4fr 0.8fr 1fr;
      gap: 70px;
      padding-block: 44px 38px;
    }

    .footer-brand .brand-name { color: var(--white); }
    .footer-brand .brand-name em { color: #79d18c; }
    .footer-brand .brand-tagline { color: rgba(255,255,255,0.55); }
    .footer-wordmark { display: inline-block; }
    .footer-wordmark .brand-name { display: block; }
    .footer-wordmark .brand-tagline { display: block; margin-top: 5px; }
    .footer-note { max-width: 310px; margin: 18px 0 0; color: rgba(255,255,255,0.58); font-size: 11px; line-height: 1.65; }

    .footer-plot {
      display: block;
      width: min(860px, 100%);
      height: auto;
      margin: 26px auto 22px;
    }

    .footer-title { margin: 0 0 14px; color: var(--white); font-family: var(--display); font-size: 13px; }
    .footer-links { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 8px 18px; }
    .footer-links a, .contact-line { color: rgba(255,255,255,0.68); font-size: 11px; }
    .footer-links a:hover { color: var(--white); }
    .contact-line { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
    .contact-line .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: #8ad39b; }

    .footer-bottom {
      min-height: 44px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 20px;
      border-top: 1px solid rgba(255,255,255,0.09);
      color: rgba(255,255,255,0.42);
      font-family: var(--utility);
      font-size: 9px;
    }

    .footer-bottom .copyright { justify-self: start; }
    .footer-bottom .icp { justify-self: center; text-align: center; white-space: nowrap; }
    .footer-bottom .back-top { justify-self: end; }

    .back-top {
      border: 0;
      padding: 0;
      color: rgba(255,255,255,0.55);
      background: transparent;
      font-size: 10px;
      cursor: pointer;
    }

    /* ==================== 响应式适配 ==================== */
    @media (max-width: 1240px) {
      :root { --page: min(1160px, calc(100% - 40px)); }
      .main-nav { gap: 16px; }
      .header-search { display: none; }
      .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .hero h1 { font-size: clamp(60px, 7.2vw, 88px); }
      .value-item { padding-inline: 15px; }
    }

    @media (max-width: 980px) {
      :root { --page: min(860px, calc(100% - 34px)); }
      .site-header {
        background: #fff;
      }
      .header-row { grid-template-columns: 1fr auto; }
      .menu-toggle { display: grid; }
      .header-actions .contact-button { display: none; }
      .header-actions { position: absolute; right: 52px; }

      .main-nav {
        position: fixed;
        z-index: 100;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(390px, 88vw);
        display: block;
        overflow-y: auto;
        padding: 94px 28px 30px;
        background: rgba(250,253,250,0.98);
        box-shadow: -20px 0 50px rgba(4,63,45,0.13);
        transform: translateX(105%);
        transition: transform 240ms ease;
      }

      .nav-open .main-nav { transform: translateX(0); }
      .nav-item { border-bottom: 1px solid var(--line); }
      .nav-link, .nav-trigger { width: 100%; min-height: 52px; justify-content: space-between; font-size: 14px; }
      .nav-link::after, .nav-trigger::after { display: none; }
      .dropdown { position: static; display: none; min-width: 0; margin: 0 0 10px; border: 0; padding: 0 0 0 10px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
      .nav-item:focus-within .dropdown, .nav-item.dropdown-open .dropdown { display: block; }
      .nav-open .menu-toggle { position: fixed; z-index: 120; top: 22px; right: 18px; }
      .nav-open .menu-toggle span { opacity: 0; }
      .nav-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
      .nav-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

      .hero-inner { padding-block: 124px 56px; }
      .hero-copy { max-width: 640px; }
      .citation-grid { grid-template-columns: 1fr; }
      .call-card { min-height: 122px; }
      .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .value-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
      .value-item:nth-child(3) { border-left: 0; }
      .footer-main { gap: 36px; }
    }

    @media (max-width: 720px) {
      :root { --page: calc(100% - 28px); }
      .header-row { min-height: 76px; }
      .brand { min-width: 0; }
      .brand-name { font-size: 18px; }
      .brand-tagline { display: none; }
      .brand-mark { height: 30px; width: auto; }
      .hero-inner { padding-block: 118px 52px; }
      .hero h1 { font-size: clamp(44px, 13vw, 60px); }
      .hero-lead { max-width: 480px; font-size: 16px; }
      .stats-panel { grid-template-columns: repeat(3, 1fr); max-width: 440px; }
      .stat:nth-child(4)::before { display: none; }
      .stat:nth-child(-n+3) { border-bottom: 1px solid rgba(7,88,61,0.10); }
      .hero-buttons { flex-wrap: wrap; }

      .citation-wrap { border-radius: 16px 16px 0 0; }
      .citation-card { padding: 20px 18px; }
      .call-card { padding-right: 92px; }
      .news-bar { grid-template-columns: 1fr auto; padding-block: 10px; }
      .news-labels { display: none; }
      .news-items { grid-column: 1; }

      .content-section { padding-top: 34px; }
      .section-heading { display: block; }
      .tool-filter { width: 100%; margin-top: 16px; }
      .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .tool-card { min-height: 88px; }
      .data-grid { grid-template-columns: 1fr; }
      .value-grid { grid-template-columns: 1fr; gap: 0; }
      .value-item, .value-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(7,88,61,0.10); padding: 18px 6px; }
      .value-item:first-child { border-top: 0; }
      .footer-main { grid-template-columns: 1fr; gap: 28px; }
      .footer-links { grid-template-columns: repeat(3, 1fr); }
    }

    @media (max-width: 460px) {
      .tools-grid { grid-template-columns: 1fr; }
      .tool-card { min-height: 78px; }
      .footer-links { grid-template-columns: repeat(2, 1fr); }
      .footer-bottom { grid-template-columns: 1fr; justify-items: start; padding-block: 14px; }
      .footer-bottom .copyright,
      .footer-bottom .icp,
      .footer-bottom .back-top { justify-self: start; text-align: left; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    }
  
    /* ==================== News page ==================== */
    main { padding-top: 88px; }
    .news-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
      radial-gradient(circle at 88% 10%, rgba(119,185,65,.20), transparent 34%),
      linear-gradient(135deg, #fbfdfb 0%, #eef7f0 100%); }
    .news-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
      background-image: linear-gradient(rgba(7,88,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(7,88,61,.035) 1px, transparent 1px);
      background-size: 46px 46px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%); }
    .news-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(220px,.55fr); align-items: center; gap: 44px; padding-block: 52px 10px; }
    .news-kicker { margin: 0 0 14px; color: var(--leaf); font-family: var(--utility); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .news-title { margin: 0 0 14px; color: var(--forest-deep); font-family: var(--display); font-size: clamp(24px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
    .news-title em { color: var(--leaf); font-style: normal; }
    .news-lead { max-width: 680px; margin: 0; color: #52665c; font-size: 15px; line-height: 1.8; }
    .news-hero-mark { justify-self: center; width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%;
      color: var(--forest); background: radial-gradient(circle at 35% 30%, #fff, #e2f0e5 58%, #cfe3d4); border: 1px solid rgba(7,88,61,.12);
      box-shadow: 0 24px 60px rgba(8,69,47,.12); transform: rotate(-7deg); }
    .news-hero-mark .icon { width: 86px; height: 86px; stroke-width: 1.15; }
    .news-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .news-stat { display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 13px; color: #476057; background: rgba(255,255,255,.78); border: 1px solid rgba(7,88,61,.12); border-radius: 999px; font-size: 12px; }
    .news-stat strong { color: var(--forest); font-family: var(--utility); font-size: 14px; }
    .news-body { padding-block: 14px 64px; background: #fff; }
    .news-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .news-toolbar-note { margin: 0; color: #60756a; font-size: 12px; }
    .news-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
    .news-search { position: relative; width: min(330px, 100%); }
    .news-search input { width: 100%; height: 42px; border: 1px solid var(--line); padding: 0 42px 0 15px; color: var(--ink); background: #fbfdfb; border-radius: 999px; font-size: 12px; }
    .news-search .icon { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; color: var(--leaf); transform: translateY(-50%); pointer-events: none; }
    .news-jump { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; color: var(--forest); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mist); }
    .news-jump:hover { border-color: rgba(17,134,83,.35); }
    .news-year-block { margin-top: 36px; }
    .news-year-block:first-child { margin-top: 0; }
    .news-year-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
    .news-year-head h2 { margin: 0; color: var(--forest-deep); font-family: var(--display); font-size: 25px; letter-spacing: -.04em; }
    .news-year-head span { color: #7a8c82; font-family: var(--utility); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
    .news-list { display: grid; gap: 12px; }
    .news-card { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 24px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #fcfefd); transition: 180ms ease; }
    .news-card:hover { border-color: rgba(17,134,83,.34); box-shadow: 0 14px 32px rgba(8,69,47,.075); transform: translateY(-2px); }
    .news-card-date { padding-top: 2px; color: var(--forest); font-family: var(--utility); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
    .news-card-date span { display: block; margin-top: 5px; color: #8a9b91; font-size: 9px; font-weight: 500; }
    .news-card h3 { margin: 0 0 8px; color: var(--forest-deep); font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35; }
    .news-card p { margin: 0 0 10px; color: #5e7268; font-size: 13px; line-height: 1.7; }
    .news-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf); font-size: 11px; font-weight: 750; }
    .news-card-link:hover { color: var(--forest); }
    .news-state { padding: 28px; color: #61756a; border: 1px dashed var(--line); border-radius: 14px; font-size: 13px; }
    .news-state.error { color: #9b3c2f; border-color: #edc9c1; background: #fff8f6; }
    .archive { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 8px; }
    .archive > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--forest-deep); cursor: pointer; font-family: var(--display); font-size: 19px; font-weight: 750; letter-spacing: -.03em; list-style: none; }
    .archive > summary::-webkit-details-marker { display: none; }
    .archive > summary span { color: #7a8c82; font-family: var(--utility); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
    .archive > summary .archive-caret { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); transition: transform 180ms ease; }
    .archive[open] > summary .archive-caret { transform: rotate(180deg); }
    .archive-list { display: grid; gap: 0; padding-bottom: 20px; }
    .archive-item { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 24px; padding: 19px 0; border-top: 1px solid var(--line); }
    .archive-date { color: #71857a; font-family: var(--utility); font-size: 10px; font-weight: 700; white-space: nowrap; }
    .archive-copy { color: #5e7268; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
    .archive-copy p { margin: 0 0 8px; }
    .archive-copy p:last-child { margin-bottom: 0; }
    .archive-copy a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }
    .archive-copy a:hover { color: var(--forest); }
    .news-footer-note { margin: 32px 0 0; color: #7a8c82; font-size: 11px; }
    @media (max-width: 980px) {
      .news-hero-inner { grid-template-columns: 1fr; padding-block: 54px 44px; }
      .news-hero-mark { display: none; }
    }
    @media (max-width: 640px) {
      .news-body { padding-block: 30px 58px; }
      .news-card, .archive-item { grid-template-columns: 1fr; gap: 9px; padding-inline: 18px; }
      .archive-item { padding-inline: 0; }
      .news-card-date span { display: none; }
      .news-toolbar { align-items: stretch; }
      .news-toolbar-right { width: 100%; flex-wrap: wrap; }
      .news-search { width: 100%; }
      .news-jump { justify-content: center; }
    }

    /* ==================== Tools/Browse mega dropdown ==================== */
    .dropdown.tools-dropdown {
      min-width: 520px;
      max-height: min(72vh, 590px);
      overflow-y: auto;
      padding: 12px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-content: start;
      column-gap: 8px;
      scrollbar-width: thin;
    }
    .tools-dropdown li { min-width: 0; }
    .tools-dropdown .dropdown-heading {
      grid-column: 1 / -1;
      padding: 7px 10px 5px;
      color: #7b8a82;
      font-family: var(--utility);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
    }
    .tools-dropdown .dropdown-heading:first-child { padding-top: 2px; }
    .tools-dropdown a {
      padding: 7px 10px;
      font-size: 12px;
    }
    .tools-dropdown .tools-all-link {
      grid-column: 1 / -1;
      margin-top: 5px;
      color: var(--leaf);
      font-weight: 750;
      border-top: 1px solid var(--line);
      border-radius: 0;
    }

  
    /* ==================== Footer visit counter ==================== */
    .footer-visits {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px;
      margin-left: 10px;
      color: rgba(255,255,255,0.42);
      font-family: var(--utility);
      font-size: 9px;
      white-space: nowrap;
    }
    .footer-visits strong { color: rgba(255,255,255,0.78); font-weight: 600; }
    .footer-visits .visit-sep { color: rgba(255,255,255,0.18); }
    .footer-visit-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
    .footer-visits .footer-visit-item .icon { width: 12px; height: 12px; stroke-width: 1.8; opacity: .58; }

    @media (max-width: 640px) {
      .footer-visits { margin-left: 0; display: flex; }
    }

  
    .brand-version {
      margin-left: 4px;
      color: #21a552;
      font-family: var(--display);
      font-size: 26px;
      font-weight: 800;
      letter-spacing: -.04em;
      line-height: 1;
      align-self: center;
      transform: translateY(7px);
    }

  
    .ext-count { margin-left: 8px; color: #7a8c82; font-family: var(--utility); font-size: 10px; letter-spacing: .06em; }
    .ext-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .ext-toolbar p { margin: 0; color: #60756a; font-size: 12px; }
    .ext-search { position: relative; width: min(330px, 100%); }
    .ext-search input { width: 100%; height: 42px; border: 1px solid var(--line); padding: 0 42px 0 15px; color: var(--ink); background: #fbfdfb; border-radius: 999px; font-size: 12px; }
    .ext-search .icon { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; color: var(--leaf); transform: translateY(-50%); pointer-events: none; }
    .ext-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ext-card { display: flex; flex-direction: column; min-height: 174px; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #fcfefd); transition: 180ms ease; }
    .ext-card:hover { border-color: rgba(17,134,83,.34); box-shadow: 0 14px 32px rgba(8,69,47,.075); transform: translateY(-2px); }
    .ext-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
    .ext-index { color: #9aaca1; font-family: var(--utility); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
    .ext-external { color: var(--leaf); font-size: 17px; line-height: 1; }
    .ext-card h3 { margin: 0 0 8px; color: var(--forest-deep); font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
    .ext-card h3 a:hover { color: var(--leaf); }
    .ext-card p { margin: 0 0 15px; color: #5e7268; font-size: 12px; line-height: 1.7; flex: 1; }
    .ext-card p a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }
    .ext-open { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--leaf); font-size: 11px; font-weight: 750; }
    .ext-open:hover { color: var(--forest); }
    .ext-empty { display: none; padding: 30px; color: #61756a; border: 1px dashed var(--line); border-radius: 14px; font-size: 13px; }
    .ext-empty.visible { display: block; }
    @media (max-width: 760px) { .ext-grid { grid-template-columns: 1fr; } .ext-toolbar { align-items: stretch; } .ext-search { width: 100%; } }

/* ==================== Bootstrap bridge ====================
   The older SPAs still use Bootstrap 4 markup (card / btn / form-control /
   table / nav-tabs …). These rules re-skin those components with the V2.0
   tokens so a converted page keeps its HTML and JS but looks like V2.0. */

body { background: #fff; font-size: 15px; }

.container {
  width: var(--page);
  max-width: none;
  padding: 0;
}
.container-fluid { padding: 0 24px; }

h1, h2, h3, h4, h5, h6 { color: var(--forest-deep); font-family: var(--display); letter-spacing: -.02em; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 17px; }
hr { border-top: 1px solid var(--line); }
.text-muted { color: var(--muted) !important; }
a { color: var(--leaf); }
a:hover { color: var(--forest); }

/* Cards ----------------------------------------------------------------
   The docroot copy of Bootstrap 4.5.3 is site-customised: .card-body has a
   6px #1a659e top bar and .card-title is #00aadc + centered. Neutralise both. */
.card-body { border-top: 0; }
.card-title { color: var(--forest-deep); text-align: left; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  margin-bottom: 18px;
}
.card-header {
  padding: 14px 20px;
  color: var(--forest-deep);
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -.01em;
}
.card-body { padding: 18px 20px; }
.card-footer { padding: 12px 20px; background: #fbfdfb; border-top: 1px solid var(--line); }

/* Buttons -------------------------------------------------------------- */
.btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: 160ms ease;
}
.btn-primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-secondary { color: var(--forest); background: var(--mist); border-color: var(--line); }
.btn-secondary:hover, .btn-secondary:focus { color: var(--forest-deep); background: #e8f3ea; border-color: rgba(17,134,83,.35); }
.btn-success { color: #fff; background: var(--leaf); border-color: var(--leaf); }
.btn-success:hover, .btn-success:focus { color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-outline-primary { color: var(--forest); border-color: rgba(17,134,83,.45); }
.btn-outline-primary:hover { color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-outline-secondary { color: var(--forest); border-color: var(--line); background: #fff; }
.btn-outline-secondary:hover { color: var(--forest-deep); background: var(--mist); border-color: rgba(17,134,83,.35); }
.btn-outline-success { color: var(--leaf); border-color: rgba(17,134,83,.45); background: #fff; }
.btn-outline-success:hover { color: #fff; background: var(--leaf); border-color: var(--leaf); }
.btn-outline-info { color: var(--forest); border-color: var(--line); background: #fff; }
.btn-outline-info:hover { color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-outline-warning { color: #7a5a07; border-color: #ead08a; background: #fff; }
.btn-outline-warning:hover { color: #5a4308; background: #f6e2ac; border-color: #e6c46a; }
.btn-outline-danger { color: #b4432f; border-color: #e8b7ab; background: #fff; }
.btn-outline-danger:hover { color: #fff; background: #b4432f; border-color: #b4432f; }
.btn-danger { color: #fff; background: #b4432f; border-color: #b4432f; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-link { color: var(--leaf); font-weight: 700; }

/* Forms ---------------------------------------------------------------- */
.form-control, .custom-select {
  height: 40px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
textarea.form-control { height: auto; min-height: 96px; padding: 10px 12px; }
.form-control:focus, .custom-select:focus {
  border-color: rgba(17,134,83,.55);
  box-shadow: 0 0 0 3px rgba(119,185,65,.20);
  background: #fff;
}
.form-control::placeholder { color: #96a79d; }
.form-group label, .control-label, label { color: var(--forest-deep); font-weight: 700; font-size: 12px; }
.custom-control-label { font-weight: 500; font-size: 13px; color: var(--ink); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--forest); border-color: var(--forest); }
.form-text { color: var(--muted); font-size: 11px; }
.input-group-text { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }

/* Tables --------------------------------------------------------------- */
.table { color: var(--ink); font-size: 13px; }
.table thead th {
  padding: 9px 12px;
  color: #4d6559;
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td, .table th { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-striped tbody tr:nth-of-type(odd) { background: #fbfdfb; }
.table-hover tbody tr:hover { background: #f1f8f2; }
.table-bordered, .table-bordered td, .table-bordered th { border: 1px solid var(--line); }

/* Header nav active state (shell.js adds .active / aria-current) ---------- */
.main-nav a.active { color: var(--forest); }
.main-nav a.active::after { right: 0; left: 0; }
.main-nav .nav-trigger.active::after { right: 0; left: 0; }
.main-nav .nav-trigger.active { color: var(--forest); }

/* Inline code used by result tables / helper text ---------------------- */
code, kbd, samp { color: var(--forest-deep); background: var(--mist); border-radius: 4px; padding: 1px 4px; font-family: var(--utility); font-size: 90%; }
/* Tabs ----------------------------------------------------------------- */
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link {
  padding: 8px 16px;
  color: #5e7268;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
}
.nav-tabs .nav-link:hover { color: var(--forest); border-bottom-color: rgba(17,134,83,.35); }
.nav-tabs .nav-link.active { color: var(--forest); background: transparent; border-bottom-color: var(--forest); }
.nav-pills .nav-link { color: #5e7268; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 6px 14px; }
.nav-pills .nav-link.active { color: #fff; background: var(--forest); }

/* Badges / alerts / list group ---------------------------------------- */
.badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-primary, .badge-info { color: #fff; background: var(--forest); }
.badge-secondary { color: var(--forest); background: var(--mist); }
.badge-success { color: #fff; background: var(--leaf); }
.badge-warning { color: #5a4308; background: #f6e2ac; }
.badge-danger { color: #fff; background: #b4432f; }
.badge-light { color: var(--forest-deep); background: #eef6f0; }

.alert { border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.alert-info { color: #1e4d3b; background: #eef7f1; border-color: #cfe6d6; }
.alert-warning { color: #6b4f07; background: #fdf6e3; border-color: #f0dfb0; }
.alert-danger { color: #7d2a1b; background: #fdf1ee; border-color: #f0c9bf; }
.alert-success { color: #14543a; background: #edf8f1; border-color: #c9e7d4; }

.list-group-item { border-color: var(--line); font-size: 13px; }
.list-group-item.active { color: #fff; background: var(--forest); border-color: var(--forest); }

/* Modal / dropdown / pagination / progress ---------------------------- */
.modal-content { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(8,69,47,.22); }
.modal-header { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--display); font-weight: 750; color: var(--forest-deep); }
.modal-body { padding: 20px 22px; font-size: 13px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--line); }

.dropdown-menu {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(8,69,47,.14);
  font-size: 13px;
}
.dropdown-item { padding: 7px 12px; border-radius: 8px; }
.dropdown-item:hover, .dropdown-item:focus { color: var(--forest-deep); background: var(--mist); }

.pagination { font-size: 12px; }
.page-link { color: var(--forest); border-color: var(--line); border-radius: 8px !important; margin: 0 2px; }
.page-item.active .page-link { color: #fff; background: var(--forest); border-color: var(--forest); }
.progress { height: 8px; border-radius: 999px; background: #e9f1eb; }
.progress-bar { background: var(--leaf); }

/* Small layout helpers used by the converted pages ------------------- */
.v2-tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 4px 0 20px; }
.v2-tool-head h2 { margin: 0; font-size: 23px; }
.v2-tool-head .v2-note { margin: 0; color: var(--muted); font-size: 12px; }
.v2-section-title { margin: 26px 0 12px; font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -.02em; color: var(--forest-deep); }
.v2-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; color: var(--forest); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; }
.v2-mono { font-family: var(--utility); font-size: 12px; }
