/* Reusable UI components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-primary:active { background: var(--color-accent-strong); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-secondary:hover { border-color: var(--color-accent-strong); color: var(--color-accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-surface-hover); }

.btn-danger {
  background: transparent;
  border-color: var(--color-error);
  color: var(--color-error);
}
.btn-danger:hover { background: var(--color-error-bg); }

.btn-block { width: 100%; }
.btn-sm { padding: var(--space-2) var(--space-4); min-height: 36px; font-size: var(--font-size-xs); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Buttons on dark sections (footer, CTA banners) */
.section-dark .btn-secondary { border-color: var(--color-dark-border); color: var(--color-dark-text); }
.section-dark .btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.section-dark .btn-ghost { color: var(--color-dark-text-muted); }
.section-dark .btn-ghost:hover { color: var(--color-dark-text); background: var(--color-dark-surface-hover); }

/* Cards */
/* One shared hover treatment across every card type (.card, .stat-card,
   .report-card, .project-card): border tint + soft elevation, no transform -
   most .card usages are static content containers, and content that jumps
   under the cursor reads as glitchy rather than premium. */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-md);
}

.card-title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.card-compact { padding: var(--space-3); }

.rule-edit summary {
  cursor: pointer;
  list-style: none;
}
.rule-edit summary::-webkit-details-marker { display: none; }
.rule-edit-panel {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.card-grid > * { min-width: 0; }

/* Eyebrow label (small uppercase kicker above a heading) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
}
.section-dark .eyebrow { color: var(--color-dark-text-faint); }

/* Numbered process step badge */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

/* Summary stat card */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}
.stat-card .stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
}
.stat-card .stat-value.accent { color: var(--color-accent-strong); }
/* Denser variant for text-heavy stat values (route names, authority names) */
.stat-card .stat-value.compact { font-size: var(--font-size-lg); }

/* Progress bar (e.g. submission readiness score) */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-muted), var(--color-accent-strong));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

/* Report modules */
.report-module { margin-bottom: var(--space-6); }
.report-module-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.report-module-header h2 { margin: 0; }
.report-module-tag {
  font-size: var(--font-size-xs);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}
.risk-matrix td.risk-matrix-note { white-space: normal; color: var(--color-text-muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-error { background: var(--color-error-bg); color: var(--color-error); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-neutral { background: var(--color-bg-elevated); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* Alerts */
.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}
.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }
.alert-error { background: var(--color-error-bg); border-color: var(--color-error); color: var(--color-error); }
.alert-info { background: var(--color-info-bg); border-color: var(--color-info); color: var(--color-info); }

/* Progress indicator (wizard steps) - numbered circle above a coloured
   track, driven purely by the is-complete/is-current/is-skipped classes
   assessments.js already toggles on each <li>; no markup change needed. */
.wizard-progress {
  counter-reset: wizard-step;
  display: flex;
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  gap: var(--space-2);
  overflow-x: auto;
}
.wizard-progress li {
  position: relative;
  flex: 1;
  min-width: 90px;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-faint);
  padding: 34px var(--space-1) var(--space-3);
  border-bottom: 3px solid var(--color-border);
}
.wizard-progress li::before {
  counter-increment: wizard-step;
  content: counter(wizard-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wizard-progress li.is-complete {
  color: var(--color-accent-strong);
  border-bottom-color: var(--color-accent);
}
.wizard-progress li.is-complete::before {
  content: "\2713";
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.wizard-progress li.is-current {
  color: var(--color-text);
  border-bottom-color: var(--color-accent-strong);
  font-weight: 600;
}
.wizard-progress li.is-current::before {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong);
}
/* Steps with no questions relevant to the chosen proposal are skipped */
.wizard-progress li.is-skipped {
  opacity: 0.35;
  text-decoration: line-through;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--color-text-muted);
}
.empty-state h3 { color: var(--color-text); }

/* Loading */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--color-border-strong); }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 37%, var(--color-surface) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* Locked state */
.locked-panel {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
}
.locked-panel .lock-icon {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

/* Credit balance pill */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  /* accent-text, not accent-strong: this is a text colour, and
     accent-strong is tuned for fills, borders and focus rings where the
     3:1 graphical threshold applies rather than 4.5:1. */
  color: var(--color-accent-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 100;
}
/* Author class rules beat the UA stylesheet's [hidden]{display:none} at equal
   specificity, so without this the modal would stay visible even when the
   hidden attribute is set. This raises specificity for the hidden state. */
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 480px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
th, td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
th {
  color: var(--color-text-muted);
  font-weight: 600;
  background: var(--color-bg-elevated);
}
tr:last-child td { border-bottom: none; }

/* Flash messages (server-rendered one-shot notices, app/Templates/alerts.php).
   Rendered inline at the top of the page content; alerts inside get the
   standard .alert styling plus a dismiss button and auto-dismiss (app.js). */
.flash-container { margin-bottom: var(--space-5); }
.flash-container:empty { display: none; }
.flash-container .alert { position: relative; padding-right: var(--space-7); }
.alert-dismiss {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  color: inherit;
  font-size: var(--font-size-lg);
  line-height: 1;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  opacity: 0.7;
}
.alert-dismiss:hover { opacity: 1; }

/* Spinner inside a button (loading state on generate/regenerate actions) */
.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: currentColor;
  border-top-color: transparent;
}

/* Wizard step entrance transition - subtle fade/slide when moving between
   steps; fully disabled under prefers-reduced-motion via base.css's global
   reduced-motion override.

   backwards, NOT both. "both" keeps filling the final keyframe after the
   animation ends, and a filled transform - even the identity one this
   animation lands on - still makes the step a containing block, which
   silently breaks position:sticky inside it (the mobile Back/Next bar).
   "backwards" only applies the opening frame before the animation starts,
   which is all this effect needs; the closing frame is already the step's
   natural state. */
.wizard-step:not([hidden]) {
  animation: step-in 220ms ease backwards;
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Choice cards (e.g. Planning Statement "how would you like to start?") */
.choice-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  cursor: pointer;
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}
.choice-card:hover:not(:disabled) {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.choice-card.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.choice-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.choice-card .choice-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}
.choice-card .choice-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Radio variant (e.g. new-project "what type of project is this?"). The
   card is a <label> wrapping a real radio, so selection state comes from
   :checked rather than a JS-toggled class - it keeps working with
   JavaScript off, and arrow-key navigation is the browser's own. */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.choice-cards .choice-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  margin: 0;
}
.choice-cards .choice-card input[type="radio"] {
  margin-top: 0.2em;
  flex-shrink: 0;
}
.choice-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.choice-cards .choice-card:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
/* The focus ring belongs on the card, not the hidden-ish radio, so keyboard
   users see the whole target. */
.choice-cards .choice-card:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Resolve panel - the actions offered on one unresolved review item,
   shared by the Planning policy review and the Building Regulations
   review (app/Templates/resolve-panel.php). */
.resolve-todo {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-sm);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-3);
}
.resolve-summary-accent,
.resolve-summary-muted {
  cursor: pointer;
  font-weight: 600;
}
.resolve-summary-accent { color: var(--color-accent-text); }
.resolve-summary-muted { color: var(--color-text-muted); }

/* Uploaded drawings/decision documents list (project page) */
.drawing-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}
.drawing-list-item:last-child { border-bottom: none; }
.drawing-list-item:hover { background: var(--color-surface-hover); }
.drawing-list-item > * { min-width: 0; }
.drawing-list-item > span { overflow-wrap: anywhere; }

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: var(--space-4) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.accordion-panel {
  padding-bottom: var(--space-4);
  color: var(--color-text-muted);
}
.accordion-panel[hidden] { display: none; }

/* ---- Cookie consent banner ----------------------------------------
   Only rendered when analytics is configured. Sits above everything so
   it cannot be obscured by a sticky footer or the mobile tab bar, and
   respects the safe-area inset so it clears the iOS home indicator. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgb(0 0 0 / 0.10);
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.cookie-banner-title {
  margin: 0 0 var(--space-1);
  font-weight: 600;
}
.cookie-banner-text {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 70ch;
}
/* Equal weight on both buttons. Making "Accept" the obvious one and
   hiding the refusal is the dark pattern the ICO calls out, and consent
   collected that way is not consent. */
.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-banner-actions .btn { white-space: nowrap; }

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* Presence dot - the "someone is here" marker on the admin dashboard.
   Colour alone never carries the meaning: the label beside it says
   "Online" and the count says how many. */
.presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--color-success, #16a34a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success, #16a34a) 22%, transparent);
  vertical-align: baseline;
}

/* Smaller sibling, for a dot sitting inside a table cell next to a
   timestamp rather than heading a stat card. Same rule about colour: the
   words "Online now" are always beside it, so nobody has to see green to
   read the row. */
.admin-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--color-success, #16a34a);
}

/* The stamp over the relative form in one cell, so a column of them stays
   scannable without the two running together on one line. */
.admin-lastactive { display: flex; flex-direction: column; gap: 1px; }
.admin-lastactive-rel { font-size: 0.85em; color: var(--color-text-muted); }

/* ---------------------------------------------------------------------
   Welcome tour
   A centred dialog rather than a spotlight pointing at page elements:
   the sections it describes are not all on the page it opens over, and
   anchored positions do not survive a phone layout.
   --------------------------------------------------------------------- */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-text, #111) 55%, transparent);
  overflow-y: auto;
}
.tour-overlay[hidden] { display: none; }

.tour-dialog {
  width: min(560px, 100%);
  margin: auto;
  padding: var(--space-6);
}

.tour-progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.tour-progress-dot {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: var(--color-hair, #e5e5e5);
  transition: background 0.2s ease;
}
.tour-progress-dot.is-current { background: var(--color-accent, #f59e0b); }

.tour-eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tour-heading { margin: 0 0 var(--space-3); text-wrap: balance; }
.tour-body { margin: 0 0 var(--space-4); max-width: 60ch; }
/* The step is focused when it changes, so it needs a visible ring only
   from the keyboard - not a permanent outline around the text. */
.tour-step:focus { outline: none; }
.tour-step:focus-visible { outline: 2px solid var(--color-focus, currentColor); outline-offset: 6px; }

.tour-link { font-weight: 600; }

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-hair, #e5e5e5);
}
.tour-actions-right { display: flex; gap: var(--space-2); }
.tour-actions .btn { min-height: 44px; }

@media (max-width: 480px) {
  .tour-dialog { padding: var(--space-5); }
  /* Stacked, full-width targets rather than three buttons fighting for
     one row on a narrow screen. */
  .tour-actions { flex-direction: column-reverse; align-items: stretch; }
  .tour-actions-right { flex-direction: column-reverse; }
  .tour-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Council standards list (public /authority/<slug> pages)

   The figure leads and the explanation follows it, rather than the two
   sitting in table columns: these sentences run to twenty words, and in a
   table the number - the entire reason someone opened the page - is what
   gets pushed off the side on a phone.
   --------------------------------------------------------------------- */
.authority-standards { margin: 0; }
.authority-standards dt {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-text, var(--color-text));
}
.authority-standards dd {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border);
}
.authority-standards dd:last-child { border-bottom: none; margin-bottom: 0; }

/* Side by side once there is room for the figure to sit in its own
   column and still leave the sentence a readable measure. */
@media (min-width: 700px) {
  .authority-standards { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: var(--space-4); }
  .authority-standards dt { padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
  .authority-standards dt:last-of-type { border-bottom: none; }
}

/* A button that reads as a link. For actions that belong inside a sentence
   - "New to ArchLens? Take the tour" - where a full button would claim more
   weight than the action deserves. It is a <button> because it performs an
   action rather than navigating, and it should look like neither a form
   control nor a primary call to action. */
.btn-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--color-accent-text, var(--color-accent));
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover { color: var(--color-accent-strong, var(--color-accent)); }
.btn-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
