/* ==========================================================================
   COPIED VERBATIM from redesmere_intranet/static/css/base.css.
   Do not diverge from it. If this application needs something the design
   system does not have, add it to static/css/careers.css instead, so this
   file can be replaced wholesale when the intranet's moves on.

   Copied 10 September 2026.
   ========================================================================== */

/* ==========================================================================
   Redesmere Intranet — prototype stylesheet
   Brand tokens sampled from redesmere.com on 26 July 2026 (§4 of the brief).
   Confirm against Redesmere's actual brand guidelines before real-world use.

   No CSS framework and no webfont CDN: the whole prototype must run on a
   laptop with no network, in front of stakeholders.
   ========================================================================== */

:root {
  --rd-teal: #3b8fa3;
  --rd-teal-dark: #2f7386;
  --rd-teal-tint: #eaf3f6;
  --rd-green: #a4c51e;
  --rd-green-tint: #f2f8dd;
  /* Deep green for the masthead. The official logo carries exactly two colours
     — white and the lime above — so no dark green could be sampled from it;
     this is a hue-140 forest green chosen to sit under that lime (6.7:1) and
     to carry white text at 13.2:1. Swap it here if brand supplies the real one. */
  --rd-green-dark: #14371f;
  --rd-green-deeper: #0e2716;
  --rd-charcoal: #1d1d1d;
  --rd-muted: #5f6b6e;
  --rd-bg: #ffffff;
  --rd-surface: #fafbfb;
  --rd-border: #e0e0e0;
  --rd-red: #cc4b37;
  --rd-red-tint: #fbeeec;
  --rd-amber: #e8a93a;
  --rd-amber-tint: #fdf4e4;
  --rd-green-status: #3aa65a;
  --rd-green-status-tint: #ebf7ef;

  --rd-radius: 6px;
  --rd-gap: 1.25rem;
  --rd-shadow: 0 1px 2px rgba(29, 29, 29, 0.05);

  /* Geometric sans-serif for all UI. The live site reads as Poppins/Jost;
     these are the closest widely-installed equivalents. */
  --rd-font-ui: "Century Gothic", "Questrial", "Futura", "Avenir Next",
    "Trebuchet MS", system-ui, -apple-system, sans-serif;
  /* Transitional/slab serif — reserved for the literal word "Redesmere". */
  --rd-font-wordmark: "PT Serif", "Bitter", "Lora", Georgia, "Times New Roman",
    serif;
}

/* --- reset-ish ----------------------------------------------------------- */

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

body {
  margin: 0;
  font-family: var(--rd-font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--rd-charcoal);
  background: var(--rd-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1rem;
}

a {
  color: var(--rd-teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- the chevron motif ---------------------------------------------------
   The double chevron is the one piece of Redesmere's visual language that
   travels: it is a breadcrumb separator, a link affordance, a list bullet and
   a section marker, all from the same character. */

.rd-chev {
  color: var(--rd-green);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.rd-chev--muted {
  color: var(--rd-border);
}

/* --- masthead ------------------------------------------------------------ */

.rd-masthead {
  background: var(--rd-green-dark);
  color: #fff;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Positioning context for .rd-masthead__title, which is centred on the bar
     rather than placed in flex order — so it stays optically centred on the
     page however wide the wordmark and the user block happen to be. */
  position: relative;
}

/* Embossed prototype title. Raised rather than cut in: highlight along the top
   edge, shadow below, light source top-of-screen to match the rest of the UI. */
.rd-masthead__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--rd-font-ui);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c8dbbd;
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  /* Decorative: never intercept clicks meant for the wordmark or the user menu. */
  pointer-events: none;
  user-select: none;
}

/* Environment marker. Deliberately plain and always-on — it states what this
   deployment is and what may not be put into it, so it must not be dismissible
   and must survive printing. */
.rd-envbar {
  background: var(--rd-green-deeper);
  color: var(--rd-green);
  text-align: center;
  padding: 0.32rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.rd-wordmark {
  font-family: var(--rd-font-wordmark);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.rd-wordmark:hover {
  text-decoration: none;
}

.rd-wordmark small {
  font-family: var(--rd-font-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rd-green);
}

.rd-masthead__logo {
  height: 30px;
  width: auto;
}

.rd-masthead__spacer {
  flex: 1;
}

.rd-masthead__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.rd-masthead__user a {
  color: #fff;
}

.rd-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rd-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: none;
}

.rd-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}

.rd-role-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- primary navigation -------------------------------------------------- */

.rd-nav {
  background: #fff;
  border-bottom: 1px solid var(--rd-border);
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  /* Must stay visible so the Tooling dropdown can escape the bar. `overflow-x:
     auto` would clip it — the narrow-screen rule below restores scrolling and
     drops the menu inline instead, where clipping does not arise. */
  overflow-x: visible;
}

.rd-nav a {
  padding: 0.85rem 0.9rem;
  color: var(--rd-charcoal);
  font-size: 0.88rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.rd-nav a:hover {
  color: var(--rd-teal);
  text-decoration: none;
  background: var(--rd-teal-tint);
}

.rd-nav a.is-active {
  color: var(--rd-teal);
  border-bottom-color: var(--rd-teal);
  font-weight: 600;
}

/* --- layout -------------------------------------------------------------- */

.rd-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.rd-breadcrumb {
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-bottom: 0.75rem;
}

.rd-breadcrumb a {
  color: var(--rd-muted);
}

.rd-page-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rd-page-head h1 {
  margin: 0;
}

.rd-page-head__sub {
  color: var(--rd-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.rd-page-head__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

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

.rd-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.rd-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rd-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.rd-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: var(--rd-gap);
  align-items: start;
}

@media (max-width: 860px) {
  .rd-split {
    grid-template-columns: 1fr;
  }

  /* Not enough room between the wordmark and the user block to centre anything. */
  .rd-masthead__title {
    display: none;
  }

  .rd-envbar {
    letter-spacing: 0.12em;
  }
}

/* --- cards --------------------------------------------------------------- */

.rd-card {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow);
  overflow: hidden;
}

.rd-card__head {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rd-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rd-surface);
}

.rd-card__head h2,
.rd-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.rd-card__head .rd-card__action {
  margin-left: auto;
  font-size: 0.8rem;
}

.rd-card__body {
  padding: 1.1rem;
}

.rd-card__body--flush {
  padding: 0;
}

.rd-card__foot {
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--rd-border);
  background: var(--rd-surface);
  font-size: 0.82rem;
}

/* --- stat tiles ---------------------------------------------------------- */

.rd-stat {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-left: 4px solid var(--rd-teal);
  border-radius: var(--rd-radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--rd-shadow);
}

.rd-stat__value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.rd-stat__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rd-muted);
}

.rd-stat__note {
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-top: 0.25rem;
}

.rd-stat--green {
  border-left-color: var(--rd-green-status);
}
.rd-stat--amber {
  border-left-color: var(--rd-amber);
}
.rd-stat--red {
  border-left-color: var(--rd-red);
}
.rd-stat--accent {
  border-left-color: var(--rd-green);
}

/* --- RAG indicators ------------------------------------------------------ */

.rd-rag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.rd-rag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.rd-rag--green {
  color: var(--rd-green-status);
  background: var(--rd-green-status-tint);
}
.rd-rag--amber {
  color: #9a6b12;
  background: var(--rd-amber-tint);
}
.rd-rag--red {
  color: var(--rd-red);
  background: var(--rd-red-tint);
}
.rd-rag--grey {
  color: var(--rd-muted);
  background: #f0f2f2;
}
.rd-rag--teal {
  color: var(--rd-teal-dark);
  background: var(--rd-teal-tint);
}

.rd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.rd-dot--green {
  background: var(--rd-green-status);
}
.rd-dot--amber {
  background: var(--rd-amber);
}
.rd-dot--red {
  background: var(--rd-red);
}

/* --- progress ------------------------------------------------------------ */

.rd-progress {
  height: 8px;
  background: #eef0f0;
  border-radius: 999px;
  overflow: hidden;
}

.rd-progress__bar {
  height: 100%;
  background: var(--rd-green);
  border-radius: 999px;
}

.rd-progress__bar--amber {
  background: var(--rd-amber);
}
.rd-progress__bar--red {
  background: var(--rd-red);
}

/* --- tables -------------------------------------------------------------- */

.rd-table-wrap {
  overflow-x: auto;
}

table.rd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.rd-table th,
table.rd-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--rd-border);
  vertical-align: middle;
}

table.rd-table thead th {
  background: var(--rd-surface);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rd-muted);
  font-weight: 600;
  white-space: nowrap;
}

table.rd-table thead th a {
  color: inherit;
}

table.rd-table tbody tr:hover {
  background: var(--rd-teal-tint);
}

table.rd-table tbody tr:last-child td {
  border-bottom: none;
}

.rd-table__empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--rd-muted);
}

.rd-cell-muted {
  color: var(--rd-muted);
  font-size: 0.82rem;
}

/* --- buttons ------------------------------------------------------------- */

.rd-btn,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-teal);
  background: var(--rd-teal);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.rd-btn:hover,
.btn:hover {
  background: var(--rd-teal-dark);
  border-color: var(--rd-teal-dark);
  color: #fff;
  text-decoration: none;
}

.rd-btn--ghost {
  background: #fff;
  color: var(--rd-teal);
}

.rd-btn--ghost:hover {
  background: var(--rd-teal-tint);
  color: var(--rd-teal-dark);
}

.rd-btn--confirm {
  background: var(--rd-green);
  border-color: var(--rd-green);
  color: var(--rd-charcoal);
}

.rd-btn--confirm:hover {
  background: #93b119;
  border-color: #93b119;
  color: var(--rd-charcoal);
}

.rd-btn--sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}

.rd-btn--danger {
  background: var(--rd-red);
  border-color: var(--rd-red);
}

.rd-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- forms (crispy emits Bootstrap 5 class names; these are ours) --------- */

label,
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--rd-charcoal);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="file"],
select,
textarea,
.form-control,
.form-select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  background: #fff;
  color: var(--rd-charcoal);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rd-teal);
  box-shadow: 0 0 0 3px rgba(59, 143, 163, 0.15);
}

textarea {
  min-height: 5rem;
}

.mb-3,
.form-group {
  margin-bottom: 0.9rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-check input,
input[type="checkbox"] {
  width: auto;
}

.form-check label {
  margin: 0;
  font-weight: 400;
}

.form-text,
.helptext {
  display: block;
  font-size: 0.76rem;
  color: var(--rd-muted);
  margin-top: 0.2rem;
}

.invalid-feedback,
.errorlist,
.rd-error {
  color: var(--rd-red);
  font-size: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.asteriskField {
  color: var(--rd-red);
  margin-left: 0.15rem;
}

.rd-form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rd-border);
}

.rd-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 0.9rem 1.1rem;
  background: var(--rd-surface);
  border-bottom: 1px solid var(--rd-border);
}

.rd-filter-bar > div {
  min-width: 150px;
}

.rd-filter-bar label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rd-muted);
}

/* --- definition lists ---------------------------------------------------- */

.rd-dl {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.rd-dl dt {
  color: var(--rd-muted);
  font-size: 0.8rem;
}

.rd-dl dd {
  margin: 0;
}

.rd-redacted {
  color: var(--rd-muted);
  font-style: italic;
  font-size: 0.82rem;
}

/* --- messages / callouts ------------------------------------------------- */

.rd-messages {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.5rem;
}

.rd-msg {
  padding: 0.65rem 1rem;
  border-radius: var(--rd-radius);
  border-left: 4px solid var(--rd-teal);
  background: var(--rd-teal-tint);
  font-size: 0.88rem;
}

.rd-msg--success {
  border-left-color: var(--rd-green);
  background: var(--rd-green-tint);
}

.rd-msg--error {
  border-left-color: var(--rd-red);
  background: var(--rd-red-tint);
}

.rd-msg--warning {
  border-left-color: var(--rd-amber);
  background: var(--rd-amber-tint);
}

.rd-note {
  font-size: 0.82rem;
  color: var(--rd-muted);
  background: var(--rd-surface);
  border: 1px dashed var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 0.7rem 0.9rem;
}

/* --- empty states -------------------------------------------------------- */

.rd-empty {
  text-align: center;
  padding: 2.75rem 1.5rem;
  color: var(--rd-muted);
}

.rd-empty__icon {
  font-size: 2rem;
  color: var(--rd-border);
  letter-spacing: -0.1em;
}

.rd-empty h3 {
  color: var(--rd-charcoal);
  margin: 0.5rem 0 0.25rem;
}

/* --- misc ---------------------------------------------------------------- */

.rd-tag {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--rd-teal-tint);
  color: var(--rd-teal-dark);
  margin: 0 0.2rem 0.2rem 0;
}

.rd-tag--accent {
  background: var(--rd-green-tint);
  color: #5c7005;
}

.rd-list-chev {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rd-list-chev li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rd-border);
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.rd-list-chev li:last-child {
  border-bottom: none;
}

.rd-list-chev li::before {
  content: "\00bb";
  color: var(--rd-green);
  font-weight: 700;
  flex: none;
}

.rd-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

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

.rd-small {
  font-size: 0.82rem;
}

.rd-right {
  text-align: right;
}

.rd-nowrap {
  white-space: nowrap;
}

.rd-mt {
  margin-top: var(--rd-gap);
}

.rd-search {
  display: flex;
  gap: 0.5rem;
}

.rd-search input[type="search"] {
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
}

.rd-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  font-size: 0.82rem;
  color: var(--rd-muted);
  border-top: 1px solid var(--rd-border);
}

/* --- login --------------------------------------------------------------- */

.rd-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  background: var(--rd-charcoal);
}

@media (max-width: 780px) {
  .rd-login {
    grid-template-columns: 1fr;
  }
  .rd-login__art {
    display: none;
  }
}

.rd-login__panel {
  background: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rd-login__art {
  /* §10.1 hero. Drawn, not photographic — see static/img/login-hero.svg. */
  background-image: url("../img/login-hero.70f06835b132.svg");
  background-size: cover;
  background-position: center;
  background-color: var(--rd-charcoal);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  text-align: center;
}

.rd-login__art blockquote {
  max-width: 30ch;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
}

.rd-login__wordmark {
  font-family: var(--rd-font-wordmark);
  font-size: 2rem;
  color: var(--rd-charcoal);
  margin-bottom: 0.25rem;
}

.rd-login__sub {
  color: var(--rd-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.rd-demo-creds {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--rd-muted);
  border-top: 1px solid var(--rd-border);
  padding-top: 1rem;
}

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

.rd-demo-creds td {
  padding: 0.15rem 0.3rem 0.15rem 0;
}

.rd-demo-creds code {
  color: var(--rd-teal-dark);
}

/* --- icons ---------------------------------------------------------------
   One family, one size, colour inherited. Defined here rather than per-icon so
   changing the nav weight is a single edit. */

.rd-icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  vertical-align: -0.16em;
  color: inherit;
}

.rd-icon--lg {
  width: 1.4em;
  height: 1.4em;
}

.rd-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rd-nav a .rd-icon {
  color: var(--rd-muted);
}

.rd-nav a:hover .rd-icon,
.rd-nav a.is-active .rd-icon {
  color: var(--rd-teal);
}

.rd-nav__search {
  margin-left: auto;
}

/* --- nav dropdown (Tooling) ---------------------------------------------- */

.rd-nav__dd {
  position: relative;
  /* Flex here makes the summary fill the details box, so the item gets the
     same geometry as the sibling <a> items and sits on the same baseline. */
  display: flex;
}

.rd-nav__dd > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  color: var(--rd-charcoal);
  font-size: 0.88rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

/* Suppress the native disclosure triangle; the caret icon replaces it.
   Both selectors are needed: modern engines draw it via ::marker, older
   WebKit via ::-webkit-details-marker. */
.rd-nav__dd > summary::marker {
  content: "";
  display: none;
}

.rd-nav__dd > summary::-webkit-details-marker {
  display: none;
}

.rd-nav__dd > summary .rd-icon {
  color: var(--rd-muted);
}

.rd-nav__dd > summary:hover {
  color: var(--rd-teal);
  background: var(--rd-teal-tint);
}

.rd-nav__dd > summary:hover .rd-icon,
.rd-nav__dd > summary.is-active .rd-icon {
  color: var(--rd-teal);
}

.rd-nav__dd > summary.is-active {
  color: var(--rd-teal);
  border-bottom-color: var(--rd-teal);
  font-weight: 600;
}

/* The caret is the only moving part: it points down closed, up open. */
.rd-nav__dd > summary .rd-icon:last-child {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.15s ease;
}

.rd-nav__dd[open] > summary .rd-icon:last-child {
  transform: rotate(180deg);
}

.rd-nav__dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.09);
  padding: 0.3rem;
}

.rd-nav__dd-menu a {
  padding: 0.55rem 0.7rem;
  border-bottom: none;
  border-radius: calc(var(--rd-radius) - 2px);
}

@media (max-width: 900px) {
  /* Narrow screens scroll the bar horizontally, so the menu cannot overhang it.
     Render it inline within the strip instead. */
  .rd-nav {
    overflow-x: auto;
  }

  .rd-nav__dd-menu {
    position: static;
    flex-direction: row;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
  }
}

/* --- hero banner ---------------------------------------------------------- */

.rd-hero {
  position: relative;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  background-color: #fff;
  background-image: url("../img/hero-chevrons.cf13e00c83a5.svg");
  background-size: cover;
  background-position: right center;
  padding: 1.5rem 1.6rem;
  margin-bottom: var(--rd-gap);
  overflow: hidden;
}

.rd-hero h1 {
  margin: 0 0 0.15rem;
}

.rd-hero__sub {
  color: var(--rd-muted);
  font-size: 0.92rem;
}

.rd-hero__actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- empty-state illustrations -------------------------------------------- */

.rd-illus {
  width: 170px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto 0.35rem;
}

/* --- posts (news, notices, policies) -------------------------------------- */

.rd-post {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--rd-border);
}

.rd-post:last-child {
  border-bottom: none;
}

.rd-post:hover {
  background: var(--rd-surface);
}

.rd-post__mark {
  width: 38px;
  height: 38px;
  border-radius: var(--rd-radius);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--rd-teal-tint);
  color: var(--rd-teal);
}

.rd-post__mark .rd-icon {
  width: 20px;
  height: 20px;
}

.rd-post__mark--policy {
  background: var(--rd-green-tint);
  color: #5c7005;
}

.rd-post__mark--notice {
  background: var(--rd-amber-tint);
  color: #9a6b12;
}

.rd-post__body {
  min-width: 0;
  flex: 1;
}

.rd-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--rd-muted);
}

.rd-post__title {
  font-size: 1.05rem;
  margin: 0.3rem 0 0.25rem;
}

.rd-post__summary {
  margin: 0;
  color: var(--rd-muted);
  font-size: 0.9rem;
}

.rd-post__foot {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--rd-muted);
}

/* --- long-form reading ---------------------------------------------------- */

.rd-prose {
  max-width: 68ch;
}

.rd-prose p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
}

.rd-prose h2 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--rd-green);
  display: inline-block;
}

.rd-prose .rd-list-chev {
  margin-bottom: 1rem;
}

.rd-lede {
  font-size: 1.05rem;
  color: var(--rd-charcoal);
  border-left: 3px solid var(--rd-teal);
  padding-left: 0.9rem;
  margin-bottom: 1.2rem !important;
}

/* --- acknowledgement bar -------------------------------------------------- */

.rd-ack-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  margin-bottom: var(--rd-gap);
  border: 1px solid var(--rd-green);
  border-left-width: 4px;
  border-radius: var(--rd-radius);
  background: var(--rd-green-tint);
}

.rd-ack-bar form {
  margin-left: auto;
}

/* --- print --------------------------------------------------------------- */

@media print {
  .rd-nav,
  .rd-masthead__user,
  .rd-page-head__actions {
    display: none;
  }
}


/* --- Workforce Assistant launcher ---------------------------------------- */

