/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --blue: #0453a7;
  --blue-dark: #0453a7;
  --blue-light: #c7d9ff;
  --green: #43aa8b;
  --green-hover: #43aa8b;
  --amber: #f59e0b;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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



img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #ebf2ff 0%, #fff 100%);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border-light);
  animation: fadeIn 0.6s ease-out;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.5rem;
  animation: slideDown 0.6s ease-out 0.2s both;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--text-heading);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  animation: slideDown 0.6s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: 1.175rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: slideDown 0.6s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  animation: slideDown 0.6s ease-out 0.5s both;
}

.stat { text-align: center; }

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Bricolage Grotesque', sans-serif;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar-wrapper {
  max-width: 520px;
  margin: 2rem auto 0;
  position: relative;
  animation: slideDown 0.6s ease-out 0.55s both;
}

.search-bar {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem !important;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.search-bar:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16, 102, 255, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrapper {
  display: inline-block;
  padding: 0 14px;
  border-radius: 50px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 15px;
}

.breadcrumb a {
  text-decoration: none;
  color: #6c757d;
  transition: color 0.25s ease;
  position: relative;
}

.breadcrumb a:hover { color: var(--blue); }

.breadcrumb a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.breadcrumb a:hover::after { width: 100%; }

.breadcrumb-separator {
  color: #adb5bd;
  font-size: 14px;
}

.breadcrumb span:last-child {
  color: #212529;
  font-weight: 600;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.article-count-badge {
  background: #ebf2ff;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid #c7d9ff;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0.5rem 0 0;
}

/* ============================================================
   ARTICLES GRID & CARDS
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--background);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #4d94ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.article-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-card:hover::after { transform: scaleX(1); }

.article-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: block;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: #f0f4ff;
  color: #0453a7;
  border: 1px solid #c7d9ff;
}

.article-tag.tag-popular { background: #d1fae5; color: #047857; border-color: #6ee7b7; }
.article-tag.tag-new     { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

.article-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.article-arrow {
  color: var(--blue);
  font-size: 0.875rem;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}

.article-card:hover .article-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.intro-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.intro-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.intro-section p + p { margin-top: 1rem; }

/* ============================================================
   CONTENT TYPOGRAPHY
   ============================================================ */
.content h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}

.content h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.content > p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ============================================================
   STEP CARDS
   ============================================================ */
.step-card {
  background: var(--background);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.step-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.step-card:hover::before { transform: scaleY(1); }

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #0453a7;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.step-list {
  list-style: none;
  margin: 1rem 0;
}

.step-list li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.65;
}

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

.step-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-note {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   EXAMPLE BOX
   ============================================================ */
.example-box {
  background: #d1fae5;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.example-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.example-text {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   FORMULA BOX
   ============================================================ */
.formula-box {
  background: #f0f4ff;
  border: 1px solid #c7d9ff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.formula-icon { font-size: 1.25rem; flex-shrink: 0; }

.formula-text {
  color: #0453a7;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
}

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: #ebf2ff;
  border: 1px solid #2d6bff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Variant used in category/index pages — inline flex layout */
.info-box--inline {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 0 3rem;
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.info-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.info-icon--lg {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 1.1rem;
}

.info-box h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.3;
}

.info-box p,
.info-box ul {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

.info-box ul { list-style: none; }

.info-box li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
}

.info-box li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Inline info-box body (category pages) */
.info-box-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
}

.info-box-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-box-body a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.info-box-body a:hover { text-decoration: underline; }

/* ============================================================
   WARNING BOX
   ============================================================ */
.warning-box {
  background: #fff7ed;
  border: 1px solid #f97316;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.warning-icon {
  width: 32px;
  height: 32px;
  background: #f97316;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.warning-box h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.warning-box p,
.warning-box ul {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.warning-box ul { list-style: none; }

.warning-box li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.warning-box li::before {
  content: '!';
  color: #f97316;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   TIPS GRID
   ============================================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tip-card {
  background: #fef3c7;
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.tip-card:hover { transform: translateY(-4px); }

.tip-icon {
  width: 40px;
  height: 40px;
  background: var(--amber);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tip-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.3;
}

.tip-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 40px 0 0;
  background: transparent;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.4;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  font-size: 1rem;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  border-radius: 16px;
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: var(--green);
}

.cta-strip-inner {
  display: flex!important;
  flex-wrap: wrap!important;
  align-items: center!important;
  justify-content: center!important;
  gap: 1.5rem!important;
  text-align: center!important;
}

.cta-strip-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.cta-strip-text p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { background: #f0f5ff; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ============================================================
   RELATED SECTION
   ============================================================ */
.related-section {
  margin: 4rem 0;
  padding: 2rem;
  background: var(--surface);
  border-radius: 16px;
}

.related-section h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.related-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.35;
}

.related-card p,
.related-card-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   ALSO HELPFUL
   ============================================================ */
.also-helpful {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1rem;
}

.also-helpful h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.helpful-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
}

.helpful-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.helpful-link:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.helpful-link-icon { font-size: 1.25rem; flex-shrink: 0; }

.helpful-link-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.helpful-link-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ============================================================
   ERROR TABLE
   ============================================================ */

   .roles-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.error-table-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.error-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.error-table thead tr { background: #ebf2ff; }

.error-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Bricolage Grotesque', sans-serif;
  border-bottom: 2px solid var(--blue-light);
}

.error-table td {
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.error-table tr:last-child td { border-bottom: none; }
.error-table tr:hover td { background: var(--surface); }

.error-badge {
  display: inline-block;
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   RATE TABLE
   ============================================================ */
.table-scroll{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.rate-table th {
  background: #0453a7;
  color: #fff;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
}

.rate-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: #f8faff; }

.rate-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rate-low  { background: #dcfce7; color: #16a34a; }
.rate-mid  { background: #fef9c3; color: #ca8a04; }
.rate-high { background: #fee2e2; color: #dc2626; }

/* ============================================================
   SHARE OPTIONS
   ============================================================ */
.share-options {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0f4ff;
  border: 1px solid #c7d9ff;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0453a7;
}

.share-option-icon { font-size: 1.1rem; }

  /* Colour swatches */
  .colour-swatches { gap: 0.5rem; }
  .swatch-dot { width: 34px; height: 34px; border-radius: 8px; }
  .swatch-label { font-size: 0.6375rem; max-width: 40px; }

  /* Layout grid */
  .layout-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .layout-thumb { height: 80px; }
  .layout-name { font-size: 0.75rem; padding: 0.5rem 0.6rem; }
  .active-badge { font-size: 0.6rem; padding: 0.1rem 0.4rem; }


   /* ── CLAUSE CATEGORIES ── */
    .clause-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.25rem;
      margin: 1.5rem 0 0;
    }

    .clause-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .clause-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

    .clause-card-header {
      padding: 0.875rem 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 700;
      font-size: 0.9375rem;
      font-family: 'Bricolage Grotesque', sans-serif;
    }

    .clause-card-header .clause-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .clause-card-body {
      padding: 1rem 1.25rem;
      background: white;
    }

    .clause-card-body p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 0.75rem;
      line-height: 1.6;
    }

    .clause-example-text {
      font-size: 0.8125rem;
      color: var(--text-secondary);
      background: var(--surface);
      border-left: 3px solid var(--border);
      padding: 0.625rem 0.875rem;
      border-radius: 0 6px 6px 0;
      font-style: italic;
      line-height: 1.6;
    }

    /* payment */
    .clause-card.payment .clause-card-header { background: #eff6ff; color: var(--blue-dark); }
    .clause-card.payment .clause-card-header .clause-icon { background: #dbeafe; }
    .clause-card.payment .clause-card-body { border-top: 1px solid #dbeafe; }
    .clause-card.payment .clause-example-text { border-left-color: var(--blue); }

    /* scope */
    .clause-card.scope .clause-card-header { background: #f0fdf4; color: #166534; }
    .clause-card.scope .clause-card-header .clause-icon { background: #dcfce7; }
    .clause-card.scope .clause-card-body { border-top: 1px solid #dcfce7; }
    .clause-card.scope .clause-example-text { border-left-color: var(--green); }

    /* liability */
    .clause-card.liability .clause-card-header { background: #fef3c7; color: #92400e; }
    .clause-card.liability .clause-card-header .clause-icon { background: #fde68a; }
    .clause-card.liability .clause-card-body { border-top: 1px solid #fde68a; }
    .clause-card.liability .clause-example-text { border-left-color: var(--amber); }

    /* cancellation */
    .clause-card.cancellation .clause-card-header { background: var(--red-light); color: #991b1b; }
    .clause-card.cancellation .clause-card-header .clause-icon { background: #fee2e2; }
    .clause-card.cancellation .clause-card-body { border-top: 1px solid #fee2e2; }
    .clause-card.cancellation .clause-example-text { border-left-color: var(--red); }

    /* variations */
    .clause-card.variations .clause-card-header { background: #f5f3ff; color: #5b21b6; }
    .clause-card.variations .clause-card-header .clause-icon { background: #ede9fe; }
    .clause-card.variations .clause-card-body { border-top: 1px solid #ede9fe; }
    .clause-card.variations .clause-example-text { border-left-color: #7c3aed; }

    /* warranty */
    .clause-card.warranty .clause-card-header { background: #ecfeff; color: #155e75; }
    .clause-card.warranty .clause-card-header .clause-icon { background: #cffafe; }
    .clause-card.warranty .clause-card-body { border-top: 1px solid #cffafe; }
    .clause-card.warranty .clause-example-text { border-left-color: #06b6d4; }

    /* ── PAYMENT SCHEDULE VISUAL ── */
    .payment-schedule {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 1.25rem 0 0;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }

    .schedule-row {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.875rem 1.25rem;
      border-bottom: 1px solid var(--border-light);
      transition: background 0.2s ease;
    }

    .schedule-row:last-child { border-bottom: none; }
    .schedule-row:hover { background: var(--surface); }

    .schedule-milestone {
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem;
      flex-shrink: 0;
      font-weight: 700;
    }

    .schedule-detail { flex: 1; }

    .schedule-label {
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    .schedule-desc {
      font-size: 0.8125rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }

    .schedule-amount {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-primary);
      text-align: right;
    }

    .schedule-pct {
      font-size: 0.75rem;
      color: var(--text-muted);
      text-align: right;
    }

    .schedule-row.deposit .schedule-milestone { background: #dbeafe; color: var(--blue-dark); }
    .schedule-row.midpoint .schedule-milestone { background: #dcfce7; color: #166534; }
    .schedule-row.completion .schedule-milestone { background: #fde68a; color: #92400e; }
    .schedule-row.final .schedule-milestone { background: var(--blue); color: white; }

      /* ── VERSION TIMELINE ── */
    .version-timeline {
      margin: 2rem 0;
      position: relative;
    }

    .version-timeline::before {
      content: '';
      position: absolute;
      left: 23px;
      top: 0; bottom: 0;
      width: 2px;
      background: var(--border);
    }

    .version-entry {
      display: flex;
      gap: 1.25rem;
      margin-bottom: 1.5rem;
      position: relative;
    }

    .version-dot {
      width: 48px; height: 48px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8125rem;
      font-weight: 700;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
      border: 2px solid var(--background);
    }

    .version-dot.accepted  { background: #d1fae5; color: #065f46; }
    .version-dot.voided    { background: #f3f4f6; color: #6b7280; }
    .version-dot.active    { background: #dbeafe; color: #1e40af; }
    .version-dot.declined  { background: #fee2e2; color: #991b1b; }
    .version-dot.expired   { background: #fef3c7; color: #92400e; }

    .version-body {
      background: var(--surface);
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
      flex: 1;
    }

    .version-body-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .version-label {
      font-weight: 700;
      font-size: 1rem;
      color: var(--text-primary);
      font-family: 'Bricolage Grotesque', sans-serif;
    }

    .version-badge {
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.25rem 0.75rem;
      border-radius: 100px;
    }

    .badge-accepted  { background: #d1fae5; color: #065f46; }
    .badge-voided    { background: #f3f4f6; color: #6b7280; }
    .badge-active    { background: #dbeafe; color: #1e40af; }
    .badge-declined  { background: #fee2e2; color: #991b1b; }
    .badge-expired   { background: #fef3c7; color: #92400e; }

    .version-meta {
      font-size: 0.875rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }

    .version-note {
      font-size: 0.9375rem;
      color: var(--text-secondary);
    }

/* ── COMPARE CARDS ── */
    .compare-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
      margin-bottom: 3rem;
    }

    .compare-card {
      border-radius: 16px;
      padding: 1.75rem 1.5rem;
      border: 2px solid var(--border-light);
      background: var(--background);
    }

    .compare-card.deactivate { border-top: 4px solid var(--amber); }
    .compare-card.remove     { border-top: 4px solid var(--red); }

    .compare-card-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.375rem;
      margin-bottom: 1rem;
    }

    .compare-card.deactivate .compare-card-icon { background: #fef3c7; }
    .compare-card.remove     .compare-card-icon { background: #fee2e2; }

    .compare-card-title {
      font-family: 'Bricolage Grotesque', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.375rem;
      color: var(--text-primary);
    }

    .compare-card-sub {
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .compare-card.deactivate .compare-card-sub { color: #92400e; }
    .compare-card.remove     .compare-card-sub { color: #991b1b; }

    .compare-list { list-style: none; }

    .compare-list li {
      font-size: 0.9375rem;
      color: var(--text-secondary);
      padding: 0.5rem 0;
      display: flex; align-items: start; gap: 0.625rem;
      border-bottom: 1px solid var(--border-light);
    }

    .compare-list li:last-child { border-bottom: none; }

    .compare-list li::before { font-weight: 700; flex-shrink: 0; font-size: 1rem; }

    .compare-card.deactivate .compare-list li::before { content: '✓'; color: var(--amber); }
    .compare-card.remove     .compare-list li::before { content: '✓'; color: var(--red); }

       /* ── ROLE CARDS ── */
    .role-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 1.25rem;
      margin-bottom: 3rem;
    }

    .role-card {
      background: var(--background);
      border: 2px solid var(--border-light);
      border-radius: 16px;
      padding: 1.75rem 1.5rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .role-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

    .role-card.owner   { border-top: 4px solid #7c3aed; }
    .role-card.admin   { border-top: 4px solid #1066ff; }
    .role-card.estimator { border-top: 4px solid #10b981; }
    .role-card.viewer  { border-top: 4px solid #9ca3af; }

    .role-card-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.375rem;
      margin-bottom: 1rem;
    }

    .role-card.owner   .role-card-icon { background: #ede9fe; }
    .role-card.admin   .role-card-icon { background: #dbeafe; }
    .role-card.estimator .role-card-icon { background: #d1fae5; }
    .role-card.viewer  .role-card-icon { background: #f3f4f6; }

    .role-card-name {
      font-family: 'Bricolage Grotesque', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
    }

    .role-card-tag {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.2rem 0.65rem;
      border-radius: 100px;
      margin-bottom: 0.875rem;
    }

    .role-card.owner   .role-card-tag { background: #ede9fe; color: #5b21b6; }
    .role-card.admin   .role-card-tag { background: #dbeafe; color: #1e40af; }
    .role-card.estimator .role-card-tag { background: #d1fae5; color: #065f46; }
    .role-card.viewer  .role-card-tag { background: #f3f4f6; color: #374151; }
    .role-card-desc {font-size: 0.9375rem; color: var(--text-secondary);line-height: 1.6;}

    .layout-grid{display: none;}
    .notification-setting{margin-top: 1.25rem;}



/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .content { padding: 1rem 1.5rem 3rem; }

  .hero h1 { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.125rem; }

  .intro-section h2 { font-size: 1.625rem; }

  .content h2 { font-size: 1.875rem; }
  .content h3 { font-size: 1.375rem; }
  .step-title { font-size: 1.375rem; }

  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .helpful-links { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  .error-table th,
  .error-table td { padding: 0.65rem 0.75rem; }

    .role-cards-grid { grid-template-columns: repeat(2, 1fr); }

}

/* ============================================================
   RESPONSIVE — TABLET SMALL (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: 0.8125rem; padding: 0.4rem 0.9rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.625rem; }
  .search-bar-wrapper { margin-top: 1.25rem; }

  .content { padding: 1rem 1.25rem 3rem; }

  .breadcrumb-wrapper { padding: 0; }
  .breadcrumb { font-size: 12px; gap: 4px; }
  .breadcrumb-separator { font-size: 12px; }

  .intro-section { padding: 1.5rem; border-radius: 14px; margin-bottom: 2rem; }
  .intro-section h2 { font-size: 1.5rem; }
  .intro-section p { font-size: 1rem; line-height: 1.75; }

  .content h2 { font-size: 1.625rem; margin-bottom: 1rem; }
  .content h3 { font-size: 1.25rem; }
  .content > p { font-size:14px; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin: 2rem 0 1.25rem; }
  .section-heading h2 { font-size: 1.25rem; }

  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .article-card { padding: 1.1rem 1rem; }

  .step-card { padding: 1.5rem; border-radius: 14px; margin-bottom: 1.5rem; }
  .step-header { gap: 0.875rem; margin-bottom: 1.25rem; }
  .step-number { width: 42px; height: 42px; font-size: 1.25rem; border-radius: 10px; }
  .step-title { font-size: 1.25rem; }
  .step-description { font-size: 1rem; }
  .step-list li {display: block; font-size: 0.9375rem; padding: 0.65rem 0; }
  .step-list li::before { font-size: 1rem;margin-right: 5px;}
  .step-note { font-size: 0.9375rem; }

  .example-box { padding: 0.875rem 1rem; border-radius: 10px; align-items: flex-start; }
  .example-text { font-size: 0.9375rem; }

  .info-box { padding: 1.25rem; border-radius: 10px; margin: 1.5rem 0; }
  .info-box-header { flex-wrap: wrap; gap: 0.5rem; }
  .info-box h3 { font-size: 1.125rem; }
  .info-box p, .info-box li { font-size: 0.9375rem; }
.info-box li{display: block;}
.info-box li::before{margin-right: 5px;}
  .info-box--inline { flex-direction: column; gap: 0.75rem; padding: 1.25rem; margin-bottom: 2rem; }
  .info-box-body h3 { font-size: 0.975rem; }
  .info-box-body p { font-size: 0.875rem; }

  .warning-box { padding: 1rem; border-radius: 11px; margin: 1.5rem 0; }
  .warning-box-header { gap: 0.5rem; margin-bottom: 0.75rem; }
  .warning-icon { width: 28px; height: 28px; font-size: 0.9rem; }
  .warning-box h3 { font-size: 0.975rem; }
  .warning-box p, .warning-box li { font-size: 0.8375rem; }

  .tips-grid { grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
  .tip-card { padding: 1.25rem; }
  .tip-card h4 { font-size: 1rem; }
  .tip-card p { font-size: 0.9rem; }
  .tip-icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 9px; margin-bottom: 0.875rem; }

  .faq-section { padding-top: 2rem; }
  .faq-item { padding: 1.25rem; border-radius: 10px; margin-bottom: 0.875rem; }
  .faq-question { font-size: 1rem; margin-bottom: 0.625rem; }
  .faq-answer { font-size: 0.9375rem; }

  .cta-strip { padding: 2rem 1.25rem; border-radius: 14px; margin-top: 3rem; }
  .cta-strip-inner { flex-direction: column; gap: 1.25rem; }
  .cta-strip-text h2 { font-size: 1.5rem; }
  .cta-strip-text p { font-size: 0.9375rem !important; }
  .cta-strip-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn { text-align: center; padding: 0.75rem 1.25rem; font-size: 0.875rem; }

  .related-section { padding: 1.5rem; border-radius: 14px; margin: 3rem 0; }
  .related-section h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { padding: 1.25rem; }
  .related-card-title { font-size: 1rem; }
  .related-card p, .related-card-description { font-size: 0.9rem; }

  .also-helpful { padding: 1.5rem 1.25rem; }
  .also-helpful h3 { font-size: 1.1rem; margin-bottom: 1rem; }
  .helpful-links { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
  .helpful-link { padding: 0.75rem 0.875rem; }
  .helpful-link-text { font-size: 0.85rem; }

  .share-options { flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
  .share-option { font-size: 0.9rem; padding: 0.6rem 1rem; border-radius: 9px; }

  .formula-box { flex-wrap: wrap; gap: 0.5rem; padding: 0.875rem 1rem; }
  .formula-text { font-size: 0.9rem; word-break: break-word; }

  .error-table { min-width: 540px; font-size: 0.8375rem; }
  .error-table th, .error-table td { padding: 0.6rem 0.65rem; font-size: 0.8125rem; }
  .error-badge { font-size: 0.7rem; padding: 0.15rem 0.45rem; }

  
  /* Clause grid */
  .clause-grid { grid-template-columns: 1fr; gap: 1rem; }
  .clause-card-header { padding: 0.75rem 1rem; font-size: 0.875rem; }
  .clause-card-header .clause-icon { width: 28px; height: 28px; font-size: 0.875rem; }
  .clause-card-body { padding: 0.875rem 1rem; }
  .clause-card-body p { font-size: 0.875rem; }
  .clause-example-text { font-size: 0.7875rem; padding: 0.5rem 0.75rem; }

  /* Payment schedule */
  .payment-schedule { border-radius: 10px; }
  .schedule-row {padding: 0.75rem 1rem;flex-wrap: wrap;gap: 0.5rem;}
  .schedule-milestone { width: 32px; height: 32px; font-size: 0.8125rem; }
  .schedule-label { font-size: 0.875rem; }
  .schedule-desc { font-size: 0.75rem; }
  .schedule-amount { font-size: 0.9375rem; }
  .schedule-pct { font-size: 0.6875rem; }
  .schedule-detail { min-width: 0; flex: 1 1 60%; }

  /* Version timeline */
  .version-timeline::before { left: 19px; }
  .version-dot { width: 40px; height: 40px; font-size: 0.75rem; }
  .version-body { padding: 1rem 1.25rem; }
  .version-body-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .version-label { font-size: 0.9375rem; }
  .version-meta { font-size: 0.8125rem; }
  .version-note { font-size: 0.875rem; }
  .compare-grid { grid-template-columns: 1fr; }

    /* Role overview cards — 2 columns */
  .role-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
  .role-card { padding: 1.375rem 1.25rem; border-radius: 12px; }
  .role-card-icon { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 10px; margin-bottom: 0.75rem; }
  .role-card-name { font-size: 1.125rem; }
  .role-card-tag { font-size: 0.6875rem; padding: 0.175rem 0.55rem; margin-bottom: 0.75rem; }
  .role-card-desc { font-size: 0.875rem; }
  .warning-text {font-size: 14px; }
  .schedule-row{display: block;}
  .cta-strip-inner{padding: 20px;}


}

/* ============================================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-badge { font-size: 0.775rem; padding: 0.4rem 0.8rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  .search-bar { font-size: 0.875rem; padding: 0.75rem 1rem 0.75rem 2.75rem !important; }

  .content { padding: 0.75rem 0.875rem 2rem; }

  .breadcrumb { font-size: 11.5px; gap: 4px; }
  .breadcrumb-separator { font-size: 12px; }

  .intro-section { padding: 1.25rem 1rem; border-radius: 12px; margin-bottom: 2rem; }
  .intro-section h2 { font-size: 1.2rem; }
  .intro-section p { font-size: 0.9375rem; }

  .content h2 { font-size: 18px; margin-bottom: 1rem; }
  .content h3 { font-size: 1.1rem; }

  .step-card { padding: 1rem 0.875rem; border-radius: 12px; margin-bottom: 1.25rem; }
  .step-header { gap: 0.75rem; margin-bottom: 1rem; }
  .step-number { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 8px; }
  .step-title { font-size: 0.95rem; }
  .step-description { font-size: 0.85rem; }
  .step-list li { font-size: 0.8375rem; padding: 0.5rem 0; }

  .example-box { flex-direction: column; gap: 0.4rem; padding: 0.75rem; border-radius: 10px; }
  .example-text { font-size: 0.875rem; }

  .info-box { padding: 1rem; margin:.5rem 0; }
  .info-icon { width: 28px; height: 28px; min-width: 28px; font-size: 0.85rem; }
  .info-box h3 { font-size: 0.975rem; }
  .info-box p, .info-box li { font-size: 0.8375rem; }

  .warning-box { padding: 0.875rem; border-radius: 10px; margin: 1.25rem 0;display: block; }
  .warning-icon { width: 26px; height: 26px; min-width: 26px; font-size: 0.85rem; border-radius: 7px;margin-bottom: 5px; }
  .warning-box h3 { font-size: 0.9rem; }
  .warning-box p, .warning-box li { font-size: 0.8125rem; }

  .tips-grid { grid-template-columns: 1fr; gap: 0.875rem; margin: 1.5rem 0; }
  .tip-card { padding: 1rem; border-radius: 10px; }
  .tip-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; margin-bottom: 0.75rem; }
  .tip-card h4 { font-size: 0.975rem; margin-bottom: 0.6rem; }
  .tip-card p { font-size: 0.8375rem; }

  .faq-section { padding-top: 1.5rem; }
  .faq-item { padding: 0.875rem; border-radius: 8px; margin-bottom: 0.75rem; }
  .faq-question { font-size: 0.9rem; margin-bottom: 0.5rem; }
  .faq-answer { font-size: 0.8375rem; }

  .cta-strip { padding: 1.5rem 1rem; border-radius: 12px; margin-top: 2.5rem; }
  .cta-strip-text h2 { font-size: 1.2rem; }
  .cta-strip-text p { font-size: 0.875rem !important; }
  .cta-strip-actions { max-width: 100%; }
  .btn { font-size: 0.8125rem; padding: 0.65rem 1.125rem; }

  .related-section { padding: 1rem 0.875rem; border-radius: 12px; margin: 2rem 0; }
  .related-section h3 { font-size: 1.15rem; margin-bottom: 1rem; }
  .related-card { padding: 0.875rem; border-radius: 10px; }
  .related-card-title { font-size: 0.9rem; }
  .related-card p, .related-card-description { font-size: 0.8rem; }

  .also-helpful { padding: 1.25rem 1rem; border-radius: 12px; }
  .helpful-links { grid-template-columns: 1fr; gap: 0.6rem; }
  .helpful-link { padding: 0.75rem 0.875rem; }

  .share-option { font-size: 0.875rem; padding: 0.55rem 0.875rem; }
  .share-option-icon { font-size: 1rem; }

  .formula-box { gap: 0.375rem; padding: 0.75rem 0.875rem; }
  .formula-text { font-size: 0.875rem; }

  .error-table { min-width: 480px; font-size: 0.8rem; }
  .error-table th, .error-table td { padding: 0.5rem 0.6rem; font-size: 0.775rem; }
  .error-badge { font-size: 0.675rem; padding: 0.125rem 0.4rem; border-radius: 4px; }

  .article-card { padding: 1rem 0.875rem; border-radius: 10px; }
  .article-card-title { font-size: 0.9rem; }
  .article-card-desc { font-size: 0.8125rem; }
  .helpful-link-text { font-size: 0.8rem; }
  .helpful-link-sub { font-size: 0.7rem; }
  .no-results { font-size: 0.875rem; padding: 2rem 0.5rem; }
  .no-results-icon { font-size: 2rem; }

  /* Version timeline */
  .version-timeline::before { left: 17px; }
  .version-entry { gap: 0.875rem; margin-bottom: 1.25rem; }
  .version-dot { width: 36px; height: 36px; font-size: 0.6875rem; }
  .version-body { padding: 0.875rem 1rem; }
  .version-body-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .version-label { font-size: 0.875rem; line-height: 1.4; }
  .version-badge { font-size: 0.6875rem; padding: 0.2rem 0.625rem; }
  .version-meta { font-size: 0.75rem; line-height: 1.5; }
  .version-note { font-size: 0.8125rem; line-height: 1.6; }
  .compare-card { border-radius: 12px; padding: 1.25rem 1rem; }
  .compare-card-title { font-size: 1.05rem; }

   /* Role overview cards — 1 column */
  .role-cards-grid { grid-template-columns: 1fr; gap: 0.875rem; margin-bottom: 1.75rem; }
  .role-card { padding: 1.25rem; border-radius: 10px; }
  .role-card-icon { width: 36px; height: 36px; font-size: 1.125rem; border-radius: 8px; margin-bottom: 0.625rem; }
  .role-card-name { font-size: 1.0625rem; margin-bottom: 0.375rem; }
  .role-card-tag { font-size: 0.6875rem; margin-bottom: 0.625rem; }
  .role-card-desc { font-size: 0.8375rem; line-height: 1.6; }
  .btn {font-size: 12px;}
  .colour-swatches { gap: 0.5rem;  display: flex; gap: 32px;flex-wrap: wrap;}
}

/* ============================================================
   RESPONSIVE — MOBILE XS (≤360px)
   ============================================================ */
@media (max-width: 360px) {
  .hero { padding: 2rem 0.875rem; }
  .hero h1 { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.825rem; }
  .hero-badge { font-size: 0.725rem; padding: 0.35rem 0.7rem; }
  .stat-number { font-size: 1.35rem; }
  .stat-label { font-size: 0.7rem; }

  .content { padding: 0.75rem 0.75rem 1.75rem; }
  .breadcrumb { font-size: 11px; gap: 3px; }
  .breadcrumb-separator { font-size: 11px; }

  .intro-section { padding: 1rem 0.875rem; border-radius: 10px; }
  .intro-section h2 { font-size: 1.05rem; }
  .intro-section p { font-size: 0.8375rem; }

  .content h2 { font-size: 1.15rem; }
  .content h3 { font-size: 1rem; }

  .step-card { padding: 0.875rem 0.75rem; border-radius: 10px; }
  .step-number { width: 32px; height: 32px; font-size: 1rem; border-radius: 7px; }
  .step-title { font-size: 0.9rem; }
  .step-list li { font-size: 0.8125rem; }

  .example-box { flex-direction: column; gap: 0.4rem; padding: 0.75rem; }
  .example-text { font-size: 0.8125rem; }

  .info-box { padding: 0.875rem; }
  .info-icon { width: 28px; height: 28px; min-width: 28px; font-size: 0.85rem; }
  .info-box h3 { font-size: 0.9rem; }
  .info-box p, .info-box li { font-size: 0.8rem; }

  .warning-box { padding: 0.75rem; border-radius: 8px; margin: 1rem 0; }
  .warning-icon { width: 24px; height: 24px; min-width: 24px; font-size: 0.8rem; }
  .warning-box h3 { font-size: 0.875rem; }
  .warning-box p, .warning-box li { font-size: 0.775rem; }

  .tip-card { padding: 0.875rem; border-radius: 10px; }
  .tip-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; margin-bottom: 0.7rem; }
  .tip-card h4 { font-size: 0.9rem; }
  .tip-card p { font-size: 0.8rem; }

  .faq-question { font-size: 0.875rem; }
  .faq-answer { font-size: 0.8125rem; }

  .cta-strip-text h2 { font-size: 1.1rem; }
  .btn { padding: 0.65rem 0.875rem; }

  .related-section h3 { font-size: 1rem; }
  .related-card-title { font-size: 0.85rem; }
  .related-card p, .related-card-description { font-size: 0.775rem; }

  .error-table { min-width: 440px; font-size: 0.775rem; }
  .error-table th, .error-table td { padding: 0.45rem 0.5rem; font-size: 0.75rem; }
  .error-badge { font-size: 0.65rem; }

  .section-heading h2 { font-size: 1.1rem; }
  .article-count-badge { font-size: 0.7rem; padding: 0.2rem 0.6rem; }
  .article-card { padding: 0.875rem 0.75rem; }
  .article-card-title { font-size: 0.875rem; }
  .article-card-desc { font-size: 0.775rem; }
  .also-helpful h3 { font-size: 1rem; }
  .helpful-link-text { font-size: 0.8rem; }
  .helpful-link-sub { font-size: 0.7rem; }
  .no-results { font-size: 0.875rem; padding: 2rem 0.5rem; }
  .no-results-icon { font-size: 2rem; }
  .compare-card-icon { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ============================================================
   LANDSCAPE PHONES
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { padding: 1.5rem 1.25rem; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .hero-subtitle { margin-bottom: 1rem; }
  .search-bar-wrapper { margin-top: 1rem; }
}

/* ============================================================
   TOUCH DEVICES — suppress stuck hover states
   ============================================================ */
@media (hover: none) {
  .step-card:hover,
  .tip-card:hover,
  .related-card:hover,
  .faq-item:hover,
  .article-card:hover,
  .helpful-link:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit;
  }

  .step-card:hover::before { transform: scaleY(0); }
  .article-card:hover::after { transform: scaleX(0); }

  .article-arrow { opacity: 1; transform: translateX(0); }

  .btn-white:hover,
  .btn-outline-white:hover { transform: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PAGE-SPECIFIC COMPONENTS (unique additions from batch 2)
   ============================================================ */

/* ── EXAMPLE BOX & INFO BOX VARIANTS ── */
.example-box.warning { background: #fef3c7; border-color: var(--amber); }
.example-box.info    { background: #ebf2ff; border-color: var(--blue); }
.example-box.danger  { background: #fee2e2; border-color: #ef4444; }

.info-box.warning { background: #fef3c7; border-color: var(--amber); }
.info-box.danger  { background: #fee2e2; border-color: #ef4444; }
.info-icon.warning { background: var(--amber); }
.info-icon.danger  { background: #dc2626; }

/* ── WARNING TEXT (inline variant) ── */
.warning-text { color: #991b1b; font-weight: 500; font-size: 0.9375rem; }

/* ── WARNING BOX AMBER VARIANT (overhead-profit) ── */
.warning-box--amber {
  background: #fffbeb;
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}
.warning-box--amber .warning-icon { background: var(--amber); }

/* ── FORMAT GRID (backup-your-data) ── */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.format-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.format-card.recommended { border-color: var(--blue); }
.format-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.format-card-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }

.format-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.format-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.recommended-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ── DATA TABLE (backup-your-data) ── */
.data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.data-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

.included-yes { color: var(--green); font-weight: 700; }

.included-plan {
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.8rem;
  background: #ebf2ff;
  border: 1px solid var(--blue-light);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f5ff;
  border: 1px solid var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin: 0.25rem;
}

/* ── METHOD GRID (enable-two-factor-authentication) ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.method-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.method-card.recommended { border-color: var(--blue); }
.method-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.method-card-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }

.method-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.method-card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

.method-card .recommended-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  border-radius: 0 0 6px 6px;
  margin-bottom: 0;
}

/* ── APP GRID / PILLS ── */
.app-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
}

/* ── SESSION TABLE (manage-account-access) ── */
.session-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.session-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.session-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.session-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.session-table tr:last-child td { border-bottom: none; }
.session-table tr:hover td { background: var(--surface); }

.session-status-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #047857;
  font-weight: 600;
  font-size: 0.8rem;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.session-status-active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.session-status-old {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #92400e;
  font-weight: 600;
  font-size: 0.8rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.revoke-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.revoke-btn:hover { background: #fecaca; border-color: #ef4444; }

/* ── PASSWORD RULES ── */
.password-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.password-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rule-icon {
  width: 28px;
  height: 28px;
  background: #d1fae5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — NEW COMPONENTS
   ============================================================ */
@media (max-width: 1024px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .password-rules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .format-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .password-rules { grid-template-columns: repeat(2, 1fr); }
  .session-table { font-size: 0.8rem; }
  .session-table th, .session-table td { padding: 0.6rem 0.75rem; }
  .data-table { min-width: 480px; font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .format-card { padding: 1.25rem; }
  .format-card-title { font-size: 1rem; }
  .method-card { padding: 1.25rem; }
  .method-card-title { font-size: 1rem; }
  .app-pill { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
  .password-rules { grid-template-columns: 1fr; }
  .password-rule { font-size: 0.85rem; }
  .revoke-btn { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
  .session-status-active, .session-status-old { font-size: 0.7rem; }
  .spec-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; }
}

@media (max-width: 360px) {
  .format-card { padding: 0.875rem; }
  .method-card { padding: 0.875rem; }
  .app-pill { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}
