/* =============================================================================
   snap — StateMedia Platform stylesheet
   -----------------------------------------------------------------------------
   One hand-written file, shared by apps/public-site and apps/admin-portal.
   No framework, no build step, no purge pass: the whole thing is a few tens of
   kilobytes and is cached with an immutable, versioned URL.

   Conventions
     * BEM-ish class names (block__element--modifier)
     * every colour, radius and space is a custom property, defined once
     * light and dark are both first-class, driven by prefers-color-scheme
     * font stacks include Sinhala and Tamil fallbacks BEFORE the generic
       family — Sri Lankan users overwhelmingly read si/ta, and a default
       system stack renders both as tofu on several platforms
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */

:root {
  /* Font stacks. Sinhala and Tamil faces are listed first so that they win for
     the characters they cover; Latin characters fall through to the system UI
     face, which keeps English text native-looking on every platform. */
  --font-sans:
    'Noto Sans Sinhala', 'Iskoola Pota', 'Noto Sans Tamil', 'Latha', 'Nirmala UI',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-serif:
    'Noto Serif Sinhala', 'Noto Serif Tamil', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — fluid, capped, so a 1440px desktop is not a wall of huge text. */
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);

  --leading-tight: 1.25;
  --leading-normal: 1.6;
  /* Sinhala and Tamil have tall ascenders and deep descenders; body copy needs
     more leading than a Latin-only site to avoid clipped glyphs. */
  --leading-relaxed: 1.75;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --container: 76rem;
  --measure: 68ch;

  --border-width: 1px;
  --focus-width: 3px;

  /* Brand palette — a restrained state-institution blue with a maroon accent
     drawn from the national flag. */
  /* The national flag: a maroon field bordered in gold, with saffron and green
     panels. Maroon carries the brand; gold is reserved for the rules and the
     emblem so it stays an accent rather than a wash. The flag's own gold
     (#ffb700) fails contrast as text on white, so text uses the darker step and
     the pure hue is kept for decoration only. */
  --brand-900: #45091c;
  --brand-800: #660f2a;
  --brand-700: #8d153a;  /* flag maroon */
  --brand-600: #a52749;
  --brand-500: #bc3d5e;
  --brand-100: #f7dde4;
  --brand-050: #fdf4f7;

  /* Flag hues, used exactly as the flag uses them. */
  --flag-maroon: #8d153a;
  --flag-gold: #ffb700;
  --flag-green: #00534e;
  --flag-saffron: #eb7400;

  /* Gold, darkened for legibility. --flag-gold above is the decorative hue. */
  --accent-700: #7a5600;
  --accent-500: #a37300;
  --accent-100: #fff2cf;

  --success-700: #00403c;
  --success-500: #00534e;  /* flag green */
  --success-100: #dcf4e4;

  --warning-700: #8a4400;
  --warning-500: #eb7400;  /* flag saffron */
  --warning-100: #fbeed2;

  --danger-700: #7f1d1d;
  --danger-500: #c0392b;
  --danger-100: #fbe0dd;

  --grey-900: #16191d;
  --grey-800: #24282e;
  --grey-700: #3a4049;
  --grey-600: #565e6b;
  --grey-500: #767f8c;
  --grey-400: #a3abb6;
  --grey-300: #cdd3da;
  --grey-200: #e3e7ec;
  --grey-100: #f1f3f6;
  --grey-050: #f8f9fb;
  --white: #ffffff;

  /* Semantic tokens — light theme. Only these are used below, so switching to
     dark is a matter of redefining nine variables. */
  --surface: var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--grey-050);
  --surface-inverse: var(--brand-900);
  --text: var(--grey-900);
  --text-muted: var(--grey-600);
  --text-inverse: var(--white);
  --border: var(--grey-300);
  --border-strong: var(--grey-400);
  --link: var(--brand-700);
  --link-hover: var(--brand-900);
  --focus: #ffbf47;
  --shadow: 0 1px 2px rgb(11 37 69 / 8%), 0 4px 12px rgb(11 37 69 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #12161c;
    --surface-raised: #1a1f27;
    --surface-sunken: #0d1116;
    --surface-inverse: #05080d;
    --text: #e8ecf1;
    --text-muted: #a8b2bf;
    --text-inverse: #ffffff;
    --border: #333b46;
    --border-strong: #4a5462;
    --link: #7fb4ea;
    --link-hover: #a9cef5;
    --brand-100: #17334f;
    --brand-050: #16202c;
    --accent-100: #43191a;
    --success-100: #14301f;
    --warning-100: #3a2a09;
    --danger-100: #3d1a18;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 30%);
  }
}

/* ---------------------------------------------------------------------------
   2. Reset and base
   ------------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Sinhala and Tamil need the extra leading; scoping it to the language avoids
   loosening English pages unnecessarily. */
:lang(si),
:lang(ta) {
  line-height: var(--leading-relaxed);
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  border-top: var(--border-width) solid var(--border);
  margin-block: var(--space-6);
}

/* ---------------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.site-main {
  display: block;
  padding-block: var(--space-6) var(--space-10);
  min-height: 60vh;
}

.site-main:focus {
  outline: none;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-block-start: var(--space-4);
}

.stack > * + * {
  margin-block-start: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr);
    gap: var(--space-8);
  }
}

/* ---------------------------------------------------------------------------
   4. Skip link
   ------------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: -100%;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--focus);
  color: var(--grey-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  inset-block-start: 0;
}

/* ---------------------------------------------------------------------------
   5. Header and navigation
   ------------------------------------------------------------------------ */

.site-header {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-block-end: 4px solid var(--accent-500);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.site-brand {
  color: var(--text-inverse);
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
  line-height: var(--leading-tight);
}

.site-brand:hover {
  color: var(--text-inverse);
  text-decoration: underline;
}

.site-header__toggle {
  margin-inline-start: auto;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  color: var(--text-inverse);
  border: var(--border-width) solid rgb(255 255 255 / 40%);
  border-radius: var(--radius);
  cursor: pointer;
}

.site-header__aside {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-inline-start: auto;
}

.site-account {
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 85%);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  list-style: none;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  padding-block: var(--space-2);
  color: rgb(255 255 255 / 88%);
  text-decoration: none;
  border-block-end: 3px solid transparent;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text-inverse);
  border-block-end-color: rgb(255 255 255 / 60%);
}

.site-nav__link.is-current {
  color: var(--text-inverse);
  font-weight: 600;
  border-block-end-color: var(--accent-500);
}

/* Small screens: the toggle button reveals the nav. Without JavaScript the
   [hidden] attribute is never set, so the menu is simply always visible. */
@media (max-width: 47.99rem) {
  .site-header__toggle {
    display: inline-block;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    border-block-end: var(--border-width) solid rgb(255 255 255 / 15%);
  }
}

@media (min-width: 48rem) {
  .site-header__toggle {
    display: none;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }
}

/* ---------------------------------------------------------------------------
   6. Language switcher
   ------------------------------------------------------------------------ */

.language-switcher__list {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
}

.language-switcher__link,
.language-switcher__current {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  text-decoration: none;
}

.language-switcher__link {
  color: rgb(255 255 255 / 85%);
  border: var(--border-width) solid rgb(255 255 255 / 30%);
}

.language-switcher__link:hover {
  color: var(--text-inverse);
  background: rgb(255 255 255 / 12%);
}

.language-switcher__current {
  background: var(--white);
  color: var(--brand-900);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   7. Breadcrumbs
   ------------------------------------------------------------------------ */

.breadcrumbs {
  margin-block-end: var(--space-5);
  font-size: var(--text-sm);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin-inline-end: var(--space-2);
  color: var(--text-muted);
}

.breadcrumbs__current {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   8. Flash messages
   ------------------------------------------------------------------------ */

.flash {
  display: grid;
  gap: var(--space-3);
  margin-block-end: var(--space-5);
}

.flash__item {
  position: relative;
  padding: var(--space-4) var(--space-8) var(--space-4) var(--space-4);
  border: var(--border-width) solid var(--border);
  border-inline-start: 5px solid var(--grey-500);
  border-radius: var(--radius);
  background: var(--surface-sunken);
}

.flash__item--success {
  border-inline-start-color: var(--success-500);
  background: var(--success-100);
}

.flash__item--error {
  border-inline-start-color: var(--danger-500);
  background: var(--danger-100);
}

.flash__item--warning {
  border-inline-start-color: var(--warning-500);
  background: var(--warning-100);
}

.flash__item--info {
  border-inline-start-color: var(--brand-500);
  background: var(--brand-100);
}

.flash__title {
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flash__dismiss {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
}

.flash__dismiss:hover {
  background: rgb(0 0 0 / 8%);
}

/* ---------------------------------------------------------------------------
   9. Error summary and form validation
   ------------------------------------------------------------------------ */

.error-summary {
  margin-block-end: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 4px solid var(--danger-500);
  border-radius: var(--radius);
  background: var(--surface);
}

.error-summary__title {
  font-size: var(--text-xl);
  color: var(--danger-700);
}

.error-summary__intro {
  margin-block-start: var(--space-2);
  color: var(--text-muted);
}

.error-summary__list {
  margin-block-start: var(--space-3);
  padding-inline-start: var(--space-5);
}

.error-summary__item a {
  color: var(--danger-700);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   10. Forms
   ------------------------------------------------------------------------ */

.form {
  max-width: 44rem;
}

.form__group {
  margin-block-end: var(--space-5);
}

.form__label {
  display: block;
  margin-block-end: var(--space-1);
  font-weight: 600;
}

.form__optional,
.form__hint {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

.form__hint {
  margin-block-end: var(--space-2);
}

.form__control {
  width: 100%;
  padding: var(--space-3);
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
}

.form__control:focus-visible {
  border-color: var(--brand-600);
}

.form__control[aria-invalid='true'] {
  border-color: var(--danger-500);
}

.form__error {
  display: block;
  margin-block-start: var(--space-1);
  color: var(--danger-700);
  font-weight: 600;
  font-size: var(--text-sm);
}

.form__counter {
  display: block;
  margin-block-start: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.form__counter.is-over {
  color: var(--danger-700);
  font-weight: 600;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
}

.form__preview {
  margin-block-start: var(--space-3);
  max-width: 14rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   11. Buttons
   ------------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  min-height: 2.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--brand-700);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-800);
  color: var(--white);
}

.button--secondary {
  background: transparent;
  border-color: var(--brand-700);
  color: var(--link);
}

.button--secondary:hover {
  background: var(--brand-050);
  color: var(--link-hover);
}

.button--danger {
  background: var(--danger-500);
}

.button--danger:hover {
  background: var(--danger-700);
}

.button--quiet {
  background: transparent;
  color: var(--link);
  padding-inline: var(--space-2);
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   12. Status badges
   ------------------------------------------------------------------------ */

.status-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: var(--border-width) solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--neutral {
  background: var(--grey-100);
  color: var(--grey-800);
  border-color: var(--grey-300);
}

.status-badge--info {
  background: var(--brand-100);
  color: var(--brand-900);
  border-color: var(--brand-500);
}

.status-badge--success {
  background: var(--success-100);
  color: var(--success-700);
  border-color: var(--success-500);
}

.status-badge--warning {
  background: var(--warning-100);
  color: var(--warning-700);
  border-color: var(--warning-500);
}

.status-badge--danger {
  background: var(--danger-100);
  color: var(--danger-700);
  border-color: var(--danger-500);
}

/* ---------------------------------------------------------------------------
   13. Cards, lists and tables
   ------------------------------------------------------------------------ */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card__meta {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.card__title {
  font-size: var(--text-lg);
}

.card__title a {
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-3);
  text-align: start;
  border-block-end: var(--border-width) solid var(--border);
  vertical-align: top;
}

.table th {
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table tbody tr:hover {
  background: var(--surface-sunken);
}

/* ---------------------------------------------------------------------------
   14. Empty state
   ------------------------------------------------------------------------ */

.empty-state {
  padding: var(--space-8) var(--space-5);
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.empty-state__title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.empty-state__body {
  margin-block-start: var(--space-2);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   15. Pagination
   ------------------------------------------------------------------------ */

.pagination {
  margin-block-start: var(--space-6);
}

.pagination__summary {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-block-end: var(--space-3);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.pagination__link {
  display: inline-block;
  min-width: 2.5rem;
  padding: var(--space-2) var(--space-3);
  text-align: center;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}

.pagination__link:hover {
  background: var(--surface-sunken);
}

.pagination__link.is-current {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--white);
  font-weight: 700;
}

.pagination__link.is-disabled {
  color: var(--text-muted);
  border-style: dashed;
}

/* ---------------------------------------------------------------------------
   16. Article and press-card presentation
   ------------------------------------------------------------------------ */

.article__header {
  margin-block-end: var(--space-6);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.article__summary {
  margin-block-start: var(--space-4);
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.article__body {
  max-width: var(--measure);
  font-size: var(--text-lg);
}

.article__body > * + * {
  margin-block-start: var(--space-4);
}

.article__notice {
  padding: var(--space-4);
  border-inline-start: 5px solid var(--warning-500);
  background: var(--warning-100);
  border-radius: var(--radius);
}

.press-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

@media (min-width: 40rem) {
  .press-card {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.press-card__photo {
  width: 100%;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border);
}

.press-card__verdict {
  font-size: var(--text-xl);
  font-weight: 700;
}

.press-card__verdict--valid {
  color: var(--success-700);
}

.press-card__verdict--invalid {
  color: var(--danger-700);
}

.press-card__privacy {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.definition-list {
  display: grid;
  gap: var(--space-1) var(--space-4);
}

@media (min-width: 30rem) {
  .definition-list {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

.definition-list dt {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.definition-list dd {
  margin: 0;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------------ */

.site-footer {
  margin-block-start: var(--space-10);
  padding-block: var(--space-6);
  background: var(--surface-inverse);
  color: rgb(255 255 255 / 82%);
  font-size: var(--text-sm);
}

.site-footer a {
  color: rgb(255 255 255 / 92%);
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin-block-end: var(--space-4);
}

.site-footer__reference {
  margin-block-start: var(--space-2);
  color: rgb(255 255 255 / 55%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.site-footer__credit {
  margin-block-start: var(--space-3);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 60%);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
   18. Utilities
   ------------------------------------------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: var(--text-sm);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--surface-sunken);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  text-decoration: none;
}

/* Elements only meaningful with JavaScript are hidden until it upgrades them. */
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------------------
   19. Print — a press card verification result is printed at counters
   ------------------------------------------------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .language-switcher,
  .pagination,
  .flash,
  .skip-link,
  .form__actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    word-break: break-all;
  }

  .press-card,
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* ---------------------------------------------------------------------------
   20. Forced colours (Windows high contrast)
   ------------------------------------------------------------------------ */

@media (forced-colors: active) {
  .status-badge,
  .button,
  .pagination__link {
    border: 1px solid currentColor;
  }
}

/* ---------------------------------------------------------------------------
   Masthead: emblem, flag rule, language selector
   --------------------------------------------------------------------------- */

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.site-brand__logo {
  /* Fixed box so the header cannot reflow while the emblem loads. */
  flex: 0 0 auto;
  /* The emblem is portrait (846x1200 at source), so the box follows its aspect
     ratio rather than forcing it square. */
  width: 34px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 40rem) {
  .site-brand__logo { width: 26px; height: 36px; }
}

/* The flag's gold border and its saffron/green panels, as a hairline under the
   masthead. Decorative only — aria-hidden equivalent, since it carries no
   information a reader needs. */
.site-header {
  border-bottom: 3px solid var(--flag-gold);
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--flag-saffron) 0 50%,
    var(--flag-green) 50% 100%
  );
}

/* ---- Language selector ---------------------------------------------------- */

.language-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* The label is read by assistive technology and shown on wide screens; the
   select itself is self-evident beside the flag rule. */
.language-switcher__label {
  font-size: var(--text-sm);
  color: var(--grey-600);
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .language-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.language-switcher__select {
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border: var(--border-width) solid var(--grey-400);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--grey-900);
  /* 44px minimum touch target. */
  min-height: 2.75rem;
}

.language-switcher__select:focus-visible {
  outline: var(--focus-width) solid var(--flag-maroon);
  outline-offset: 2px;
}

.language-switcher__go {
  font: inherit;
  font-size: var(--text-sm);
  min-height: 2.75rem;
  padding: var(--space-1) var(--space-3);
  border: var(--border-width) solid var(--brand-700);
  border-radius: var(--radius-sm);
  background: var(--brand-700);
  color: #fff;
  cursor: pointer;
}

/* Hidden once progressive.js wires change-to-submit. Without JavaScript the
   attribute is never set and the button stays visible, so the selector still
   works. */
.language-switcher[data-enhanced='true'] .language-switcher__go {
  display: none;
}

/* ===========================================================================
   Direction A — "The record of the nation"
   ---------------------------------------------------------------------------
   The gazette identity, appended as a layer over the base stylesheet: the
   state serif for display, Archivo for interface, and the press-pass portal
   landing. Sinhala and Tamil faces are self-hosted alongside the Latin ones so
   nothing loads from a third-party origin.
   ======================================================================== */

@font-face {
  font-family: 'Newsreader';
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/Newsreader-latin-200_800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('fonts/Newsreader-latin-200_800-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/Archivo-latin-100_900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif Sinhala';
  font-weight: 100 900; font-display: swap;
  src: url('fonts/NotoSerifSinhala-sinhala-100_900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Sinhala';
  font-weight: 100 900; font-display: swap;
  src: url('fonts/NotoSansSinhala-sinhala-100_900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif Tamil';
  font-weight: 100 900; font-display: swap;
  src: url('fonts/NotoSerifTamil-tamil-100_900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Tamil';
  font-weight: 100 900; font-display: swap;
  src: url('fonts/NotoSansTamil-tamil-100_900-normal.woff2') format('woff2');
}

:root {
  --font-sans:
    'Archivo', 'Noto Sans Sinhala', 'Noto Sans Tamil', 'Nirmala UI',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif:
    'Newsreader', 'Noto Serif Sinhala', 'Noto Serif Tamil', Georgia,
    'Times New Roman', serif;
  --dgi-paper: #f7f4ee;
  --dgi-maroon: var(--brand-700, #8d153a);
  --dgi-maroon-deep: var(--brand-900, #45091c);
  --dgi-gold: var(--flag-gold, #ffb700);
  --dgi-gold-ink: var(--accent-700, #7a5600);
  --dgi-green: var(--flag-green, #00534e);
}

/* Gazette elevation: paper ground, serif headings, a maroon rule under the
   masthead and a gold hairline on section heads. */
body.site { background: var(--dgi-paper); }
h1, h2, h3, .page-title, .article__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.site-header { border-block-end: 3px solid var(--dgi-maroon); }
.site-brand__name { font-family: var(--font-serif); font-size: 1.25rem; }

/* --- The press-pass portal landing ------------------------------------- */

.portal-hero {
  position: relative;
  margin: calc(var(--space-6, 2rem) * -1) calc(50% - 50vw) 0;
  padding: 4rem calc(50vw - 50%) 3.5rem;
  background:
    radial-gradient(120% 90% at 12% 0%, #5c0e26 0%, var(--dgi-maroon-deep) 46%, #2c0512 100%);
  color: var(--dgi-paper);
  overflow: hidden;
}
.portal-hero__inner { max-width: var(--container, 76rem); margin-inline: auto; }
.portal-hero__kicker {
  margin: 0 0 0.75rem; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dgi-gold);
}
.portal-hero__title {
  margin: 0; color: var(--dgi-paper);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1.02;
  letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance;
}
.portal-hero__rule {
  border: 0; height: 1px; margin: 1.5rem 0;
  background: linear-gradient(90deg, var(--dgi-gold) 0%, rgba(255,183,0,0) 70%);
}
.portal-hero__intro {
  margin: 0; max-width: 54ch; font-family: var(--font-serif); font-weight: 300;
  font-size: 1.2rem; line-height: 1.6;
  color: color-mix(in srgb, var(--dgi-paper) 84%, transparent);
}

.portal-services {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem; margin-block: 2.5rem;
}
.portal-service {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 2rem 1.75rem;
  background: #fff; border: 1px solid var(--border, #ddd6ca);
  border-block-start: 3px solid var(--dgi-maroon); border-radius: 2px;
  text-decoration: none; color: inherit;
  transition: transform 240ms cubic-bezier(.22,1,.36,1),
              box-shadow 240ms cubic-bezier(.22,1,.36,1);
}
.portal-service--verify { border-block-start-color: var(--dgi-green); }
.portal-service--account { border-block-start-color: var(--accent-500, #a37300); }
.portal-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgb(20 19 18 / 8%), 0 8px 24px rgb(20 19 18 / 10%);
  text-decoration: none;
}
.portal-service__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem; color: var(--dgi-gold-ink); line-height: 1.15;
  padding-top: 0.28rem; flex: none;
}
.portal-service__text { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 auto; min-width: 0; }
.portal-service__name {
  font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.15;
  color: var(--text, #141312);
}
.portal-service__desc {
  font-size: 0.95rem; line-height: 1.6; color: var(--text-muted, #6b645c);
}
.portal-service__cta {
  align-self: flex-start; margin-top: 0.35rem; color: var(--dgi-maroon);
  display: inline-flex; align-items: center;
}

@media (max-width: 48rem) {
  .portal-services { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  body.site { background: var(--surface, #12161c); }
  .portal-service { background: var(--surface-raised, #1a1f27); }
  .portal-service__name { color: var(--text, #e8ecf1); }
}

/* --- Forms, wizard and verification -------------------------------------
   The apply wizard and the verify page use a .field / .wizard-* / .verify-*
   vocabulary that the base stylesheet never defined, so these controls were
   unstyled. Styled here in the Direction A aesthetic: labels above inputs,
   generous spacing, a gold focus ring, gazette rules. Scoped to the classes
   themselves so the shared .form* controls (admin portal) are untouched. */

.wizard__intro,
.page-intro {
  max-width: 60ch;
  margin-block: 0 1.75rem;
  color: var(--text-muted, #6b645c);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wizard-steps {
  margin-block-end: 2rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--dgi-gold);
}
.wizard-steps__counter {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dgi-maroon);
}
.wizard-steps__list {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  margin: 0; padding: 0; list-style: none;   /* kills the double "1. 1." */
  counter-reset: none;
}
.wizard-steps__item { list-style: none; }
.wizard-steps__label {
  font-size: 0.9375rem; color: var(--text-muted, #6b645c); text-decoration: none;
}
.wizard-steps__item.is-current .wizard-steps__label {
  color: var(--dgi-maroon); font-weight: 600;
}
.wizard-steps__item.is-complete .wizard-steps__label { color: var(--text, #141312); }

.wizard-form,
.verify-form { max-width: 32rem; }

.field { margin-block-end: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field__label { font-weight: 600; font-size: 0.9375rem; }
.field__hint {
  margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted, #6b645c);
}
.field__error {
  margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--danger-500, #c0392b);
}
.field__input,
.field__select {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.75rem;
  font: inherit; color: var(--text, #141312);
  background: #fff; border: 1px solid var(--border-strong, #a3abb6);
  border-radius: 3px;
}
.field__input:focus,
.field__select:focus {
  outline: 3px solid var(--dgi-gold); outline-offset: 1px;
  border-color: var(--dgi-maroon);
}
.field--error .field__input,
.field--error .field__select { border-color: var(--danger-500, #c0392b); }

.wizard-form__actions { margin-block-start: 2rem; }

/* Verification result */
.verify-result { margin-block-start: 2rem; max-width: 40rem; }
.verify-result__panel {
  padding: 1.5rem 1.75rem; border-radius: 2px;
  border: 1px solid var(--border, #ddd6ca);
  border-inline-start: 4px solid var(--dgi-maroon);
  background: var(--surface-sunken, #efe9df);
}
.verify-result__panel--valid { border-inline-start-color: var(--dgi-green); }
.verify-result__panel--invalid { border-inline-start-color: var(--danger-500, #c0392b); }
.verify-result__title {
  margin: 0 0 0.5rem; font-family: var(--font-serif); font-size: 1.5rem;
}
.verify-result__verdict { font-weight: 600; }
.verify-result__checked,
.verify-result__privacy {
  font-size: 0.8125rem; color: var(--text-muted, #6b645c);
}
.verify-result__details { margin-block: 1rem 0; line-height: 1.6; }
.verify-result__photograph { max-width: 12rem; border-radius: 3px; margin-block-start: 1rem; }

@media (prefers-color-scheme: dark) {
  .field__input, .field__select { background: var(--surface-raised, #1a1f27); }
  .verify-result__panel { background: var(--surface-sunken, #0d1116); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-service { transition: none; }
}

/* Radio group — applicant category. Each option is a tappable row with a real
   radio control, gold focus ring, maroon selected state. */
.field--radios { border: 0; padding: 0; margin-inline: 0; }
.field--radios .field__label { margin-block-end: 0.5rem; padding: 0; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 2.75rem; padding: 0.6rem 0.9rem;
  border: 1px solid var(--border, #ddd6ca); border-radius: 3px;
  background: #fff; cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.radio:hover { border-color: var(--border-strong, #a3abb6); }
.radio__input {
  width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin: 0;
  accent-color: var(--dgi-maroon);
}
.radio__input:focus-visible { outline: 3px solid var(--dgi-gold); outline-offset: 2px; }
.radio__label { font-size: 0.9375rem; line-height: 1.4; }
.radio:has(.radio__input:checked) {
  border-color: var(--dgi-maroon);
  background: color-mix(in srgb, var(--dgi-maroon) 6%, #fff);
}
@media (prefers-color-scheme: dark) {
  .radio { background: var(--surface-raised, #1a1f27); }
  .radio:has(.radio__input:checked) {
    background: color-mix(in srgb, var(--dgi-maroon) 20%, var(--surface-raised, #1a1f27));
  }
}

/* --- Admin: organisation directory -------------------------------------- */
.directory-page__actions { margin-block: 1.25rem; }
.directory-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.directory-node {
  border: 1px solid var(--border, #ddd6ca); border-inline-start: 3px solid var(--dgi-maroon, #8d153a);
  border-radius: 2px; background: var(--surface-raised, #fff);
}
.directory-node__head {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.875rem 1.125rem;
}
.directory-node__name { font-family: var(--font-serif); font-size: 1.125rem; }
.directory-node__id, .directory-child__id {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.8125rem; color: var(--text-muted, #6b645c);
}
.directory-node__inactive {
  margin-inline-start: 0.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--warning-700, #8a4400);
}
.directory-node__controls { margin-inline-start: auto; display: flex; align-items: center; gap: 0.5rem; }
.directory-node__controls .directory-delete { display: inline; margin: 0; }
.directory-children {
  list-style: none; margin: 0; padding: 0 1.125rem 0.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.directory-child {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.5rem 0; border-block-start: 1px dotted var(--border, #ddd6ca);
}
.directory-child__name { font-size: 0.95rem; }
.button--small { min-height: 2rem; padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.button--danger { background: var(--danger-500, #c0392b); color: #fff; border: 0; }
.button--danger:hover { background: var(--danger-700, #7f1d1d); }

/* Admin: organisation registry table */
.registry-table { width: 100%; border-collapse: collapse; margin-block-start: 1rem; }
.registry-table th, .registry-table td {
  text-align: start; padding: 0.6rem 0.75rem; border-block-end: 1px solid var(--border, #ddd6ca);
  vertical-align: top;
}
.registry-table th {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted, #6b645c);
}
.registry-table__name { display: block; font-weight: 600; }
.registry-table__actions { display: flex; gap: 0.5rem; white-space: nowrap; }
.registry-table__actions .directory-delete { display: inline; margin: 0; }

/* Applications register: the "everything that has come in" table. */
.registry-page__count { margin-block: 0.75rem 0; color: var(--ink-soft, #5b5750); font-size: 0.9rem; }
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-sunk, #efe9df);
  border: 1px solid var(--line, #d9d2c6);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Settings landing: a grid of management cards. */
.settings-grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.settings-card__link { display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--border, #ddd6ca);
  border-radius: 4px; text-decoration: none; color: inherit;
  transition: box-shadow 200ms, transform 200ms; }
.settings-card__link:hover { box-shadow: 0 6px 18px rgb(20 19 18 / 8%); transform: translateY(-2px); text-decoration: none; }
.settings-card__title { font-family: var(--font-serif, serif); font-size: 1.15rem; color: var(--text, #141312); }
.settings-card__desc { font-size: 0.9rem; color: var(--text-muted, #6b645c); line-height: 1.5; }
@media (prefers-color-scheme: dark) { .settings-card__link { background: var(--surface-raised, #1a1f27); } }

/* Applicant self-service document replacement on the status page. */
.application-status__documents { margin-block-start: 2rem; }
.application-status__hint { color: var(--muted-600, #555); margin-block: 0.25rem 1rem; }
.doc-replace-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.doc-replace {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--border-200, #e2e6ea); border-radius: 6px;
}
.doc-replace__name { font-weight: 600; }
.doc-replace__form { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.doc-replace__file { max-width: 14rem; font-size: 0.85rem; }
.notice--success {
  border-inline-start: 4px solid var(--dgi-green, #2e7d32);
  background: #f1f8f2; padding: 0.75rem 1rem; border-radius: 4px; margin-block: 1rem;
}

/* Applicant account area: dashboard, stage badges, approval detail. */
.account-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.account-header__logout { display: inline-flex; align-items: center; gap: 0.75rem; }
.account-header__name { font-weight: 600; }
.account-alt { margin-top: 1rem; }
.account-table td { vertical-align: middle; }
.stage-badge {
  display: inline-block; padding: 0.15rem 0.5rem; margin: 0.1rem 0.15rem 0.1rem 0; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.stage-badge--approved { background: #e6f4ea; color: #1e7e34; border-color: #bfe3c8; }
.stage-badge--pending  { background: #fff6e5; color: #a8710a; border-color: #f2dca6; }
.stage-badge--rejected { background: #fdecea; color: #c0392b; border-color: #f4c7c1; }
.stage-badge--skipped  { background: #eef1f4; color: #6b7280; border-color: #dfe3e8; }
.approval-stages { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.75rem; }
.approval-stage {
  border: 1px solid var(--border-200, #e2e6ea); border-inline-start-width: 4px; border-radius: 6px; padding: 0.85rem 1rem;
}
.approval-stage--approved { border-inline-start-color: #1e7e34; }
.approval-stage--pending  { border-inline-start-color: #a8710a; }
.approval-stage--rejected { border-inline-start-color: #c0392b; }
.approval-stage--skipped  { border-inline-start-color: #9ca3af; }
.approval-stage__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.approval-stage__name { font-weight: 600; }
.approval-stage__reason { margin: 0.35rem 0 0; }
.account-detail__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Applicant sign-in / register card ---------------------------------- */
.page-account.auth-page .container { max-width: 34rem; }
.auth {
  max-width: 30rem; margin-inline: auto; margin-block: clamp(1.5rem, 4vw, 3rem);
}
.auth__card {
  background: #fff; border: 1px solid var(--border, #ddd6ca);
  border-block-start: 3px solid var(--dgi-maroon); border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 2px rgb(20 19 18 / 6%), 0 10px 30px rgb(20 19 18 / 8%);
}
.auth__brand { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 1.25rem; }
.auth__emblem { width: 34px; height: 48px; flex: none; }
.auth__kicker {
  font-size: var(--text-xs, 0.78rem); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted, #6b645c); margin: 0;
}
.auth__title {
  font-family: var(--font-serif); font-size: var(--text-2xl); line-height: 1.15;
  color: var(--text, #141312); margin: 0 0 0.35rem;
}
.auth__intro { color: var(--text-muted, #6b645c); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.5rem; }
.auth__submit { width: 100%; justify-content: center; margin-block-start: 0.5rem; }
.auth__alt { margin-block-start: 1.5rem; text-align: center; font-size: 0.925rem; }
.auth__divider { border: 0; border-top: 1px solid var(--border, #ddd6ca); margin-block: 1.5rem; }

@media (prefers-color-scheme: dark) {
  .auth__card { background: var(--surface-raised, #1a1f27); }
  .auth__title { color: var(--text, #e8ecf1); }
}
.button--danger { background: #c0392b; border-color: #c0392b; color: #fff; }

/* "view only" marker on a nav item the actor may read but not act on. */
.site-nav__badge {
  display: inline-block;
  margin-inline-start: 0.35em;
  padding: 0.05em 0.4em;
  border-radius: 0.5rem;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgb(0 0 0 / 8%);
  color: inherit;
  opacity: 0.75;
  vertical-align: middle;
}
.site-nav__link.is-readonly { opacity: 0.85; }
