/* Product brand and inherited layout aliases; canonical AVDS 5 tokens own
   neutral colors, typography, focus, spacing and control geometry. */
html[data-site="ortcom"] { --primary:224 60% 22%; --primary-foreground:0 0% 100%; --ring:224 60% 22%; --chart-1:44 51% 54%; --av-radius:var(--radius); --font-body:var(--font-sans); --font-heading:var(--font-display); --text:hsl(var(--foreground)); --text-1:hsl(var(--foreground)); --text-2:hsl(var(--muted-foreground)); --text-3:hsl(var(--muted-foreground)); --bg:hsl(var(--background)); --bg-offset:hsl(var(--muted)); --bg-section:hsl(var(--muted)); --bg-warm:hsl(var(--card)); --surface-card:hsl(var(--card)); --border-light:hsl(var(--card-border)); --brand:hsl(var(--primary)); --brand-hover:hsl(var(--primary)/.9); --brand-light:hsl(var(--primary)/.08); --ortcom-shell-background:224 60% 22%; }
html.dark[data-site="ortcom"] { --primary:224 50% 72%; --primary-foreground:224 60% 12%; --ring:224 50% 72%; --chart-1:44 60% 65%; }
body { color:hsl(var(--foreground)); background:hsl(var(--background)); font-family:var(--font-sans); }
.site-header,.topic-nav,.site-footer { background:hsl(var(--ortcom-shell-background)); color:white; }
.site-header a,.site-footer a,.topic-nav a { color:inherit; }
.logo-title,.footer-logo-title { font-family:var(--font-display); }
/* One face for every language; brand-lockup.js fits the translated subtitle
   after fonts load. Compact header visibility remains inherited. */
html[data-site="ortcom"] .site-header :is(.logo-title, .logo-sub) { color:hsl(var(--ortcom-shell-foreground)); }
.logo-sub { font-size:.8rem; }
.lite-footer-brand > span { min-width:0; }
.topic-nav-scroll { gap:.5rem; }
.topic-pill { min-height:44px; display:inline-flex; align-items:center; }
.topic-nav .topic-pill.active { color:hsl(var(--ortcom-shell-foreground)); }
.hp-hero { margin-top:var(--avds-space-section); }
.hp-map-strip .container { display:block; }
.hp-map-strip .container > * { max-width:100%; }
.article-body,.static-page-body { line-height:var(--avds-type-reading-line-height); }
@media(max-width:480px) { .topic-nav-scroll { gap:.25rem; } .topic-pill { padding-inline:.75rem; } }

html[data-site="ortcom"] { --font-serif:var(--font-display); --ortcom-shell-foreground:0 0% 100%; --ortcom-ds-border:hsl(var(--border)); --ortcom-ds-border-soft:hsl(var(--border)/.7); }

.original-language-note { color:hsl(var(--muted-foreground)); font-size:.875rem; margin-block:0 1rem; }

.rd-layout.rd-layout--lite { grid-template-columns:minmax(0,1fr); }

/* Keep the preserved responsive header heights and matching menu offsets.
   Shell fades must use the actual navy surface in both color themes. */
.topic-nav { --primary:var(--ortcom-shell-background); }
.lite-footer { --ring:0 0% 100%; background:hsl(var(--ortcom-shell-background)); color:white; margin-top:2rem; padding-block:2rem 1rem; }
.lite-footer a { color:inherit; text-decoration:none; }
.lite-footer a:hover { text-decoration:underline; text-underline-offset:.2em; }
.lite-footer :is(a,summary,button):focus-visible { outline:2px solid white; outline-offset:3px; border-radius:var(--radius-sm); }
.lite-footer-identity { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; padding-bottom:1.5rem; }
.lite-footer-brand { display:flex; align-items:center; gap:.85rem; max-width:31rem; }
.lite-footer-brand img { width:32px; height:56px; object-fit:contain; flex-shrink:0; }
.lite-footer-brand > span { display:grid; gap:.25rem; }
.lite-footer-brand strong { font-family:var(--font-display); font-size:1rem; font-weight:600; line-height:1.4; }
.lite-footer-brand > span > span { color:hsl(0 0% 100% / .78); font-size:.8rem; line-height:1.45; }
.lite-footer-contact { font-style:normal; font-size:.875rem; line-height:1.5; }
.lite-footer-contact p { margin:0; }
.lite-footer-contact > div { display:flex; flex-wrap:wrap; column-gap:1.25rem; }
.lite-footer-contact a { display:inline-flex; align-items:center; min-height:44px; }
.lite-footer-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; column-gap:2rem; row-gap:1rem; }
.lite-footer-group { min-width:0; }
.lite-footer-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-height:44px; margin:0 0 .25rem; cursor:pointer; list-style:none; }
.lite-footer-heading::-webkit-details-marker { display:none; }
.lite-footer-heading h2 { margin:0; font-family:var(--font-display); font-size:1rem; font-weight:600; line-height:1.4; }
.lite-footer-heading svg { flex-shrink:0; transition:transform .15s ease; }
.lite-footer-group[open] .lite-footer-heading svg { transform:rotate(180deg); }
.lite-footer-links { list-style:none; padding:0; margin:0; }
.lite-footer-links a { display:flex; align-items:center; min-height:44px; padding-block:.4rem; font-size:.875rem; line-height:1.45; overflow-wrap:anywhere; }
.lite-footer-socials { display:flex; flex-wrap:wrap; gap:0 1.25rem; margin-top:1rem; }
.lite-footer-socials a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; font-size:.875rem; font-weight:600; }
.lite-footer-bottom { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1.5rem; border-top:1px solid hsl(0 0% 100% / .2); margin-top:.75rem; padding-top:.75rem; font-size:.8rem; }
.lite-footer-bottom p { margin:0; flex:1 1 18rem; line-height:1.5; }
.lite-footer-bottom-links { display:flex; flex-wrap:wrap; gap:0 1rem; }
.lite-footer-bottom-links a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
.lite-footer-bottom .theme-toggle { width:44px; height:44px; margin-inline-start:auto; flex-shrink:0; }
html[data-site="ortcom"] #about-director { scroll-margin-top:9rem; }
@media(max-width:1023px) { .lite-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .lite-footer-identity { flex-wrap:wrap; gap:.75rem; } }
@media(max-width:639px) {
 .lite-footer { padding-top:1.5rem; }
 .lite-footer-grid { grid-template-columns:minmax(0,1fr); gap:0; }
 .lite-footer-group { border-top:1px solid hsl(0 0% 100% / .18); }
 .lite-footer-heading { min-height:48px; margin:0; }
 .lite-footer-links { padding-bottom:.75rem; }
 .lite-footer-socials { column-gap:1rem; }
 .lite-footer-bottom { gap:.5rem 1rem; }
 .lite-footer-bottom p { flex-basis:100%; }
}
@media(prefers-reduced-motion:reduce) { .lite-footer-heading svg { transition:none; } }
.social-float { opacity:1; background:hsl(var(--card)); border:1px solid hsl(var(--border)); max-height:calc(100dvh - 2rem); overflow-y:auto; }
.social-float a { width:44px; height:44px; flex-shrink:0; color:hsl(var(--foreground)); background:hsl(var(--card)); border-color:hsl(var(--border)); font-size:.75rem; font-weight:700; }
.social-float a svg { width:18px; height:18px; }
.social-float a:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }
.social-float a:hover { background:hsl(var(--accent)); color:hsl(var(--accent-foreground)); border-color:hsl(var(--ring)); }

/* AVDS controls need a 44px target plus breathing room. One declared row
   height also owns the fixed menu position; the shell has a 1px border. */
@media(max-width:1024px) {
  html[data-site="ortcom"] { --ortcom-lite-header-row:52px; --ortcom-main-nav-top:calc(var(--ortcom-lite-header-row) + 1px); }
  .site-header .header-inner { height:var(--ortcom-lite-header-row); min-height:var(--ortcom-lite-header-row); }
}
.page-header--av, .pb-hero { --foreground:0 0% 100%; --muted-foreground:0 0% 85%; }
.about-page__action { display:inline-flex; align-items:center; gap:.35rem; }

/* Existing editorial text-card variant when no verified image is available.
   Keep the actual text and controls, without an image-sized empty panel. */
html[data-site="ortcom"] .av-home-layout--text .hp-hero-card--text.av-home-hero { height:20rem !important; min-height:20rem !important; }
html[data-site="ortcom"] .av-home-layout--text .hp-hero-card--text .av-home-hero__content { padding-block:4.25rem 3rem; }
@media(min-width:1025px) { .av-home-layout--text .av-home-feed { height:20rem !important; min-height:20rem !important; } }

/* Preserve breadcrumb → heading order and compact filter composition. */
.cat-header > .container { display:block; }
.cat-header .av-breadcrumbs-wrap { margin-bottom:.5rem; }
.category-page .filter-form { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(8.5rem,.6fr) minmax(8.5rem,.6fr) auto; align-items:end; gap:.75rem; }
.category-page .filter-form .av-field { display:flex; flex-direction:column; align-items:stretch; width:auto; min-width:0; max-width:100%; }
.category-page .filter-actions-row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
@media(max-width:1100px) { .category-page .filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); } .category-page .filter-actions-row { grid-column:1 / -1; justify-content:flex-end; } }
@media(max-width:639px) { .category-page .filter-group--search,.category-page .filter-group--select { grid-column:1 / -1; } }

/* Inline legal references must remain distinguishable from prose. */
.legal-page-body a,
.article-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal-page-body a:hover, .article-body a:hover { text-decoration-thickness: 2px; }
.legal-page-body a:focus-visible, .article-body a:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* AVDS Card positions itself relatively: clear the old sticky offset so
   adjacent article cards retain their normal-flow gap instead of overlapping. */
html[data-site="ortcom"] .article-sidebar .sidebar-block--sticky { top: auto; }

.live-video-provider-link { margin-block: 1rem; }

/* A press-release title is prose inside AVDS Card. The old padded line clamp
   exposes a partial extra line; let the actual heading determine its height. */
html[data-site="ortcom"] .media-article-card .card-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}


/* These existing PillTabs wrap; the inherited horizontal-scroll fade would
   become a visible tile at the end of a wrapped row. */
html[data-site="ortcom"] .search-type-tabs::after,
html[data-site="ortcom"] .search-category-tabs::after { content: none; }

/* Match the result-grid separation for the adjacent empty-state Alert. */
html[data-site="ortcom"] .search-filters + .av-alert { margin-block-start: 1.5rem; }

/* Regional hero keeps a navy surface in both themes: use the AVDS inverse
   text context for its breadcrumb links and current label. */
.rd-hero { --foreground:0 0% 100%; --muted-foreground:0 0% 85%; }


/* The regional briefing links are cards, including in dark mode. */
.rd-briefing-card { background:hsl(var(--card)); color:hsl(var(--foreground)); }
.rd-briefing-date { background:hsl(var(--muted)); color:hsl(var(--foreground)); }
.rd-briefing-day { color:inherit; }
.rd-briefing-month,.rd-briefing-loc { color:hsl(var(--muted-foreground)); }

/* Venue and start time remain readable secondary information. */
.rb-event-loc,.rb-event-time { color:hsl(var(--muted-foreground)); }

/* A topic card without a verified image stays a compact text card. */
.topic-hub-article-card__date { display:block; color:hsl(var(--muted-foreground)); font-size:.875rem; margin-block-end:.5rem; }

/* Topic cards retain their vertical AVDS Card composition at every width.
   The older generic feed rules apply a two-column grid after the first item. */
html[data-site="ortcom"] .topic-hub-articles > .topic-hub-article-card.card {
  display:flex;
  flex-direction:column;
  grid-template-columns:none;
}
html[data-site="ortcom"] .topic-hub-article-card__media { width:100%; flex:none; }
html[data-site="ortcom"] .topic-hub-article-card__body { width:100%; min-width:0; }
html[data-site="ortcom"] .topic-hub-articles .topic-hub-article-card .card-title {
  display:block;
  padding:0;
  font-size:1rem;
  line-height:1.35;
  hyphens:none;
  word-break:normal;
  overflow-wrap:break-word;
  -webkit-line-clamp:unset;
  overflow:visible;
}

/* Event actions and the calendar use the same theme surfaces as their cards. */
.event-card-footer { background:hsl(var(--muted)); border-color:hsl(var(--border)); }
.event-card-ical { color:hsl(var(--foreground)); }
#eventsFullCalendar {
  --fc-border-color:hsl(var(--border));
  --fc-page-bg-color:hsl(var(--card));
  --fc-neutral-bg-color:hsl(var(--muted));
  --fc-neutral-text-color:hsl(var(--muted-foreground));
}
#eventsFullCalendar .fc-col-header-cell { background:hsl(var(--muted)); }

html[data-site="ortcom"][data-theme] #eventsFullCalendar .fc-col-header-cell-cushion { color:hsl(var(--foreground)); }

/* Keep a failed photo action beside the button that produced it. */
.pb-download-status { margin-block-start:.5rem; }

/* Keep the search field on its existing navy surface in both themes. */
.pb-hero .pb-search input[type="search"] { background:transparent !important; color:hsl(var(--foreground)); }
.pb-hero .pb-search input::placeholder { color:hsl(var(--foreground)/.7); }

/* Topic index labels use the current text context; AVDS 5 primary remains
   the institutional navy and cannot serve as dark-surface small text. */
html[data-site="ortcom"][data-theme="dark"] .topic-hubs-page .topic-hub-card__eyebrow {
  color:hsl(var(--foreground));
}

/* Returning workspaces share the pinned AVDS 5 semantic surfaces. */
.cabinet-sidebar {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.cabinet-user-name {
  color: hsl(var(--foreground));
}
.cabinet-user-media,
.cabinet-nav-link {
  color: hsl(var(--muted-foreground));
}
.cabinet-nav-link:hover,
.cabinet-nav-link:focus-visible {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.cabinet-nav-link.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.media-registry-outlets .filter-form {
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.media-registry-outlets .reg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1rem;
}

/* Returned workspace content must use semantic foregrounds on dark surfaces. */
html.dark :is(.gp-card-link, .gp-release-title-link, .gp-cal-today-btn, .cabinet-quick-title, .cabinet-btn--text, .cabinet-note-list a, .cabinet-field-note a, .cabinet-accreditation-info-value a) {
  color: hsl(var(--primary));
}
html.dark .gp-release-title-link span { color: inherit; }
html.dark .accred-badge--active {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .12);
}
html.dark .gp-filter-tab { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
html.dark .gp-filter-tab.active,
html.dark .gp-filter-tab:hover { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); }
html.dark .gp-tab-count { color: inherit; background: transparent; }
html.dark :is(.gp-releases-table th, .gp-workflow-badge, .nr-filter-label, .event-reg-date, .cabinet-accreditation-info-label) {
  color: hsl(var(--foreground));
}
html.dark .event-reg-status--announced { color: hsl(var(--primary)); }
html.dark .gp-action-btn--publish,
html.dark .gp-cal-day-num--today { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); }
html.dark .gp-cal-cell { background: hsl(var(--card)); }
html.dark .gp-cal-cell--empty { background: hsl(var(--muted)); }
html.dark .gp-cal-day-num { color: hsl(var(--foreground)); }
html.dark .gp-cal-day-num--today { color: hsl(var(--primary-foreground)); }
html.dark :is(.cabinet-layout, .cabinet-auth-card) .av-input__label-required { color: hsl(var(--status-danger)); }
html.dark .cabinet-quick-icon--events svg { stroke: hsl(var(--primary)); }

.govpress-body-name { color: hsl(var(--primary)); }
.gp-action-btn--publish,
.gp-cal-day-num--today { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); }
.cabinet-field-required { color: hsl(var(--status-danger)); }

.gp-cal-nav-btn {
  min-width: 44px;
  height: 44px;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}
.gp-cal-nav-btn svg { stroke: currentColor; color: inherit; }
.gp-cal-nav-btn:hover,
.gp-cal-nav-btn:focus-visible { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); }
.gp-cal-today-btn { color: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.gp-cal-cell--today,
html.dark .gp-cal-cell--today { background: hsl(var(--accent)); }

html[data-site="ortcom"] .logo-text,
html[data-site="ortcom"] .logo-title,
html[data-site="ortcom"] .logo-sub,
html[data-site="ortcom"] .footer-logo,
html[data-site="ortcom"] .footer-logo-title,
html[data-site="ortcom"] .footer-logo-sub,
html[data-site="ortcom"] .lite-footer-brand,
html[data-site="ortcom"] .lite-footer-brand strong { font-family:'Onest',sans-serif; }

html[data-site="ortcom"] .logo-title--full,
html[data-site="ortcom"] .lite-footer-brand strong,
html[data-site="ortcom"] .footer-logo-title {white-space:nowrap}
html[data-site="ortcom"] .lite-footer-brand strong {font-weight:700;letter-spacing:-.01em}
html[data-site="ortcom"] .lite-footer-brand {max-width:min(31rem,100%);min-width:0}
html[data-site="ortcom"] .lite-footer-brand > span {grid-template-columns:minmax(0,1fr)}
html[data-site="ortcom"] .lite-footer-brand > span > span {white-space:nowrap}

/* The full mobile identity is the opening state. Only scrolling abbreviates it;
   keep the existing 56px shell and 44px search/menu targets unchanged. */
@media(max-width:768px) {
  html[data-site="ortcom"] {--ortcom-lite-header-row:56px}
  html[data-site="ortcom"] .site-header .logo-title {transition:none}
  html[data-site="ortcom"] .site-header .logo {min-width:0;flex:1 1 auto;gap:.45rem}
  html[data-site="ortcom"] .site-header .logo-text {min-width:0;flex:1 1 auto}
  html[data-site="ortcom"] .site-header:not(.header--compact) .logo-img {height:34px;width:auto;flex:0 0 auto}
  html[data-site="ortcom"] .site-header:not(.header--compact) .logo-title--full {display:block;font-size:.98rem;line-height:1.2;white-space:nowrap;overflow:visible;text-overflow:clip}
  html[data-site="ortcom"] .site-header:not(.header--compact) .logo-sub {display:block;opacity:1;height:auto;font-size:.8rem;line-height:1.2;white-space:nowrap;margin-top:2px}
  html[data-site="ortcom"] .site-header:not(.header--compact) .logo-title--compact {display:none}
  html[data-site="ortcom"] .site-header.header--compact .logo-title--full,
  html[data-site="ortcom"] .site-header.header--compact .logo-sub {display:none}
  html[data-site="ortcom"] .site-header.header--compact .logo-title--compact {display:block;font-size:.82rem;line-height:1.2;letter-spacing:0;white-space:nowrap;overflow:visible;text-overflow:clip}
  html[data-site="ortcom"] .site-header.header--compact .logo-img {height:26px;width:auto;flex:0 0 auto}
  /* Clip horizontal spill without making body an unscrolled sticky container. */
  html[data-site="ortcom"] body {overflow-x:clip;overflow-y:visible}
  html[data-site="ortcom"]:has(body:is(.menu-open,.search-open)) {overflow:hidden}
}
