/* NYSAIC typography, brand colors, and verified New York State photography. */
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --gold: #f2bd45;
  --ink: #10274a;
  font-family: 'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
h1, h2, h3, .brand-description, .path-label {
  font-family: 'Sora', ui-sans-serif, sans-serif;
  font-weight: 600;
}
h1 { font-weight: 650; letter-spacing: -.045em; }
h2, h3 { letter-spacing: -.035em; }
.button, .card-link { font-weight: 750; }
.site-header { border-top: 4px solid var(--gold); }
.header-inner { width: min(1200px, calc(100% - 72px)); max-width: none; min-height: 136px; padding: 12px 0; }
.brand { gap: 18px; }
.brand img { width: 112px; height: 112px; object-fit: contain; border-radius: 0; }
.brand-description { font-size: .8rem; line-height: 1.65; letter-spacing: -.02em; }
.menu-toggle, #site-nav > a, .account-nav > a { font-family: 'Sora', ui-sans-serif, sans-serif; font-weight: 500; letter-spacing: -.02em; }
.menu-toggle { font-size: .9rem; font-weight: 600; }
.menu-toggle svg { flex-shrink: 0; }
#site-nav { gap: 14px; }
@media (max-width: 1264px) {
  .menu-toggle { display: flex; gap: 12px; align-items: center; padding: 9px 13px; border: 1px solid #6b7f90; background: #fff; border-radius: 7px; color: var(--ink); }
  #site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  #site-nav.open { display: flex; }
  #site-nav > a { padding: 12px 0; }
  .account-nav { border-left: 0; padding: 14px 0 0; border-top: 1px solid var(--line); margin-top: 10px; justify-content: space-between; }
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 32px;
  min-height: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  border-radius: 26px;
  color: #fff;
  background: #071c3e;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 52px 44px;
  text-align: center;
}
.hero-copy .actions { width: 100%; justify-content: center; }
.hero h1 { overflow-wrap: anywhere; }
.ny-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #10274a; }
.ny-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ny-hero-photo { min-height: 480px; }
.ny-hero-photo img { position: absolute; inset: 0; object-position: 53% 58%; }
.ny-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  font-size: .75rem;
  line-height: 1.4;
}
.ny-photo figcaption a {
  display: inline-block;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #10274a;
  background: rgb(255 255 255 / 92%);
  font-size: inherit;
  text-underline-offset: 3px;
}
.hero .eyebrow { color: #d8eaff; font-size: .7rem; line-height: 1.8; }
.hero h1 { font-size: clamp(2.6rem, 4.2vw, 4rem); }
.hero h1 em { color: #ffcf6b; }
.hero .lead { color: #e0e9f5; font-size: 1.04rem; line-height: 1.75; max-width: 760px; }
.hero .button { background: #f2bd45; border-color: #f2bd45; color: #10274a; }
.hero .button:hover { background: #ffcf6b; border-color: #ffcf6b; }
.hero .button.secondary { background: #ffffff10; border-color: #ffffff70; color: #fff; }
.hero .button.secondary:hover { background: #ffffff20; }
.path-card { border-top: 3px solid #87b7ed; }
.path-card h2 { font-size: 1.35rem; line-height: 1.35; margin-bottom: 16px; }
.path-label { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 27px; }
.path-card:nth-child(2) { border-top-color: #e6b54b; }
.path-card:nth-child(3) { border-top-color: #79ada3; }
.path-card:hover { border-color: #3975bd; transform: translateY(-3px); }
.join-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a244c;
}
.meeting-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 36px 0;
  padding: 28px 34px;
  border: 1px solid #d4e1ef;
  border-radius: 22px;
  background: #edf4fd;
  overflow: hidden;
}
.meeting-intro .page-title { padding: 0; }
.meeting-intro h1 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); overflow-wrap: anywhere; }
.meeting-intro .page-title p { margin-bottom: 0; }
.ny-meeting-photo { height: 300px; border-radius: 14px; }
.ny-meeting-photo img { object-position: 50% 50%; }
.email-expectation { margin: 18px 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 1120px) {
  .brand { gap: 14px; }
  .brand img { width: 96px; height: 96px; }
  .brand-description { font-size: .73rem; }
  .header-inner { min-height: 120px; }
  .hero-copy { padding: 38px 32px; }
  .hero h1 { font-size: 3.45rem; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { max-width: 760px; }
  .ny-hero-photo { min-height: 0; height: 320px; }
  .ny-hero-photo img { object-position: 50% 62%; }
  .meeting-intro { grid-template-columns: 1fr; padding: 26px; }
  .ny-meeting-photo { height: 280px; }
}
@media (max-width: 680px) {
  .brand img { width: 84px; height: 84px; }
  .brand-description { display: none; }
  .header-inner { width: calc(100% - 38px); min-height: 108px; padding-top: 10px; padding-bottom: 10px; }
  .hero { margin-top: 20px; border-radius: 20px; gap: 0; }
  .hero-copy { padding: 31px 25px; }
  .ny-hero-photo { height: 220px; }
  .ny-meeting-photo { height: 230px; }
  .hero h1 { font-size: clamp(2.5rem, 9.3vw, 3.5rem); }
  .hero .eyebrow { font-size: .63rem; letter-spacing: .07em; }
  .hero .lead { font-size: .98rem; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .meeting-intro { margin-top: 22px; padding: 26px; }
  .meeting-intro h1 { font-size: clamp(1.8rem, 7.5vw, 2.45rem); }
}
@media (prefers-reduced-motion: reduce) { .path-card:hover { transform: none; } }

.program-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 42px; margin: 0; }
.program-grid > div { grid-column: span 2; border-top: 1px solid var(--line); padding-top: 18px; }
.program-grid > .program-talk, .program-grid > .program-build { grid-column: span 3; }
.program-grid dt { font-family: 'Sora', ui-sans-serif, sans-serif; font-size: 1.04rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: 10px; }
.program-grid dd { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.7; }
.home-paths { padding-top: 0; }
.foundation-notice { width: min(1200px, calc(100% - 72px)); margin: 0 auto; padding: 20px 0 28px; font-family: 'Sora', ui-sans-serif, sans-serif; font-size: .8rem; font-weight: 400; line-height: 1.8; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 920px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-grid > div, .program-grid > .program-talk, .program-grid > .program-build { grid-column: auto; }
}
@media (max-width: 680px) {
  .program-grid { grid-template-columns: 1fr; gap: 25px; }
  .foundation-notice { width: calc(100% - 38px); }
}

.home-path-grid { grid-template-columns: repeat(2, 1fr); }
.home-path-grid .path-card:last-child { grid-column: auto; }
@media (max-width: 680px) {
  .home-path-grid { grid-template-columns: 1fr; }
}

.program-build dd { display: flex; align-items: baseline; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.program-build p { margin: 0; }
.project-links { display: flex; gap: 14px 24px; flex-wrap: wrap; }
.project-links a { font-weight: 650; }

.google-signin { display: flex; flex-direction: column; gap: 16px; }
.google-signin [data-google-status]:empty { display: none; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 23px 0; color: var(--muted); font-size: .84rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Keep controls and keyboard focus distinct on both light and dark surfaces. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
.field input, .field select, .field textarea,
.button.secondary, .menu-toggle { border-color: #6b7f90; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.tabs a[aria-current='page'] {
  border-color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
#site-nav > a, .account-nav > a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* Let larger user-selected text reflow before it widens the page. */
.header-inner { flex-wrap: wrap; }
.brand, #site-nav { min-width: 0; max-width: 100%; }
#site-nav, .account-nav { flex-wrap: wrap; }
.account-nav { min-width: 0; }
.resource-top { flex-wrap: wrap; }
.type-tag { max-width: 100%; white-space: normal; }
.text-button, .resource-card summary { min-height: 24px; }
.hero-copy, .meeting-card > div, .admin-row > div,
.resource-top > span, .program-grid > div { min-width: 0; }
.resource-top, .meeting-card, .admin-row { overflow-wrap: anywhere; }
.resource-card .credit, .foundation-notice { font-size: .875rem; }
.resource-top, .tags span, .meeting-card .meeting-meta { font-size: .8rem; }
@media (forced-colors: active) {
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}

/* Regional photography on the existing homepage navigation cards. */
.home-path-grid .path-card { padding: 0; min-width: 0; overflow: clip; border-top-width: 1px; }
.ny-path-photo { width: 100%; flex-shrink: 0; }
.ny-path-photo img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.path-card-content { display: flex; flex-direction: column; align-self: stretch; flex: 1; padding: 28px 30px; color: var(--ink); text-decoration: none; }
.path-card-content:hover h2, .path-card-content:focus-visible h2 { color: var(--blue); }
.path-card-content:focus-visible { outline-offset: -4px; }
@media (max-width: 680px) { .path-card-content { padding: 25px; } }

/* A compact, accessible message editor; email appearance stays uncomplicated. */
.newsletter-editor { min-width: 0; }
.newsletter-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid #6b7f90;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--paper);
}
.newsletter-editor-toolbar button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  font-size: .87rem;
  line-height: 1.35;
}
.newsletter-editor-toolbar button:hover { background: #fff; border-color: #aebfce; }
.newsletter-editor-toolbar button[aria-pressed='true'] { background: var(--sky); border-color: var(--blue); color: var(--blue); }
.newsletter-tool-bold { font-weight: 750; }
.newsletter-tool-italic { font-style: italic; }
.newsletter-editor-body {
  min-height: 300px;
  max-height: 65vh;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid #6b7f90;
  border-radius: 0 0 8px 8px;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  white-space: pre-wrap;
  font-size: 1rem;
}
.newsletter-editor-body p, .newsletter-editor-body blockquote,
.newsletter-editor-body ul, .newsletter-editor-body ol { margin: 0 0 1em; }
.newsletter-editor-body li { margin: .2em 0; }
.newsletter-editor-body > :last-child { margin-bottom: 0; }
.newsletter-editor-body:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.newsletter-editor-body[aria-disabled='true'] { background: var(--paper); }
.newsletter-editor-body[aria-invalid='true'] { border-color: #842a20; }
.newsletter-editor-help, .newsletter-editor-status { margin: 8px 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.newsletter-editor-status { color: #842a20; }
.newsletter-editor-status:empty, .newsletter-link-error:empty { display: none; }
.newsletter-link-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 50px #10274a38;
}
.newsletter-link-dialog::backdrop { background: #10274a88; }
.newsletter-link-dialog .field { margin-bottom: 18px; }
.newsletter-link-dialog .actions { display: flex; gap: 12px; }
.newsletter-link-dialog .button { width: auto; flex: 1; }
.newsletter-link-error { color: #842a20; font-size: .88rem; }
@media (max-width: 680px) {
  .newsletter-editor-toolbar { gap: 3px; padding: 6px; }
  .newsletter-editor-toolbar button { padding: 6px 9px; }
  .newsletter-editor-body { min-height: 260px; padding: 13px; }
  .newsletter-link-dialog { padding: 22px; }
}
@media (forced-colors: active) {
  .newsletter-editor-body:focus-visible { outline-color: Highlight; }
  .newsletter-editor-toolbar button[aria-pressed='true'] { border-color: Highlight; }
}
