/* INTIGER Lab public site. Requires base.css. Mobile first. */

body.public { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 81rem; margin: 0 auto; padding-inline: 1rem; }
.main { flex: 1; padding-block: 1.5rem 3rem; }

.skip-link { position: absolute; left: -100vw; top: 0; padding: .75rem 1rem; background: var(--blue-dark); color: #fff; z-index: 10; }
.skip-link:focus { left: 0; }

/* Recruitment strip, shown above the header while a stream is recruiting */
.recruitment-strip { background: var(--blue-dark); color: var(--on-dark-text); padding: 10px 20px; font-size: .8125rem; }
.recruitment-strip p { margin: 0; }
.recruitment-strip strong { color: var(--on-dark); }
.recruitment-strip-inner { display: flex; }
.recruitment-strip-link { display: none; }

@media (min-width: 48rem) {
  .recruitment-strip { padding: 11px 72px; font-size: .875rem; }
  .recruitment-strip-inner { justify-content: space-between; align-items: center; }
  .recruitment-strip-link { display: inline; color: var(--on-dark); font-weight: 600; }
}

/* Header and navigation: a <details> menu on phones, inline links from 48rem */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 20px; gap: .5rem 1rem; }
.wordmark { display: inline-block; font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.wordmark-main { color: var(--blue-dark); }
.wordmark-accent { color: var(--accent); }
.wordmark:hover .wordmark-main { color: var(--blue); }
.header-actions { display: none; }
.header-cta { display: none; }

.burger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.burger span { display: block; height: 2px; background: var(--blue-dark); }

.menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { display: flex; flex-direction: column; gap: .25rem; padding-top: .75rem; }
.menu nav a { padding: .5rem 0; font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--text); }
.menu nav a[aria-current="page"] {
  color: var(--blue-dark); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.menu nav a.nav-sign-in { color: var(--blue-dark); font-weight: 600; }
.menu nav { flex-basis: 100%; }
.site-header-inner .menu { flex-basis: auto; }

@media (min-width: 48rem) {
  .site-header-inner { display: grid; grid-template-columns: auto 1fr auto; padding: 22px 72px; }
  .wordmark { font-size: 1.1875rem; }
  .menu { grid-column: 2; display: flex; justify-content: flex-start; margin-left: 48px; }
  .menu summary { display: none; }
  .menu > nav { display: flex; flex-direction: row; gap: 28px; padding-top: 0; }
  .menu:not([open]) > nav { display: flex; }
  /* Modern browsers: show the content of a closed <details> on wide screens even without JavaScript. */
  .menu::details-content { content-visibility: visible; display: contents; }
  .menu nav a { padding: .25rem 0; }
  .menu nav a.nav-sign-in { display: none; }
  .header-actions { grid-column: 3; display: flex; align-items: center; gap: 10px; justify-self: end; }
  .header-sign-in { padding: 10px 14px; font-weight: 600; color: var(--blue-dark); text-decoration: none; }
  .header-sign-in:hover { color: var(--accent); }
  .header-cta { display: inline-block; }
}

/* Footer: a dark call-to-action banner (hidden until the manager writes cta_title)
   plus a thin bottom row with the tagline, privacy link and social links. */
.cta-banner { background: var(--blue-dark); color: var(--on-dark); padding: 36px 20px; }
.cta-banner-inner { display: flex; flex-direction: column; gap: 24px; }
.cta-banner-text h2 { color: var(--on-dark); margin: 0 0 .75rem; font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -.03em; }
.cta-banner-text p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-text); }
.cta-banner-actions { display: flex; flex-direction: column; gap: .75rem; }
.cta-banner-actions .button { width: 100%; }
.button-outline-light { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .4); }
.button-outline-light:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .08); }

.site-footer-bottom {
  display: flex; flex-direction: column; gap: .75rem; padding: 28px 20px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .9375rem;
}
.site-footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--blue-dark); }

@media (min-width: 48rem) {
  .cta-banner { padding: 72px; }
  .cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .cta-banner-actions { flex-direction: row; }
  .cta-banner-actions .button { width: auto; }
  .site-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 72px; }
}


/* Breadcrumbs */
.breadcrumbs { font-size: .95rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--blue); }

/* Team list */
.main h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 3vw, 1.35rem); }
.empty { padding: 2rem 0; font-size: 1.1rem; }

.team-card-status {
  align-self: flex-start; display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--blue-bg); color: var(--blue-dark);
}
.status-forming { background: #fef3c7; color: #92400e; }
.status-active { background: #dcfce7; color: #166534; }
.status-paused { background: var(--blue-bg); color: var(--blue-dark); }
.status-finished { background: var(--blue); color: #fff; }
.status-closed { background: #eef1f3; color: var(--text-muted); border: 1px solid #dce2e7; }
.tag { display: inline-block; padding: 6px 12px; font-size: .875rem; background: var(--blue-bg); color: var(--blue-dark); }

/* Team page */
.team-hero { padding-block: .5rem 1.5rem; }
.team-hero-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.team-hero h1 { margin-bottom: .25rem; }
.team-hero-project { font-size: 1.25rem; font-weight: 700; margin: 0 0 .75rem; }
.team-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.team-links .button:not(.button-primary) { background: var(--blue-bg); color: var(--blue-dark); }

.team-section { margin-top: 2.5rem; }
.team-section h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.project-facts { display: grid; gap: 1.25rem; margin: 0; }
@media (min-width: 48rem) { .project-facts { grid-template-columns: repeat(3, 1fr); } }
.project-facts > div { background: var(--blue-bg); border-radius: .75rem; padding: 1rem 1.25rem; }
.project-facts dt { font-weight: 700; color: var(--blue-dark); margin-bottom: .25rem; }
.project-facts dd { margin: 0; }
.project-facts dd p { margin: 0 0 .5rem; }

.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .roster { grid-template-columns: repeat(2, 1fr); } }
.member { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border); border-radius: .75rem; }
.member-mentor { background: var(--blue-bg); border-color: var(--blue-light); }
.member-photo { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; margin: 0; border-radius: 50%; object-fit: cover; }
.member-photo-empty { background: var(--blue-bg); border: 2px dashed var(--blue-light); }
.member-name { display: block; font-size: 1.1rem; color: var(--blue-dark); }
.member-role { display: block; font-size: .95rem; }
.member-bio { margin: .5rem 0 0; font-size: .95rem; }

/* Latest result and sprint journal */
.result { background: var(--blue-dark); color: #fff; border-radius: .9rem; padding: 1.25rem 1.5rem; }
.result h2 { color: #fff; margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.result-text { margin: 0 0 .5rem; font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.35; font-weight: 600; }
.result-meta { margin: 0; font-size: .9rem; opacity: .9; }

.sprints { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.sprint { border: 1px solid var(--border); border-radius: .9rem; padding: 1.25rem; }
.sprint-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .75rem; }
.sprint-head h3 { margin: 0; font-size: 1.25rem; }
.sprint-dates { margin: 0; font-size: .95rem; flex-basis: 100%; }
.sprint-status { padding: .1rem .6rem; border-radius: 1rem; font-size: .85rem; font-weight: 600; background: var(--blue-bg); color: var(--blue-dark); }
.sprint-in-progress { background: #fff3e0; color: #8a4b00; }
.sprint-completed { background: #e3f4e6; color: #1b5e20; }
.sprint-facts { margin: 0; display: grid; gap: .75rem; }
@media (min-width: 48rem) { .sprint-facts { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.sprint-facts dt { font-weight: 700; color: var(--blue-dark); }
.sprint-facts dd { margin: 0; }
.sprint-facts dd p { margin: 0 0 .5rem; }
.sprint-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.sprint-photos { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.sprint-photos img { display: block; width: 100%; height: auto; border-radius: .6rem; }

/* News, events and sharing */
.main h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); color: var(--blue-dark); margin-top: 2rem; }

.calendar { margin-bottom: 1rem; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .event-list { grid-template-columns: repeat(2, 1fr); } }
.event-card { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: .9rem; text-decoration: none; color: var(--text); background: #fff; }
.event-card:hover, .event-card:focus-visible { border-color: var(--blue-light); box-shadow: 0 6px 20px rgba(11, 79, 108, .12); }
.event-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.25rem; padding: .4rem 0; border-radius: .6rem; background: var(--blue-dark); color: #fff; line-height: 1.1; }
.event-day { font-size: 1.6rem; font-weight: 800; }
.event-month { font-size: .8rem; }
.event-title { display: block; color: var(--blue-dark); font-size: 1.1rem; }
.event-when { display: block; font-size: .95rem; }
.past-events { margin-top: 1rem; }
.past-events summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-bottom: .75rem; }

.tag-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tag-filter a { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 1rem; text-decoration: none; color: var(--blue-dark); background: #fff; }
.tag-filter a[aria-current="page"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feed { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; text-decoration: none; color: var(--text); background: #fff; }
.post-card:hover, .post-card:focus-visible { border-color: var(--blue-light); box-shadow: 0 6px 20px rgba(11, 79, 108, .12); }
.post-card-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.25rem 1.25rem; flex: 1; }
.post-card-date { font-size: .875rem; color: var(--text-muted); }
.post-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--blue-dark); }
.post-card-lead { flex: 1; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }

/* A single post */
.post { max-width: 46rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.post-header h1 { margin-bottom: .5rem; }
.post-cover { display: block; width: 100%; height: auto; border-radius: .9rem; margin: 1.5rem 0; }
.event-facts { display: grid; gap: .75rem; margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--blue-bg); border-radius: .75rem; }
.event-facts dt { font-weight: 700; color: var(--blue-dark); }
.event-facts dd { margin: 0; }
.post-body { font-size: 1.1rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.post-tags .tag { text-decoration: none; }
.post-team { margin-top: 1rem; }

/* Formatted text written in the editor */
.rich-text h1 { font-size: 1.6rem; margin: 1.5rem 0 .5rem; }
.rich-text p, .rich-text div { margin: 0 0 1rem; }
.rich-text ul, .rich-text ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.rich-text blockquote { margin: 1rem 0; padding: .25rem 0 .25rem 1rem; border-left: 4px solid var(--blue-light); color: var(--blue-dark); }
.rich-text pre { overflow-x: auto; padding: 1rem; background: var(--blue-bg); border-radius: .5rem; }
.rich-text a { color: var(--blue); }

/* Share buttons */
.share { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.main .share-title { font-size: 1rem; margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .05em; }
.share-buttons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share .button { background: var(--blue-bg); color: var(--blue-dark); }
.share .button:hover { background: var(--border); }
.team .share { margin-top: 2.5rem; }

/* Home hero: counters are embedded in it (no separate stats section), no photos in v2 */
.hero-v2 { padding: 36px 0 32px; }
.hero-v2-subtitle { margin: 0; font-size: .875rem; font-weight: 600; color: var(--blue); }
.hero-v2-content h1 { margin: 14px 0 0; font-size: 2.25rem; line-height: 1.04; letter-spacing: -.04em; }
.hero-v2-intro { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.55; }
.hero-v2-intro .rich-text > div { margin-bottom: 0; }
.hero-v2-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; }
.hero-v2-actions .button { width: 100%; padding: 15px 20px; }

.hero-v2-stats dl { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--blue-dark); }
.hero-v2-stats .stat { padding: 16px 0; border-bottom: 1px solid var(--border); }
.hero-v2-stats .stat:nth-child(odd) { padding-right: 16px; }
.hero-v2-stats .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.hero-v2-stats .stat:nth-last-child(-n+2) { border-bottom: 0; }
.hero-v2-stats .stat dd { margin: 0; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--blue-dark); }
.hero-v2-stats .stat dt { margin-top: 6px; font-size: .875rem; color: var(--text); }
.hero-v2-stats .stat:last-child dd { color: var(--accent); }

@media (min-width: 64rem) {
  .hero-v2 { padding: 80px 0 64px; }
  .hero-v2-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end; }
  .hero-v2-subtitle { font-size: .9375rem; }
  .hero-v2-content h1 { font-size: 4.25rem; line-height: 1.02; margin-top: 20px; }
  .hero-v2-intro { font-size: 1.25rem; max-width: 38.75rem; margin-top: 24px; }
  .hero-v2-actions { flex-direction: row; margin-top: 32px; }
  .hero-v2-actions .button { width: auto; padding: 14px 24px; }
  .hero-v2-stats dl { margin-top: 0; }
  .hero-v2-stats .stat { padding: 22px 0; }
  .hero-v2-stats .stat:nth-child(odd) { padding-right: 24px; }
  .hero-v2-stats .stat:nth-child(even) { padding-left: 24px; }
  .hero-v2-stats .stat dd { font-size: 3.25rem; }
}

.home-section { margin-top: 2.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.section-head h2, .home-section > h2 { margin: 0 0 1rem; }
.section-head a { color: var(--blue); }
.section-head a::after { content: " \2192"; }

/* Teams (home page): stream tabs + team rows, replaces the v1 photo cards */
.teams-head { align-items: flex-start; flex-direction: column; padding-bottom: 16px; border-bottom: 2px solid var(--blue-dark); margin-bottom: 0; gap: 12px; }
.teams-head-title { display: flex; flex-direction: column; gap: 12px; }
.teams-head h2 { margin: 0; }
.stream-tabs { display: none; flex-wrap: wrap; gap: 6px; }
.stream-tab { display: inline-block; padding: 6px 12px; font-size: .875rem; font-weight: 600; color: var(--blue-dark); border: 1px solid var(--border); text-decoration: none; }
/* Specificity note: these tabs sit inside .section-head, whose own `a` rule
   (.section-head a) outweighs a single class selector — so this must stay a
   compound selector to actually win and show white text. */
.stream-tabs .stream-tab-active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.team-rows { display: flex; flex-direction: column; }
.teams-shown-row { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; margin: 0; font-size: .9375rem; color: var(--text-muted); }

@media (min-width: 64rem) {
  .teams-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .teams-head-title { flex-direction: row; align-items: baseline; gap: 20px; }
  .stream-tabs { display: flex; }
}

/* Team row: the monogram + name + tags + metric component, reused by the
   Home teaser and (later) the team catalog. No team photos in v2. */
.team-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.team-row-monogram {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  font-family: var(--font-display); font-weight: 800; font-size: .8125rem;
}
.team-row-forming .team-row-monogram { background: transparent !important; border: 1px dashed var(--border-muted); color: var(--text-muted) !important; }
.team-row-main { grid-column: 2; display: flex; flex-direction: column; gap: 3px; }
.team-row-name-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.team-row-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--blue-dark); }
.team-row:hover .team-row-name { color: var(--accent); }
.team-row-status { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.team-row-tagline { font-size: .9375rem; color: var(--text); }
.team-row-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.team-row-tags .tag { font-size: .8125rem; padding: 4px 9px; }
.team-row-meta-plain { grid-column: 2; display: block; margin-top: 6px; font-size: .8125rem; color: var(--text-muted); }
.team-row-metric { grid-column: 2; display: flex; align-items: baseline; gap: 6px; font-size: .8125rem; color: var(--text-muted); }
.team-row-metric-value { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--blue); }
.team-row-arrow { display: none; }

/* Mobile (below the catalog breakpoint): the name line carries either the
   metric value or the status badge, never both — a metric wins when there is
   one. The full metric block and (on the Home teaser) the pill tags are
   replaced by a single plain-text meta line, matching the v2 mobile mockup. */
.team-row-metric-inline { display: none; }
@media (max-width: 63.9375rem) {
  .team-row-name-line { justify-content: space-between; }
  .team-row-metric-inline { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--blue); }
  .team-row-name-line:has(.team-row-metric-inline) .team-row-status { display: none; }
  .team-row-metric { display: none; }
  .team-row:not(.team-row-catalog) .team-row-tags { display: none; }
}

@media (min-width: 64rem) {
  .team-row { grid-template-columns: 56px minmax(0, 1fr) 280px 150px 24px; gap: 24px; align-items: center; padding: 20px 0; }
  .team-row:hover { background: var(--blue-bg); margin-inline: -16px; padding-inline: 16px; }
  .team-row:hover .team-row-tags .tag { background: #fff; }
  .team-row-monogram { width: 56px; height: 56px; font-size: .9375rem; }
  .team-row-main { grid-column: auto; gap: 4px; }
  .team-row-name { font-size: 1.1875rem; }
  .team-row-tagline { font-size: 1rem; }
  .team-row-tags { grid-column: auto; }
  .team-row-meta-plain { display: none; }
  .team-row-metric { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 0; }
  .team-row-metric-value { font-size: 1.25rem; }
  .team-row-arrow { display: block; font-size: 1.125rem; color: var(--blue); }
  .team-row:hover .team-row-arrow { color: var(--accent); }
}

/* Program scale (12 weeks), replaces the v1 four-step list */
.program-scale { width: 100vw; margin-inline: calc(50% - 50vw); background: var(--blue-bg); padding: 28px 20px; margin-top: 2.5rem; }
.program-scale .section-head { border-bottom: 0; margin-bottom: 0; }
.program-scale h2 { margin: 0; }
.program-scale-lead { margin: .625rem 0 0; font-size: 1.0625rem; }
.scale-bar { margin-top: 18px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.scale-segment { height: 10px; }
.scale-segment-1 { background: var(--blue-dark); }
.scale-segment-2 { background: var(--blue); }
.scale-segment-3 { background: var(--blue-light); }
.scale-segment-4 { background: var(--accent); }
.scale-labels { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; padding-left: 16px; border-left: 3px solid var(--blue-light); }
.scale-weeks { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.scale-labels h3 { margin: 6px 0 0; font-size: 1rem; }
.scale-label-4 h3 { color: var(--accent); }
.scale-labels p { display: none; margin: 6px 0 0; font-size: .9375rem; line-height: 1.5; }

@media (min-width: 64rem) {
  .program-scale { padding: 64px 72px; }
  .scale-bar { margin-top: 36px; }
  .scale-labels { flex-direction: row; padding-left: 0; border-left: 0; gap: 0; }
  .scale-labels > div { padding-right: 20px; }
  .scale-labels p { display: block; max-width: 32.5rem; }
}

/* Demo Days and news, side by side from 64rem. Reuses demo-day-row and adds
   a compact, cover-less news row (post-card is for the full news feed page). */
.updates-section { display: grid; gap: 40px; }
.updates-section .section-head { border-bottom: 2px solid var(--blue-dark); padding-bottom: 14px; margin-bottom: 0; }
.updates-section h2 { margin: 0; font-size: 1.625rem; }
.updates-section .demo-day-row:last-child, .updates-section .post-row:last-child { border-bottom: 0; }
/* The mobile mockup drops News from the Home teaser (it's still reachable via
   the main nav) to keep the page from running long on a phone. */
.news-panel { display: none; }

@media (min-width: 64rem) {
  .updates-section { grid-template-columns: 1fr 1fr; }
  .news-panel { display: block; }
}

.post-row { display: block; padding: 20px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.post-row-meta { display: flex; gap: 10px; font-size: .8125rem; color: var(--text-muted); }
.post-row-tag { color: var(--blue-dark); font-weight: 600; }
.post-row-title { display: block; margin-top: .375rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--blue-dark); }
.post-row:hover .post-row-title { color: var(--accent); }

/* Three audiences band: replaces the CTA banner, but only on the home page
   (other pages keep shared/_cta_banner via content_for(:footer_cta)). */
.audience-block { background: var(--blue-dark); padding: 28px 20px; }
.audience-grid { display: flex; flex-direction: column; gap: 18px; }
.audience-col { padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.audience-col:last-child { border-bottom: 0; padding-bottom: 0; }
.audience-col-student { display: none; }
.audience-label { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--on-dark-muted); }
/* Below the desktop breakpoint the pitch sentence drops and the link itself
   becomes the headline, matching the v2 mobile mockup. */
.audience-pitch { display: none; margin: .375rem 0 0; font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--on-dark); }
.audience-link { display: inline-block; margin-top: .375rem; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--on-dark); text-decoration: none; }
.audience-link::after { content: " \2192"; }

@media (min-width: 64rem) {
  .audience-block { padding: 56px 72px; }
  .audience-grid { flex-direction: row; }
  .audience-col-student { display: block; }
  .audience-col { flex: 1; padding: 0 40px; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, .2); }
  .audience-col:first-child { padding-left: 0; border-left: 0; }
  .audience-pitch { display: block; font-size: 1.375rem; }
  .audience-link { margin-top: .75rem; font-family: inherit; font-weight: 600; font-size: .9375rem; }
}

/* Text pages */
.page-text { max-width: 46rem; }
.page-text .post-body .rich-text ol { padding-left: 1.75rem; font-size: 1.15rem; }
.page-text .post-body .rich-text li { margin-bottom: .5rem; }

/* Mentors and partners */
.member-teams { margin: .5rem 0 0; font-size: .95rem; }
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner { padding: 1.25rem; border: 1px solid var(--border); border-radius: .9rem; display: flex; flex-direction: column; gap: .75rem; }
.partner-link { display: flex; align-items: center; min-height: 5rem; text-decoration: none; }
.partner-logo { max-width: 100%; height: auto; max-height: 5rem; object-fit: contain; }
.partner-name { font-size: 1.3rem; color: var(--blue-dark); }
.partner-description { margin: 0; }

/* Demo Day archive */
.demo-day-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.demo-day-day { display: block; font-family: var(--font-display); font-size: 1.625rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--blue-dark); }
.demo-day-row-nearest .demo-day-day { color: var(--accent); }
.demo-day-month { display: block; margin-top: .25rem; font-size: .875rem; color: var(--text-muted); }
.demo-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.demo-day-title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; color: var(--blue-dark); }
.demo-day-badge { display: inline-block; padding: 3px 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a8500f; background: #fdeee2; }
.demo-day-summary { margin: .375rem 0 0; font-size: .9375rem; }
.demo-day-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: .75rem 0 0; }
.demo-day-register { color: var(--blue); text-decoration: underline; }
.demo-day-register:hover { color: var(--blue-dark); }
.demo-day-row .share { margin-top: 1.25rem; padding-top: 1rem; }

@media (min-width: 40rem) {
  .demo-day-row { grid-template-columns: 110px 1fr; gap: 24px; }
  .demo-day-day { font-size: 1.875rem; }
}

/* Team catalog (v2): sidebar filters with live counts, instant client-side
   filtering (see team_filters_controller.js). Below 64rem the filter panel
   becomes a full-screen drawer opened by the "Фільтри" button. */
.catalog-body { margin-top: 1.5rem; }
.catalog-search-row { display: flex; gap: .75rem; }
.catalog-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 13px 14px; color: var(--text-muted);
}
.catalog-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--text); background: none;
}
.catalog-filters-toggle {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 13px 14px; font: inherit; font-size: .9375rem; font-weight: 600;
  color: var(--blue-dark); background: none; border: 1px solid var(--blue-dark); cursor: pointer;
}
.catalog-filters-toggle-count { display: inline-block; padding: 1px 7px; font-size: .75rem; color: #fff; background: var(--blue-dark); }
.catalog-sort { display: none; }
.catalog-sort select {
  height: 100%; padding: 13px 14px; font: inherit; font-size: .9375rem; color: var(--text); background: #fff; border: 1px solid var(--border);
}

.catalog-result-row {
  display: flex; justify-content: space-between; align-items: center; margin: 1rem 0 0; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-dark); font-size: .9375rem;
}
.catalog-result-count { margin: 0; }
.catalog-result-count strong { color: var(--blue-dark); }

.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group + .filter-group { margin-top: 28px; }
.filter-group-title {
  margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--blue-dark);
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark);
}
.filter-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.filter-option input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-option input[type="checkbox"]:focus-visible ~ .filter-option-check { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-option-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid var(--border-muted); flex: none; }
.filter-option-check::after { content: ""; }
.filter-option:has(input:checked) .filter-option-check { background: var(--blue-dark); border-color: var(--blue-dark); }
.filter-option:has(input:checked) .filter-option-check::after { content: "\2713"; color: #fff; font-size: 12px; line-height: 1; }
.filter-option-label { flex: 1; font-size: .9375rem; color: var(--text); }
.filter-option:has(input:checked) .filter-option-label { color: var(--blue-dark); font-weight: 600; }
.filter-option-count { font-size: .8125rem; color: var(--text-muted); }

.catalog-filters-mobile-head {
  display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border);
}
.catalog-filters-mobile-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-dark); }
.catalog-filters-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -11px -11px -11px 0;
  font-size: 1.375rem; color: var(--blue-dark); background: none; border: 0; cursor: pointer;
}
.catalog-filters-mobile-footer {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 16px 20px 24px; border-top: 1px solid var(--border);
}

@media (max-width: 63.9375rem) {
  .catalog-filters {
    position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column;
    background: #fff; overflow-y: auto;
  }
  .catalog-filters.is-open { display: flex; }
  .catalog-filters .filter-group { padding: 0 20px; }
  .catalog-filters .filter-group:first-of-type { margin-top: 20px; }
}

@media (min-width: 64rem) {
  .catalog-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; }
  .catalog-filters-mobile-head, .catalog-filters-mobile-footer { display: none; }
  .catalog-filters-toggle { display: none; }
  .catalog-sort { display: block; }
  .filter-group + .filter-group { margin-top: 28px; }
}

/* Catalog variant of the team row: bigger monogram, no arrow, tags and roster
   meta inline under the description, metric right-aligned. */
.team-row-roster-meta { font-size: .8125rem; color: var(--text-muted); padding-left: 6px; }

@media (min-width: 64rem) {
  .team-row-catalog { grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 22px; align-items: start; padding: 22px 0; }
  .team-row-catalog .team-row-monogram { width: 64px; height: 64px; font-size: 1.0625rem; }
  .team-row-catalog .team-row-tags { margin-top: 8px; }
  .team-row-catalog .team-row-metric { grid-column: auto; align-items: flex-end; text-align: right; }
}

/* Error pages */
.error-page { padding-block: 3rem; max-width: 36rem; }
.error-code { margin: 0; font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; color: var(--blue-light); letter-spacing: -.04em; }

/* "Про програму" (About) v2 */
.about-eyebrow { margin: 0; font-size: .875rem; font-weight: 600; color: var(--blue); }
.about-eyebrow-dark { color: var(--on-dark-muted); }
.about-section { padding-block: 40px; }
.about-section-head { margin-bottom: 24px; }

.about-hero { padding-block: 32px; }
.about-hero h1 { margin: 14px 0 0; font-size: 2.25rem; line-height: 1.04; letter-spacing: -.04em; }
.about-hero-lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.55; }
.about-hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; }
.about-hero-actions .button { width: 100%; padding: 15px 20px; }

.about-facts { margin: 32px 0 0; border-top: 2px solid var(--blue-dark); }
.about-fact { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.about-fact dt { color: var(--text-muted); }
.about-fact dd { margin: 0; font-weight: 600; color: var(--blue-dark); text-align: right; }
.about-fact-accent { color: var(--accent); font-weight: 700; }

.about-audiences { display: flex; flex-direction: column; }
.about-audience { padding: 20px 0; border-bottom: 1px solid var(--border); }
.about-audience:last-child { border-bottom: 0; }
.about-audience h3 { margin: 0; font-size: 1.3125rem; }
.about-audience p { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; color: var(--text); }
.about-audience-link { display: inline-block; margin-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.about-audience-link::after { content: " \2192"; }
.about-audience-link:hover { color: var(--blue-dark); }

.about-weeks-lead { margin: .625rem 0 0; font-size: 1.0625rem; }

/* Weeks table: a real grid on desktop; on mobile each row becomes a card
   (the design's vertical timeline, approximated with labeled stacked fields
   instead of duplicating markup per breakpoint). */
.weeks-table { margin-top: 28px; background: #fff; }
.weeks-table-row { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-bottom: 1px solid var(--border); font-size: .9375rem; line-height: 1.5; color: var(--text); }
.weeks-table-row.weeks-table-head { display: none; }
.weeks-table-row:last-child { border-bottom: 0; }
.about-weeks-range { color: var(--text-muted); font-weight: 600; }
.about-weeks-stage { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--blue-dark); }
.about-weeks-final .about-weeks-stage { color: var(--accent); }
.weeks-table-result-label { font-weight: 600; color: var(--blue-dark); }

@media (min-width: 64rem) {
  .weeks-table-head, .weeks-table-row {
    display: grid; grid-template-columns: 7.5rem 13.75rem minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start;
  }
  .weeks-table-row.weeks-table-head {
    display: grid; padding: 14px 28px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--blue-dark); border-bottom: 2px solid var(--blue-dark);
  }
  .weeks-table-row { padding: 20px 28px; }
  .weeks-table-result-label { display: none; }
}

.about-directions-join { display: flex; flex-direction: column; gap: 40px; }
.about-direction-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.about-direction-row:last-child { border-bottom: 0; }
.about-direction-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--blue-dark); }
.about-direction-example { margin-top: 4px; font-size: .9375rem; color: var(--text-muted); }
.about-direction-count { flex: none; font-size: .9375rem; color: var(--text); }

.about-join-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.about-join-step:last-child { border-bottom: 0; }
.about-join-number { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--accent); }
.about-join-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--blue-dark); }
.about-join-description { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--text); }

.about-parents { margin-top: 40px; padding: 40px 20px; border-top: 2px solid var(--blue-dark); background: var(--blue-bg); }
.about-parents h2 { margin: 10px 0 0; font-size: 1.625rem; line-height: 1.2; }
.about-parents-grid { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.about-parents-item-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--blue-dark); }
.about-parents-grid p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.55; }

.about-faq-item { border-bottom: 1px solid var(--border); }
.about-faq-item:last-child { border-bottom: 0; }
.about-faq-question {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0;
  font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--blue-dark); background: none; border: 0; cursor: pointer; text-align: left;
}
.about-faq-icon { flex: none; font-family: var(--font-display); font-size: 1.375rem; color: var(--blue-dark); }
.about-faq-question[aria-expanded="true"] .about-faq-icon { color: var(--accent); }
.about-faq-answer { max-width: 53.75rem; margin: 0 0 20px; font-size: 1rem; line-height: 1.6; }

.about-final-cta { background: var(--blue-dark); padding: 32px 20px; }
.about-final-cta-inner { display: flex; flex-direction: column; gap: 24px; }
.about-final-cta h2 { margin: 10px 0 0; color: #fff; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; }
.about-final-cta-actions { display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.about-final-cta-actions .button { width: 100%; }

@media (min-width: 64rem) {
  .about-hero { padding-block: 72px 64px; }
  .about-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .about-hero h1 { font-size: 3.75rem; line-height: 1.04; }
  .about-hero-lead { font-size: 1.25rem; max-width: 40rem; }
  .about-hero-actions { flex-direction: row; margin-top: 32px; }
  .about-hero-actions .button { width: auto; padding: 14px 24px; }

  .about-section { padding-block: 64px; }
  .about-audiences { flex-direction: row; }
  .about-audience { flex: 1; padding: 0 40px; border-bottom: 0; border-left: 1px solid var(--border); }
  .about-audience:first-child { padding-left: 0; border-left: 0; }


  .about-directions-join { flex-direction: row; gap: 64px; }
  .about-directions, .about-how-to-join { flex: 1; }

  .about-parents { margin-top: 0; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
  .about-parents-grid { margin-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

  .about-final-cta { padding: 56px 72px; }
  .about-final-cta-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .about-final-cta-actions { flex-direction: row; flex: none; }
  .about-final-cta-actions .button { width: auto; }
}

/* Demo Day show page. Reuses .about-* hero/facts/section patterns. */
.dd-breadcrumb { margin: 0 0 1rem; font-size: .875rem; color: var(--text-muted); }
.dd-breadcrumb a { color: var(--blue); font-weight: 600; }

.dd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.dd-status-badge { display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--blue); }
.dd-hero .about-hero-actions { flex-wrap: wrap; }
.dd-hero .share { margin-top: 1.5rem; }

.dd-about { background: var(--blue-dark); width: 100vw; margin-inline: calc(50% - 50vw); padding: 40px 20px; margin-top: 2.5rem; }
.dd-about-inner { display: flex; flex-direction: column; gap: 20px; }
.dd-about h2 { margin: 12px 0 0; color: #fff; font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.12; letter-spacing: -.03em; }
.dd-about-text { font-size: 1.0625rem; line-height: 1.6; color: var(--on-dark-text); }
.dd-about-text p:last-child { margin-top: 1rem; color: #fff; font-weight: 500; }

.dd-counters { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--border); margin-top: 2.5rem; }
.dd-counter { padding: 20px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.dd-counter:nth-child(odd) { border-left: 0; }
.dd-counter-value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: .9; letter-spacing: -.04em; color: var(--blue-dark); }
.dd-counter-label { display: block; margin-top: 8px; font-size: .875rem; color: var(--text); }
.dd-counter-static .dd-counter-label { margin-top: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--blue-dark); }

.dd-cycle { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dd-cycle-card { flex: 1; width: 100%; padding: 20px; text-align: center; background: var(--blue-bg); }
.dd-cycle-card-final { background: #fff; border: 2px solid var(--accent); }
.dd-cycle-card strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--blue-dark); }
.dd-cycle-card span { display: block; margin-top: 4px; font-size: .875rem; color: var(--text-muted); }
.dd-cycle-arrow { color: var(--blue-light); font-size: 1.25rem; }
.dd-cycle-steps { margin-top: 28px; }
.dd-cycle-step-final h3 { color: var(--accent); }

.dd-format-minutes { margin: .75rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--accent); }
.dd-format-themes { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.dd-format-theme { padding: 12px 16px; background: #fff; font-weight: 600; color: var(--blue-dark); }

.dd-meta { font-size: .875rem; color: var(--text-muted); }
.dd-team-list { display: flex; flex-direction: column; }
.dd-team-row { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; break-inside: avoid; }
.dd-team-row:hover .dd-team-name { color: var(--accent); }
.dd-team-number { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; color: var(--text-muted); }
.dd-team-main { min-width: 0; }
.dd-team-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--blue-dark); }
.dd-team-track { display: block; margin-top: 2px; font-size: .875rem; color: var(--text-muted); }
.dd-team-materials { display: flex; gap: 6px; flex: none; }
.dd-team-product { font-size: .8125rem; font-weight: 600; color: var(--blue-dark); border: 1px solid var(--border); padding: 6px 10px; }
.dd-team-soon { font-size: .8125rem; color: var(--text-muted); }

.dd-mentors-note { margin: 1rem 0 0; font-size: .9375rem; max-width: 56rem; }
.dd-mentors { margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); }
.dd-mentor { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--border); }
.dd-mentor-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-bg); }
.dd-mentor-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--blue-dark); }
.dd-mentor-team { display: block; font-size: .8125rem; color: var(--text-muted); }

.dd-reviews-grid { margin-top: 8px; display: flex; flex-direction: column; gap: 24px; }
.dd-review { margin: 0; padding-top: 24px; border-top: 1px solid var(--border); }
.dd-review p { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.45; color: var(--blue-dark); }
.dd-review cite { display: block; margin-top: 20px; font-style: normal; }
.dd-review-name { display: block; font-size: .9375rem; font-weight: 600; color: var(--blue-dark); }
.dd-review-role { display: block; font-size: .875rem; color: var(--text-muted); }

.dd-photos { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 12px; }
.dd-photo { width: 100%; height: 12.5rem; object-fit: cover; display: block; }
.dd-photos-note { margin: 1rem 0 0; font-size: .875rem; color: var(--text-muted); }

.dd-previous-list { list-style: none; margin: 0; padding: 0; }
.dd-previous-list li { border-bottom: 1px solid var(--border); }
.dd-previous-list a { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; text-decoration: none; color: inherit; }
.dd-previous-list a:hover .dd-previous-title { color: var(--accent); }
.dd-previous-date { font-size: .8125rem; color: var(--text-muted); }
.dd-previous-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--blue-dark); }
.dd-previous-summary { font-size: .875rem; color: var(--text); }

@media (min-width: 40rem) {
  .dd-previous-list a { flex-direction: row; align-items: baseline; gap: 20px; }
  .dd-previous-date { flex: none; width: 9rem; }
}

.dd-next-audiences { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.dd-next-audience-text { margin: 10px 0 0; font-size: .9375rem; line-height: 1.55; color: #fff; }
.dd-next-audience-link { margin: 12px 0 0; font-size: .875rem; font-weight: 600; color: #fff; }

@media (min-width: 40rem) {
  .dd-counters { grid-template-columns: repeat(4, 1fr); }
  .dd-counter { border-top: 0; }
  .dd-counter:nth-child(n) { border-left: 1px solid var(--border); }
  .dd-counter:first-child { border-left: 0; }
  .dd-mentors { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 64rem) {
  .dd-about { padding: 64px 72px; }
  .dd-about-inner { flex-direction: row; gap: 80px; }
  .dd-about-inner > div:first-child { flex: 1; }
  .dd-about-text { flex: 1.4; font-size: 1.25rem; }

  .dd-cycle { flex-direction: row; }
  .dd-cycle-arrow { transform: none; }

  .dd-format-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }

  .dd-team-list { column-count: 2; column-gap: 56px; }
  .dd-team-row { break-inside: avoid-column; }

  .dd-mentors { grid-template-columns: repeat(5, 1fr); }

  .dd-reviews-grid { flex-direction: row; }
  .dd-review { flex: 1; padding: 0 40px 0 0; margin-right: 40px; border-top: 0; border-left: 1px solid var(--border); padding-left: 40px; }
  .dd-review:first-child { border-left: 0; padding-left: 0; }
  .dd-review p { font-size: 1.25rem; }

  .dd-next-audiences { flex-direction: row; border-top: 0; margin-top: 40px; padding-top: 0; }
  .dd-next-audiences > div { flex: 1; padding: 0 40px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .dd-next-audiences > div:first-child { padding-left: 0; border-left: 0; }
}

/* "Партнерам" page */
.partners-how { display: flex; flex-direction: column; }
.partners-how-item { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.partners-how-item:last-child { border-bottom: 0; }
.partners-how-item h3 { margin: 0; font-size: 1.25rem; }
.partners-how-item p { margin: 0; font-size: 1rem; color: var(--text); }
.partners-how-when { margin: auto 0 0; padding-top: 6px; font-size: .875rem; color: var(--text-muted); }
.partners-how-when strong { color: var(--blue-dark); font-weight: 600; }

.partners-timeline-row { margin-top: 28px; display: flex; flex-direction: column; gap: 24px; padding-left: 16px; border-left: 3px solid var(--blue-light); }
.partners-timeline-step h3 { margin: 12px 0 0; font-size: 1.125rem; }
.partners-timeline-marker { display: none; }
.partners-timeline-duration { display: block; margin-top: 4px; font-size: .875rem; color: var(--text-muted); }
.partners-timeline-role { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--blue-dark); background: #fff; padding: 6px 10px; }

.partners-audiences-benefits { display: flex; flex-direction: column; gap: 40px; }
.partners-audience-row { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.partners-audience-row:last-child { border-bottom: 0; }
.partners-audience-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--blue-dark); }
.partners-audience-description { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.partners-audience-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.partners-benefits { background: var(--blue-dark); padding: 32px 20px; }
.partners-benefit { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.partners-benefit:last-child { border-bottom: 0; }
.partners-benefit h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.partners-benefit p { margin: 8px 0 0; font-size: 1rem; line-height: 1.55; color: var(--on-dark-text); }

.partners-teams-partners { display: flex; flex-direction: column; gap: 40px; }
.partners-team-monograms { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); gap: 12px; }
.partners-team { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.partners-team span:last-child { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--blue-dark); }
.partners-team:hover span:last-child { color: var(--accent); }
.partners-more-teams { margin: 18px 0 0; font-size: .875rem; color: var(--text-muted); }

.partners-empty { margin-top: 20px; padding: 28px; border: 1px dashed var(--border-muted); display: flex; flex-direction: column; gap: 8px; }
.partners-empty-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--blue-dark); }
.partners-empty p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.partners-logo-grid { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.partners-logo { max-height: 3.5rem; max-width: 9rem; width: auto; filter: grayscale(1); opacity: .8; }
.partners-logo-fallback { font-weight: 600; color: var(--text-muted); }

.partners-apply-inner { display: flex; flex-direction: column; gap: 40px; }
.partners-direct-contact { margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--blue-dark); }
.partners-direct-email { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-dark); }
.partners-form { display: flex; flex-direction: column; gap: 20px; background: #fff; padding: 24px; }
.partners-form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field-optional { font-weight: 400; color: var(--text-muted); }
.partners-formats { border: 0; padding: 0; margin: 0; }
.partners-formats legend { padding: 0; margin: 0 0 10px; font-size: .875rem; font-weight: 600; color: var(--blue-dark); }
.partners-format-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.partners-format-chip { position: relative; cursor: pointer; }
.partners-format-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.partners-format-chip span { display: inline-block; padding: 10px 14px; font-size: .9375rem; font-weight: 600; color: var(--blue-dark); background: #fff; border: 1px solid var(--border-muted); }
.partners-format-chip:has(input:checked) span { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.partners-format-chip:has(input:checked) span::before { content: "\2713\0020"; }
.partners-format-chip input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }
.partners-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 0; }
.partners-success { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.partners-success-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--blue-dark); }

@media (min-width: 40rem) {
  .partners-form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .partners-how { flex-direction: row; }
  .partners-how-item { flex: 1; padding: 28px; border-bottom: 0; border-left: 1px solid var(--border); }
  .partners-how-item:first-child { padding-left: 0; border-left: 0; }

  .partners-timeline-row { flex-direction: row; padding-left: 0; border-left: 0; gap: 0; position: relative; }
  .partners-timeline-row::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--border-muted); }
  .partners-timeline-step { position: relative; padding-right: 24px; }
  .partners-timeline-marker { display: block; width: 12px; height: 12px; background: var(--blue-dark); }
  .partners-timeline-step-final .partners-timeline-marker { background: var(--accent); }
  .partners-timeline-step h3 { margin-top: 18px; }

  .partners-audiences-benefits { flex-direction: row; gap: 64px; }
  .partners-audiences { flex: 1.3; }
  .partners-benefits { flex: 1; padding: 40px; align-self: start; }
  .partners-audience-row { flex-direction: row; justify-content: space-between; align-items: start; gap: 16px; }
  .partners-audience-tags { justify-content: flex-end; align-self: start; }

  .partners-teams-partners { flex-direction: row; gap: 64px; }
  .partners-teams { flex: 1.3; }
  .partners-partners { flex: 1; }

  .partners-apply-inner { flex-direction: row; gap: 80px; }
  .partners-apply-inner > div:first-child { flex: 1; }
  .partners-form { flex: 1.6; }
}

