/* deg / rad / grad / turn converter - a grid of live-linked unit fields and a common-angles
   reference table. Reuses base .btn-outline; colors come from theme tokens only. */

.ang-intro { color: var(--muted); max-width: 64ch; margin: 8px 0 24px; }

/* Visual dial: ring, dashed 0-degree baseline, swept arc, rotating ray, and a readout. */
.ang-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 28px; }
.ang-dial { width: 200px; max-width: 100%; height: auto; }
.ang-dial-ring { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.ang-dial-baseline { stroke: var(--border); stroke-width: 2; stroke-dasharray: 3 5; }
.ang-dial-arc { fill: none; stroke: var(--accent); stroke-width: 4; opacity: .35; }
.ang-dial-ray { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.ang-dial-hub { fill: var(--accent); }
.ang-readout { margin: 0; color: var(--muted); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }

/* The unit fields: four across on wide screens, fewer as it narrows. */
.ang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .ang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ang-grid { grid-template-columns: 1fr; } }

.ang-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ang-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.ang-input {
    width: 100%; box-sizing: border-box; padding: 12px;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 18px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    font-variant-numeric: tabular-nums;
}
.ang-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.ang-actions { margin: 20px 0 0; }

/* Reference table. */
.ang-reference { margin-top: 32px; }
.ang-reference-title { font-size: 18px; margin: 0 0 12px; }
.ang-reference-note { color: var(--muted); font-weight: 400; font-size: 15px; }

.ang-table {
    border-collapse: collapse; width: 100%; max-width: 320px;
    font-variant-numeric: tabular-nums;
}
.ang-table th, .ang-table td {
    text-align: left; padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}
.ang-table th {
    font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 600;
}
.ang-table td { color: var(--text); }
.ang-table tbody tr:last-child td { border-bottom: 0; }
