/* Event and CPUC pages: their own layout, on top of tokens.css, fl-components.css and site.css.
   (Project pages have moved to the shared layout and project.css.)
   These pages are full HTML files (see README) and still differ from the wrapped pages in a few ways:
   a wider column, roomier sections, their own footer. Rules marked "differs from site.css" keep them
   as they are; drop them when these pages are redesigned onto the shared layout. */

:root { color-scheme: light; --shadow-sticker-lg: 10px 10px 0 0 #0b1b33; --wrap: 1160px; --gutter: clamp(16px, 4vw, 32px); }

/* Base (differs from site.css: headings and paragraphs carry no margins, and the column is wider) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
  .site-nav { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-left: var(--gutter); }
}

/* Components (differs from fl-components.css) */
.fl-tag { white-space: nowrap; }
.tag-row .fl-tag { white-space: normal; line-height: 1.2; }
.fl-halftone::before { -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); }
.fl-agenda { box-shadow: var(--shadow-sticker); }
.fl-agenda__day { font-size: 30px; }
.fl-agenda__row { grid-template-columns: 84px 1fr; padding: 11px var(--space-3); font-size: 16px; }

/* CPUC page header */
.site-head { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: var(--surface); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 60px; padding: 8px 8px 8px 12px; background: var(--surface-raised); border: var(--stroke) solid var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-sticker-sm); }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand-link img.icon { width: 40px; height: 40px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav__links a:hover, .nav__links a[aria-current] { background: var(--surface-sunken); }
.nav__links a.nav__cta { background: var(--cpuc26-sun); border: var(--stroke) solid var(--navy); box-shadow: var(--shadow-sticker-sm); font-family: var(--font-display); font-weight: 400; margin-left: 6px; }
.nav__links a.nav__cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--navy); }
@media (max-width: 720px) {
  .nav__links a { padding: 0 10px; font-size: 14px; }
  .nav__links .nav__hide-sm { display: none; }
}

/* Sections (differs from site.css: more space, and a flex section head with a bigger heading) */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(36px, 5.4vw, 64px); margin-top: 12px; max-width: 16ch; }
.section-head p.lede { max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--ink-muted); }

/* CTA band (differs from site.css: fluid sizes) */
.cta-band { gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 4vw, 40px); }
.cta-band img { width: clamp(88px, 12vw, 140px); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.cta-band p { margin-top: 8px; max-width: none; font-size: 18px; font-weight: 500; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* Footer */
.site-foot { background: var(--navy); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0 32px; border-top: var(--stroke) solid var(--navy); }
.site-foot a { color: var(--cream); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.foot__grid > * { min-width: 0; }
.foot__brand img { width: 240px; }
.foot__brand p { margin-top: 16px; max-width: 30ch; color: var(--ink-muted-on-navy); font-size: 16px; }
.foot__col h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__col a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.foot__col a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #f7f3ea33; font-size: 14px; color: var(--ink-muted-on-navy); }
.host-sig { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.host-sig span { font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.host-sig img { height: 20px; width: auto; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* Event pages */
.crumbs { font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.phero { padding: clamp(20px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.phero__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero__grid > * { min-width: 0; }
.phero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: .94; margin: 18px 0 18px; }
.phero__tagline { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.3; max-width: 30ch; }
.phero__summary { margin-top: 18px; font-size: 18px; max-width: var(--measure); }
.phero__link { margin-top: 24px; }
.tag-row { gap: 10px; margin-top: 22px; }
.phero__visual { aspect-ratio: 1 / 1; display: grid; place-items: center; box-shadow: var(--shadow-sticker-lg); padding: 10%; }
.phero__visual .bignum { font-family: var(--font-display); font-size: clamp(120px, 16vw, 210px); line-height: .8; color: var(--cream); -webkit-text-stroke: 5px var(--navy); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--navy); }
.phero__visual .sparks { position: absolute; width: 26%; right: 8%; top: 8%; }
.phero__visual--navy { background-color: var(--navy); }
.phero__visual--navy::before { background-image: radial-gradient(circle, var(--blue) 0 2.2px, transparent 2.6px); }
.phero__visual--navy .bignum { text-shadow: 8px 8px 0 var(--blue); }
@media (max-width: 860px) { .phero__grid { grid-template-columns: 1fr; } .phero__visual { max-width: 340px; } }

.pbody { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pbody__main { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.pblock h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 16px; }
.pblock p { font-size: 18px; max-width: var(--measure); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 36px; font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: var(--stroke) solid var(--navy); border-radius: 6px; background: var(--blue); }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: step; }
.step-cards li { counter-increment: step; background: var(--surface-raised); border: var(--stroke) solid var(--navy); border-radius: var(--radius-md); padding: 18px; font-size: 16px; line-height: 1.45; }
.step-cards li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--shade); margin-bottom: 10px; }
.pside { position: sticky; top: 104px; display: grid; gap: 20px; }
.glance dl { margin: 12px 0 0; display: grid; gap: 14px; }
.glance dt { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.glance dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; padding: 5px 10px; border: 2px solid var(--navy); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; background: var(--cream); }
@media (max-width: 960px) { .pbody { grid-template-columns: 1fr; } .pside { position: static; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: var(--stroke) solid var(--navy); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-sticker-sm); text-decoration: none; color: var(--navy); }
.pager a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--navy); }
.pager a.next { text-align: right; }
.pager small { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pager strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-head, .site-header, .skip { display: none; } body { background: #fff; } }
