/* ==========================================================================
   font.fedu.vn — FEDU Font Interactive Type Hub Master Stylesheet
   Aesthetic: Editorial Brutalist / Swiss Modern Type Foundry (Grilli / Pangram)
   Architecture: Pure CSS3, Tri-Theme Custom Properties, Single-Variable Batching
   ========================================================================== */

@import url('gr-fonts.css');

/* --------------------------------------------------------------------------
   1. Root Variables & Typography Stacks
   -------------------------------------------------------------------------- */
:root {
  /* System font stacks */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Type Tester Live Batching Variables (Controlled by Sliders at 60 FPS) */
  --tester-font-size: 44px;
  --tester-line-height: 1.35;
  --tester-letter-spacing: 0.00em;
  --tester-text-align: left;
  --tester-text-transform: none;

  /* Layout Dimensions */
  --max-content-width: 1440px;
  --header-height: 60px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --trans-fast: 120ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layer Indexing */
  --z-base: 1;
  --z-sticky: 100;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* --------------------------------------------------------------------------
   2. Theme 1: Light Mode (Default — Clean Architectural Editorial)
   -------------------------------------------------------------------------- */
html[data-theme="light"],
:root {
  --bg-primary: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-elevated: #FFFFFF;
  --bg-hover: #F1F3F5;

  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --text-inverse: #FFFFFF;

  --border-subtle: #E5E5E5;
  --border-strong: #CCCCCC;
  --border-focus: #111111;

  --accent-primary: #111111;
  --accent-hover: #333333;
  --accent-text: #FFFFFF;
  --accent-focus-ring: rgba(0, 0, 0, 0.2);
  --accent-glow: none;

  --badge-bg: #EEEEEE;
  --badge-text: #333333;
  --badge-border: #E0E0E0;
  --badge-vn-bg: #E6F8ED;
  --badge-vn-text: #0E853C;
  --badge-vn-border: #BCE8CC;

  --slider-track: #E2E4E8;
  --slider-fill: #111111;
  --slider-thumb: #111111;

  --toolbar-bg: rgba(255, 255, 255, 0.94);
  --modal-overlay: rgba(0, 0, 0, 0.55);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   3. Theme 2: Dark Mode (Grilli-Pangram Master Foundry)
   -------------------------------------------------------------------------- */
html[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-surface: #1A1A1A;
  --bg-elevated: #242424;
  --bg-hover: #2E2E2E;

  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  --text-inverse: #121212;

  --border-subtle: #282828;
  --border-strong: #3D3D3D;
  --border-focus: #F5F5F7;

  --accent-primary: #FFFFFF;
  --accent-hover: #E5E5E5;
  --accent-text: #121212;
  --accent-focus-ring: rgba(255, 255, 255, 0.25);
  --accent-glow: none;

  --badge-bg: #222222;
  --badge-text: #D1D1D6;
  --badge-border: #333333;
  --badge-vn-bg: #112818;
  --badge-vn-text: #4EFA87;
  --badge-vn-border: #1B452D;

  --slider-track: #2C2C2E;
  --slider-fill: #F5F5F7;
  --slider-thumb: #FFFFFF;

  --toolbar-bg: rgba(18, 18, 18, 0.88);
  --modal-overlay: rgba(0, 0, 0, 0.82);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   4. Theme 3: Neon Accent Mode (Cyberpunk / Terminal Tech)
   -------------------------------------------------------------------------- */
html[data-theme="neon"] {
  --bg-primary: #0D0E15;
  --bg-surface: #141622;
  --bg-elevated: #1C1F30;
  --bg-hover: #252A42;

  --text-primary: #E0E6ED;
  --text-secondary: #8B95A5;
  --text-tertiary: #525D70;
  --text-inverse: #0D0E15;

  --border-subtle: #23283E;
  --border-strong: #363E5E;
  --border-focus: #00FF66;

  --accent-primary: #00FF66;
  --accent-hover: #26FF7D;
  --accent-text: #0D0E15;
  --accent-focus-ring: rgba(0, 255, 102, 0.35);
  --accent-glow: 0 0 16px rgba(0, 255, 102, 0.4);

  --badge-bg: #13241B;
  --badge-text: #00FF66;
  --badge-border: #1B452D;
  --badge-vn-bg: #13241B;
  --badge-vn-text: #00FF66;
  --badge-vn-border: #1B452D;

  --slider-track: #1C2333;
  --slider-fill: #00FF66;
  --slider-thumb: #00FF66;

  --toolbar-bg: rgba(13, 14, 21, 0.92);
  --modal-overlay: rgba(5, 6, 10, 0.88);
  --card-shadow: 0 4px 24px rgba(0, 255, 102, 0.1);
}

/* --------------------------------------------------------------------------
   5. Baseline Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color var(--trans-normal), color var(--trans-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

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

/* --------------------------------------------------------------------------
   6. Top Header Navigation
   -------------------------------------------------------------------------- */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--toolbar-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
  max-width: var(--max-content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fedu-font-logo-icon,
.fonthub-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}
.brand-logo-wrap:hover .fedu-font-logo-icon,
.brand-logo-wrap:hover .fonthub-logo-icon {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

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

.theme-switcher,
.view-mode-switcher {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  gap: 2px;
}

.theme-btn,
.view-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.theme-btn:hover,
.view-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.theme-btn.active,
.view-btn.active {
  background: var(--accent-primary);
  color: var(--accent-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   7. Sticky Frosted Type Tester Toolbar
   -------------------------------------------------------------------------- */
.type-tester-toolbar {
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-sticky);
  background-color: var(--toolbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toolbar-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolbar-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-wrap-main {
  position: relative;
  flex: 1;
}

.global-text-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.global-text-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-focus-ring);
}

.input-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  border-radius: 50%;
}

.input-clear-btn:hover {
  color: var(--text-primary);
}

.preset-select-wrap select {
  height: 40px;
  padding: 0 32px 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23888888' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.preset-select-wrap select:focus {
  border-color: var(--border-focus);
}

.toolbar-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.slider-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 40px;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 52px;
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: var(--slider-track);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slider-thumb);
  cursor: pointer;
  transition: transform var(--trans-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--slider-thumb);
  cursor: pointer;
}

.button-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented-control {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  gap: 2px;
}

.btn-seg {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.btn-seg:hover {
  color: var(--text-primary);
}

.btn-seg.active {
  background: var(--accent-primary);
  color: var(--accent-text);
}

.btn-reset-tester {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-reset-tester:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   8. Search & Faceted Filter Section
   -------------------------------------------------------------------------- */
.filter-section {
  max-width: var(--max-content-width);
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 80px 0 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-focus-ring);
}

.search-latency-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  pointer-events: none;
}

.results-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Category Filter Chips */
.chips-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.chip-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.chip-btn.active {
  background: var(--accent-primary);
  color: var(--accent-text);
  border-color: var(--accent-primary);
  font-weight: 600;
}

.chip-btn.chip-gt {
  border-color: rgba(240, 90, 40, 0.4);
}

.chip-btn.chip-gt:hover {
  border-color: #f05a28;
  color: #f05a28;
}

.chip-btn.chip-gt.active {
  background: #f05a28;
  border-color: #f05a28;
  color: #ffffff;
}

.chip-btn.chip-cotype {
  border-color: rgba(37, 99, 235, 0.4);
}

.chip-btn.chip-cotype:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.chip-btn.chip-cotype.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.chip-btn.chip-dinamo {
  border-color: rgba(139, 92, 246, 0.4);
}

.chip-btn.chip-dinamo:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.chip-btn.chip-dinamo.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #ffffff;
}

.chip-btn.chip-klim {
  border-color: rgba(217, 119, 6, 0.4);
}

.chip-btn.chip-klim:hover {
  border-color: #d97706;
  color: #d97706;
}

.chip-btn.chip-klim.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.chip-btn.chip-pangram {
  border-color: rgba(6, 182, 212, 0.4);
}

.chip-btn.chip-pangram:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

.chip-btn.chip-pangram.active {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #ffffff;
}

.chip-btn.chip-fav {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.04);
}

.chip-btn.chip-fav:hover {
  border-color: #eab308;
  color: #eab308;
}

.chip-btn.chip-fav.active {
  background: #eab308;
  border-color: #eab308;
  color: #000000;
  font-weight: 700;
}

.chip-btn.chip-fav.active .chip-count {
  background: rgba(0, 0, 0, 0.15);
  color: #000000;
}

.chip-count {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  opacity: 0.75;
}

/* Secondary Filter Row */
.secondary-filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.filter-select {
  height: 34px;
  padding: 0 28px 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%23888888' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-select:hover, .filter-select:focus {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.vn-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.vn-toggle-checkbox {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.btn-clear-filters {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
}

.btn-clear-filters:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. Dynamic Font Specimen Grid
   -------------------------------------------------------------------------- */
.main-content {
  max-width: var(--max-content-width);
  margin: 24px auto 60px;
  padding: 0 24px;
}

.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

/* --------------------------------------------------------------------------
   10. Font Card Component
   -------------------------------------------------------------------------- */
.font-card {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--card-shadow);
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.font-card:hover {
  border-color: var(--border-strong);
}

/* Card Header */
.card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-family-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.card-designer-row {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--border-radius-sm);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

.badge-vn {
  background: var(--badge-vn-bg);
  color: var(--badge-vn-text);
  border: 1px solid var(--badge-vn-border);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.badge-vn:hover,
.badge-vn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.card-badges-row button.badge {
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
  transition: all var(--trans-fast);
  outline: none;
}

.badge-style {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 600;
  cursor: pointer;
}

.badge-style:hover,
.badge-style.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.badge-mood {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.35);
  font-weight: 600;
  cursor: pointer;
}

.badge-mood:hover,
.badge-mood.active {
  background: #ec4899;
  color: #ffffff;
  border-color: #ec4899;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}

.badge-use {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-weight: 600;
  cursor: pointer;
}

.badge-use:hover,
.badge-use.active {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.badge-gt {
  background: rgba(240, 90, 40, 0.12);
  color: #f05a28;
  border: 1px solid rgba(240, 90, 40, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--trans-fast);
}

.badge-gt:hover {
  background: #f05a28;
  color: #ffffff;
  border-color: #f05a28;
  transform: translateY(-1px);
}

.badge-cotype {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--trans-fast);
}

.badge-cotype:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.badge-dinamo {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--trans-fast);
}

.badge-dinamo:hover {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
  transform: translateY(-1px);
}

.badge-klim {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--trans-fast);
}

.badge-klim:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  transform: translateY(-1px);
}

.badge-pangram {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all var(--trans-fast);
}

.badge-pangram:hover {
  background: #06b6d4;
  color: #ffffff;
  border-color: #06b6d4;
  transform: translateY(-1px);
}

.badge-studio {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-studio:hover,
.badge-studio.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.fs-studio-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fs-studio-badge:hover,
.fs-studio-badge.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Fontshare-Style Interactive Card Controls (Weight/Size Sliders & Waterfall)
   -------------------------------------------------------------------------- */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.title-with-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-fs-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.fs-slider-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fs-control-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  user-select: none;
}

.fs-control-val {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  min-width: 32px;
}

/* Fontshare Slim Range Slider */
.fs-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 3px;
  background: var(--border-strong);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background var(--trans-fast);
  vertical-align: middle;
}

.fs-range-slider:hover {
  background: var(--text-secondary);
}

.fs-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.fs-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.fs-range-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

/* Fontshare Styles Button & Chevron */
.card-styles-toggle.fs-styles-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.card-styles-toggle.fs-styles-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.card-styles-toggle.fs-styles-btn.is-open {
  background: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.card-styles-toggle.fs-styles-btn .chevron-icon {
  transition: transform var(--trans-fast);
}

.card-styles-toggle.fs-styles-btn.is-open .chevron-icon {
  transform: rotate(180deg);
}

/* Variable / Static badge */
.fs-var-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  user-select: none;
}

.fs-var-badge.is-variable {
  background: rgba(0, 229, 153, 0.12);
  color: #00b377;
  border-color: rgba(0, 229, 153, 0.3);
}

/* Category pill next to font name */
.fs-card-cat-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

/* Waterfall Specimen Panel inside Font Card */
.card-waterfall-drawer.fs-waterfall-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-top: 4px;
  animation: fsFadeInDown 0.2s ease-out;
}

@keyframes fsFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fs-waterfall-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-waterfall-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-waterfall-kicker {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.fs-waterfall-subkicker {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.fs-waterfall-tip {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.fs-waterfall-split-view {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr);
  gap: 20px;
  align-items: start;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .fs-waterfall-split-view {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.fs-waterfall-sticky-col {
  position: sticky;
  top: 80px;
  z-index: 4;
}

.fs-waterfall-live-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all var(--trans-fast);
}

.fs-waterfall-live-card:hover {
  border-color: var(--border-strong);
}

.fs-waterfall-live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  gap: 8px;
}

.fs-waterfall-live-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-waterfall-live-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
}

.fs-waterfall-live-style-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-waterfall-live-weight-val {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 229, 153, 0.12);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.fs-waterfall-live-text {
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--text-primary);
  outline: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: 85px;
  cursor: text;
  transition: font-weight 0.08s ease, font-style 0.08s ease;
}

.fs-waterfall-live-text:focus {
  background: var(--bg-hover);
  border-radius: var(--border-radius-sm);
}

.fs-waterfall-live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  gap: 6px;
}

.fs-waterfall-badge-sync {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00e599;
  background: rgba(0, 229, 153, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.fs-waterfall-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.card-waterfall-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.card-waterfall-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateX(2px);
}

.card-waterfall-row.is-active {
  border-color: #00e599;
  background: rgba(0, 229, 153, 0.06);
}

.waterfall-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  user-select: none;
}

.waterfall-style-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waterfall-weight-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.waterfall-sample-text {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text-primary);
  outline: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: text;
  transition: color var(--trans-fast);
}

.waterfall-sample-text:focus {
  background: var(--bg-hover);
  border-radius: 4px;
}

.waterfall-apply-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  opacity: 0;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.card-waterfall-row:hover .waterfall-apply-btn {
  opacity: 1;
}

.card-waterfall-row.is-active .waterfall-apply-btn {
  opacity: 1;
  background: #00e599;
  color: #000000;
  border-color: #00e599;
}

@media (max-width: 860px) {
  .card-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .card-fs-controls {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .card-waterfall-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .waterfall-apply-btn {
    opacity: 1;
    align-self: flex-start;
  }
}

/* Specimen Area (Reactive to Global Sliders) */
.card-specimen-wrap {
  min-height: 100px;
  padding: 18px 0;
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  overflow: visible;
}

.preview-text,
.font-preview,
.list-view-item,
.editable-preview,
.waterfall-sample-text,
.fs-waterfall-live-text,
.fs-item-specimen {
  width: 100%;
  font-size: var(--tester-font-size);
  line-height: var(--tester-line-height, 1.35);
  letter-spacing: var(--tester-letter-spacing);
  text-align: var(--tester-text-align);
  text-transform: var(--tester-text-transform);
  outline: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  cursor: text;
  user-select: text !important;
  -webkit-user-select: text !important;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 4px;
  padding-right: 4px;
  overflow: visible;
  transition: color var(--trans-fast);
}

.preview-text:focus,
.font-preview:focus,
.list-view-item:focus,
.editable-preview:focus {
  background: var(--bg-hover);
  border-radius: var(--border-radius-sm);
}

/* Weights Bar: Multi-row wrap (up to 2 rows), compact size */
.card-weights-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 2px 6px;
  max-height: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.card-weights-bar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.card-weights-bar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.weight-chip {
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--trans-fast);
}

.weight-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.weight-chip.active {
  background: var(--accent-primary);
  color: var(--accent-text);
  font-weight: 700;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.title-with-fav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fav {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.35;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-fav:hover,
.btn-fav.active {
  opacity: 1;
  transform: scale(1.15);
}

.btn-copy-name {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  opacity: 0.5;
  padding: 3px 5px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  transition: all var(--trans-fast);
}

.btn-copy-name:hover {
  opacity: 1;
  color: var(--text-primary);
  background: var(--bg-hover);
  border-color: var(--border-subtle);
}

/* Metadata & Notes Drawer */
.card-drawer {
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.drawer-trigger {
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.drawer-trigger:hover {
  color: var(--text-primary);
}

.drawer-content {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.anatomy-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.anatomy-item .label {
  color: var(--text-tertiary);
}

.anatomy-item .val {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.font-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.director-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-left: 2px solid var(--border-strong);
  padding-left: 8px;
  white-space: pre-line;
  line-height: 1.5;
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.btn-download-family {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  background: var(--accent-primary);
  color: var(--accent-text);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-download-family:hover {
  background: var(--accent-hover);
  box-shadow: var(--accent-glow);
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.btn-icon-action:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-drive-link {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

.btn-drive-link:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}

/* --------------------------------------------------------------------------
   11. Empty State & Scroll Sentinel
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state.hidden {
  display: none;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scroll-sentinel {
  height: 20px;
  width: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. Vietnamese Glyph Map Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background-color: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-fast);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform var(--trans-fast);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-title-group p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.modal-tabs {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.modal-tab-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.modal-tab-btn.active {
  background: var(--accent-primary);
  color: var(--accent-text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glyph-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
}

.glyph-cell {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.glyph-cell:hover {
  background: var(--accent-primary);
  color: var(--accent-text);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  background: var(--accent-primary);
  color: var(--accent-text);
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--trans-fast);
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .font-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }

  .slider-group {
    gap: 12px;
  }

  input[type="range"] {
    width: 80px;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    padding: 8px 0;
  }

  .site-header__inner {
    padding: 0 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar-container {
    padding: 0 16px;
  }

  .filter-section {
    padding: 0 16px;
  }

  .main-content {
    padding: 0 16px;
  }

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

  .toolbar-row-top {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-row-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .slider-group {
    justify-content: space-between;
  }

  .button-controls-group {
    justify-content: space-between;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-download-family {
    justify-content: center;
  }

  .secondary-actions {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   14. Multi-View Architecture (Catalog, Fontshare, Pair)
   -------------------------------------------------------------------------- */
.app-view {
  display: block;
}

.app-view.hidden {
  display: none !important;
}

/* ==========================================================================
   Fontshare Waterfall View
   ========================================================================== */
.fontshare-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.fontshare-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.fontshare-headline h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.fontshare-subhead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

.fontshare-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fontshare-search {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  min-width: 240px;
  transition: border-color var(--trans-fast);
}

.fontshare-search:focus {
  outline: none;
  border-color: var(--border-focus);
}

.fontshare-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fontshare-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.fontshare-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.fontshare-card-title-group h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fontshare-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.fontshare-waterfall {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.waterfall-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-subtle);
}

.waterfall-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.waterfall-size-tag {
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-tertiary);
  width: 44px;
  flex-shrink: 0;
  user-select: none;
}

.waterfall-text {
  flex: 1;
  color: var(--text-primary);
  outline: none;
  line-height: 1.35;
  padding: 4px 0;
  overflow: visible;
  transition: color var(--trans-fast);
}

.waterfall-text:focus {
  background: var(--bg-hover);
  border-radius: 4px;
}

/* ==========================================================================
   Font Pairing View
   ========================================================================== */
.pair-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pair-playground-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.pair-controls-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pair-selectors-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.pair-select-item {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pair-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-badge.role-heading {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-badge.role-body {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.pair-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.pair-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}

.btn-pair-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-pair-action:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn-pair-action.btn-swap:hover svg {
  transform: rotate(180deg);
  transition: transform var(--trans-normal);
}

.btn-pair-action.btn-download-both {
  background: var(--accent-primary);
  color: var(--accent-text);
  border-color: var(--accent-primary);
}

.btn-pair-action.btn-download-both:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.pair-sliders-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

.pair-slider-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-slider-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pair-slider-val {
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-tertiary);
  min-width: 44px;
}

/* Specimen Article Preview */
.pair-preview-article {
  padding: 56px 48px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pair-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 12px;
}

.pair-preview-heading {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  outline: none;
  word-break: break-word;
  transition: font-size var(--trans-fast);
}

.pair-preview-subhead {
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text-secondary);
  font-style: italic;
  outline: none;
  border-left: 3px solid var(--accent-primary);
  padding-left: 18px;
}

.pair-preview-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pair-preview-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pair-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pair-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Accordion Logic Analysis */
.pairing-accordion {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: background var(--trans-fast);
}

.pairing-accordion[open] {
  background: var(--bg-surface);
}

.pairing-accordion-summary {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.pairing-accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-icon {
  font-size: 1.1rem;
}

.accordion-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.accordion-arrow {
  font-size: 1rem;
  color: var(--text-tertiary);
  transition: transform var(--trans-fast);
}

.pairing-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

.pairing-accordion-body {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logic-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logic-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8B5CF6;
}

.logic-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logic-card-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.dynamic-analysis-box {
  background: var(--bg-primary);
  border-left: 4px solid #10B981;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dynamic-analysis-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dynamic-analysis-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 8 Curated Pairing Boards */
.curated-pairs-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.curated-section-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B5CF6;
  margin-bottom: 4px;
  display: block;
}

.curated-title-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.curated-title-group p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.curated-pairs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.curated-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.curated-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.curated-card-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curated-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.curated-style-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.curated-fonts-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.curated-specimen-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curated-headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.curated-paragraph {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.curated-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.btn-apply-pair {
  padding: 8px 14px;
  background: var(--accent-primary);
  color: var(--accent-text);
  border-radius: var(--border-radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans-fast);
}

.btn-apply-pair:hover {
  background: var(--accent-hover);
}

.btn-download-pair {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
}

.btn-download-pair:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

@media (max-width: 960px) {
  .logic-cards-grid {
    grid-template-columns: 1fr;
  }
  .curated-pairs-grid {
    grid-template-columns: 1fr;
  }
  .pair-preview-article {
    padding: 32px 20px;
  }
  .pair-preview-heading {
    font-size: 36px;
  }
}

/* ==========================================================================
   FEDU FONT — CORE TYPEFACES & LOCAL WEBFONTS (@font-face)
   ========================================================================== */

/* ==========================================================================
   @font-face for GR Sectra
   ========================================================================== */
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-Light.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-LightItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-Regular.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-Medium.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-Bold.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-Super.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Super.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraFine-Black.woff2') format('woff2'),
       url('fonts/GRSectraFine-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GR Sectra';
  src: url('../fonts/GRSectraFine-BlackItalic.woff2') format('woff2'),
       url('fonts/GRSectraFine-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for GRSectra
   ========================================================================== */
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-Light.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-LightItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-Regular.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-Medium.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-Bold.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-Super.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Super.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraFine-Black.woff2') format('woff2'),
       url('fonts/GRSectraFine-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GRSectra';
  src: url('../fonts/GRSectraFine-BlackItalic.woff2') format('woff2'),
       url('fonts/GRSectraFine-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for GT Sectra
   ========================================================================== */
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-Light.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-LightItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-Regular.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-Medium.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-Bold.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-Super.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Super.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraFine-Black.woff2') format('woff2'),
       url('fonts/GRSectraFine-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('../fonts/GRSectraFine-BlackItalic.woff2') format('woff2'),
       url('fonts/GRSectraFine-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for GTSectra
   ========================================================================== */
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-Light.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-LightItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-Regular.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-Medium.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-Bold.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-Super.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-Super.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2'),
       url('fonts/GRSectraDisplay-SuperItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraFine-Black.woff2') format('woff2'),
       url('fonts/GRSectraFine-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GTSectra';
  src: url('../fonts/GRSectraFine-BlackItalic.woff2') format('woff2'),
       url('fonts/GRSectraFine-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Aeonik
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Air.woff2') format('woff2'),
       url('fonts/FDAeonik-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-AirItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-AirItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Light.woff2') format('woff2'),
       url('fonts/FDAeonik-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-LightItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Regular.woff2') format('woff2'),
       url('fonts/FDAeonik-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Italic.woff2') format('woff2'),
       url('fonts/FDAeonik-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Medium.woff2') format('woff2'),
       url('fonts/FDAeonik-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-MediumItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Bold.woff2') format('woff2'),
       url('fonts/FDAeonik-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Black.woff2') format('woff2'),
       url('fonts/FDAeonik-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDAeonik
   ========================================================================== */
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Air.woff2') format('woff2'),
       url('fonts/FDAeonik-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-AirItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-AirItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Light.woff2') format('woff2'),
       url('fonts/FDAeonik-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-LightItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Regular.woff2') format('woff2'),
       url('fonts/FDAeonik-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Italic.woff2') format('woff2'),
       url('fonts/FDAeonik-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Medium.woff2') format('woff2'),
       url('fonts/FDAeonik-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-MediumItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Bold.woff2') format('woff2'),
       url('fonts/FDAeonik-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-Black.woff2') format('woff2'),
       url('fonts/FDAeonik-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDAeonik';
  src: url('../fonts/FDAeonik-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAeonik-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Gilroy
   ========================================================================== */
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Thin.woff2') format('woff2'),
       url('fonts/FDGilroy-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-ThinItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-XLight.woff2') format('woff2'),
       url('fonts/FDGilroy-XLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-XLightItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-XLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Light.woff2') format('woff2'),
       url('fonts/FDGilroy-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-LightItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Regular.woff2') format('woff2'),
       url('fonts/FDGilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Italic.woff2') format('woff2'),
       url('fonts/FDGilroy-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Medium.woff2') format('woff2'),
       url('fonts/FDGilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-MediumItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-SemiBold.woff2') format('woff2'),
       url('fonts/FDGilroy-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Bold.woff2') format('woff2'),
       url('fonts/FDGilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-BoldItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Heavy.woff2') format('woff2'),
       url('fonts/FDGilroy-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-HeavyItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-HeavyItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-Black.woff2') format('woff2'),
       url('fonts/FDGilroy-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Gilroy';
  src: url('../fonts/FDGilroy-BlackItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDGilroy
   ========================================================================== */
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Thin.woff2') format('woff2'),
       url('fonts/FDGilroy-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-ThinItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-XLight.woff2') format('woff2'),
       url('fonts/FDGilroy-XLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-XLightItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-XLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Light.woff2') format('woff2'),
       url('fonts/FDGilroy-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-LightItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Regular.woff2') format('woff2'),
       url('fonts/FDGilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Italic.woff2') format('woff2'),
       url('fonts/FDGilroy-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Medium.woff2') format('woff2'),
       url('fonts/FDGilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-MediumItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-SemiBold.woff2') format('woff2'),
       url('fonts/FDGilroy-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Bold.woff2') format('woff2'),
       url('fonts/FDGilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-BoldItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Heavy.woff2') format('woff2'),
       url('fonts/FDGilroy-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-HeavyItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-HeavyItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-Black.woff2') format('woff2'),
       url('fonts/FDGilroy-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDGilroy';
  src: url('../fonts/FDGilroy-BlackItalic.woff2') format('woff2'),
       url('fonts/FDGilroy-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Acta
   ========================================================================== */
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-Light.woff2') format('woff2'),
       url('fonts/FDActa-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-LightItalic.woff2') format('woff2'),
       url('fonts/FDActa-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-Book.woff2') format('woff2'),
       url('fonts/FDActa-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-BookItalic.woff2') format('woff2'),
       url('fonts/FDActa-BookItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-Medium.woff2') format('woff2'),
       url('fonts/FDActa-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-MediumItalic.woff2') format('woff2'),
       url('fonts/FDActa-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-Bold.woff2') format('woff2'),
       url('fonts/FDActa-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-BoldItalic.woff2') format('woff2'),
       url('fonts/FDActa-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-ExtraBold.woff2') format('woff2'),
       url('fonts/FDActa-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-ExtraBoldItalic.woff2') format('woff2'),
       url('fonts/FDActa-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-Black.woff2') format('woff2'),
       url('fonts/FDActa-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Acta';
  src: url('../fonts/FDActa-BlackItalic.woff2') format('woff2'),
       url('fonts/FDActa-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDActa
   ========================================================================== */
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-Light.woff2') format('woff2'),
       url('fonts/FDActa-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-LightItalic.woff2') format('woff2'),
       url('fonts/FDActa-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-Book.woff2') format('woff2'),
       url('fonts/FDActa-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-BookItalic.woff2') format('woff2'),
       url('fonts/FDActa-BookItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-Medium.woff2') format('woff2'),
       url('fonts/FDActa-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-MediumItalic.woff2') format('woff2'),
       url('fonts/FDActa-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-Bold.woff2') format('woff2'),
       url('fonts/FDActa-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-BoldItalic.woff2') format('woff2'),
       url('fonts/FDActa-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-ExtraBold.woff2') format('woff2'),
       url('fonts/FDActa-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-ExtraBoldItalic.woff2') format('woff2'),
       url('fonts/FDActa-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-Black.woff2') format('woff2'),
       url('fonts/FDActa-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDActa';
  src: url('../fonts/FDActa-BlackItalic.woff2') format('woff2'),
       url('fonts/FDActa-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* 9. Curated Pairs 3-8 Webfonts */
@font-face {
  font-family: 'FDAdobe Caslon';
  src: url('../fonts/FDAdobeCaslon-Regular.woff2') format('woff2'),
       url('fonts/FDAdobeCaslon-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDApercu Pro';
  src: url('../fonts/FDApercuPro-Regular.woff2') format('woff2'),
       url('fonts/FDApercuPro-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAbril Fatface';
  src: url('../fonts/FDAbrilFatface-Regular.woff2') format('woff2'),
       url('fonts/FDAbrilFatface-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAptima';
  src: url('../fonts/FDAptima-Regular.woff2') format('woff2'),
       url('fonts/FDAptima-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDHC Bourbon Grotesque';
  src: url('../fonts/FDHC-BourbonGrotesque.woff2') format('woff2'),
       url('fonts/FDHC-BourbonGrotesque.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAdobe Jenson';
  src: url('../fonts/FDAdobeJenson-Regular.woff2') format('woff2'),
       url('fonts/FDAdobeJenson-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDA Love Of Thunder';
  src: url('../fonts/FDALoveOfThunder-Regular.woff2') format('woff2'),
       url('fonts/FDALoveOfThunder-Regular.woff2') format('woff2'),
       url('../fonts/FDALoveOfThunder-Regular.woff2') format('woff2'),
       url('fonts/FDALoveOfThunder-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAguila';
  src: url('../fonts/FDAguila-Regular.woff2') format('woff2'),
       url('fonts/FDAguila-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAddington CF';
  src: url('../fonts/FDAddingtonCF-Regular.woff2') format('woff2'),
       url('fonts/FDAddingtonCF-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDBio Sans';
  src: url('../fonts/FDBioSans-Regular.woff2') format('woff2'),
       url('fonts/FDBioSans-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'FDAvo';
  src: url('../fonts/FDAvo-Regular.woff2') format('woff2'),
       url('fonts/FDAvo-Regular.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

/* ==========================================================================
   FONTSHARE EDITORIAL VIEW (Exact Matching Image 4: media_1788686668299.png)
   ========================================================================== */

:root {
  --fontshare-bg: #FAF8F3;
  --fontshare-bg-card: #FAF8F3;
  --fontshare-border: #EAE6DB;
  --fontshare-text: #111111;
  --fontshare-muted: #767676;
  --fontshare-tag-bg: #EFECE3;
}

[data-theme="dark"] {
  --fontshare-bg: #141414;
  --fontshare-bg-card: #181818;
  --fontshare-border: #2A2A2A;
  --fontshare-text: #F5F3EB;
  --fontshare-muted: #888888;
  --fontshare-tag-bg: #222222;
}

#fontshare-view {
  background-color: var(--fontshare-bg);
  background: #FAF8F3;
  color: var(--fontshare-text);
  min-height: 100vh;
  padding-bottom: 80px;
}

[data-theme="dark"] #fontshare-view {
  background: #141414;
}

/* Fontshare Dedicated Topbar (Image 4) */
.fontshare-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background-color: var(--fontshare-bg);
  border-bottom: 1px solid var(--fontshare-border);
}

.fontshare-topbar__left {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.fontshare-brand {
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding-right: 36px;
  color: var(--fontshare-text);
}

.fontshare-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.fs-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  background: transparent;
  color: var(--fontshare-text);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-right: 1px solid var(--fontshare-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fs-tab.active {
  background-color: #111111;
  color: #FFFFFF;
}

[data-theme="dark"] .fs-tab.active {
  background-color: #FFFFFF;
  color: #111111;
}

.fs-tab-count {
  font-size: 0.8rem;
  opacity: 0.8;
}

.fontshare-topbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fs-styles-status {
  font-size: 0.9rem;
  color: var(--fontshare-muted);
}

.fs-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.fs-menu-line {
  width: 22px;
  height: 2px;
  background-color: var(--fontshare-text);
  border-radius: 1px;
}

/* Fontshare Controls Toolbar (Image 4) */
.fontshare-toolbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--fontshare-bg);
  border-bottom: 1px solid var(--fontshare-border);
}

.fs-toolbar-row {
  display: flex;
  align-items: center;
  padding: 12px 48px;
  gap: 24px;
  border-bottom: 1px solid var(--fontshare-border);
}

.fs-toolbar-row:last-child {
  border-bottom: none;
}

/* Row 1: Search, Dropdowns, Slider */
.fs-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 300px;
}

.fs-search-icon {
  color: var(--fontshare-muted);
  flex-shrink: 0;
}

.fs-search-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--fontshare-text);
  padding: 4px 0;
  outline: none;
}

.fs-dropdowns-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.fs-dropdown-wrap {
  position: relative;
}

.fs-select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fontshare-text);
  cursor: pointer;
  padding-right: 18px;
  outline: none;
}

.fs-size-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.fs-size-readout {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 70px;
  text-align: right;
  color: var(--fontshare-text);
}

.fs-slider {
  appearance: none;
  width: 200px;
  height: 2px;
  background: var(--fontshare-border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fontshare-text);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.fs-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Row 2: Your Text, Presets, Alignment, Theme, Reset */
.fs-your-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.fs-pencil-icon {
  color: var(--fontshare-muted);
}

.fs-custom-text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fontshare-border);
  font-size: 0.95rem;
  color: var(--fontshare-text);
  padding: 4px 0;
  outline: none;
}

.fs-custom-text-input:focus {
  border-bottom-color: var(--fontshare-text);
}

.fs-presets-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fs-preset-btn {
  background: transparent;
  border: none;
  font-size: 0.92rem;
  color: var(--fontshare-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.fs-preset-btn:hover,
.fs-preset-btn.active {
  color: var(--fontshare-text);
  font-weight: 700;
}

.fs-align-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.fs-align-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--fontshare-muted);
  cursor: pointer;
}

.fs-align-btn:hover,
.fs-align-btn.active {
  color: var(--fontshare-text);
  background: var(--fontshare-tag-bg);
}

.fs-shuffle-btn {
  background: transparent;
  border: 1px solid var(--fontshare-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fontshare-text);
  cursor: pointer;
  transition: all 0.15s;
}

.fs-shuffle-btn:hover {
  background: var(--fontshare-text);
  color: var(--fontshare-bg);
}

.fs-theme-toggle {
  background: transparent;
  border: none;
  color: var(--fontshare-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.fs-reset-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--fontshare-muted);
  cursor: pointer;
  margin-left: 12px;
}

.fs-reset-btn:hover {
  color: var(--fontshare-text);
  text-decoration: underline;
}

/* Row 3: Sub-bar */
.fs-toolbar-row--tertiary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: var(--fontshare-bg);
}

.fs-tertiary-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.fs-total-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fontshare-text);
  min-width: 40px;
}

.fs-view-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--fontshare-border);
  padding-right: 24px;
}

.fs-view-mode-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--fontshare-muted);
  cursor: pointer;
}

.fs-view-mode-btn.active {
  color: var(--fontshare-text);
  font-weight: 700;
}

.fs-filter-pills {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fs-pill-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--fontshare-muted);
  cursor: pointer;
  padding: 3px 0;
  transition: color 0.15s;
}

.fs-pill-btn:hover,
.fs-pill-btn.active {
  color: var(--fontshare-text);
  font-weight: 600;
}

.fs-tertiary-right {
  display: flex;
  align-items: center;
}

.fs-sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-sort-label {
  font-size: 0.88rem;
  color: var(--fontshare-muted);
}

.fs-sort-btn {
  background: transparent;
  border: none;
  font-size: 0.88rem;
  color: var(--fontshare-muted);
  cursor: pointer;
}

.fs-sort-btn:hover,
.fs-sort-btn.active {
  color: var(--fontshare-text);
  font-weight: 700;
}

/* List View Specimen Cards (Image 4 Specs) */
.fontshare-specimens-container {
  width: 100%;
}

.fontshare-list-mode .fontshare-card,
.fontshare-list-mode .fs-list-item {
  border-bottom: 1px solid var(--fontshare-border);
  padding: 40px 48px;
  transition: background 0.15s ease;
}

.fontshare-list-mode .fontshare-card:hover,
.fontshare-list-mode .fs-list-item:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.fs-item-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fs-item-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fontshare-text);
  margin: 0;
}

.fs-star-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--fontshare-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.fs-star-btn.active,
.fs-star-btn:hover {
  color: #F5A623;
}

.fs-item-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--fontshare-muted);
}

.fs-item-specimen-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 24px 0;
  margin: 12px 0 20px 0;
}

.fs-item-specimen {
  font-size: 210px;
  line-height: 1.40;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  color: var(--fontshare-text);
  outline: none;
  padding-top: 20px;
  padding-bottom: 20px;
}

.fs-item-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--fontshare-muted);
  margin-top: 16px;
}

.fs-designer {
  color: var(--fontshare-muted);
}

.fs-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fs-btn-waterfall-toggle {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fontshare-muted);
  cursor: pointer;
}

.fs-btn-waterfall-toggle:hover {
  color: var(--fontshare-text);
}

.fs-download-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fontshare-text);
  text-decoration: underline;
}

/* Waterfall collapsible scale inside list item */
.fs-waterfall-drawer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--fontshare-border);
}

/* Grid View Mode */
.fontshare-grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  border-top: 1px solid var(--fontshare-border);
}

.fontshare-grid-mode .fontshare-card,
.fontshare-grid-mode .fs-list-item {
  border-right: 1px solid var(--fontshare-border);
  border-bottom: 1px solid var(--fontshare-border);
  padding: 32px;
}

.fontshare-grid-mode .fs-item-specimen {
  font-size: 56px !important;
  line-height: 1.40 !important;
  white-space: normal;
  min-height: 130px;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  overflow: visible !important;
}

/* Floating Scroll to Top button */
.fs-scroll-top-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fontshare-bg);
  color: var(--fontshare-text);
  border: 1px solid var(--fontshare-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.2s ease;
}

.fs-scroll-top-btn:hover {
  background: var(--fontshare-text);
  color: var(--fontshare-bg);
  transform: translateY(-2px);
}

/* ==========================================================================
   FONTSHARE INFINITE SCROLL & CARD CONTROLS
   ========================================================================== */

.fontshare-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px 20px;
  color: var(--fontshare-muted);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 80px;
  box-sizing: border-box;
}

.fontshare-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--fontshare-border);
  border-top-color: var(--fontshare-text);
  border-radius: 50%;
  animation: fs-infinite-spin 0.65s linear infinite;
}

@keyframes fs-infinite-spin {
  to {
    transform: rotate(360deg);
  }
}

.fontshare-loading-text {
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--fontshare-muted);
}

.fontshare-end-message {
  text-align: center;
  padding: 40px 20px 80px;
  box-sizing: border-box;
}

.fs-end-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fontshare-muted);
  background: var(--bg-surface);
  border: 1px solid var(--fontshare-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Inline Card Weight Slider */
.fs-card-weight-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--fontshare-border);
  box-sizing: border-box;
}

.fs-weight-icon {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fontshare-muted);
  user-select: none;
}

.fs-card-weight-ctrl .card-weight-slider {
  width: 72px;
  height: 4px;
  accent-color: var(--fontshare-text);
  cursor: pointer;
  background: var(--fontshare-border);
  border-radius: 2px;
  outline: none;
  margin: 0;
}

.fs-weight-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fontshare-text);
  min-width: 26px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

@media (max-width: 768px) {
  /* Fontshare Topbar & Header Mobile Reset */
  .fontshare-topbar {
    height: auto !important;
    min-height: 56px;
    padding: 10px 16px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .fontshare-topbar__left {
    flex-wrap: wrap !important;
    height: auto !important;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .fontshare-brand {
    font-size: 1.25rem !important;
    padding-right: 16px !important;
  }
  .fontshare-tabs {
    flex-wrap: wrap !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .fs-tab {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }
  .fontshare-topbar__right {
    display: none !important;
  }

  /* Fontshare Toolbar Mobile Reset */
  .fontshare-toolbar {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .fs-toolbar-row {
    padding: 10px 16px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .fs-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }
  .fs-dropdowns-group {
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .fs-dropdown-wrap {
    max-width: 100% !important;
    flex: 1 1 110px;
  }
  .fs-select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.88rem !important;
  }
  .fs-size-slider-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between;
  }
  .fs-slider {
    flex: 1 !important;
    width: auto !important;
  }
  .fs-your-text-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .fs-presets-group {
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .fs-align-group {
    margin-left: auto;
  }
  .fs-tertiary-left,
  .fs-tertiary-right {
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
  .fs-pills-wrap,
  .fs-sort-wrap {
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  /* Fontshare Grid & Card Mobile Reset */
  .fontshare-specimens-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .fontshare-card,
  .fs-list-item {
    padding: 20px 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .fs-item-specimen {
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .fs-item-meta-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fs-card-weight-ctrl {
    order: 2;
  }
  .fs-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
}




/* ==========================================================================
   COTYPE TYPEFACES FULL MULTI-WEIGHT WEBFONTS
   ========================================================================== */


/* ==========================================================================
   @font-face for FD Aeonik Soft
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Air.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-AirItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-AirItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Light.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-LightItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Regular.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-RegularItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Medium.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-MediumItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-SemiBold.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Bold.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-Black.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Soft';
  src: url('../fonts/FDAeonikSoft-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAeonikSoft-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Aeonik Condensed
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Air.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-AirItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-AirItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Light.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-LightItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Regular.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-RegularItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Medium.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-MediumItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-SemiBold.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Bold.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-Black.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Condensed';
  src: url('../fonts/FDAeonikCondensed-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAeonikCondensed-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Aeonik Extended
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Air.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-AirItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-AirItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Light.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-LightItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Regular.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-RegularItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Medium.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-MediumItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-SemiBold.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Bold.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-Black.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Extended';
  src: url('../fonts/FDAeonikExtended-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAeonikExtended-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Aeonik Mono
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Air.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Light.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Regular.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Medium.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-SemiBold.woff2') format('woff2'),
       url('fonts/FDAeonikMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Bold.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Mono';
  src: url('../fonts/FDAeonikMono-Black.woff2') format('woff2'),
       url('fonts/FDAeonikMono-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Aeonik Fono
   ========================================================================== */
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Air.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Air.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Light.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Regular.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Medium.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-SemiBold.woff2') format('woff2'),
       url('fonts/FDAeonikFono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Bold.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik Fono';
  src: url('../fonts/FDAeonikFono-Black.woff2') format('woff2'),
       url('fonts/FDAeonikFono-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Altform
   ========================================================================== */
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-Thin.woff2') format('woff2'),
       url('fonts/FDAltform-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-ThinItalic.woff2') format('woff2'),
       url('fonts/FDAltform-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-ExtraLight.woff2') format('woff2'),
       url('fonts/FDAltform-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-ExtraLightItalic.woff2') format('woff2'),
       url('fonts/FDAltform-ExtraLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-Light.woff2') format('woff2'),
       url('fonts/FDAltform-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-LightItalic.woff2') format('woff2'),
       url('fonts/FDAltform-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-Regular.woff2') format('woff2'),
       url('fonts/FDAltform-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-RegularItalic.woff2') format('woff2'),
       url('fonts/FDAltform-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-SemiBold.woff2') format('woff2'),
       url('fonts/FDAltform-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDAltform-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-Bold.woff2') format('woff2'),
       url('fonts/FDAltform-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAltform-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-Black.woff2') format('woff2'),
       url('fonts/FDAltform-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Altform';
  src: url('../fonts/FDAltform-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAltform-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Ambit
   ========================================================================== */
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Thin.woff2') format('woff2'),
       url('fonts/FDAmbit-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-ThinItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-ExtraLight.woff2') format('woff2'),
       url('fonts/FDAmbit-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-ExtraLightItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-ExtraLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Light.woff2') format('woff2'),
       url('fonts/FDAmbit-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-LightItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Regular.woff2') format('woff2'),
       url('fonts/FDAmbit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Italic.woff2') format('woff2'),
       url('fonts/FDAmbit-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-SemiBold.woff2') format('woff2'),
       url('fonts/FDAmbit-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Bold.woff2') format('woff2'),
       url('fonts/FDAmbit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-BoldItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-Black.woff2') format('woff2'),
       url('fonts/FDAmbit-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Ambit';
  src: url('../fonts/FDAmbit-BlackItalic.woff2') format('woff2'),
       url('fonts/FDAmbit-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Coanda
   ========================================================================== */
@font-face {
  font-family: 'FD Coanda';
  src: url('../fonts/FDCoanda-Thin.woff2') format('woff2'),
       url('fonts/FDCoanda-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Coanda';
  src: url('../fonts/FDCoanda-Light.woff2') format('woff2'),
       url('fonts/FDCoanda-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Coanda';
  src: url('../fonts/FDCoanda-Regular.woff2') format('woff2'),
       url('fonts/FDCoanda-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Coanda';
  src: url('../fonts/FDCoanda-Bold.woff2') format('woff2'),
       url('fonts/FDCoanda-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Coanda';
  src: url('../fonts/FDCoanda-Black.woff2') format('woff2'),
       url('fonts/FDCoanda-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Lock Sans Stencil
   ========================================================================== */
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-ExtraLight.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-Light.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-Regular.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-Medium.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-Bold.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans Stencil';
  src: url('../fonts/FDLockSansStencil-Black.woff2') format('woff2'),
       url('fonts/FDLockSansStencil-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Lock Sans
   ========================================================================== */
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-ExtraLight.woff2') format('woff2'),
       url('fonts/FDLockSans-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-Light.woff2') format('woff2'),
       url('fonts/FDLockSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-Regular.woff2') format('woff2'),
       url('fonts/FDLockSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-Medium.woff2') format('woff2'),
       url('fonts/FDLockSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-Bold.woff2') format('woff2'),
       url('fonts/FDLockSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Sans';
  src: url('../fonts/FDLockSans-Black.woff2') format('woff2'),
       url('fonts/FDLockSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Lock Serif Stencil
   ========================================================================== */
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-ExtraLight.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-Light.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-Regular.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-Medium.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-Bold.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif Stencil';
  src: url('../fonts/FDLockSerifStencil-Black.woff2') format('woff2'),
       url('fonts/FDLockSerifStencil-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Lock Serif
   ========================================================================== */
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-ExtraLight.woff2') format('woff2'),
       url('fonts/FDLockSerif-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-Light.woff2') format('woff2'),
       url('fonts/FDLockSerif-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-Regular.woff2') format('woff2'),
       url('fonts/FDLockSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-Medium.woff2') format('woff2'),
       url('fonts/FDLockSerif-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-Bold.woff2') format('woff2'),
       url('fonts/FDLockSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Lock Serif';
  src: url('../fonts/FDLockSerif-Black.woff2') format('woff2'),
       url('fonts/FDLockSerif-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Orbikular
   ========================================================================== */
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-ExtraLight.woff2') format('woff2'),
       url('fonts/FDOrbikular-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-ExtraLightItalic.woff2') format('woff2'),
       url('fonts/FDOrbikular-ExtraLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-Light.woff2') format('woff2'),
       url('fonts/FDOrbikular-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-LightItalic.woff2') format('woff2'),
       url('fonts/FDOrbikular-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-Regular.woff2') format('woff2'),
       url('fonts/FDOrbikular-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-Italic.woff2') format('woff2'),
       url('fonts/FDOrbikular-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-SemiBold.woff2') format('woff2'),
       url('fonts/FDOrbikular-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDOrbikular-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-Bold.woff2') format('woff2'),
       url('fonts/FDOrbikular-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-BoldItalic.woff2') format('woff2'),
       url('fonts/FDOrbikular-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-ExtraBold.woff2') format('woff2'),
       url('fonts/FDOrbikular-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Orbikular';
  src: url('../fonts/FDOrbikular-ExtraBoldItalic.woff2') format('woff2'),
       url('fonts/FDOrbikular-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDRM Mono
   ========================================================================== */
@font-face {
  font-family: 'FDRM Mono';
  src: url('../fonts/FDRMMono-Light.woff2') format('woff2'),
       url('fonts/FDRMMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Mono';
  src: url('../fonts/FDRMMono-Regular.woff2') format('woff2'),
       url('fonts/FDRMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Mono';
  src: url('../fonts/FDRMMono-SemiBold.woff2') format('woff2'),
       url('fonts/FDRMMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Mono';
  src: url('../fonts/FDRMMono-Bold.woff2') format('woff2'),
       url('fonts/FDRMMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Mono';
  src: url('../fonts/FDRMMono-Black.woff2') format('woff2'),
       url('fonts/FDRMMono-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD RM Mono
   ========================================================================== */
@font-face {
  font-family: 'FD RM Mono';
  src: url('../fonts/FDRMMono-Light.woff2') format('woff2'),
       url('fonts/FDRMMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Mono';
  src: url('../fonts/FDRMMono-Regular.woff2') format('woff2'),
       url('fonts/FDRMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Mono';
  src: url('../fonts/FDRMMono-SemiBold.woff2') format('woff2'),
       url('fonts/FDRMMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Mono';
  src: url('../fonts/FDRMMono-Bold.woff2') format('woff2'),
       url('fonts/FDRMMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Mono';
  src: url('../fonts/FDRMMono-Black.woff2') format('woff2'),
       url('fonts/FDRMMono-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDRM Neue
   ========================================================================== */
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-Light.woff2') format('woff2'),
       url('fonts/FDRMNeue-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-LightItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-Regular.woff2') format('woff2'),
       url('fonts/FDRMNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-Italic.woff2') format('woff2'),
       url('fonts/FDRMNeue-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-SemiBold.woff2') format('woff2'),
       url('fonts/FDRMNeue-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-Bold.woff2') format('woff2'),
       url('fonts/FDRMNeue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-BoldItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-Black.woff2') format('woff2'),
       url('fonts/FDRMNeue-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDRM Neue';
  src: url('../fonts/FDRMNeue-BlackItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD RM Neue
   ========================================================================== */
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-Light.woff2') format('woff2'),
       url('fonts/FDRMNeue-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-LightItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-Regular.woff2') format('woff2'),
       url('fonts/FDRMNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-Italic.woff2') format('woff2'),
       url('fonts/FDRMNeue-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-SemiBold.woff2') format('woff2'),
       url('fonts/FDRMNeue-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-Bold.woff2') format('woff2'),
       url('fonts/FDRMNeue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-BoldItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-Black.woff2') format('woff2'),
       url('fonts/FDRMNeue-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD RM Neue';
  src: url('../fonts/FDRMNeue-BlackItalic.woff2') format('woff2'),
       url('fonts/FDRMNeue-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Scandium
   ========================================================================== */
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-Thin.woff2') format('woff2'),
       url('fonts/FDScandium-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-ThinItalic.woff2') format('woff2'),
       url('fonts/FDScandium-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-ExtraLight.woff2') format('woff2'),
       url('fonts/FDScandium-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-ExtraLightItalic.woff2') format('woff2'),
       url('fonts/FDScandium-ExtraLightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-Light.woff2') format('woff2'),
       url('fonts/FDScandium-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-LightItalic.woff2') format('woff2'),
       url('fonts/FDScandium-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-Regular.woff2') format('woff2'),
       url('fonts/FDScandium-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-RegularItalic.woff2') format('woff2'),
       url('fonts/FDScandium-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-SemiBold.woff2') format('woff2'),
       url('fonts/FDScandium-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/FDScandium-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-Bold.woff2') format('woff2'),
       url('fonts/FDScandium-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-BoldItalic.woff2') format('woff2'),
       url('fonts/FDScandium-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-Black.woff2') format('woff2'),
       url('fonts/FDScandium-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Scandium';
  src: url('../fonts/FDScandium-BlackItalic.woff2') format('woff2'),
       url('fonts/FDScandium-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FD Druk Wide
   ========================================================================== */
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-Medium.woff2') format('woff2'),
       url('fonts/FDDrukWide-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-MediumItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-Bold.woff2') format('woff2'),
       url('fonts/FDDrukWide-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-BoldItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-Heavy.woff2') format('woff2'),
       url('fonts/FDDrukWide-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FD Druk Wide';
  src: url('../fonts/FDDrukWide-HeavyItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-HeavyItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   @font-face for FDDrukWide
   ========================================================================== */
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-Medium.woff2') format('woff2'),
       url('fonts/FDDrukWide-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-MediumItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-Bold.woff2') format('woff2'),
       url('fonts/FDDrukWide-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-BoldItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-Heavy.woff2') format('woff2'),
       url('fonts/FDDrukWide-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FDDrukWide';
  src: url('../fonts/FDDrukWide-HeavyItalic.woff2') format('woff2'),
       url('fonts/FDDrukWide-HeavyItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}



/* ==========================================================================
   V3.0: 2-TIER FILTER MATRIX (ROLE x FOUNDRY) & K4 COMBINATOR DOCK
   ========================================================================== */
.k4-quick-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color, rgba(148, 163, 184, 0.22));
}
.k4-presets-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.k4-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: all 0.16s ease;
}
.k4-preset-pill:hover,
.k4-preset-pill.active {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
  transform: translateY(-1px);
}
[data-theme="dark"] .k4-preset-pill:hover,
[data-theme="dark"] .k4-preset-pill.active {
  background: #f59e0b;
  color: #070b14;
  border-color: #f59e0b;
}

.filter-tier-block {
  margin-bottom: 10px;
}
.filter-tier-foundry {
  padding-top: 8px;
  border-top: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
}
.filter-tier-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
}
.studio-chips-container .studio-chip-btn {
  font-size: 0.80rem;
  padding: 6px 12px;
}
.chip-sharp { border-color: rgba(239, 68, 68, 0.35); }
.chip-sharp.active { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }
.chip-displaay { border-color: rgba(16, 185, 129, 0.35); }
.chip-displaay.active { background: #059669 !important; color: #fff !important; border-color: #059669 !important; }
.chip-schick { border-color: rgba(245, 158, 11, 0.4); }
.chip-schick.active { background: #d97706 !important; color: #fff !important; border-color: #d97706 !important; }
.chip-swiss { border-color: rgba(220, 38, 38, 0.35); }
.chip-swiss.active { background: #b91c1c !important; color: #fff !important; border-color: #b91c1c !important; }
.chip-lineto { border-color: rgba(99, 102, 241, 0.35); }
.chip-lineto.active { background: #4f46e5 !important; color: #fff !important; border-color: #4f46e5 !important; }

/* K4 Role Badges on Cards */
.badge-k4-role {
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.badge-role-h_serif {
  background: rgba(56, 189, 248, 0.14);
  color: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.badge-role-hl_display {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.38);
}
.badge-role-s_sans {
  background: rgba(168, 85, 247, 0.13);
  color: #7e22ce;
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.badge-role-m_mono {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
[data-theme="dark"] .badge-role-h_serif { color: #38bdf8; }
[data-theme="dark"] .badge-role-hl_display { color: #fbbf24; }
[data-theme="dark"] .badge-role-s_sans { color: #c084fc; }
[data-theme="dark"] .badge-role-m_mono { color: #4ade80; }

/* Pin H / Pin S Card Buttons */
.btn-pin-k4 {
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
}
.btn-pin-h {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}
.btn-pin-h:hover {
  background: #0284c7 !important;
  color: #fff !important;
}
.btn-pin-s {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #7e22ce !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}
.btn-pin-s:hover {
  background: #7e22ce !important;
  color: #fff !important;
}
[data-theme="dark"] .btn-pin-h { color: #38bdf8 !important; }
[data-theme="dark"] .btn-pin-s { color: #c084fc !important; }

/* K4 Combinator Floating Bottom Dock */
.k4-combinator-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 28px));
  background: rgba(10, 15, 28, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  z-index: 9990;
}
.k4-combinator-dock.hidden {
  display: none !important;
}
.k4-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.k4-dock-slots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k4-slot-box {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.k4-slot-h { border-color: rgba(56, 189, 248, 0.5); }
.k4-slot-s { border-color: rgba(192, 132, 252, 0.5); }
.k4-slot-tag {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.82;
  margin-right: 4px;
}
.k4-slot-sep {
  font-weight: 800;
  color: #fbbf24;
}
.k4-dock-preview {
  flex: 1;
  min-width: 260px;
  padding: 6px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.k4-preview-h {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
}
.k4-preview-s {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 2px;
}
.k4-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k4-dock-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.k4-dock-btn-primary {
  background: #f59e0b;
  color: #070b14;
}
.k4-dock-btn-primary:hover {
  background: #fbbf24;
}
.k4-dock-btn-secondary {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.k4-dock-close {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}


.card-footer {
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.card-footer .secondary-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
.card-footer .btn-icon-action,
.card-footer .btn-download-family,
.btn-pin-k4 {
  white-space: nowrap !important;
}


/* ==========================================================================
   MINIMALIST SPECIMEN-FIRST UI/UX v3.3.0 (ZERO-NOISE FOUNDRY EDITION)
   ========================================================================== */

/* 0. Clean Header Polish */
.site-header {
  height: 56px;
}

.header-actions {
  gap: 8px;
}

.view-mode-switcher,
.theme-switcher {
  border-radius: 8px;
  padding: 2px;
}

.view-btn,
.theme-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
}

/* 1. Unified 2-Row Sticky Toolbar */
.type-tester-toolbar {
  top: 56px;
  padding: 10px 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.toolbar-container {
  gap: 8px !important;
}

.toolbar-row-unified {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-row-unified .search-input-wrap {
  position: relative;
  flex: 0 1 230px;
  min-width: 170px;
}

.toolbar-row-unified .search-input {
  height: 38px;
  padding: 0 12px 0 35px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.toolbar-row-unified .search-icon {
  left: 11px;
}

.toolbar-row-unified .input-wrap-main {
  flex: 1 1 340px;
  min-width: 240px;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  height: 38px;
  padding: 0 6px 0 12px;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.toolbar-row-unified .input-wrap-main:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-focus-ring);
}

.specimen-input-prefix {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-right: 8px;
  user-select: none;
  flex-shrink: 0;
}

.toolbar-row-unified .global-text-input {
  height: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 8px 0 0 !important;
  font-size: 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.toolbar-row-unified .input-clear-btn {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  border-radius: 4px;
}

.toolbar-row-unified .input-clear-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Fix <select> intrinsic option expansion bug so specimen input stays wide */
.preset-select-compact {
  width: 88px !important;
  max-width: 88px !important;
  flex: 0 0 88px !important;
  height: 26px;
  padding: 0 18px 0 8px;
  margin-left: 4px;
  border-left: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%23777777' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.preset-select-compact:hover {
  color: var(--text-primary);
}

.slider-size-global {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.slider-size-global .slider-label {
  min-width: auto;
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0;
}

.slider-size-global input[type="range"] {
  width: 88px;
}

.slider-size-global .slider-val {
  min-width: 38px;
  text-align: right;
  font-size: 0.78rem;
}

/* More Filters Dropdown (Tùy chỉnh ▾) */
.more-filters-dropdown {
  position: relative;
  flex-shrink: 0;
}

.more-filters-trigger {
  list-style: none;
  height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all var(--trans-fast);
}

.more-filters-trigger::-webkit-details-marker {
  display: none;
}

.more-filters-trigger:hover,
.more-filters-dropdown[open] .more-filters-trigger {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.more-filters-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, calc(100vw - 32px));
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.more-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.more-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.more-filter-field label,
.more-filter-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.more-filter-field .filter-select {
  width: 100%;
  height: 36px;
}

.more-filter-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-typography-controls {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Row 2: Clean Monochrome Category Chips (Fits 100% on 1 Desktop Row) */
.toolbar-row-roles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toolbar-row-roles .chips-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding-bottom: 1px;
  flex: 1;
  min-width: 0;
}

.toolbar-row-roles .chips-container::-webkit-scrollbar {
  display: none;
}

.toolbar-row-roles .chip-btn {
  padding: 5px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
  flex-shrink: 0;
  gap: 5px !important;
  transition: all var(--trans-fast);
}

.toolbar-row-roles .chip-btn:hover {
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
  background: var(--bg-surface) !important;
}

.toolbar-row-roles .chip-btn.active {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-text) !important;
  font-weight: 600 !important;
}

.toolbar-row-roles .chip-btn .chip-count {
  font-size: 0.7rem;
  opacity: 0.65;
  background: transparent !important;
  padding: 0 !important;
}

.toolbar-row-roles .chip-btn.active .chip-count {
  opacity: 0.85;
  color: inherit !important;
}

.toolbar-row-roles .results-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* 2. Pure Specimen-First Font Card (Header + Specimen Only, Zero Footer Clutter) */
.font-grid {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
  gap: 18px !important;
}

.font-card {
  padding: 16px 22px 22px !important;
  gap: 8px !important;
  min-height: 228px;
  justify-content: flex-start;
  position: relative;
  border-radius: 12px !important;
}

.font-card .card-header {
  gap: 0 !important;
  padding-bottom: 4px;
}

.font-card .card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.font-card .title-with-fav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.font-card .btn-fav {
  font-size: 0.96rem;
  color: var(--text-tertiary);
  opacity: 0.35;
  padding: 2px 3px;
  line-height: 1;
  transition: opacity var(--trans-fast), color var(--trans-fast);
}

.font-card:hover .btn-fav {
  opacity: 0.7;
}

.font-card .btn-fav.active {
  color: #d97706;
  opacity: 1;
}

.font-card .card-family-name.btn-copy-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--trans-fast), background var(--trans-fast);
}

.font-card .card-family-name.btn-copy-name:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.font-card .card-fs-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Subtle Glyph Map Trigger: quiet until card hover on desktop */
.font-card .btn-card-glyphs {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--trans-fast), color var(--trans-fast), background var(--trans-fast);
}

.font-card:hover .btn-card-glyphs,
.font-card:focus-within .btn-card-glyphs {
  opacity: 1;
}

.font-card .btn-card-glyphs:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.font-card .card-styles-toggle.fs-styles-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-tertiary) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.font-card .card-styles-toggle.fs-styles-btn:hover,
.font-card .card-styles-toggle.fs-styles-btn.is-open {
  color: var(--text-primary) !important;
  background: var(--bg-hover) !important;
  border-color: var(--border-subtle) !important;
}

/* Clear, Calm, 1-Click Download Pill in Card Header */
.font-card .btn-download-family {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  height: 28px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  gap: 5px !important;
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
}

.font-card .btn-download-family:hover {
  background: var(--accent-primary) !important;
  color: var(--accent-text) !important;
  border-color: var(--accent-primary) !important;
}

.btn-waterfall-glyphs {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-waterfall-glyphs:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

/* Specimen Area: Pure White Space ~82% Card Height */
.font-card .card-specimen-wrap {
  flex: 1 1 auto;
  min-height: 156px;
  padding: 12px 0 4px !important;
  border-top: none !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
}

.font-card .preview-text {
  width: 100%;
  padding: 8px 2px !important;
  line-height: var(--tester-line-height, 1.32);
  user-select: text !important;
  -webkit-user-select: text !important;
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: 54px;
    padding: 8px 0;
  }

  .site-header__inner {
    padding: 0 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    display: none;
  }

  .view-btn,
  .theme-btn {
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .type-tester-toolbar {
    top: 52px;
    padding: 8px 0 !important;
  }

  .toolbar-container {
    padding: 0 14px;
  }

  .font-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .font-card {
    padding: 14px 16px 18px !important;
    min-height: 190px;
  }

  .font-card .card-title-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .font-card .title-with-fav {
    justify-content: flex-start !important;
    width: auto !important;
  }

  .font-card .card-fs-controls {
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  .font-card .btn-card-glyphs {
    display: none !important;
  }

  .font-card .btn-download-family {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .font-card .card-specimen-wrap {
    min-height: 124px;
  }

  .toolbar-row-unified {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .toolbar-row-unified .search-input-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .toolbar-row-unified .input-wrap-main {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .slider-size-global {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .slider-size-global input[type="range"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 60px !important;
  }

  .more-filters-dropdown {
    flex: 0 0 auto !important;
  }

  .more-filters-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PAIR STUDIO v4.0.0 — 1-ROW COMPACT BAR + READING MODE + BOTTOM SHEET
   ========================================================================== */

#pair-view {
  padding-bottom: 64px;
}

.pair-sticky-bar {
  position: sticky;
  top: 56px;
  z-index: 45;
  height: 52px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.pair-sticky-bar.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.pair-sticky-inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
}

.pair-one-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.pair-picker-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

.pair-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.pair-icon-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.pair-icon-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.pair-current-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  max-width: 360px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.pair-current-pill:hover {
  border-color: var(--text-secondary);
  background: var(--bg-hover);
}

.pair-current-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pair-caret {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.pair-desktop-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pair-compact-select {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 245px;
}

.pair-seg-switch,
.pair-context-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  height: 34px;
  box-sizing: border-box;
}

.pair-seg-btn,
.pair-ctx-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pair-seg-btn:hover,
.pair-ctx-btn:hover {
  color: var(--text-primary);
}

.pair-seg-btn.active,
.pair-ctx-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.pair-custom-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  box-sizing: border-box;
}

.pair-custom-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  min-width: 0;
}

.pair-custom-clear {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}

/* Functional Group Section Header inside Grid */
.pair-func-section-header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 4px 8px;
  margin-top: 8px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.pair-func-sec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pair-func-sec-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
}

.pair-func-sec-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pair-func-sec-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Stream Grid & Reading Mode */
.pair-stream-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px 24px 0;
}

.pair-infinite-grid {
  display: grid;
  gap: 24px;
  overflow-anchor: auto;
}

.pair-infinite-grid.mode-slide.layout-reading {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  margin: 0 auto;
}

.pair-infinite-grid.mode-slide.layout-grid,
.pair-infinite-grid.mode-slide.view-stream {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pair-infinite-grid.mode-banner.layout-reading {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}

.pair-infinite-grid.mode-banner.layout-grid,
.pair-infinite-grid.mode-banner.view-stream {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Individual Live Card */
.pair-live-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.pair-live-card:hover {
  border-color: var(--text-tertiary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.pair-stage-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F4F4F5;
  border-bottom: 1px solid var(--border-subtle);
}

.pair-canvas-frame {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  box-sizing: border-box;
  overflow: hidden;
  user-select: text;
  font-synthesis: none;
}

#pair-view,
#pair-view *,
.slide-stage,
.banner-stage,
.pair-slide-canvas,
.pair-banner-canvas {
  font-synthesis: none;
}

/* ==========================================================================
   TAB 1: SLIDE 16:9 CANVAS (1920×1080 — 16 KHUÔN THỰC CHIẾN TỪ 2 FILE PDF)
   ========================================================================== */

.pair-slide-canvas {
  width: 1920px;
  height: 1080px;
  background: #FFFFFF;
  color: #16181C;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.pair-slide-canvas.is-dark-stage {
  background: #18181B;
  color: #FAFAFA;
}

/* Shared K4 Cropped Top-Left Number Header (slide k4.pdf signature) */
.k4-crop-header {
  position: relative;
  height: 168px;
  width: 100%;
  border-bottom: 1.5px solid #E5E3DC;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  background: #FFFFFF;
}

.k4-crop-num-box {
  position: relative;
  width: 580px;
  height: 168px;
  overflow: hidden;
  border-right: 1.5px solid #E5E3DC;
}

.k4-crop-num {
  position: absolute;
  top: -78px;
  left: 28px;
  font-size: 316px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #3A3A3C;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.k4-crop-top-right {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 84px;
}

.k4-crop-tag {
  font-size: 21px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717A;
}

/* Shared K4 Body Stage */
.k4-body-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 18px 84px;
  min-height: 0;
}

/* Shared Video Deck Rule Black Header */
.vid-rule-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 84px 22px;
  border-bottom: 1.5px solid #E4E4E7;
  flex-shrink: 0;
  position: relative;
}

.vid-rule-black-bar {
  position: absolute;
  top: 0;
  left: 84px;
  width: 140px;
  height: 8px;
  background: #18181B;
}

.vid-rule-kicker {
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B45309;
}

.vid-rule-title {
  margin: 0;
  color: #18181B;
  line-height: 1.18;
}

/* Shared DuetHeadline (1-line Inline Serif Italic + Sans Bold on Same Baseline) */
.k4-duet-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.k4-duet-block.align-center {
  align-items: center;
  text-align: center;
}

.k4-duet-block.align-left {
  align-items: flex-start;
  text-align: left;
}

.k4-duet-line {
  width: 100%;
  line-height: 1.16;
  padding-top: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  outline: none;
  color: #16181C;
}

.k4-duet-line .duet-v1 {
  display: inline;
  vertical-align: baseline;
  color: #1F2328;
}

.k4-duet-line .duet-v2 {
  display: inline;
  vertical-align: baseline;
  margin-inline-start: var(--duet-gap, 0.28em);
  color: #111317;
  letter-spacing: -0.02em;
}

.k4-duet-line.is-wrapped {
  white-space: normal;
}

.k4-duet-line.is-wrapped .duet-v2 {
  display: block;
  margin-inline-start: 0;
  margin-top: 8px;
}

.k4-duet-subtitle,
.k4-duet-sub {
  margin: 0;
  font-size: 29px;
  line-height: 1.42;
  color: #6E6D68;
  max-width: 1480px;
  outline: none;
}

/* Shared GHI NHỚ Bottom Bar & Footer */
.k4-ghinho-bar {
  padding: 18px 28px;
  border-radius: 14px;
  background: #FDF7EC;
  border: 1.5px solid #E7D6B9;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.k4-ghinho-pill {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 8px;
  background: #B45309;
  color: #FFFFFF;
  white-space: nowrap;
}

.k4-ghinho-text {
  font-size: 24px;
  color: #27272A;
  outline: none;
}

.k4-bottom-question {
  text-align: center;
  font-size: 31px;
  color: #27272A;
  padding: 8px 84px 18px;
  outline: none;
}

.k4-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 84px;
  border-top: 1.5px solid #E5E3DC;
  font-size: 19px;
  color: #71717A;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   K01: Bìa số 4 khổng lồ tràn viền trái + Vạch dọc + Song tấu 1 dòng (VID P.01)
   -------------------------------------------------------------------------- */
.k01-cover-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  display: grid;
  grid-template-columns: 850px 2px 1fr;
  background: #FFFFFF;
  overflow: hidden;
}

.k01-top-meta {
  position: absolute;
  top: 44px;
  left: 84px;
  right: 84px;
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: #71717A;
  z-index: 3;
}

.k01-left-giant {
  position: relative;
  height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 1040px;
  line-height: 0.84;
  letter-spacing: -0.05em;
  color: #3A3A3C;
  padding-left: 10px;
  user-select: none;
}

.k01-vertical-divider {
  width: 2px;
  height: 1080px;
  background: #3B82F6;
}

.k01-right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 0 88px 0 64px;
}

.k01-sub {
  margin: 0;
  color: #27272A;
  line-height: 1.44;
  outline: none;
}

.k01-cover-stage .k4-slide-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.90);
}

/* --------------------------------------------------------------------------
   K02: Tiêu đề 1 dòng 2 kiểu chữ + Câu hỏi đáy (slide k4 P.03)
   -------------------------------------------------------------------------- */
.k02-center-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 110px;
}

/* --------------------------------------------------------------------------
   K03: Chương nền tối Cinema & Chữ hoa dấu chồng (VID P.02/P.07)
   -------------------------------------------------------------------------- */
.k03-dark-stage {
  width: 1920px;
  height: 1080px;
  background: #18181B;
  color: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 110px;
  box-sizing: border-box;
}

.k03-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 100%;
}

.k03-kicker {
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #FACC15;
  background: rgba(250, 204, 21, 0.08);
}

.k03-num {
  font-size: 92px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
}

.k03-lead-italic {
  color: #E4E4E7;
  outline: none;
}

.k03-caps-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  width: 100%;
}

.k03-caps-block .sl-fit-line {
  color: #FFFFFF;
  text-align: center;
}

/* --------------------------------------------------------------------------
   K04: Bảng đối chiếu Ngang có nút tròn "hay" (slide k4 P.02/P.04)
   -------------------------------------------------------------------------- */
.k04-compare-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.k04-head-row,
.k04-data-row {
  display: grid;
  grid-template-columns: 280px 1fr 76px 1fr;
  align-items: center;
  gap: 14px;
}

.k04-col-head {
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
}

.k04-col-head.is-left {
  background: #F4F4F5;
  color: #52525B;
}

.k04-col-head.is-right {
  background: #FEF3C7;
  color: #B45309;
  border: 1.5px solid #F59E0B;
}

.k04-hay-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: #18181B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.k04-crit-cell {
  padding: 16px 20px;
  border-radius: 12px;
  background: #F4F3EE;
  color: #27272A;
}

.k04-val-cell {
  padding: 16px 24px;
  border-radius: 12px;
  outline: none;
}

.k04-val-cell.is-left {
  background: #FFFFFF;
  border: 1.5px solid #E4E4E7;
  color: #3F3F46;
}

.k04-val-cell.is-right {
  background: #FFFDF9;
  border: 2px solid #D97706;
  color: #18181B;
}

/* --------------------------------------------------------------------------
   K05: Đối chiếu 2 Cột Đúng / Sai Chi Tiết (Slide 10 Master)
   -------------------------------------------------------------------------- */
.k05-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.k05-card {
  border-radius: 18px;
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
}

.k05-card.is-bad {
  border: 2px solid #FCA5A5;
}

.k05-card.is-good {
  border: 2px solid #6EE7B7;
  background: #F8FAFC;
}

.k05-badge {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.k05-badge.bad { color: #DC2626; }
.k05-badge.good { color: #059669; }

.k05-card-title {
  color: #18181B;
  outline: none;
}

.k05-divider {
  height: 1px;
  background: #E4E4E7;
}

.k05-list {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #3F3F46;
}

.k05-foot {
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 10px;
  background: #F4F4F5;
  color: #18181B;
}

.k05-foot.good {
  background: #ECFDF5;
  color: #065F46;
}

/* --------------------------------------------------------------------------
   K06: Minh họa Khung hình Đúng / Sai (VID P.25 & P.31)
   -------------------------------------------------------------------------- */
.k06-visual-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 18px 84px;
}

.k06-poem-lead {
  text-align: center;
  line-height: 1.38;
  color: #18181B;
}

.k06-frames-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.k06-mock-frame {
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FAFAFA;
}

.k06-mock-frame.is-wrong {
  border: 2px solid #FCA5A5;
}

.k06-mock-frame.is-right {
  border: 2px solid #6EE7B7;
  background: #F0FDF4;
}

.k06-frame-banner.wrong { color: #DC2626; }
.k06-frame-banner.right { color: #059669; }

.k06-frame-art {
  height: 220px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.k06-svg {
  width: 100%;
  height: 100%;
}

.k06-frame-cap {
  color: #3F3F46;
}

/* --------------------------------------------------------------------------
   K07: Cẩm nang 3 Cột Nhiều Chữ Mật Độ Cao (Slide K4 P.98..P.136)
   -------------------------------------------------------------------------- */
.k07-dense-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 84px;
}

.k07-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #E5E3DC;
}

.k07-main-title {
  margin: 0;
  color: #18181B;
}

.k07-page-tag {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #71717A;
  white-space: nowrap;
}

.k07-reflex-box {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.k07-reflex-title {
  color: #B45309;
}

.k07-reflex-line {
  color: #27272A;
}

.k07-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
}

.k07-col-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k07-col-kicker {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
}

.k07-col-head {
  color: #18181B;
  outline: none;
}

.k07-col-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #3F3F46;
  flex: 1;
}

.k07-col-bullets p {
  margin: 0;
  outline: none;
}

.k07-col-foot {
  padding: 10px 14px;
  border-radius: 10px;
  background: #F4F3EE;
  color: #27272A;
}

.k07-bottom-bar {
  padding: 14px 22px;
  border-radius: 12px;
  background: #18181B;
  color: #FAFAFA;
  text-align: center;
  outline: none;
}

/* --------------------------------------------------------------------------
   K08: Giải thích Quy tắc 2 Vế Văn bản Dài Nối Mũi tên Cung (VID P.11/P.107)
   -------------------------------------------------------------------------- */
.k08-prose-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 20px 84px;
}

.k08-two-prose {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 20px;
}

.k08-prose-col {
  background: #FAFAFA;
  border: 1.5px solid #E4E4E7;
  border-radius: 18px;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.k08-prose-col p {
  margin: 0;
  color: #27272A;
  outline: none;
}

.k08-arc-bridge svg {
  width: 110px;
  height: 76px;
}

.k08-poem-coda {
  text-align: center;
  color: #B45309;
  outline: none;
}

/* --------------------------------------------------------------------------
   K09: Kỹ thuật Setup 3 Điểm Tam Giác Nối Cung (VID P.12/P.147)
   -------------------------------------------------------------------------- */
.k09-triangle-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 18px 84px;
}

.k09-top-pair {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  gap: 18px;
}

.k09-node,
.k09-bottom-node {
  background: #FFFFFF;
  border: 1.5px solid #E4E4E7;
  border-radius: 18px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k09-bottom-node {
  max-width: 820px;
  width: 100%;
  background: #FFFDF9;
  border-color: #D97706;
}

.k09-node-title {
  color: #18181B;
  outline: none;
}

.k09-node-body {
  margin: 0;
  color: #3F3F46;
  outline: none;
}

.k09-top-arc svg {
  width: 100px;
  height: 56px;
}

/* --------------------------------------------------------------------------
   K10: Chuỗi Quy trình Ngang 3 Bước Có Mũi Tên (slide k4 P.01)
   -------------------------------------------------------------------------- */
.k10-steps-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: stretch;
  gap: 12px;
}

.k10-step-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k10-step-code {
  align-self: flex-start;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 8px;
  background: #FEF3C7;
  color: #B45309;
}

.k10-step-head {
  color: #18181B;
  outline: none;
}

.k10-step-desc {
  margin: 0;
  color: #52525B;
  line-height: 1.44;
  outline: none;
}

.k10-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #B45309;
}

/* --------------------------------------------------------------------------
   K11: Sổ Biên Lai Hàng Ngang 01–03 (slide k4 P.09)
   -------------------------------------------------------------------------- */
.k11-ledger-stack {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #E5E3DC;
  border-radius: 18px;
  background: #FFFFFF;
  overflow: hidden;
}

.k11-ledger-row {
  display: grid;
  grid-template-columns: 100px 2px 360px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1.5px solid #E5E3DC;
}

.k11-ledger-row:last-child {
  border-bottom: none;
}

.k11-idx {
  color: #B45309;
  line-height: 1;
}

.k11-vbar {
  width: 2px;
  height: 44px;
  background: #E5E3DC;
}

.k11-head {
  color: #18181B;
  outline: none;
}

.k11-desc {
  color: #52525B;
  outline: none;
}

/* --------------------------------------------------------------------------
   K12: Giải phẫu Cơ chế 3 Tầng (slide k4 P.11/P.28)
   -------------------------------------------------------------------------- */
.k12-anatomy-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  align-items: center;
}

.k12-diagram-box {
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
  border-radius: 18px;
  padding: 16px;
}

.k12-svg {
  width: 100%;
  height: auto;
}

.k12-callouts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.k12-callout-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
}

.k12-c-idx {
  color: #B45309;
  line-height: 1;
}

.k12-c-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.k12-c-body strong {
  color: #18181B;
  outline: none;
}

.k12-c-body span {
  color: #52525B;
  outline: none;
}

/* --------------------------------------------------------------------------
   K13: Lưới 100 Chấm & Tỷ lệ 90–9–1 (slide k4 P.05)
   -------------------------------------------------------------------------- */
.k13-prop-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.k13-dots-wrap {
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k13-dots-svg {
  width: 280px;
  height: 260px;
}

.k13-stats-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.k13-stat-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
}

.k13-stat-card.tone-strong {
  background: #FFFDF9;
  border-color: #D97706;
}

.k13-stat-num {
  color: #B45309;
  line-height: 1;
}

.k13-stat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.k13-stat-text strong {
  color: #18181B;
  outline: none;
}

.k13-stat-text span {
  color: #52525B;
  outline: none;
}

/* --------------------------------------------------------------------------
   K14: Thanh Tỷ lệ Ngang 20 / 80 (slide k4 P.25/P.50)
   -------------------------------------------------------------------------- */
.k14-bar-stage {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.k14-bar-track {
  display: flex;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #E5E3DC;
}

.k14-bar-seg.is-left {
  background: #D97706;
}

.k14-bar-seg.is-right {
  background: #18181B;
}

.k14-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.k14-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E3DC;
  border-radius: 18px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k14-card.is-right {
  background: #FFFDF9;
  border-color: #D97706;
}

.k14-big-num {
  color: #B45309;
  line-height: 1;
}

.k14-card strong {
  color: #18181B;
  outline: none;
}

.k14-card p {
  margin: 0;
  color: #52525B;
  line-height: 1.44;
  outline: none;
}

/* --------------------------------------------------------------------------
   K15: Khoảng lặng 4 Câu Thơ Lục Bát (slide k4 P.06/P.31)
   -------------------------------------------------------------------------- */
.k15-poem-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 20px 120px;
}

.k15-leaf-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k15-leaf-icon svg {
  width: 42px;
  height: 42px;
}

.k15-poem-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #18181B;
}

.k15-poem-line {
  outline: none;
}

/* --------------------------------------------------------------------------
   K16: Câu Hỏi Lớn Thảo Luận Giữa Trang (slide k4 P.78)
   -------------------------------------------------------------------------- */
.k16-question-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  padding: 0 160px;
}

.k16-big-quote {
  margin: 0;
  color: #18181B;
  max-width: 1460px;
  outline: none;
}

.k16-sub-note {
  margin: 0;
  color: #71717A;
  outline: none;
}

/* ==========================================================================
   TAB 2: BANNER 4:5 CANVAS (1080×1350 — BANNER2.HTML AESTHETIC)
   ========================================================================== */

.pair-banner-canvas {
  width: 1080px;
  height: 1350px;
  padding: 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #F8FAFC;
}

.bn-ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(250, 204, 21, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.15) 0%, rgba(5, 9, 18, 0.62) 100%);
  pointer-events: none;
}

.bn-safe-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 936px;
}

.bn-anchor-num {
  font-size: 168px;
  line-height: 0.86;
  color: rgba(250, 204, 21, 0.90);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: -14px;
}

.bn-eyebrow-tag {
  align-self: flex-start;
  font-size: 21px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FACC15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: -10px;
}

.bn-headline-group {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.bn-h-line {
  white-space: nowrap;
  overflow: hidden;
  outline: none;
}

.bn-gold-hl {
  color: #FACC15;
}

.bn-subbox {
  background: rgba(5, 9, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.bn-subbox.bn-pa3 {
  border-top: 4px solid #FACC15;
}

.bn-subbox.bn-pa-leftbar {
  border-left: 5px solid #FACC15;
}

.bn-pa2-row,
.bn-pa3-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}

.bn-row-bad {
  color: #CBD5E1;
}

.bn-row-good,
.bn-pa3-strong {
  color: #FFFFFF;
}

.bn-pa3-line {
  color: #E2E8F0;
}

.bn-meta-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
  margin: 4px 0 2px;
}

.bn-meta-row {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #FACC15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   MOBILE READING BLOCK & COMPACT CARD FOOTER
   ========================================================================== */

.pair-mobile-reader {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px 13px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.pair-mobile-duet {
  font-size: 24px;
  line-height: 1.26;
  color: var(--text-primary);
  word-break: break-word;
}

.pair-mob-v1 {
  display: inline;
}

.pair-mob-v2 {
  display: inline;
  letter-spacing: -0.015em;
}

.pair-mobile-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.pair-card-meta,
.pair-card-footer {
  padding: 11px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pair-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pair-names-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
  flex-wrap: wrap;
}

.pair-h-name {
  font-weight: 700;
}

.pair-plus {
  color: var(--text-tertiary);
}

.pair-b-name {
  font-weight: 550;
  color: var(--text-secondary);
}

.pair-card-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pair-law-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pair-score-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pair-act-btn,
.pair-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.pair-act-btn:hover,
.pair-dl-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.pair-dl-btn {
  color: var(--text-primary);
  background: var(--bg-primary);
}

/* ==========================================================================
   FILTER & CUSTOMIZE BOTTOM SHEET / DIALOG (<dialog id="pair-filter-dialog">)
   ========================================================================== */

.pair-filter-dialog {
  width: min(680px, 94vw);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.pair-filter-dialog::backdrop {
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(5px);
}

.pair-filter-shell {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.pair-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15.5px;
}

.pair-filter-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pair-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pair-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pair-sheet-select {
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.pair-sheet-modes {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}

.pair-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.pair-filter-dl-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pair-primary-apply-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   IN-PLACE ZOOM DIALOG (<dialog>)
   ========================================================================== */

.pair-zoom-dialog {
  width: min(1140px, 95vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.pair-zoom-dialog::backdrop {
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(6px);
}

.pair-zoom-shell {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px 22px 24px;
  gap: 14px;
}

.pair-zoom-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.pair-zoom-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}

.pair-zoom-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.pair-zoom-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pair-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.pair-zoom-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pair-zoom-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pair-zoom-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.pair-zoom-sliders {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pair-zoom-slider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pair-zoom-slider input[type="range"] {
  width: 84px;
}

.pair-zoom-stage-wrap {
  width: 100%;
  margin: 0 auto;
}

.pair-zoom-stage-wrap.mode-banner {
  max-width: 520px;
}

.pair-zoom-stage-wrap .pair-stage-viewport {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 1120px) {
  .pair-infinite-grid.mode-slide.layout-grid,
  .pair-infinite-grid.mode-slide.view-stream {
    grid-template-columns: 1fr;
  }
  .pair-infinite-grid.mode-banner.layout-grid,
  .pair-infinite-grid.mode-banner.view-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pair-live-card,
.pair-func-section-header {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  .pair-sticky-bar {
    height: 56px;
  }
  .pair-sticky-inner {
    padding: 0 12px;
  }
  .pair-desktop-controls {
    display: none;
  }
  .pair-picker-cluster {
    flex: 1 1 auto;
  }
  .pair-current-pill {
    flex: 1 1 auto;
    max-width: none;
  }
  .pair-stream-wrap {
    padding: 14px 12px 0;
  }
  .pair-infinite-grid.mode-banner.layout-reading,
  .pair-infinite-grid.mode-banner.layout-grid,
  .pair-infinite-grid.mode-banner.view-stream {
    grid-template-columns: 1fr;
  }
  .pair-mobile-reader {
    display: flex;
  }
  .pair-field-row {
    grid-template-columns: 1fr;
  }
  .pair-filter-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0 0;
    border-radius: 18px 18px 0 0;
  }
}
