/* RCC Home — ClusterDocs-3 / MkDocs-Material visual grammar. */
:root { font-family: var(--rcc-font-family); }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--rcc-paper); color: var(--rcc-ink); }
body { margin: 0; min-height: 100%; color: var(--rcc-ink); background: var(--rcc-paper); }
a { color: var(--rcc-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rcc-navy-2); }
.skip-link { position: fixed; left: -9999px; top: .6rem; z-index: 100; padding: .55rem .75rem; border-radius: 4px; background: var(--rcc-paper); color: var(--rcc-navy); box-shadow: var(--rcc-shadow); }
.skip-link:focus { left: .6rem; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--rcc-navy); color: var(--rcc-paper); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.topbar-inner { max-width: 1760px; margin: 0 auto; padding: .65rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; color: var(--rcc-paper)!important; text-decoration: none; }
.brand img { width: 144px; height: 42px; object-fit: contain; object-position: left center; padding: .15rem .3rem; border-radius: 2px; background: var(--rcc-paper); }
.brand-copy { padding-left: .85rem; border-left: 1px solid rgba(255,255,255,.28); line-height: 1.08; }
.brand-copy strong { display: block; color: var(--rcc-paper); font-size: 1.02rem; font-weight: 650; }
.brand-copy span { color: rgba(255,255,255,.75); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.topbar .button.compact { min-height: 34px; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--rcc-paper); box-shadow: none; }

.app-shell { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(220px,250px) minmax(0,1fr); }
.surface-sidebar { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow: auto; padding: 1rem .75rem; border-right: 1px solid var(--rcc-line); background: var(--rcc-paper); color: var(--rcc-ink); }
.sidebar-section + .sidebar-section { margin-top: 1.15rem; }
.sidebar-kicker { margin: 0 0 .4rem; padding: 0 .65rem; color: var(--rcc-muted); font-size: .67rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nav,.sidebar-local-nav { display: grid; gap: .1rem; }
.nav a,.sidebar-local-nav a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .57rem .65rem; border-radius: 4px; color: var(--rcc-ink); font-size: .86rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
.nav a:hover,.sidebar-local-nav a:hover { background: var(--rcc-surface-sunken); color: var(--rcc-navy); }
.nav .current,.sidebar-local-nav .current { background: var(--rcc-cyan-light); color: var(--rcc-navy); box-shadow: inset 3px 0 0 var(--rcc-navy); font-weight: 650; }
.surface-sidebar .nt { color: var(--rcc-muted); }
.sidebar-note { margin-top: 1.25rem; padding: .8rem; border: 1px solid var(--rcc-line); border-radius: 4px; background: var(--rcc-surface-sunken); }
.sidebar-note strong,.sidebar-note span { display: block; }
.sidebar-note strong { font-size: .82rem; }
.sidebar-note span { margin-top: .35rem; color: var(--rcc-muted); font-size: .75rem; line-height: 1.48; }
.page-area { min-width: 0; background: var(--rcc-paper); }
main { max-width: 1220px; margin: 0 auto; padding: .8rem 1.6rem 4rem; }
.breadcrumbs { padding-top: .3rem; }

.hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); align-items: center; gap: 2rem; padding: 2.4rem 0 3rem; border-bottom: 1px solid var(--rcc-line); }
.hero-copy { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.eyebrow,.hero-copy .eyebrow { margin: 0 0 .65rem; color: var(--rcc-navy); font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
h1,h2,h3 { color: var(--rcc-ink); }
h1 { margin: 0; max-width: 820px; font-size: clamp(2.2rem,4.5vw,3.35rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 650; }
h2 { margin: 0 0 .8rem; font-size: 1.55rem; line-height: 1.2; font-weight: 600; }
h3 { margin: 0 0 .55rem; font-size: 1.05rem; font-weight: 600; }
.lead,.hero-copy .lead { max-width: 760px; color: var(--rcc-muted); font-size: 1.02rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 4px; background: var(--rcc-navy); color: var(--rcc-paper); box-shadow: var(--rcc-shadow-sm); font-weight: 600; font-size: .9rem; text-decoration: none; }
.button:hover { background: var(--rcc-navy-2); color: var(--rcc-paper); }
.button.secondary { border-color: var(--rcc-line); background: var(--rcc-paper); color: var(--rcc-navy); box-shadow: none; }
.button.secondary:hover { background: var(--rcc-surface-sunken); border-color: #bdbdbd; color: var(--rcc-navy-2); }
.hero-figure,.audience-figure { margin: 0; overflow: hidden; border: 1px solid var(--rcc-line); border-radius: 4px; background: var(--rcc-paper); box-shadow: var(--rcc-shadow-sm); }
.hero-figure img,.audience-figure img { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-figure figcaption,.audience-figure figcaption { padding: .65rem .8rem; color: var(--rcc-muted); font-size: .8rem; line-height: 1.45; }

.primary-actions,.services,.account-access { margin: 2.5rem 0 3rem; }
.primary-grid,.grid,.audience-grid,.audience-chooser-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.audience-chooser-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card,.audience-card,.audience-chooser,.concept,.good-practice,.service-row-card { border: 1px solid var(--rcc-line); border-radius: 4px; background: var(--rcc-paper); box-shadow: var(--rcc-shadow-sm); }
.card { display: flex; flex-direction: column; min-height: 190px; padding: 1.15rem; }
.card p,.audience-card p,.concept p,.good-practice li,.service-row-card p { color: var(--rcc-muted); line-height: 1.55; }
.card p:last-child { margin-top: auto; }
.card-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: .8rem; border-radius: 4px; background: var(--rcc-cyan-light); color: var(--rcc-navy); font-size: .95rem; font-weight: 650; }
.service-list { display: grid; gap: .55rem; }
.service-row-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .85rem; align-items: center; padding: .85rem 1rem; box-shadow: none; }
.service-row-card .card-icon { margin: 0; }
.service-row-card h3,.service-row-card p { margin-top: 0; }
.service-row-card > a { font-weight: 600; white-space: nowrap; }
.audience-chooser { padding: 1.4rem; }
.audience-choice { min-height: 210px; box-shadow: none; }
.audience-label { margin: 0 0 .45rem; color: var(--rcc-navy)!important; font-size: .72rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.concept,.good-practice { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; margin: 1rem 0 3rem; padding: 1.4rem; box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; padding: 0; margin: 0; list-style: none; }
.steps li { padding: .85rem; border-radius: 4px; background: var(--rcc-surface-sunken); border: 1px solid var(--rcc-line); }
.steps strong,.steps span { display: block; }
.steps strong { margin-bottom: .25rem; }
.steps span { color: var(--rcc-muted); line-height: 1.45; }
.local-nav { background: var(--rcc-paper); border-bottom: 1px solid var(--rcc-line); }
.local-nav-inner { max-width: 1220px; margin: 0 auto; padding: .5rem 1.4rem; display: flex; gap: .25rem; flex-wrap: wrap; }
.local-nav a { padding: .35rem .5rem; border-radius: 4px; color: var(--rcc-ink); font-size: .84rem; font-weight: 500; text-decoration: none; }
.local-nav a:hover { background: var(--rcc-surface-sunken); }
.local-nav .current { background: var(--rcc-cyan-light); color: var(--rcc-navy); font-weight: 650; }
.audience-intro { max-width: 900px; padding: 2rem 0 1.4rem; }
footer { max-width: 1220px; margin: 0 auto; padding: 1.2rem 1.6rem; border-top: 1px solid var(--rcc-line); color: var(--rcc-muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
footer p { margin: 0; }
.nt { font-size: .82em; color: var(--rcc-muted); margin-left: .15em; }

@media (max-width: 1000px) { .app-shell { grid-template-columns: 205px minmax(0,1fr); } .hero { grid-template-columns: 1fr; } .audience-chooser-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .topbar-inner { align-items:flex-start; flex-direction:column; } .brand-copy { display:none; } .app-shell { display:block; } .surface-sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid var(--rcc-line); } .nav,.sidebar-local-nav { grid-template-columns:repeat(2,minmax(0,1fr)); } .primary-grid,.grid,.audience-grid,.concept,.good-practice { grid-template-columns:1fr; } main { padding-inline:1rem; } }
@media (max-width: 500px) { .nav,.sidebar-local-nav,.audience-chooser-grid,.steps { grid-template-columns:1fr; } .service-row-card { grid-template-columns:auto 1fr; } .service-row-card>a { grid-column:2; } }

/* The RCC Home look (operator decision 2026-11-02): pages on this stylesheet
 * (Developers, 404) continue the photo Home top bar and blues, so moving
 * between public pages, sign-in and My RCC never changes the look. */
.rcc-brand {
  --rcc-navy: #17477e;
  --rcc-navy-2: #24528d;
  --rcc-cyan-light: #eaf1fb;
  --rcc-home-edge: #dfe3e8;
  --rcc-home-divider: #d0d5da;
}
.rcc-brand .topbar { background: var(--rcc-paper); color: var(--rcc-ink); border-bottom: 1px solid var(--rcc-home-edge); box-shadow: none; }
.rcc-brand .topbar-inner { min-height: 76px; padding: 14px 30px; }
.rcc-brand .topbar .brand { color: var(--rcc-ink) !important; }
.rcc-brand .topbar .brand-copy { display: flex; align-items: center; gap: .65rem; padding-left: 0; border-left: 0; }
.rcc-brand .topbar .brand-copy strong { color: var(--rcc-navy); font-size: 2rem; font-weight: 700; line-height: 1; }
.rcc-brand .topbar .brand-copy span { padding-left: .7rem; border-left: 1px solid var(--rcc-home-divider); color: var(--rcc-ink); font-size: .72rem; line-height: 1.16; letter-spacing: 0; text-transform: none; }
.rcc-brand .topbar-actions { gap: 1.3rem; }
.rcc-brand .brand-logo { display: block; width: 224px; max-width: 224px; height: auto; max-height: 48px; object-fit: contain; }
.rcc-brand .topbar .button.compact { border-color: var(--rcc-home-edge); color: var(--rcc-navy); }
@media (max-width: 760px) {
  .rcc-brand .topbar-inner { padding: 12px 15px; }
  .rcc-brand .brand-logo { max-width: 155px; }
}
/* Pages other than Home show the Home photograph reduced and faded into the
 * background (operator decision 2026-11-02); its credit is in the Home imprint.
 * Only rendered once the site photo is approved for public use. */
.rcc-photo-faded .page-area > main {
  background:
    linear-gradient(180deg, rgba(255,255,255,.80) 0, var(--rcc-paper) 220px),
    url("/assets/rcc-site-hero.webp") right top / auto 220px no-repeat;
}
/* Dark scheme: only with data-rcc-color-scheme="system" on <html> (see
 * rcc-brand-dark.css). The light look above stays exactly as it is. */
@media (prefers-color-scheme: dark) {
  :root[data-rcc-color-scheme="system"] .button.secondary:hover { border-color: var(--rcc-input-border); }
  :root[data-rcc-color-scheme="system"] .rcc-brand .topbar .brand { color: var(--rcc-ink) !important; }
  :root[data-rcc-color-scheme="system"] .rcc-photo-faded .page-area > main {
    background:
      linear-gradient(180deg, rgba(26,29,33,.86) 0, var(--rcc-paper) 220px),
      url("/assets/rcc-site-hero.webp") right top / auto 220px no-repeat;
  }
}
