/* Page styles for dispute-resolution.html */
:root {
      --primary: #1E3A8A;
      --primary-dark: #1D2C51;
      --primary-light: #E6F1FF;
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --card-header: #f0f1f3;
      --green: #059669;
      --green-light: #D1FAE5;
      --red: #DC2626;
      --red-light: #FEE2E2;
      --amber: #d97706;
      --amber-light: #FEF3C7;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }

    /* Header */
    .nav-links { display: flex; align-items: center; gap: 4px; }

    .nav-link {
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 5px;
      transition: background 0.15s, color 0.15s;
    }

    .nav-link:hover { background: var(--secondary); color: var(--foreground); }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      padding: 8px 18px;
      border-radius: 5px;
      text-decoration: none;
      transition: background 0.15s;
    }

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

    /* Hero */
    .hero {
      background: linear-gradient(155deg, #0f1e42 0%, var(--primary) 55%, #1a4199 100%);
      padding: 80px 24px 72px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(37,99,235,0.2) 0%, transparent 65%);
      pointer-events: none;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.18);
      color: rgba(255,255,255,0.85);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 5px;
      margin-bottom: 24px;
    }

    .hero h1 {
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      line-height: 1.15;
    }

    .hero p {
      font-size: 17px;
      color: rgba(255,255,255,0.72);
      max-width: 560px;
      margin: 0 auto 32px;
      line-height: 1.65;
    }

    .hero-pills {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.7);
      font-size: 12.5px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 5px;
    }

    /* Scope bar */
    .scope-bar {
      background: #fff;
      border-bottom: 1px solid var(--border);
    }

    .scope-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }

    .scope-item {
      padding: 28px 24px;
      text-align: center;
      border-right: 1px solid var(--border);
      position: relative;
    }

    .scope-item:last-child { border-right: none; }

    .scope-icon {
      width: 36px;
      height: 36px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
    }

    .scope-icon.blue { background: var(--primary-light); }
    .scope-icon.green { background: var(--green-light); }
    .scope-icon.amber { background: var(--amber-light); }

    .scope-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 4px;
    }

    .scope-desc {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Nav pills bar */
    .nav-pills-bar {
      background: #fff;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 66px;
      z-index: 40;
    }

    .nav-pills-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      align-items: center;
      gap: 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .nav-pills-inner::-webkit-scrollbar { display: none; }

    .nav-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      padding: 14px 14px;
      white-space: nowrap;
      text-decoration: none;
      border-bottom: 2px solid transparent;
      transition: color 0.15s, border-color 0.15s;
    }

    .nav-pill:hover { color: var(--foreground); }
    .nav-pill.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

    /* Layout */
    .page-body {
      max-width: 1200px;
      margin: 0 auto;
      padding: 64px 24px 80px;
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 56px;
      align-items: start;
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: 110px;
    }

    .sidebar-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 12px;
      border-radius: 5px;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      border: 1px solid transparent;
    }

    .sidebar-link:hover { background: var(--secondary); color: var(--foreground); }
    .sidebar-link.active {
      background: var(--primary-light);
      color: var(--primary);
      border-color: rgba(30,58,138,0.12);
      font-weight: 600;
    }

    .sidebar-link svg { flex-shrink: 0; opacity: 0.6; }
    .sidebar-link.active svg { opacity: 1; }

    .sidebar-divider { height: 1px; background: var(--border); margin: 14px 0; }

    .sidebar-note {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.55;
      padding: 12px;
      background: var(--secondary);
      border-radius: 5px;
      margin-top: 12px;
    }

    /* Main */
    .main-content { min-width: 0; }

    .section { margin-bottom: 56px; scroll-margin-top: 120px; }

    .section-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary);
      background: var(--primary-light);
      border: 1px solid rgba(30,58,138,0.15);
      padding: 5px 12px;
      border-radius: 5px;
      margin-bottom: 16px;
    }

    .section-heading {
      font-size: 22px;
      font-weight: 700;
      color: var(--foreground);
      letter-spacing: -0.01em;
      margin-bottom: 6px;
    }

    .section-sub {
      font-size: 14.5px;
      color: var(--muted);
      margin-bottom: 20px;
      line-height: 1.55;
    }

    /* Card */
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .card-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 13px 20px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
    }

    .card-body { padding: 24px; }

    /* Callout */
    .callout {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 14px 16px;
      border-radius: 5px;
      font-size: 13.5px;
      line-height: 1.55;
    }

    .callout.blue { background: var(--primary-light); border: 1px solid rgba(30,58,138,0.15); color: var(--primary); }
    .callout.green { background: var(--green-light); border: 1px solid rgba(5,150,105,0.2); color: #065f46; }
    .callout.amber { background: var(--amber-light); border: 1px solid rgba(217,119,6,0.2); color: #92400e; }
    .callout.red { background: var(--red-light); border: 1px solid rgba(220,38,38,0.2); color: #991b1b; }
    .callout svg { flex-shrink: 0; margin-top: 1px; }

    /* Role split */
    .role-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .role-card {
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .role-card-header {
      padding: 13px 18px;
      font-size: 12.5px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid var(--border);
    }

    .role-card-header.does { background: #f0fdf4; color: #166534; border-color: rgba(22,101,52,0.15); }
    .role-card-header.does-not { background: #fef2f2; color: #991b1b; border-color: rgba(153,27,27,0.15); }

    .role-card-body { padding: 18px; background: var(--card); }

    .role-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

    .role-list-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13.5px;
      color: var(--foreground);
      line-height: 1.4;
    }

    .role-dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .role-dot.green { background: var(--green-light); }
    .role-dot.red { background: var(--red-light); }

    /* Feature grid */
    .feature-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .feature-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 20px;
    }

    .feature-icon {
      width: 36px;
      height: 36px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
    }

    .feature-icon.blue { background: var(--primary-light); }
    .feature-icon.green { background: var(--green-light); }
    .feature-icon.amber { background: var(--amber-light); }
    .feature-icon.red { background: var(--red-light); }
    .feature-icon.slate { background: var(--secondary); }

    .feature-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 5px;
    }

    .feature-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Numbered steps */
    .steps-list { display: flex; flex-direction: column; gap: 0; }

    .step-item {
      display: flex;
      gap: 16px;
      padding: 20px 20px;
      border-bottom: 1px solid var(--border);
      position: relative;
    }

    .step-item:last-child { border-bottom: none; }

    .step-num {
      width: 28px;
      height: 28px;
      background: var(--primary);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12.5px;
      font-weight: 700;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .step-content {}

    .step-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 3px;
    }

    .step-desc {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Checklist */
    .checklist { display: flex; flex-direction: column; gap: 10px; }

    .checklist-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13.5px;
      color: var(--foreground);
      line-height: 1.4;
    }

    .check-dot {
      width: 20px;
      height: 20px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .check-dot.green { background: var(--green-light); }
    .check-dot.blue { background: var(--primary-light); }
    .check-dot.amber { background: var(--amber-light); }
    .check-dot.red { background: var(--red-light); }

    /* Submit requirements */
    .submit-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
    }

    .submit-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 16px 18px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .submit-icon {
      width: 32px;
      height: 32px;
      border-radius: 5px;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .submit-label {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--foreground);
      margin-bottom: 2px;
    }

    .submit-desc {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.4;
    }

    /* Outcome split */
    .outcome-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .outcome-card {
      border-radius: 5px;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .outcome-header {
      padding: 14px 20px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid var(--border);
    }

    .outcome-header.valid { background: #f0fdf4; color: #166534; border-color: rgba(22,101,52,0.15); }
    .outcome-header.discrepancy { background: #fef2f2; color: #991b1b; border-color: rgba(153,27,27,0.15); }

    .outcome-body {
      padding: 18px 20px;
      background: var(--card);
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.55;
    }

    /* Neutral pillars */
    .pillar-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .pillar-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 24px 20px;
      text-align: center;
    }

    .pillar-icon {
      width: 40px;
      height: 40px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
    }

    .pillar-title {
      font-size: 14.5px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 6px;
    }

    .pillar-desc {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Escalation table */
    .esc-table { width: 100%; border-collapse: collapse; }

    .esc-table th {
      background: var(--card-header);
      padding: 11px 16px;
      font-size: 11.5px;
      font-weight: 700;
      color: var(--muted);
      text-align: left;
      border-bottom: 1px solid var(--border);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .esc-table td {
      padding: 12px 16px;
      font-size: 13.5px;
      color: var(--foreground);
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    .esc-table tr:last-child td { border-bottom: none; }

    .esc-table tr:hover td { background: var(--secondary); }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11.5px;
      font-weight: 600;
      padding: 3px 9px;
      border-radius: 5px;
    }

    .badge.blue { background: var(--primary-light); color: var(--primary); }
    .badge.green { background: var(--green-light); color: #065f46; }
    .badge.amber { background: var(--amber-light); color: #92400e; }
    .badge.slate { background: var(--secondary); color: var(--muted); }

    /* Closing panel */
    .closing-panel {
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
      border-radius: 5px;
      padding: 64px 48px;
      text-align: center;
      margin-top: 16px;
    }

    .closing-panel h2 {
      font-size: 26px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.01em;
      margin-bottom: 10px;
    }

    .closing-panel p {
      font-size: 15px;
      color: rgba(255,255,255,0.65);
      max-width: 500px;
      margin: 0 auto 36px;
      line-height: 1.65;
    }

    .closing-tiles {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .closing-tile {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 5px;
      padding: 18px 28px;
      min-width: 160px;
    }

    .closing-tile-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      margin-bottom: 4px;
    }

    .closing-tile-value {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
    }



    /* Responsive */
    @media (max-width: 960px) {
      .nav-links { display: none; }
      .page-body { grid-template-columns: 1fr; gap: 32px; }
      .sidebar { position: static; display: none; }
      .scope-inner { grid-template-columns: 1fr; }
      .scope-item { border-right: none; border-bottom: 1px solid var(--border); }
      .scope-item:last-child { border-bottom: none; }
      .feature-grid { grid-template-columns: 1fr; }
      .role-split { grid-template-columns: 1fr; }
      .submit-grid { grid-template-columns: 1fr 1fr; }
      .outcome-split { grid-template-columns: 1fr; }
      .pillar-grid { grid-template-columns: 1fr; }
      .closing-tiles { flex-direction: column; align-items: center; }
      .closing-tile { min-width: unset; width: 100%; max-width: 320px; }
      .closing-panel { padding: 40px 24px; }
      .esc-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    }

    @media (max-width: 480px) {
      .hero { padding: 52px 16px 44px; }
      .hero-pills { gap: 6px; }
      .page-body { padding: 36px 16px 60px; }
      .nav-pills-bar { display: none; }
      .submit-grid { grid-template-columns: 1fr; }
      .closing-tiles { align-items: stretch; }
      .closing-tile { max-width: 100%; }
    }
