@charset "UTF-8";
/**
 * Organizing Lab Resource Hub — Main Stylesheet (SCSS source)
 *
 * Compile with `npm run build` (or `npm run watch` while editing).
 * Output: ../css/style.css
 */
/* ==========================================================================
   Design Tokens — CSS Custom Properties + Role-Based Overrides
   ========================================================================== */
:root {
  /* Palette */
  --color-bg: #C8D4C0;
  --color-sidebar-bg: #2B4028;
  --color-accent: #ebe04d;
  --color-text: #004622;
  --color-text-inverse: #FFFFFF;
  --color-card-bg: #FFFFFF;
  --color-card-border: #E0E0D8;
  --color-tag-bg: #E8EFDF;
  --color-tag-text: #004622;
  --color-btn-primary: #004622;
  --color-btn-hover: #1A2618;
  --color-link: #004622;
  --color-link-hover: #4A6644;
  /* Sidebar */
  --sidebar-width: 20rem;
  /* Shared height: the bordered sidebar nav area and the bordered main
     content area both use this so they're always the same height. */
  --bordered-section-height: 65vh;
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  /* Typography */
  --font-display: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  /* Shadows */
  --shadow-card: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
  --shadow-sidebar: 0 0 0 rgba(0, 0, 0, 0);
  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
}

/* --- Trainer / Coach / Core Trainer --- */
body.role--trainer {
  --color-bg: #d3dbd5;
  --color-sidebar-bg: #d3dbd5;
  --color-accent: #ebe04d;
  --color-text: #1A2618;
  --color-tag-bg: #d3dbd5;
  --color-tag-text: #2B4028;
  --color-btn-primary: #2B4028;
  --color-btn-hover: #1A2618;
  --color-link: #2B4028;
}

/* --- Participant --- */
body.role--participant {
  --color-bg: #f2d0c5;
  --color-sidebar-bg: #f2d0c5;
  --color-accent: #2B4028;
  --color-text: #3A1A14;
  --color-tag-bg: #f2d0c5;
  --color-tag-text: #7A3830;
  --color-btn-primary: #C07868;
  --color-btn-hover: #A05E52;
  --color-link: #8B4840;
  --color-link-hover: #C07868;
}

/* --- Public / Anonymous --- */
body.role--public {
  --color-bg: #f4f0c0;
  --color-sidebar-bg: #f4f0c0;
  --color-accent: #ebe04d;
  --color-text: #004622;
  --color-tag-bg: #EBE04D;
  --color-tag-text: #004622;
  --color-btn-primary: #004622;
  --color-btn-hover: #1A2618;
  --color-link: #004622;
  --color-link-hover: #4A6644;
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-base);
}
body.role--participant {
  color: #004622;
}

a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

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

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

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

h4 {
  font-size: var(--text-md);
}

h5 {
  font-size: var(--text-base);
}

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

p {
  margin-bottom: var(--space-md);
}
p:last-child {
  margin-bottom: 0;
}

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

.label-caps {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Layout — Full Page Shell
   Uses CSS Grid: [ sidebar ] [ main ], main = [ header ] + [ content ]
   ========================================================================== */
.layout-page-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* The sidebar column owns layout (sticky, sizing, scroll, padding) so the
   branding block, the bordered filter group, and the external links can sit
   as siblings without a single .sidebar wrapper around all of them. */
.layout-sidebar {
  grid-column: 1;
  grid-row: 1/-1;
  width: var(--sidebar-width);
  min-height: 100vh;
  max-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
}

.layout-main {
  grid-column: 2;
  grid-row: 1/-1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.layout-content {
  flex: 1;
  padding: var(--space-xl) var(--space-xl);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
/* The .sidebar element is now a sibling of .sidebar__branding inside
   .layout-sidebar. It carries the single 2px outline and wraps the
   filter accordions, external links, and footer. Its height matches the
   bordered main content area on the right, and overflows scroll. */
.sidebar {
  position: relative;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: var(--bordered-section-height);
  overflow-y: auto;
}
.sidebar__branding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-bottom: none;
  text-align: center;
  background-color: var(--color-tag-text);
  border-radius: var(--radius-lg);
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sidebar__logo-link {
  display: block;
  margin-bottom: var(--space-xs);
}
.sidebar__logo {
  display: block;
  max-width: 12.5rem;
  width: 100%;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.sidebar {
  /* Fallback text mark if logo image is unavailable */
}
.sidebar__logo-mark {
  display: inline-block;
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-text-inverse);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
}
.sidebar__tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: white;
  line-height: 1.4;
  margin-top: var(--space-md);
  padding-inline: var(--space-lg);
}
.sidebar__section {
  /* External links pinned to bottom-area of the .sidebar wrapper, so the
     filter accordions take the remaining space and the footer sits below. */
  position: absolute;
  bottom: 3rem;
  left: 50%;
  width: 100%;
  max-width: calc(100% - 4rem);
  transform: translateX(-50%);
  margin-bottom: var(--space-lg);
  /* All section nav anchors are blue pills, centered by default */
}
.sidebar__section a {
  background-color: #5278b8;
  text-align: center;
}
.sidebar__section {
  /* External Links section overrides → dark green with letter-spacing */
}
.sidebar__section[aria-label="External links"] .sidebar__nav-link {
  background-color: #004622;
  letter-spacing: 0.5px;
}
.sidebar__section[aria-label="External links"] .sidebar__nav-link:hover, .sidebar__section[aria-label="External links"] .sidebar__nav-link:focus {
  background-color: #ebe04d;
  color: #004622;
}
.sidebar__section-label {
  display: none;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.sidebar__nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgb(235, 224, 77);
  background-color: rgb(0, 70, 34);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: normal;
  word-break: break-word;
  text-transform: uppercase;
}
.sidebar__nav-link:hover, .sidebar__nav-link:focus {
  background-color: var(--color-btn-hover);
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar__nav-link.is-active {
  background-color: #e16d46;
  color: white;
  font-weight: 700;
}
.sidebar__nav-link {
  /* Training group pills */
}
.sidebar__nav-link--group {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f8faf9;
  background-color: #004622;
  border: none;
  border-radius: var(--radius-pill);
}
.sidebar__nav-link--group:hover, .sidebar__nav-link--group:focus {
  background-color: #ebe04d;
  color: #004622;
  text-decoration: none;
}
.sidebar__nav-link {
  /* Filter shortcut links */
}
.sidebar__nav-link--filter {
  font-size: var(--text-xs);
  background-color: var(--color-tag-text);
  color: #fff;
  border: none;
  text-align: left;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  font-weight: bold;
  text-transform: uppercase;
}
.sidebar__nav-link--filter:hover {
  background-color: #ebe04d;
  color: #004622;
}
.sidebar__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: none;
  text-align: center;
}
.sidebar__footer p {
  text-transform: uppercase;
  font-size: 0.6rem;
  margin-bottom: 0 !important;
}
.sidebar__footer-powered {
  color: #004622;
  font-weight: 600;
}
.sidebar__footer-copyright {
  color: #004622;
}

/* ==========================================================================
   Participant role overrides (sidebar only — header overrides live in _header.scss)
   ========================================================================== */
body.role--participant .sidebar__branding {
  background-color: #004622;
}
body.role--participant .sidebar__filter-toggle {
  background-color: #e16d46;
  color: white;
}
body.role--participant .sidebar__filter-toggle:hover, body.role--participant .sidebar__filter-toggle:focus {
  background-color: #e16d46;
  color: #ebe04d !important;
}
body.role--participant .sidebar__nav-link--group {
  color: #FFFFFF;
}
body.role--participant .sidebar__nav-link--group:hover, body.role--participant .sidebar__nav-link--group:focus {
  background-color: #ebe04d;
  color: #004622 !important;
  text-decoration: none;
}
body.role--participant .sidebar__nav-link--locked {
  opacity: 0.2;
  cursor: not-allowed;
}
body.role--participant .sidebar__nav-link--filter {
  background-color: #004622;
  color: #fff;
}
body.role--participant .sidebar__section[aria-label="External links"] .sidebar__nav-link:hover, body.role--participant .sidebar__section[aria-label="External links"] .sidebar__nav-link:focus {
  background-color: #e16d46;
  color: #ebe04d;
}

/* ==========================================================================
   Trainer role overrides
   ========================================================================== */
body.role--trainer .sidebar__branding {
  background-color: #004622;
}
body.role--trainer .sidebar__filter-toggle:hover, body.role--trainer .sidebar__filter-toggle:focus {
  background-color: #ebe04d;
  color: #004622 !important;
}
body.role--trainer .sidebar__nav-link--filter {
  background-color: #004622;
}
body.role--trainer .sidebar__nav-link--filter:hover {
  background-color: #ebe04d !important;
  color: #004622;
}

/* --- File-type filter accordion ---
   <details>/<summary> gives us native open/close with no JS. The summary is
   styled as a pill button to match the rest of the sidebar nav. */
.sidebar__filter {
  /* Border now lives on the .sidebar wrapper, not each individual accordion. */
  margin: 0;
  margin-bottom: -0.5rem;
  /* Hide the default marker triangle on all browsers */
}
.sidebar__filter > summary {
  list-style: none;
}
.sidebar__filter > summary::-webkit-details-marker {
  display: none;
}
.sidebar__filter > summary::marker {
  content: "";
}

.sidebar__filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background-color: #004622;
  color: #ebe04d;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.sidebar__filter-toggle:hover, .sidebar__filter-toggle:focus {
  background-color: #ebe04d;
  color: #ebe04d !important;
}

.sidebar__filter-label {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar__filter-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 200ms ease;
}

.sidebar__filter[open] .sidebar__filter-chevron {
  transform: rotate(180deg);
}

.sidebar__filter-list {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 14.1vh;
  overflow-y: auto;
}

/* Anonymous/public users see blue filter toggles to match the public palette */
body.role--public .sidebar__filter-toggle {
  background-color: #5278b8;
  color: white;
}

/* Access indicator dot inside Filter Resources items.
   --access: filled yellow circle  → user has access
   --locked: outlined yellow circle → user is not a member */
.sidebar__access-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.sidebar__access-dot--access {
  background-color: white;
  box-shadow: none;
}
.sidebar__access-dot--locked {
  background-color: transparent;
  border: 1px solid #ebe04d;
  opacity: 0.55;
}

/* Locked training pills look slightly dimmed — they're still clickable
   (lands on the group page where the request-access prompt renders) */
.sidebar__nav-link--locked {
  opacity: 0.7;
}

/* ==========================================================================
   Header / Top Bar
   ========================================================================== */
.user--anonymous .site-header {
  background-color: #f4f0c0;
}

.site-header {
  background-color: transparent;
  backdrop-filter: unset;
  -webkit-backdrop-filter: unset;
  border-bottom: none;
  padding: var(--space-lg) var(--space-xl);
  padding-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 3.75rem;
}

.header__search {
  flex: 1;
  max-width: 31.25rem;
  margin: 0 auto;
  margin-left: -0.75rem;
  position: relative;
}
.header__search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 2.5rem;
  border: none;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), var(--transition-fast);
  text-transform: uppercase;
}
.header__search-input::placeholder {
  color: #A0A89C;
}
.header__search-input:focus {
  border-color: var(--color-sidebar-bg);
  box-shadow: none;
}
.header__search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #A0A89C;
  pointer-events: none;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}
.header {
  /* Round dark-green icon buttons (messages, alerts, calendar) */
}
.header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background-color: #004622;
  color: #ebe04d;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.header__icon-btn:hover, .header__icon-btn:focus {
  background-color: #EBE04D;
  color: #004622;
  text-decoration: none;
}
.header__icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
.header__icon-btn {
  /* Red notification dot (top-right) — added when icon has alerts pending */
}
.header__icon-btn--has-dot::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  right: 0.1875rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #E04A2F;
  border: 2px solid #004622;
}
.header {
  /* "PUBLIC FACING →" pill — green pill with yellow arrow circle on the right */
}
.header__public-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.3125rem 0.3125rem 0.3125rem var(--space-md);
  background-color: #004622;
  color: #ebe04d;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}
.header__public-btn:hover, .header__public-btn:focus {
  background-color: #1A2618;
  color: #ebe04d;
  text-decoration: none;
}
.header__public-btn__label {
  line-height: 1;
}
.header__public-btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ebe04d;
  line-height: 0;
}
.header__public-btn__arrow svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}
.header {
  /* Spacer for organizer header (pushes login pills to the right) */
}
.header__anon-spacer {
  flex: 1;
}
.header {
  /* Compound login pill: [lock icon] PARTICIPANTS/TRAINERS [LOGIN sub-pill] */
}
.header__login-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.25rem 0.25rem 0.25rem var(--space-sm);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}
.header__login-pill:hover, .header__login-pill:focus {
  opacity: 1;
  background-color: #ebe04d;
  color: #004622 !important;
  text-decoration: none;
}
.header__login-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background-color: #ebe04d;
  color: #004622;
  position: relative;
  left: -0.1rem;
}
.header__login-pill__icon svg {
  width: 0.875rem;
  height: 0.875rem;
}
.header__login-pill__label {
  line-height: 1;
  padding-right: var(--space-xs);
}
.header__login-pill__action {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem var(--space-md);
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  position: relative;
  right: 0.1rem;
}
.header__login-pill {
  /* Participants: dark green bg with yellow text */
}
.header__login-pill--participant {
  background-color: #004622;
  color: #ebe04d !important;
}
.header__login-pill--participant .header__login-pill__action {
  background-color: #e16d46;
  color: #FFFFFF;
}
.header__login-pill {
  /* Trainers: dark green bg, yellow text, green LOGIN pill */
}
.header__login-pill--trainer {
  background-color: #004622;
  color: #ebe04d;
}
.header__login-pill--trainer .header__login-pill__action {
  background-color: #2B6B2C;
  color: #ebe04d;
}

/* Hide trainer-only elements for non-trainers */
body:not(.role--trainer) .trainer-only {
  display: none !important;
}

/* Header focus state (global) + participant role hover overrides */
.header__icon-btn:focus,
body.role--participant .header__icon-btn:hover {
  background-color: #E16D46;
  color: #ebe04d;
}

body.role--participant .header__public-btn:hover, body.role--participant .header__public-btn:focus {
  background-color: #E16D46;
  color: #ebe04d;
}

body.role--trainer .header__public-btn:hover, body.role--trainer .header__public-btn:focus {
  background-color: #004622;
  color: white;
}

/* Hide primary local tasks (admin tabs) */
#block-organizing-lab-primary-local-tasks {
  display: none;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.content-area {
  padding: 2rem 2.5rem;
  flex: 1;
}

.content-greeting {
  margin-bottom: var(--space-xl);
}
.content-greeting__hello {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.content-greeting__hello .greeting-name {
  color: var(--color-tag-text);
}
.content-greeting__hello {
  /* Participant greeting forces dark green for both the leading text
     and the role-name highlight, overriding the role palette defaults. */
}
body.role--participant .content-greeting__hello {
  color: #004622;
}
body.role--participant .content-greeting__hello .greeting-name {
  color: #004622;
}
.content-greeting__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: rgba(26, 38, 24, 0.65);
  font-weight: 500;
  max-width: 30rem;
  /* Hide the user-name variant of the subtitle */
}
.content-greeting__subtitle.content-greeting__name {
  display: none;
}
.content-greeting__name {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

/* Drupal system messages */
.messages-list {
  margin-bottom: var(--space-lg);
}

/* Main content block — same height as the bordered sidebar nav area. */
#block-organizing-lab-content {
  border: 2px solid var(--color-text);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  height: var(--bordered-section-height);
  overflow-y: scroll;
}

/* Title row at the top of #block-organizing-lab-content describing
   the current view (training name, filter name, etc.). */
.content-block__title-wrap {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid #004622;
}

.content-block__title-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #004622;
  opacity: 0.65;
  margin: 0 0 0.25rem;
}

.content-block__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: #004622;
  margin: 0;
}

/* Admin tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}
.tabs a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.15s;
}
.tabs a:hover, .tabs a.is-active {
  background: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Resource Card Grid
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  /* Mobile-first: 2 cols → 3 → 4 as the viewport gets wider. */
}
@media (min-width: 86.25rem) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 105.625rem) {
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.resource-grid__title {
  grid-column: 1/-1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}
.resource-grid__empty {
  grid-column: 1/-1;
  color: rgba(26, 38, 24, 0.6);
  font-size: var(--text-base);
  padding: var(--space-xl) 0;
}

/* Filter heading shown on /resources/tag/* pages */
.resource-filter-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background-color: #004622;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}
.resource-filter-heading__label {
  font-weight: 500;
  color: #fff;
}
.resource-filter-heading__term {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}
.resource-filter-heading__clear {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgb(235, 224, 77);
  text-decoration: none;
  margin-left: auto;
  padding: 0.125rem var(--space-sm);
  border: 0 solid rgba(26, 38, 24, 0.2);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.resource-filter-heading__clear:hover {
  background-color: rgba(26, 38, 24, 0.08);
  color: var(--color-text);
  text-decoration: none;
}

/* ==========================================================================
   Module Detail Page (single module node view)
   The .module--<color> class sets --card-accent variables for the whole
   page, so child .resource-card paragraphs and their internals all use
   the same accent.
   ========================================================================== */
.module {
  --card-accent: #004622;
  --card-accent-hover: #1A2618;
  --card-accent-text: #ebe04d;
}
.module--green {
  --card-accent: #004622;
  --card-accent-hover: #1A2618;
  --card-accent-text: #ebe04d;
}
.module--blue {
  --card-accent: #3B6EA5;
  --card-accent-hover: #2A578A;
  --card-accent-text: #FFFFFF;
}
.module--yellow {
  --card-accent: #C8A800;
  --card-accent-hover: #9A8200;
  --card-accent-text: #FFFFFF;
}
.module--coral {
  --card-accent: #C07868;
  --card-accent-hover: #A05E52;
  --card-accent-text: #FFFFFF;
}
.module--teal {
  --card-accent: #2B6B5A;
  --card-accent-hover: #1F4F44;
  --card-accent-text: #FFFFFF;
}
.module--purple {
  --card-accent: #6B4FBB;
  --card-accent-hover: #523C92;
  --card-accent-text: #FFFFFF;
}

/* Module page resource grid */
.module-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  /* Participant role forces the dark-green branding color */
}
body.role--participant .module-title {
  color: #004622;
}

.module-description {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 43.75rem;
}

.module-resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.module-resources > div > div:first-of-type {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Paragraph resource cards on the module detail page need a bit more breathing room. */
.node--type-module .resource-card {
  min-width: 30rem;
}

/* ==========================================================================
   Resource Card Component (both the grid card and the module-page paragraph)
   ========================================================================== */
.resource-card {
  /* Accent color resolves in this priority order:
       1. .resource-card--<color> modifier on this element (grid cards)
       2. Inherited from .module--<color> parent (paragraph cards on detail page)
       3. Fallback green for safety.
     We never set --card-accent on .resource-card itself, otherwise it would
     reset the inherited value from a parent .module--<color>. */
  position: relative;
  min-width: 18rem;
  background-color: var(--color-card-bg);
  border: 2px solid var(--card-accent, #004622);
  border-top: 7px solid var(--card-accent, #004622);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.resource-card:hover {
  transform: none;
  box-shadow: none;
}
.resource-card {
  /* Color variants — set the accent token on the card itself.
     The same tokens are also defined on .module--<color> below so that
     the accent cascades down to paragraph .resource-card children on
     the module detail page. */
}
.resource-card--green {
  --card-accent: #004622;
  --card-accent-hover: #1A2618;
  --card-accent-text: #ebe04d;
}
.resource-card--blue {
  --card-accent: #3B6EA5;
  --card-accent-hover: #2A578A;
  --card-accent-text: #FFFFFF;
}
.resource-card--yellow {
  --card-accent: #C8A800;
  --card-accent-hover: #9A8200;
  --card-accent-text: #FFFFFF;
}
.resource-card--coral {
  --card-accent: #C07868;
  --card-accent-hover: #A05E52;
  --card-accent-text: #FFFFFF;
}
.resource-card--teal {
  --card-accent: #2B6B5A;
  --card-accent-hover: #1F4F44;
  --card-accent-text: #FFFFFF;
}
.resource-card--purple {
  --card-accent: #6B4FBB;
  --card-accent-hover: #523C92;
  --card-accent-text: #FFFFFF;
}
.resource-card__divider {
  border: none;
  border-top: 1px solid var(--color-card-border);
  margin: var(--space-xs) 0;
}
.resource-card__date {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(26, 38, 24, 0.5);
  text-transform: uppercase;
}
.resource-card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}
.resource-card__title a {
  color: inherit;
  text-decoration: none;
}
.resource-card__title a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}
.resource-card {
  /* Resource-section label (e.g. TRAINER NOTES) on the module detail page.
     Hardcoded to dark green for legibility on all accent backgrounds. */
}
.resource-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #004622;
  border-bottom: 2px solid #004622 !important;
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}
.resource-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}
.resource-card__content a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-accent);
  color: var(--card-accent-text);
  padding: 0.5rem 1rem;
  border-radius: 6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: background 0.15s, color 0.15s;
}
.resource-card__content a:hover {
  background: #EBE04D;
  color: #004622;
}
.resource-card__content > div > div:first-of-type {
  display: none;
}
.resource-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}
.resource-card__tag {
  display: inline-block;
  padding: 0.125rem var(--space-sm);
  background-color: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.resource-card {
  /* Dot-separated uppercase label row (card grid style) */
}
.resource-card__tag-row {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(26, 38, 24, 0.55);
  line-height: 1.4;
  margin-top: var(--space-xs);
}
.resource-card__tag-link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 38, 24, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.resource-card__tag-link:hover, .resource-card__tag-link:focus {
  color: #004622;
  text-decoration: underline;
}
.resource-card__tag-dot {
  color: rgba(26, 38, 24, 0.35);
  font-weight: 500;
}
.resource-card__description {
  font-size: var(--text-sm);
  color: rgba(26, 38, 24, 0.72);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
  /* Clamp to ~4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card {
  /* "View Resource →" button — uses the per-card accent token.
     Absolutely positioned at the bottom of the card so CTAs line up across
     a grid row regardless of varying excerpt height. */
}
.resource-card__cta {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: calc(100% - 2rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--card-accent);
  color: var(--card-accent-text);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.resource-card__cta:hover, .resource-card__cta:focus {
  background-color: #EBE04D;
  color: #004622;
  text-decoration: none;
}
.resource-card__cta:hover .resource-card__cta-arrow circle {
  fill: #fff !important;
}
.resource-card__cta-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.resource-card__cta-arrow svg {
  display: block;
  color: var(--card-accent);
}

/* ==========================================================================
   Login Page
   ========================================================================== */
/*
 * Login pages have no sidebar. The body gets role--trainer, role--participant,
 * or role--public which drives the background color via :root overrides.
 * The path--user--login body class is added automatically by Drupal.
 */
body.path--user--login--trainers {
  --color-bg: #d3ebd5;
  --color-sidebar-bg: #2B4028;
  --color-btn-primary: #2B4028;
  --color-btn-hover: #1A2618;
  --color-link: #2B4028;
}

body.path--user--login--participants {
  --color-bg: #E0C4BC;
  --color-sidebar-bg: #C07868;
  --color-btn-primary: #C07868;
  --color-btn-hover: #A05E52;
  --color-link: #8B4840;
}

body.path--user--login,
body.path--user--login--trainers,
body.path--user--login--participants,
body.path--user--register,
body.path--user--password {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl);
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  padding: var(--space-xl);
}
.login-page #block-organizing-lab-content {
  border: none;
  height: unset;
}

.login-card {
  background-color: var(--color-card-bg);
  border: 2px solid #004622;
  border-radius: var(--radius-lg);
  box-shadow: none;
  width: 100%;
  max-width: 25rem;
  padding: 1rem;
  text-align: center;
}
.login-card__logo {
  display: inline-block;
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-sidebar-bg);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.login-card__role-title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 38, 24, 0.45);
  margin-bottom: var(--space-xl);
}
.login-card .user-login-form,
.login-card form {
  text-align: left;
}
.login-card .form-item {
  margin-bottom: var(--space-md);
}
.login-card {
  /* Drupal applies title_display=invisible → renders label.visually-hidden.
     Hide the label off-screen but keep it accessible to screen readers. */
}
.login-card label,
.login-card label.visually-hidden,
.login-card .form-item__label,
.login-card .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-card input[type=text],
.login-card input[type=email],
.login-card input[type=password] {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid #004622;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #004622;
  background-color: transparent;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.login-card input[type=text]::placeholder,
.login-card input[type=email]::placeholder,
.login-card input[type=password]::placeholder {
  color: #004622;
  opacity: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.login-card input[type=text]:focus,
.login-card input[type=email]:focus,
.login-card input[type=password]:focus {
  border-color: var(--color-btn-hover);
  box-shadow: 0 0 0 2px rgba(0, 70, 34, 0.15);
}
.login-card input[type=submit],
.login-card .form-submit {
  display: block;
  width: 100%;
  padding-block: var(--space-sm);
  padding-inline: var(--space-md);
  background-color: var(--color-btn-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--space-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.login-card input[type=submit]:hover,
.login-card .form-submit:hover {
  background-color: #e16d46;
  color: #ebe04d;
}
.login-card__links {
  margin-top: 0;
  font-size: var(--text-sm);
  color: rgba(26, 38, 24, 0.55);
}
.login-card__links a {
  color: var(--color-link);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.login-card__links a:hover {
  text-decoration: underline;
}
.login-card__links .separator {
  margin: 0 var(--space-xs);
  opacity: 0.4;
}
.login-card__footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-card-border);
  font-size: var(--text-xs);
  color: rgba(26, 38, 24, 0.35);
}
.login-card__footer > p:first-of-type {
  margin-bottom: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #004622;
}
.login-card__footer > p:last-of-type {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.login-card {
  /* Badge icon inside login card */
}
.login-card__badge {
  width: 4.5rem;
  height: 5rem;
  margin: 0 auto;
}
.login-card__badge svg,
.login-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-card__badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-card {
  /* Drupal messages inside the login card */
}
.login-card .messages,
.login-card .messages--error,
.login-card .messages--warning,
.login-card .messages--status {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  list-style: none;
}
.login-card .messages--error {
  background-color: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  color: #991B1B;
}
.login-card .messages--warning {
  background-color: #FFFBEB;
  border: 1.5px solid #FCD34D;
  color: #92400E;
}
.login-card .messages--status {
  background-color: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
}
.login-card .messages a {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
}
.login-card {
  /* Suppress placeholder-space error on name field */
}
.login-card .form-item--name .form-item__error-message,
.login-card [data-drupal-selector=edit-name] ~ .form-item__error-message {
  display: none;
}
.login-card .messages li:empty {
  display: none;
}

/* Login branding header (above the white card) */
.login-branding {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--color-sidebar-bg);
  position: relative;
  top: -1rem;
}
.login-branding__logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-sm);
}
.login-branding__mark {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.login-branding__name {
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.login-branding__sub {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-top: 0.125rem;
}

/* Lift the login card slightly to balance vertical spacing */
#login-form {
  position: relative;
  top: -1rem;
}

/* Participants login page route overrides */
body.route--organizing-lab-pages-login-participants {
  background-color: #f2d0c5 !important;
  --color-bg: #f2d0c5;
  --color-sidebar-bg: #f2d0c5;
}
body.route--organizing-lab-pages-login-participants .login-branding__logo {
  max-width: 400px;
}
body.route--organizing-lab-pages-login-participants .login-card {
  border: none;
  max-width: 20rem;
}
body.route--organizing-lab-pages-login-participants .login-card .login-card__role-title {
  font-size: var(--text-2xl);
  letter-spacing: 1px;
  color: #004622;
  margin-bottom: 0;
}

/* Trainers login page route overrides */
body.route--organizing-lab-pages-login-trainers {
  background-color: #d3ebd5 !important;
  --color-bg: #d3ebd5;
  --color-sidebar-bg: #d3ebd5;
}
body.route--organizing-lab-pages-login-trainers .login-branding__logo {
  max-width: 400px;
}
body.route--organizing-lab-pages-login-trainers .login-card {
  border: none;
  max-width: 20rem;
}
body.route--organizing-lab-pages-login-trainers .login-card .login-card__role-title {
  font-size: var(--text-2xl);
  letter-spacing: 1px;
  color: #004622;
  margin-bottom: 0;
}

/* Default user login */
body.route--user-login {
  background-color: #ebe04d !important;
  --color-bg: #ebe04d;
  --color-sidebar-bg: #ebe04d;
}
body.route--user-login .login-branding__logo {
  max-width: 400px;
}
body.route--user-login .login-card {
  border: 2px solid #004622 !important;
  max-width: 20rem;
  background-color: transparent;
}
body.route--user-login .login-card .login-card__role-title {
  font-size: var(--text-2xl);
  letter-spacing: 1px;
  color: #004622;
  margin-bottom: 0;
}
body.route--user-login .login-card .login-card__footer {
  border-top: 1px solid #004622;
}

/* ==========================================================================
   Resource Hub Portal Page (/resource-hub)
   Top third = logo, middle = three cards, bottom = footer
   ========================================================================== */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2xl) var(--space-xl);
  background-color: var(--color-bg);
}

.portal-header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.portal-header__logo {
  max-width: 18rem;
  width: 100%;
  height: auto;
}

.portal-cards {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: var(--space-xl);
  align-items: center;
  justify-content: center;
}

.portal-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-xl) var(--space-lg);
  width: 24vw;
  aspect-ratio: 1/1.25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.portal-card--public {
  background-color: transparent;
  border: 2px solid #004622;
}
.portal-card--participant, .portal-card--trainer {
  border: 0 solid var(--color-card-border);
}
.portal-card__icon {
  width: 57%;
  height: auto;
}
.portal-card__icon svg,
.portal-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 0;
  margin-top: 1.25rem;
}
.portal-card__btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.portal-card__btn--outline {
  background-color: #004622;
  border: 2px solid #004622;
  color: var(--color-sidebar-bg);
}
.portal-card__btn--solid {
  color: var(--color-text-inverse);
  border: 2px solid transparent;
}
.portal-card__btn--trainer {
  background-color: #004622;
  color: #ebe04d;
}
.portal-card__btn--participant {
  background-color: #004622;
  color: #ebe04d;
}
.portal-card__btn {
  /* Unified hover for all three portal button variants */
}
.portal-card__btn--outline:hover, .portal-card__btn--participant:hover, .portal-card__btn--trainer:hover {
  background-color: #e26d47;
  color: #EBE04D;
  border-color: #e26d47;
  text-decoration: none;
  filter: none !important;
}

.portal-footer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: #2B4028;
  padding-bottom: var(--space-xl);
  font-family: "Raleway", var(--font-sans);
}
.portal-footer__powered {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}
.portal-footer__copyright {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Force the yellow public background only on the anonymous resource-hub portal. */
.route--organizing-lab-pages-resource-hub.page--resource-hub.role--public.user--anonymous {
  background-color: #ebe04d;
  --color-bg: #ebe04d;
}

/* ==========================================================================
   Request Access — Prompt on group page & Form page
   ========================================================================== */
.request-access-prompt {
  max-width: 30rem;
  margin: var(--space-2xl) auto;
  background-color: var(--color-card-bg);
  border: 0 solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.request-access-prompt__icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-tag-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sidebar-bg);
}
.request-access-prompt__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.5;
}
.request-access-prompt__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}
.request-access-prompt__training {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sidebar-bg);
  margin: 0;
}
.request-access-prompt__body {
  font-size: var(--text-base);
  color: rgba(26, 38, 24, 0.68);
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}
.request-access-prompt__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-btn-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: background-color var(--transition-fast);
}
.request-access-prompt__btn:hover, .request-access-prompt__btn:focus {
  background-color: var(--color-btn-hover);
  color: var(--color-text-inverse);
  text-decoration: none;
}

.request-access-form__intro {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-tag-bg);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  line-height: 1.6;
}
.request-access-form__note {
  font-size: var(--text-sm);
  color: rgba(26, 38, 24, 0.65);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}
.request-access-form__cancel {
  display: inline-block;
  margin-left: var(--space-md);
  font-size: var(--text-sm);
  color: rgba(26, 38, 24, 0.55);
  text-decoration: underline;
}
.request-access-form__cancel:hover {
  color: var(--color-text);
}

/* ==========================================================================
   File Type Tag Page — View Toggle & Flat File List
   ========================================================================== */
.view-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.view-toggle__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(26, 38, 24, 0.55);
  margin-right: var(--space-xs);
}
.view-toggle__btn {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 1.25rem;
  border: 2px solid #004622;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #004622;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.view-toggle__btn:hover {
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  text-decoration: none;
}
.view-toggle__btn--active {
  background: #004622;
  color: #ebe04d;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: #ffffff;
  border: 0 solid rgba(0, 0, 0, 0.09);
  border-left: 20px solid var(--card-accent, var(--color-sidebar-bg));
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}
.file-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  flex: 1;
  min-width: 0;
}
.file-list__type-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: white !important;
  background: var(--card-accent, rgb(82, 120, 184));
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.4375rem;
  width: fit-content;
}
.file-list__module-context {
  font-size: var(--text-sm);
  color: rgba(26, 38, 24, 0.55);
}
.file-list__module-link {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}
.file-list__module-link:hover {
  text-decoration: underline;
}
.file-list__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.125rem;
  background: var(--card-accent, var(--color-sidebar-bg));
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.file-list__link:hover {
  background: #EBE04D;
  color: #004622;
  text-decoration: none;
}
.file-list__arrow {
  position: relative;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.file-list__arrow svg {
  display: block;
  color: var(--card-accent, var(--color-btn-primary));
}

/* ==========================================================================
   Calendar Page (/calendar)
   ========================================================================== */
.calendar-wrap {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.calendar-header__left {
  flex: 1;
}
.calendar-header__month {
  display: inline-block;
  background: #004622;
  color: #F9FBFA;
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.07em;
  padding: 0.375rem 1.125rem;
  border-radius: 1.25rem;
}
.calendar-header__nav {
  display: flex;
  gap: var(--space-sm);
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: #004622;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.calendar-nav-btn:hover {
  background: #EBE04D;
  color: #004622;
  text-decoration: none;
}

.calendar-grid {
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
}
.calendar-grid__headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-grid__header-cell {
  padding: 0.5rem 0.375rem;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(26, 38, 24, 0.4);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.calendar-grid__header-cell:last-child {
  border-right: none;
}
.calendar-grid__body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-cell {
  min-height: 5.625rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calendar-cell:nth-child(7n) {
  border-right: none;
}
.calendar-cell--empty {
  background: rgba(0, 0, 0, 0.015);
  min-height: 5.625rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.calendar-cell--empty:nth-child(7n) {
  border-right: none;
}
.calendar-cell__events {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}
.calendar-cell__date {
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(26, 38, 24, 0.38);
  align-self: flex-start;
  margin-top: var(--space-xs);
  line-height: 1;
}

.calendar-event {
  display: block;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.calendar-event:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #ffffff;
}
.calendar-event--green {
  background-color: #2B4028;
}
.calendar-event--blue {
  background-color: #3B52CC;
}
.calendar-event--coral {
  background-color: #C07868;
}
.calendar-event--teal {
  background-color: #2B6B5A;
}
.calendar-event--purple {
  background-color: #6B4FBB;
}
.calendar-event--yellow {
  background-color: #9A8F00;
}

@media (max-width: 900px) {
  .calendar-cell,
  .calendar-cell--empty {
    min-height: 3.75rem;
  }
  .calendar-event {
    font-size: 0.5625rem;
    padding: 0.0625rem 0.25rem;
  }
}
/* ==========================================================================
   Client Guide Page (/client-guide)
   ========================================================================== */
.guide {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  padding-inline: var(--space-2xl);
  background-color: white;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-lg);
  color: var(--color-text);
}
.guide__header {
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-card-border);
  padding-bottom: var(--space-lg);
}
.guide__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link);
  margin: 0 0 var(--space-sm);
  opacity: 0.7;
}
.guide__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
}
.guide__subtitle {
  font-size: var(--text-md);
  margin: 0;
  opacity: 0.8;
}
.guide__toc {
  background: var(--color-tag-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.guide__toc-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 var(--space-sm);
}
.guide__toc-list {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: var(--space-xl);
}
.guide__toc-list li {
  margin-bottom: var(--space-xs);
  break-inside: avoid;
}
.guide__toc-list a {
  color: var(--color-link);
  text-decoration: none;
  font-size: var(--text-sm);
}
.guide__toc-list a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}
.guide__section {
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-card-border);
}
.guide__section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 0 var(--space-md);
}
.guide__subsection-title {
  font-size: var(--text-md);
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
}
.guide__steps {
  margin: 0 0 var(--space-md);
  padding-left: 1.5rem;
}
.guide__steps li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.guide__list {
  margin: 0 0 var(--space-md);
  padding-left: 1.5rem;
}
.guide__list li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.guide__list--nested {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}
.guide__list--colors {
  list-style: none;
  padding-left: 0;
}
.guide__list--colors li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.guide__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}
.guide__table th,
.guide__table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-card-border);
  vertical-align: top;
}
.guide__table thead th {
  background: var(--color-tag-bg);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guide__table tbody tr:nth-child(even) {
  background: #f9f9f7;
}
.guide__table--access td:not(:first-child),
.guide__table--access th:not(:first-child) {
  text-align: center;
}
.guide__yes {
  color: #2a7a3b;
  font-weight: 700;
}
.guide__no {
  color: #9b3a2c;
  opacity: 0.7;
}
.guide__callout {
  background: #eef4e8;
  border-left: 4px solid var(--color-link);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.guide__callout--warning {
  background: #fdf6e3;
  border-left-color: #b8860b;
}
.guide__color-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.guide__color-dot--green {
  background-color: #4A7C59;
}
.guide__color-dot--coral {
  background-color: #C07868;
}
.guide__color-dot--blue {
  background-color: #3B6EA5;
}
.guide__color-dot--teal {
  background-color: #2B6B5A;
}
.guide__color-dot--purple {
  background-color: #6B4FBB;
}
.guide__color-dot--yellow {
  background-color: #9A8F00;
}

@media (max-width: 640px) {
  .guide__toc-list {
    columns: 1;
  }
  .guide__table {
    font-size: var(--text-xs);
  }
  .guide__table th,
  .guide__table td {
    padding: var(--space-xs) var(--space-sm);
  }
}
/* ==========================================================================
   Utilities
   ========================================================================== */
/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-sidebar-bg);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   Global Responsive Breakpoints
   ========================================================================== */
/* Resource grid column count is now defined mobile-first in _resource-grid.scss
   (2 cols by default, 3 above 1380px, 4 above 1690px). */
/* Small Tablet / Large Phone: max-width 768px */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }
  .layout-page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .layout-sidebar {
    grid-column: 1;
    grid-row: 2;
  }
  .layout-main {
    grid-column: 1;
    grid-row: 1;
  }
  .sidebar {
    width: 100%;
    min-height: unset;
    max-height: unset;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  .sidebar__branding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-bottom: none;
    text-align: center;
    background-color: var(--color-tag-text);
    border-radius: var(--radius-lg);
    min-height: 11.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .sidebar__footer {
    display: none;
  }
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  .header__search {
    max-width: 100%;
  }
  .content-area {
    padding: var(--space-md);
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
}
/* Phone: max-width 480px */
@media (max-width: 480px) {
  .content-greeting__hello {
    font-size: var(--text-xl);
  }
  .site-header {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .header__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/*
 * Scratchpad for quick CSS while iterating in the IDE.
 * Anything written here is automatically merged into the proper component
 * partial (and this file emptied) on the next compile-and-push cycle.
 */
