/* ============================================================
   NOTES SECTION STYLES
   PIN.ca Design System Extended for Comprehensive Authority Documentation
   ============================================================ */

/* ============================================================
   NOTES SUBSECTIONS
   ============================================================ */

.notes-subsection {
  margin-bottom: 2.5rem;
}

.notes-subsection h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--cream-dark);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.3;
  position: relative;
}

.notes-subsection h2::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -2px;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.notes-subsection h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.35;
}

.notes-subsection h4 {
  margin-top: 1rem;
  margin-bottom: 0.65rem;
  color: var(--navy-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.notes-subsection h5 {
  margin-top: 0.85rem;
  margin-bottom: 0.55rem;
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ============================================================
   RECOVERY METRICS GRID
   ============================================================ */

.recovery-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(247,243,236,0.6), rgba(255,255,255,0.8));
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.metric-detail {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ============================================================
   RECOVERY DETAILS BOX
   ============================================================ */

.recovery-details {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius);
}

.recovery-details h4 {
  margin-top: 0;
  color: var(--navy);
}

.recovery-details h4:not(:first-child) {
  margin-top: 1.25rem;
}

.recovery-details p {
  margin-bottom: 0.85rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.recovery-details strong {
  color: var(--navy-dark);
  font-weight: 700;
}

/* ============================================================
   AUTHORITY CARDS
   ============================================================ */

.authority-card {
  margin: 1.75rem 0;
  padding: 1.75rem 1.85rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.authority-card:hover {
  box-shadow: var(--shadow);
}

.authority-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.authority-header h4 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.authority-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.credential {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-pill);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.authority-content p {
  margin-bottom: 0.85rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.authority-content h5 {
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
}

.authority-content ul {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.authority-content li {
  margin-bottom: 0.5rem;
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================================
   AUTHORITY LINKS
   ============================================================ */

.authority-link {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.authority-link:hover,
.authority-link:focus-visible {
  color: var(--gold);
  outline: none;
}

.authority-works {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.authority-works li {
  margin-bottom: 0.4rem;
  padding-left: 1.4rem;
  position: relative;
}

.authority-works li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-weight: 700;
}

.authority-works a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.authority-works a:hover {
  color: var(--gold);
}

/* ============================================================
   AI AUTHORITY CARDS
   ============================================================ */

.ai-authority-card {
  margin: 1.5rem 0;
  padding: 1.55rem 1.7rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(247,243,236,0.4));
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--teal-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ai-authority-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ai-authority-card h4 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.ai-authority-card h4 a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.ai-authority-card h4 a:hover {
  color: var(--teal-accent);
}

.ai-authority-card p {
  margin: 0.75rem 0 0;
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.68;
}

/* ============================================================
   LEGAL CARDS
   ============================================================ */

.legal-card {
  margin: 1.75rem 0;
  padding: 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-left-color var(--transition);
}

.legal-card:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--gold);
}

.legal-card h4 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.legal-card h4 a {
  color: var(--navy-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.legal-card h4 a:hover,
.legal-card h4 a:focus-visible {
  color: var(--gold);
  outline: none;
}

.legal-card p {
  margin: 0.75rem 0 0;
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-card p strong {
  color: var(--navy-dark);
  font-weight: 700;
}

/* ============================================================
   CONVERGENCE FRAMEWORK
   ============================================================ */

.convergence-framework {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.convergence-pillar {
  padding: 1.65rem 1.6rem;
  background: linear-gradient(135deg, var(--cream), var(--white));
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.convergence-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.convergence-pillar h4 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.convergence-pillar p {
  margin: 0.65rem 0 0;
  padding: 0;
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.6;
}

.convergence-pillar p strong {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--navy-dark);
  font-weight: 700;
}

.convergence-pillar p:first-child {
  margin-top: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
   ============================================================ */

@media (max-width: 900px) {
  .recovery-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .authority-card,
  .ai-authority-card,
  .legal-card {
    padding: 1.35rem 1.45rem;
  }

  .authority-header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
  }

  .recovery-details {
    padding: 1.35rem 1.25rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤620px)
   ============================================================ */

@media (max-width: 620px) {
  .recovery-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-card {
    padding: 1.25rem 1.1rem;
  }

  .metric-value {
    font-size: 1.4rem;
  }

  .authority-card,
  .ai-authority-card,
  .legal-card {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius);
  }

  .authority-header {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .authority-header h4,
  .legal-card h4,
  .ai-authority-card h4 {
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
  }

  .credential {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
  }

  .authority-content p,
  .ai-authority-card p,
  .legal-card p {
    font-size: 0.91rem;
  }

  .convergence-framework {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }

  .convergence-pillar {
    padding: 1.35rem 1.25rem;
  }

  .convergence-pillar h4 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
  }

  .convergence-pillar p {
    font-size: 0.86rem;
  }

  .recovery-details {
    padding: 1.25rem 1.1rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 380px) {
  .metric-card {
    padding: 1.1rem 0.95rem;
  }

  .metric-value {
    font-size: 1.25rem;
  }

  .authority-card,
  .ai-authority-card,
  .legal-card {
    padding: 1.15rem 1rem;
  }

  .authority-content h5,
  .convergence-pillar h4 {
    font-size: 0.9rem;
  }

  .metric-label,
  .credential {
    font-size: 0.68rem;
  }
}

/* ============================================================
   CALLOUT STYLES (If using in notes)
   ============================================================ */

.callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--gold-subtle);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.7;
}

.callout strong {
  color: var(--navy-dark);
  font-weight: 700;
}

.callout.info {
  background: rgba(36,54,96,0.08);
  border-left-color: var(--navy-light);
}

.callout.info strong {
  color: var(--navy);
}

.callout a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.callout a:hover,
.callout a:focus-visible {
  color: var(--gold);
  outline: none;
}

@media (max-width: 620px) {
  .callout {
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
  }
}