:root {
      --primary: #0B3D91;
      --primary-dark: #072c6c;
      --primary-soft: #eaf1ff;
      --cyan: #0891B2;
      --cyan-soft: #ecfeff;
      --graphite: #172033;
      --muted: #667085;
      --line: #dce4ef;
      --surface: #ffffff;
      --page: #f5f8fc;
      --success: #0f9f6e;
      --shadow-sm: 0 8px 24px rgba(11, 61, 145, 0.08);
      --shadow-lg: 0 22px 60px rgba(16, 24, 40, 0.14);
      --radius: 18px;
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--graphite);
      background: var(--page);
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    body.drawer-locked {
      overflow: hidden;
    }

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

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

    button,
    input {
      font: inherit;
    }

    button {
      color: inherit;
    }

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

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

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

    .topbar-welcome {
      margin: 0;
    }

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

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

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

    .header {
      position: relative;
      z-index: 110;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 5px 20px rgba(16, 24, 40, 0.04);
    }

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

    .logo {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--primary);
      font-size: 18px;
      font-weight: 800;
      line-height: 1.2;
    }

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

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

    .main-nav {
      margin-left: auto;
      align-self: stretch;
    }

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

    .nav-item {
      position: static;
      display: flex;
      align-items: center;
    }

    .nav-link {
      height: 100%;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #344054;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 0.2s ease, background 0.2s ease;
    }

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

    .has-arrow::after {
      width: 6px;
      height: 6px;
      content: "";
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform 0.2s ease;
    }

    .nav-item:hover .has-arrow::after,
    .nav-item:focus-within .has-arrow::after {
      transform: rotate(225deg) translate(-1px, -1px);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      z-index: 140;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .dropdown-panel {
      width: 320px;
      margin-left: -80px;
      padding: 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      box-shadow: var(--shadow-lg);
    }

    .dropdown-panel > a {
      padding: 10px 12px;
      display: block;
      color: #344054;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 600;
    }

    .dropdown-panel > a:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .dropdown-panel .dropdown-all {
      margin-top: 8px;
      color: var(--primary);
      border-top: 1px solid var(--line);
      border-radius: 0 0 9px 9px;
    }

    .mega-menu {
      right: 0;
      left: 0;
      padding-top: 0;
    }

    .mega-inner {
      width: min(calc(100% - 40px), var(--container));
      max-height: calc(100vh - 130px);
      margin-inline: auto;
      padding: 22px;
      overflow-y: auto;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top: 3px solid var(--primary);
      border-radius: 0 0 20px 20px;
      box-shadow: var(--shadow-lg);
    }

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

    .mega-heading strong {
      color: var(--graphite);
      font-size: 18px;
    }

    .mega-heading span {
      color: var(--muted);
      font-size: 13px;
      text-align: right;
    }

    .mega-categories {
      margin-bottom: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mega-categories a {
      padding: 7px 12px;
      color: var(--primary);
      background: var(--primary-soft);
      border: 1px solid #cbdafa;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
    }

    .mega-categories a:hover {
      color: #ffffff;
      background: var(--primary);
    }

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

    .mega-card {
      min-width: 0;
      padding: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      background: #f9fbfe;
      border: 1px solid #e4eaf2;
      border-radius: 14px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mega-card:hover {
      border-color: #9cb8eb;
      box-shadow: var(--shadow-sm);
      transform: translateY(-2px);
    }

    .mega-card > img {
      width: 64px;
      height: 54px;
      flex: 0 0 64px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid #edf0f4;
      border-radius: 10px;
    }

    .mega-card-body {
      min-width: 0;
      display: block;
    }

    .mega-card-title,
    .mega-card-text {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mega-card-title {
      color: #1d2939;
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .mega-card-text {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .mega-card-meta {
      margin-top: 5px;
      display: flex;
      flex-wrap: wrap;
      gap: 5px 10px;
      color: var(--primary);
      font-size: 11px;
      font-weight: 700;
    }

    .mega-footer {
      margin-top: 16px;
      padding-top: 14px;
      display: block;
      color: var(--primary);
      border-top: 1px solid var(--line);
      font-size: 14px;
      font-weight: 800;
      text-align: right;
    }

    .mega-footer:hover {
      color: var(--cyan);
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    .open-account {
      padding: 10px 15px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 10px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 8px 18px rgba(11, 61, 145, 0.2);
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .open-account:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }

    .hamburger {
      width: 44px;
      height: 44px;
      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: 20px;
      height: 2px;
      display: block;
      background: var(--graphite);
      border-radius: 2px;
      transition: transform 0.2s ease, opacity 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: 190;
      visibility: hidden;
      opacity: 0;
      background: rgba(4, 12, 28, 0.58);
      backdrop-filter: blur(3px);
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 200;
      width: min(90vw, 390px);
      height: 100%;
      display: flex;
      flex-direction: column;
      background: #ffffff;
      box-shadow: -20px 0 60px rgba(16, 24, 40, 0.22);
      transform: translateX(105%);
      transition: transform 0.28s ease;
    }

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

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

    .drawer-head > a {
      padding: 8px 11px;
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 8px;
      font-size: 13px;
      font-weight: 800;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      padding: 0;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 9px;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 14px 18px 30px;
      overflow-y: auto;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 48px;
      padding: 11px 4px;
      display: flex;
      align-items: center;
      color: #1d2939;
      background: transparent;
      border: 0;
      border-bottom: 1px solid #eaecf0;
      font-size: 15px;
      font-weight: 800;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle {
      justify-content: space-between;
    }

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

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

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

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

    .drawer-submenu a {
      padding: 10px 14px;
      display: block;
      color: #475467;
      border-bottom: 1px solid #e7ecf3;
      font-size: 14px;
      font-weight: 600;
    }

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

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

    .tag-index-page .tag-hero {
      position: relative;
      padding: 72px 0 104px;
      overflow: hidden;
      color: #ffffff;
      background:
        radial-gradient(circle at 12% 20%, rgba(8, 145, 178, 0.42), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(87, 132, 218, 0.36), transparent 30%),
        linear-gradient(135deg, #071d43 0%, #0b3d91 58%, #075d78 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%;
    }

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

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

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

    .tag-index-page .eyebrow {
      margin-bottom: 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #cffafe;
      font-size: 13px;
      font-weight: 800;
      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(34px, 5vw, 60px);
      line-height: 1.12;
      letter-spacing: -0.04em;
    }

    .tag-index-page .tag-hero p {
      max-width: 700px;
      margin: 20px auto 0;
      color: #d9e8ff;
      font-size: 17px;
    }

    .tag-index-page .tag-hero-nav {
      margin-top: 28px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .tag-index-page .tag-hero-nav a {
      padding: 10px 16px;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      backdrop-filter: blur(8px);
    }

    .tag-index-page .tag-hero-nav a:hover {
      color: var(--primary);
      background: #ffffff;
    }

    .tag-index-page .tag-library {
      position: relative;
      z-index: 3;
      padding: 0 0 76px;
    }

    .tag-index-page .tag-panel {
      margin-top: -52px;
      padding: 32px;
      background: #ffffff;
      border: 1px solid rgba(220, 228, 239, 0.9);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
    }

    .tag-index-page .section-head {
      margin-bottom: 26px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
    }

    .tag-index-page .section-head h2 {
      margin: 0;
      color: var(--graphite);
      font-size: clamp(24px, 3vw, 34px);
      line-height: 1.2;
    }

    .tag-index-page .section-head p {
      max-width: 570px;
      margin: 8px 0 0;
      color: var(--muted);
    }

    .tag-index-page .topic-count {
      padding: 8px 13px;
      flex: 0 0 auto;
      color: var(--primary);
      background: var(--primary-soft);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
    }

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

    .tag-index-page .tag-item {
      min-height: 48px;
      padding: 11px 17px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #27364f;
      background: #f8fbff;
      border: 1px solid #d8e3f2;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 800;
      box-shadow: 0 5px 14px rgba(11, 61, 145, 0.05);
      transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .tag-index-page .tag-item::before {
      content: "#";
      color: var(--cyan);
      font-size: 18px;
      font-weight: 900;
    }

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

    .tag-index-page .tag-item:hover::before {
      color: #8be5f5;
    }

    .tag-index-page .tag-item:nth-child(4n + 1) {
      font-size: 18px;
    }

    .tag-index-page .tag-item:nth-child(5n + 2) {
      color: #06647b;
      background: var(--cyan-soft);
      border-color: #a5e5ef;
    }

    .tag-index-page .tag-item:nth-child(5n + 2):hover {
      color: #ffffff;
      background: var(--cyan);
      border-color: var(--cyan);
    }

    .tag-index-page .tag-guide {
      padding: 70px 0;
      background: #ffffff;
      border-top: 1px solid #e6ebf2;
    }

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

    .tag-index-page .guide-card {
      padding: 26px;
      background: linear-gradient(180deg, #ffffff, #f7faff);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow-sm);
    }

    .tag-index-page .guide-number {
      width: 42px;
      height: 42px;
      margin-bottom: 17px;
      display: grid;
      place-items: center;
      color: #ffffff;
      background: var(--primary);
      border-radius: 12px;
      font-size: 14px;
      font-weight: 900;
    }

    .tag-index-page .guide-card:nth-child(2) .guide-number {
      background: var(--cyan);
    }

    .tag-index-page .guide-card:nth-child(3) .guide-number {
      background: var(--success);
    }

    .tag-index-page .guide-card h3 {
      margin: 0 0 8px;
      color: var(--graphite);
      font-size: 19px;
    }

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

    .tag-index-page .tag-cta {
      padding: 0 0 76px;
      background: #ffffff;
    }

    .tag-index-page .cta-box {
      padding: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      color: #ffffff;
      background: linear-gradient(120deg, var(--primary-dark), var(--primary), var(--cyan));
      border-radius: 22px;
      box-shadow: 0 20px 45px rgba(11, 61, 145, 0.2);
    }

    .tag-index-page .cta-box h2 {
      margin: 0 0 8px;
      font-size: clamp(23px, 3vw, 32px);
      line-height: 1.2;
    }

    .tag-index-page .cta-box p {
      max-width: 700px;
      margin: 0;
      color: #dbeafe;
    }

    .tag-index-page .cta-actions {
      display: flex;
      flex: 0 0 auto;
      gap: 10px;
    }

    .tag-index-page .cta-actions a {
      padding: 11px 17px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 800;
      text-align: center;
      white-space: nowrap;
    }

    .tag-index-page .cta-primary {
      color: var(--primary);
      background: #ffffff;
    }

    .tag-index-page .cta-secondary {
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .footer {
      color: #cbd5e1;
      background: #07152d;
    }

    .footer-main {
      padding: 58px 0 42px;
      display: grid;
      grid-template-columns: 1.35fr 1fr 0.9fr 0.9fr;
      gap: 42px;
    }

    .footer .logo {
      color: #ffffff;
    }

    .footer-brand p {
      max-width: 390px;
      margin: 18px 0 0;
      color: #9fb0c8;
      font-size: 14px;
    }

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

    .footer-links,
    .footer-contact {
      display: grid;
      gap: 10px;
    }

    .footer-links a,
    .footer-contact a {
      color: #aebdd0;
      font-size: 14px;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
      color: #ffffff;
      transform: translateX(3px);
    }

    .footer-social {
      margin-top: 18px;
    }

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

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

      .hamburger {
        display: flex;
      }

      .header-btns {
        margin-left: auto;
      }

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

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

      .topbar-inner {
        padding: 8px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }

      .topbar-contact {
        flex-wrap: wrap;
        gap: 4px 14px;
      }

      .header-inner {
        min-height: 68px;
        gap: 12px;
      }

      .header .logo span {
        max-width: 125px;
      }

      .header-btns > .open-account {
        display: none;
      }

      .tag-index-page .tag-hero {
        padding: 55px 0 88px;
      }

      .tag-index-page .tag-hero p {
        font-size: 15px;
      }

      .tag-index-page .tag-panel {
        margin-top: -40px;
        padding: 22px 17px;
        border-radius: 18px;
      }

      .tag-index-page .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
      }

      .tag-index-page .tag-cloud {
        justify-content: flex-start;
        gap: 9px;
      }

      .tag-index-page .tag-item,
      .tag-index-page .tag-item:nth-child(4n + 1) {
        min-height: 43px;
        padding: 9px 13px;
        font-size: 14px;
      }

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

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

      .tag-index-page .cta-box {
        padding: 26px 21px;
        align-items: flex-start;
        flex-direction: column;
      }

      .tag-index-page .cta-actions {
        width: 100%;
        flex-wrap: wrap;
      }

      .tag-index-page .cta-actions a {
        flex: 1 1 150px;
      }

      .footer-main {
        padding: 44px 0 32px;
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .footer-bottom {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
      }
    }

    @media (max-width: 430px) {
      .topbar-contact {
        display: grid;
      }

      .header-btns {
        gap: 7px;
      }

      .header .logo img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
      }

      .header .logo span {
        max-width: 105px;
        font-size: 15px;
      }

      .mobile-drawer {
        width: 94vw;
      }

      .drawer-head {
        padding-inline: 13px;
      }

      .tag-index-page .tag-hero-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .tag-index-page .tag-hero-nav a {
        padding-inline: 10px;
      }
    }