/**
 * GovTender PRO - Federal Corporate Compliance Policy Suite Engine Stylesheet
 * Statutory FAR > $250k SAT Suite (FAR 52.223-6, FAR 52.203-7, FAR 52.222-54, FAR 52.203-17).
 * Color Tokens: #0F172A Navy, #2563EB Blue, #059669 Emerald, #DC2626 Crimson, #D97706 Amber, #7C3AED Purple
 */

:root {
  --navy-950: #020617;
  --navy-900: #0F172A;
  --navy-850: #131E35;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;

  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50: #EFF6FF;

  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50: #ECFDF5;

  --crimson-600: #DC2626;
  --crimson-500: #EF4444;
  --crimson-100: #FEE2E2;
  --crimson-50: #FEF2F2;

  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;

  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-100: #EDE9FE;
  --purple-50: #F5F3FF;

  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-dark: #94A3B8;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-cursive: "Brush Script MT", "Segoe Script", "Dancing Script", "Caveat", cursive;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.policy-body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

.req {
  color: var(--crimson-600);
  font-weight: 700;
}

/* Header */
.policy-header {
  background-color: var(--navy-900);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--navy-800);
  box-shadow: var(--shadow-md);
}

.policy-header-inner {
  max-width: 1540px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.policy-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-600), var(--emerald-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.policy-brand-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.policy-brand-pro {
  background-color: var(--amber-500);
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.policy-brand-sub {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

/* Header Chip */
.policy-sol-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--navy-850);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--navy-700);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-500);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.chip-details {
  display: flex;
  flex-direction: column;
}

.chip-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--amber-500);
  letter-spacing: 0.5px;
}

.chip-title {
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-400);
  background-color: rgba(5, 150, 105, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Header Actions */
.policy-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-back-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  background-color: transparent;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-back-portal:hover {
  background-color: var(--navy-800);
  color: #fff;
  border-color: #64748B;
}

.btn-action-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #F1F5F9;
  background-color: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-tool:hover {
  background-color: var(--navy-700);
  border-color: #64748B;
  color: #fff;
}

.btn-action-tool.btn-highlight {
  background-color: #1E3A8A;
  border-color: var(--blue-500);
  color: #DBEAFE;
}

.btn-action-tool.btn-highlight:hover {
  background-color: var(--blue-600);
  color: #fff;
}

.btn-print-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-600), #047857);
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.btn-print-pdf:hover {
  background: linear-gradient(135deg, #047857, #065F46);
  transform: translateY(-1px);
}

/* Main Content & Breadcrumbs */
.policy-main-content {
  flex: 1;
  padding: 24px 0 60px 0;
}

.policy-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
}

.policy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.policy-breadcrumbs a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}

.policy-breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: var(--border-dark);
}

.crumb-active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Card */
.policy-hero-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.statute-badge {
  background-color: var(--navy-800);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.2px;
}

.far-badge {
  background-color: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.threshold-badge {
  background-color: var(--amber-100);
  color: var(--amber-800);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.policy-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.policy-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 1200px;
  margin-bottom: 18px;
}

/* Presets Toolbar */
.presets-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.presets-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preset-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-800);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background-color: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.preset-btn.active {
  background-color: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.preset-btn.outline {
  background-color: transparent;
  border-style: dashed;
}

.preset-btn.outline:hover {
  background-color: #FEE2E2;
  border-color: var(--crimson-500);
  color: var(--crimson-600);
}

/* Studio Layout */
.policy-studio-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

/* Card Box Shared */
.card-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}

.card-box-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.badge-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.badge-status-pill.passed {
  background-color: var(--emerald-100);
  color: var(--emerald-600);
}

.badge-status-pill.action {
  background-color: var(--crimson-100);
  color: var(--crimson-600);
}

/* Sidebar Inputs */
.form-group-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-subtle);
}

.form-group-section:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.form-section-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text-primary);
  background-color: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-field-row.three-col {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.btn-refresh-suite {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border: 1px solid var(--blue-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-refresh-suite:hover {
  background: linear-gradient(135deg, var(--blue-700), #1E40AF);
  transform: translateY(-1px);
}

/* Studio Tab Bar */
.studio-tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.studio-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.studio-tab-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--navy-900);
}

.studio-tab-btn.active {
  background-color: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.tab-badge.green {
  background-color: var(--emerald-500);
  color: #fff;
}

.tab-sub-tag {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  background-color: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.studio-tab-btn.active .tab-sub-tag {
  background-color: rgba(255,255,255,0.15);
  color: #E2E8F0;
}

/* Tab Panes */
.studio-tab-content .tab-pane {
  display: none;
}

.studio-tab-content .tab-pane.active {
  display: block;
}

/* Dashboard Scorecard */
.scorecard-hero-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.scorecard-score-box {
  flex-shrink: 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--emerald-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.score-number {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--emerald-400);
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-align: center;
}

.scorecard-summary-info {
  flex: 1;
}

.scorecard-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.green {
  background-color: var(--emerald-400);
}

.scorecard-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.scorecard-desc {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.scorecard-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
  flex-wrap: wrap;
}

.scorecard-meta-row strong {
  color: #E2E8F0;
}

/* Stats Tiles Grid */
.stats-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-tile-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.stat-tile-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
}

.stat-tile-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-tile-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

/* Checklist Filter Pills */
.checklist-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
}

.filter-pill:hover {
  background-color: var(--blue-50);
  color: var(--blue-700);
}

.filter-pill.active {
  background-color: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

/* Checklist Table */
.checklist-table-wrapper {
  overflow-x: auto;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.checklist-table th {
  background-color: var(--bg-subtle);
  color: var(--navy-800);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-medium);
}

.checklist-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.45;
}

.checklist-table tr:hover td {
  background-color: #F8FAFC;
}

.checklist-clause-id {
  font-weight: 700;
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 12px;
}

.checklist-far-cit {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 11.5px;
}

.checklist-rule-title {
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.checklist-rule-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.checklist-audit-guidance {
  font-size: 11px;
  color: var(--emerald-600);
  background-color: var(--emerald-50);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}

.checklist-timeline-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-800);
  background-color: var(--amber-50);
  border: 1px solid var(--amber-100);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

.checklist-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.checklist-status-badge.verified {
  background-color: var(--emerald-100);
  color: var(--emerald-600);
}

.checklist-status-badge.action {
  background-color: var(--crimson-100);
  color: var(--crimson-600);
}

/* Policy Document Viewer */
.policy-doc-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 42px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.policy-doc-header {
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.policy-doc-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.policy-doc-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.policy-doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Policy Document Content Typography */
.policy-doc-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.policy-doc-body h1,
.policy-doc-body h2,
.policy-doc-body h3,
.policy-doc-body h4 {
  color: var(--navy-900);
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.policy-doc-body h1 {
  font-size: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.policy-doc-body h2 {
  font-size: 17px;
  color: var(--blue-700);
}

.policy-doc-body h3 {
  font-size: 15px;
}

.policy-doc-body p {
  margin-bottom: 14px;
}

.policy-doc-body ul,
.policy-doc-body ol {
  margin-left: 24px;
  margin-bottom: 14px;
}

.policy-doc-body li {
  margin-bottom: 6px;
}

.policy-doc-body strong {
  font-weight: 700;
  color: var(--navy-900);
}

.policy-statutory-box {
  background-color: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 18px 0;
}

.policy-warning-box {
  background-color: var(--crimson-50);
  border-left: 4px solid var(--crimson-600);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 18px 0;
}

.policy-timeline-callout {
  background-color: var(--amber-50);
  border-left: 4px solid var(--amber-600);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 18px 0;
}

/* Signature & Corporate Seal Block */
.signature-seal-block {
  display: flex;
  align-items: center;
  gap: 28px;
  background-color: #F8FAFC;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 30px;
}

.seal-col {
  flex-shrink: 0;
}

.corporate-seal-graphic {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.signature-col {
  flex: 1;
}

.sig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sig-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-700);
  background-color: var(--blue-100);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.sig-timestamp {
  font-size: 11px;
  color: var(--text-muted);
}

.sig-cursive {
  font-family: var(--font-cursive);
  font-size: 38px;
  color: #1E3A8A;
  line-height: 1.1;
  margin: 4px 0 8px 0;
}

.sig-signatory-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
}

.sig-signatory-title {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.sig-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sig-crypto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.sig-hash {
  font-size: 10.5px;
  color: var(--text-muted);
  word-break: break-all;
}

.btn-resign {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-800);
  background-color: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-resign:hover {
  background-color: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

/* Sticky Bottom Action Bar */
.policy-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--navy-700);
  color: #fff;
  padding: 10px 24px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.bottom-bar-inner {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
}

.bottom-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .policy-studio-layout {
    grid-template-columns: 360px 1fr;
  }
  .stats-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .policy-studio-layout {
    grid-template-columns: 1fr;
  }
  .policy-sol-chip {
    display: none;
  }
  .scorecard-hero-card {
    flex-direction: column;
    text-align: center;
  }
  .scorecard-meta-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .policy-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .signature-seal-block {
    flex-direction: column;
    text-align: center;
  }
  .sig-crypto-row {
    flex-direction: column;
    text-align: center;
  }
  .policy-doc-container {
    padding: 20px 16px;
  }
  .stats-tiles-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Stylesheet */
@media print {
  body.policy-body {
    background: #fff !important;
    color: #000 !important;
  }

  .policy-header,
  .policy-breadcrumbs,
  .policy-hero-card,
  .policy-sidebar,
  .studio-tab-bar,
  .policy-bottom-bar,
  .btn-resign,
  .checklist-filter-pills {
    display: none !important;
  }

  .policy-studio-layout {
    display: block !important;
  }

  .policy-main-content {
    padding: 0 !important;
  }

  .policy-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .studio-tab-content .tab-pane {
    display: block !important;
    page-break-before: always;
  }

  .studio-tab-content .tab-pane:first-of-type {
    page-break-before: avoid;
  }

  .policy-doc-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .signature-seal-block {
    border: 1px solid #94A3B8 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }

  .scorecard-hero-card {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .score-number {
    color: #0F172A !important;
  }

  .score-circle {
    border-color: #059669 !important;
    box-shadow: none !important;
  }

  .scorecard-title {
    color: #0F172A !important;
  }

  .scorecard-desc {
    color: #334155 !important;
  }

  .scorecard-meta-row {
    color: #475569 !important;
  }

  .scorecard-meta-row strong {
    color: #0F172A !important;
  }

  .policy-statutory-box,
  .policy-warning-box,
  .policy-timeline-callout {
    page-break-inside: avoid;
  }
}
