:root {
      --primary: #0B3D91;
      --primary-dark: #072c69;
      --primary-soft: #eaf1ff;
      --accent: #0891B2;
      --accent-dark: #0e7490;
      --cyan-soft: #ecfeff;
      --graphite: #172033;
      --muted: #667085;
      --line: #dfe7f2;
      --surface: #ffffff;
      --background: #f5f8fc;
      --success: #16a085;
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --shadow-sm: 0 8px 24px rgba(11, 61, 145, 0.08);
      --shadow-md: 0 18px 48px rgba(11, 61, 145, 0.13);
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--graphite);
      background: var(--background);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    body,
    button,
    input {
      font: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      color: inherit;
    }

    .container {
      width: min(calc(100% - 40px), var(--container));
      margin-inline: auto;
    }

    .topbar {
      position: relative;
      z-index: 120;
      color: #dce9ff;
      background: #071a35;
      font-size: 13px;
    }

    .topbar-inner {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .topbar-links {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .topbar a {
      transition: color 0.2s ease;
    }

    .topbar a:hover {
      color: #ffffff;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 110;
      background: rgba(255, 255, 255, 0.97);
      border-bottom: 1px solid rgba(223, 231, 242, 0.9);
      box-shadow: 0 4px 18px rgba(18, 38, 63, 0.04);
      backdrop-filter: blur(14px);
    }

    .header-inner {
      min-height: 78px;
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .logo {
      min-width: 190px;
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--primary);
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .logo img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      border-radius: 10px;
    }

    .main-nav {
      flex: 1;
      align-self: stretch;
    }

    .nav-list {
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: stretch;
      justify-content: center;
      list-style: none;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: stretch;
    }

    .nav-link {
      position: relative;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #344054;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .nav-link::after {
      position: absolute;
      right: 13px;
      bottom: 0;
      left: 13px;
      height: 3px;
      content: "";
      background: var(--accent);
      border-radius: 3px 3px 0 0;
      opacity: 0;
      transform: scaleX(0.4);
      transition: 0.2s ease;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link {
      color: var(--primary);
    }

    .nav-item:hover > .nav-link::after,
    .nav-item:focus-within > .nav-link::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .has-arrow {
      padding-right: 27px;
    }

    .has-arrow::before {
      position: absolute;
      top: 50%;
      right: 12px;
      width: 6px;
      height: 6px;
      content: "";
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: translateY(-70%) rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 130;
      padding: 22px;
      visibility: hidden;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 0 0 18px 18px;
      box-shadow: var(--shadow-md);
      opacity: 0;
      transform: translate(-50%, 10px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .dropdown-panel::before,
    .mega-menu::before {
      position: absolute;
      right: 0;
      bottom: 100%;
      left: 0;
      height: 12px;
      content: "";
    }

    .dropdown-panel {
      width: 340px;
    }

    .mega-menu {
      width: min(720px, calc(100vw - 40px));
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .panel-title {
      margin-bottom: 14px;
      color: var(--primary);
      font-size: 15px;
      font-weight: 800;
    }

    .panel-list {
      display: grid;
      gap: 7px;
    }

    .panel-list a {
      padding: 10px 11px;
      display: grid;
      gap: 2px;
      color: #344054;
      background: #f8fafc;
      border-radius: 10px;
      transition: 0.2s ease;
    }

    .panel-list a:hover {
      color: var(--primary);
      background: var(--primary-soft);
      transform: translateX(2px);
    }

    .panel-list small {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .mega-grid > div {
      min-width: 0;
    }

    .mega-card {
      margin-bottom: 8px;
      padding: 9px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #f8fafc;
      border: 1px solid transparent;
      border-radius: 12px;
      transition: 0.2s ease;
    }

    .mega-card:hover {
      background: var(--primary-soft);
      border-color: #c9d9f6;
      transform: translateY(-1px);
    }

    .mega-card img {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 9px;
    }

    .mega-card span {
      min-width: 0;
      display: grid;
    }

    .mega-card strong {
      overflow: hidden;
      color: #24324a;
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card small {
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      margin-top: 16px;
      padding: 11px 14px;
      display: block;
      color: #ffffff;
      background: var(--primary);
      border-radius: 10px;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      transition: 0.2s ease;
    }

    .mega-footer:hover {
      background: var(--primary-dark);
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .member-link,
    .open-account {
      min-height: 40px;
      padding: 0 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .member-link {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .open-account {
      color: #ffffff;
      background: var(--primary);
      box-shadow: 0 8px 18px rgba(11, 61, 145, 0.2);
    }

    .member-link:hover {
      background: #dbe7fc;
    }

    .open-account:hover {
      background: var(--primary-dark);
    }

    .hamburger {
      width: 42px;
      height: 42px;
      padding: 0;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 10px;
      cursor: pointer;
    }

    .hamburger span {
      width: 19px;
      height: 2px;
      display: block;
      background: var(--graphite);
      border-radius: 2px;
      transition: 0.2s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 180;
      visibility: hidden;
      background: rgba(5, 17, 39, 0.58);
      opacity: 0;
      transition: 0.25s ease;
    }

    .drawer-overlay.open {
      visibility: visible;
      opacity: 1;
    }

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 190;
      width: min(390px, 92vw);
      height: 100dvh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -20px 0 50px rgba(5, 17, 39, 0.2);
      transform: translateX(102%);
      transition: transform 0.28s ease;
    }

    .mobile-drawer.open {
      transform: translateX(0);
    }

    .drawer-head {
      min-height: 74px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #ffffff;
      background: var(--primary);
    }

    .drawer-head strong {
      min-width: 0;
      flex: 1;
      font-size: 14px;
    }

    .drawer-head > a {
      padding: 8px 10px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
    }

    .drawer-close {
      width: 36px;
      height: 36px;
      padding: 0;
      color: #ffffff;
      background: transparent;
      border: 0;
      font-size: 29px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 16px;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 48px;
      padding: 12px 13px;
      display: flex;
      align-items: center;
      color: #263550;
      background: transparent;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      font-weight: 750;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle {
      position: relative;
      padding-right: 38px;
    }

    .drawer-toggle::after {
      position: absolute;
      right: 15px;
      width: 8px;
      height: 8px;
      content: "";
      border-right: 2px solid var(--primary);
      border-bottom: 2px solid var(--primary);
      transform: rotate(45deg);
      transition: 0.2s ease;
    }

    .drawer-toggle.active::after {
      transform: rotate(225deg);
    }

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f7f9fc;
      border-radius: 0 0 10px 10px;
      transition: max-height 0.3s ease;
    }

    .drawer-submenu.open {
      max-height: 720px;
    }

    .drawer-submenu a {
      padding: 9px 16px 9px 25px;
      display: block;
      color: #58667d;
      border-bottom: 1px solid #e8edf4;
      font-size: 13px;
    }

    .drawer-submenu a:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .tag-index-page {
      min-height: 640px;
    }

    .tag-index-page .tag-hero {
      position: relative;
      padding: 84px 0 72px;
      overflow: hidden;
      color: #ffffff;
      background:
        radial-gradient(circle at 15% 25%, rgba(8, 145, 178, 0.38), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(104, 160, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #061a3d 0%, #0b3d91 58%, #075f78 100%);
    }

    .tag-index-page .tag-hero::before,
    .tag-index-page .tag-hero::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 50%;
      pointer-events: none;
    }

    .tag-index-page .tag-hero::before {
      width: 430px;
      height: 430px;
      top: -265px;
      right: 6%;
    }

    .tag-index-page .tag-hero::after {
      width: 250px;
      height: 250px;
      bottom: -175px;
      left: 7%;
    }

    .tag-index-page .tag-hero-inner {
      position: relative;
      z-index: 1;
      max-width: 840px;
      margin-inline: auto;
      text-align: center;
    }

    .tag-index-page .eyebrow {
      margin-bottom: 17px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #bdf5ff;
      font-size: 13px;
      font-weight: 850;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .tag-index-page .eyebrow::before,
    .tag-index-page .eyebrow::after {
      width: 28px;
      height: 1px;
      content: "";
      background: currentColor;
    }

    .tag-index-page h1 {
      margin: 0;
      font-size: clamp(36px, 6vw, 66px);
      line-height: 1.08;
      letter-spacing: -0.045em;
    }

    .tag-index-page .hero-description {
      max-width: 720px;
      margin: 22px auto 0;
      color: #d9e8fa;
      font-size: clamp(16px, 2vw, 19px);
    }

    .tag-index-page .hero-links {
      margin-top: 30px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 11px;
    }

    .tag-index-page .hero-links a {
      min-height: 44px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.11);
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 999px;
      font-size: 14px;
      font-weight: 800;
      backdrop-filter: blur(8px);
      transition: 0.2s ease;
    }

    .tag-index-page .hero-links a:first-child {
      color: #083457;
      background: #c9f8ff;
      border-color: #c9f8ff;
    }

    .tag-index-page .hero-links a:hover {
      color: var(--primary);
      background: #ffffff;
      transform: translateY(-2px);
    }

    .tag-index-page .tag-content {
      padding: 70px 0 86px;
    }

    .tag-index-page .section-heading {
      max-width: 740px;
      margin: 0 auto 34px;
      text-align: center;
    }

    .tag-index-page .section-heading span {
      color: var(--accent-dark);
      font-size: 13px;
      font-weight: 850;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .tag-index-page .section-heading h2 {
      margin: 8px 0 10px;
      color: #14213a;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.18;
      letter-spacing: -0.035em;
    }

    .tag-index-page .section-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
    }

    .tag-index-page .tag-cloud-panel {
      position: relative;
      padding: clamp(25px, 5vw, 54px);
      overflow: hidden;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }

    .tag-index-page .tag-cloud-panel::before {
      position: absolute;
      width: 260px;
      height: 260px;
      top: -170px;
      right: -90px;
      content: "";
      background: radial-gradient(circle, rgba(8, 145, 178, 0.15), transparent 68%);
      border-radius: 50%;
      pointer-events: none;
    }

    .tag-index-page .tag-cloud {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 13px;
    }

    .tag-index-page .tag-chip {
      min-height: 48px;
      padding: 10px 17px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #18345e;
      background: #f3f7fd;
      border: 1px solid #d8e4f5;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 800;
      transition: 0.22s ease;
    }

    .tag-index-page .tag-chip:nth-child(3n + 1) {
      color: #075c70;
      background: var(--cyan-soft);
      border-color: #bcecf3;
    }

    .tag-index-page .tag-chip:nth-child(4n + 2) {
      color: #563d8e;
      background: #f5f1ff;
      border-color: #dfd4fb;
    }

    .tag-index-page .tag-chip:nth-child(5n + 3) {
      color: #7c4b12;
      background: #fff8e8;
      border-color: #f5dfad;
    }

    .tag-index-page .tag-chip:hover {
      color: #ffffff;
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 10px 22px rgba(11, 61, 145, 0.2);
      transform: translateY(-3px);
    }

    .tag-index-page .tag-count {
      min-width: 27px;
      height: 27px;
      padding: 0 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      background: #ffffff;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      box-shadow: 0 2px 8px rgba(11, 61, 145, 0.1);
    }

    .tag-index-page .topic-guide {
      margin-top: 28px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .tag-index-page .guide-card {
      padding: 25px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
    }

    .tag-index-page .guide-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 17px;
      display: grid;
      place-items: center;
      color: #ffffff;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 14px;
      font-size: 20px;
      font-weight: 900;
    }

    .tag-index-page .guide-card h3 {
      margin: 0 0 8px;
      color: #172642;
      font-size: 18px;
    }

    .tag-index-page .guide-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tag-index-page .tag-cta {
      margin-top: 28px;
      padding: 31px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 25px;
      color: #ffffff;
      background: linear-gradient(120deg, #092d68, #0b3d91 60%, #087e9d);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }

    .tag-index-page .tag-cta h2 {
      margin: 0 0 6px;
      font-size: clamp(22px, 3vw, 31px);
      line-height: 1.2;
    }

    .tag-index-page .tag-cta p {
      margin: 0;
      color: #d7e6fa;
    }

    .tag-index-page .tag-cta a {
      min-height: 46px;
      padding: 0 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      color: var(--primary);
      background: #ffffff;
      border-radius: 11px;
      font-weight: 850;
      white-space: nowrap;
      transition: 0.2s ease;
    }

    .tag-index-page .tag-cta a:hover {
      background: #c9f8ff;
      transform: translateY(-2px);
    }

    .footer {
      padding: 62px 0 0;
      color: #c9d4e6;
      background: #07162e;
    }

    .footer-grid {
      padding-bottom: 44px;
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 38px;
    }

    .footer-brand {
      margin-bottom: 13px;
      color: #ffffff;
      font-size: 22px;
      font-weight: 850;
    }

    .footer p {
      max-width: 380px;
      margin: 0;
      color: #9eacc2;
      font-size: 14px;
    }

    .footer h3 {
      margin: 0 0 15px;
      color: #ffffff;
      font-size: 15px;
    }

    .footer-grid > div > a {
      margin-bottom: 9px;
      display: block;
      color: #aebbd0;
      font-size: 14px;
      transition: 0.2s ease;
    }

    .footer-grid > div > a:hover {
      color: #ffffff;
      transform: translateX(2px);
    }

    .footer-bottom {
      min-height: 67px;
      padding: 18px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      color: #8f9db2;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 13px;
    }

    @media (max-width: 1100px) {
      .main-nav {
        display: none;
      }

      .header-inner {
        min-height: 70px;
      }

      .logo {
        flex: 1;
      }

      .hamburger {
        display: flex;
      }

      .topic-guide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 800px) {
      .container {
        width: min(calc(100% - 28px), var(--container));
      }

      .topbar-inner {
        min-height: 42px;
      }

      .topbar-inner > span {
        display: none;
      }

      .topbar-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
      }

      .member-link {
        display: none;
      }

      .open-account {
        padding-inline: 12px;
      }

      .tag-index-page .tag-hero {
        padding: 64px 0 58px;
      }

      .tag-index-page .tag-content {
        padding: 52px 0 65px;
      }

      .tag-index-page .topic-guide {
        grid-template-columns: 1fr;
      }

      .tag-index-page .tag-cta {
        align-items: flex-start;
        flex-direction: column;
      }

      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
      }
    }

    @media (max-width: 520px) {
      .topbar-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
        padding: 6px 0;
      }

      .logo {
        min-width: 0;
      }

      .logo span {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .open-account {
        display: none;
      }

      .tag-index-page .tag-hero {
        padding: 52px 0 50px;
      }

      .tag-index-page .hero-links {
        align-items: stretch;
        flex-direction: column;
      }

      .tag-index-page .hero-links a {
        width: 100%;
      }

      .tag-index-page .tag-cloud-panel {
        padding: 23px 16px;
        border-radius: 18px;
      }

      .tag-index-page .tag-cloud {
        gap: 9px;
      }

      .tag-index-page .tag-chip {
        min-height: 43px;
        padding: 8px 12px;
        font-size: 13px;
      }

      .tag-index-page .guide-card,
      .tag-index-page .tag-cta {
        padding: 22px;
      }

      .footer {
        padding-top: 46px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }
    }