/* =====================================================================
   SOME APPLICATIONS OF TRIGONOMETRY — Class 10 Maths Notes
   All diagrams are STATIC (no animations / no replay controls).
   Shared layout classes (.notes-page-wrap, .notes-toc, .topic-section, etc.)
   inherit from /css/notes-content.css.
   ===================================================================== */

/* Diagram Wrappers */
.trig-diagram-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 22px auto;
  max-width: 480px;
}

.trig-diagram-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.trig-diagram-caption {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* SVG Line & Geometry Elements */
.trig-ground {
  stroke: #0f172a;
  stroke-width: 2.2;
}

.trig-building {
  fill: rgba(148, 163, 184, 0.15);
  stroke: #0f172a;
  stroke-width: 2;
}

.trig-los {
  stroke: #2563eb;
  stroke-width: 2.2;
}

.trig-horizontal {
  stroke: #64748b;
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.trig-height {
  stroke: #0f172a;
  stroke-width: 2.2;
}

.trig-arc {
  fill: rgba(37, 99, 235, 0.15);
  stroke: #2563eb;
  stroke-width: 1.8;
}

.trig-arc-depression {
  fill: rgba(220, 38, 38, 0.15);
  stroke: #dc2626;
  stroke-width: 1.8;
}

.trig-sun {
  fill: #f59e0b;
  stroke: #d97706;
  stroke-width: 2;
}

.trig-sun-ray {
  stroke: #f59e0b;
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
}

.trig-shadow {
  stroke: #334155;
  stroke-width: 4;
  stroke-linecap: round;
}

.trig-dot {
  fill: #0f172a;
}

.trig-dot-accent {
  fill: #2563eb;
}

.trig-right-angle {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.5;
}

/* SVG Labels */
.trig-text {
  font-size: 13.5px;
  font-weight: 600;
  fill: #1e293b;
}

.trig-text-accent {
  font-size: 13.5px;
  font-weight: 700;
  fill: #2563eb;
}

.trig-text-red {
  font-size: 13.5px;
  font-weight: 700;
  fill: #dc2626;
}

.trig-text-muted {
  font-size: 12.5px;
  font-weight: 500;
  fill: #64748b;
}

/* Trigonometry Ratio Table */
.trig-table-wrapper {
  overflow-x: auto;
  margin: 22px 0;
}

.trig-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
  background: #ffffff;
}

.trig-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.trig-table th,
.trig-table td {
  border: 1px solid #e2e8f0;
  padding: 9px 8px;
}

.trig-table thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.trig-table tbody th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
}

.trig-table td {
  color: #334155;
  font-weight: 500;
}

.trig-table tr:hover td {
  background-color: #f8fafc;
}