/*
 * Content area of Core-rendered public pages (PublicContentHttpController).
 * Base layout plus the reference block types (text-columns, faq, dynamic).
 * Block types add their own file (public-content-<type>.css) via getStylesheets();
 * reuse the custom properties below instead of new colors.
 */
.public-content {
	--content-primary: #0a3caa;
	--content-primary-hover: #083088;
	--content-primary-soft: #eaf0fb;
	--content-accent: #d41324;
	--content-accent-hover: #a80f1c;
	/* Awareness accent: only for the awareness tone (Awareness page, awareness sections), never as a general accent. */
	--content-awareness: #ae005e;
	--content-awareness-hover: #8c004c;
	--content-awareness-soft: #fdf0f6;
	--content-awareness-border: #f0b3d2;
	--content-text: #202a36;
	--content-muted: #5b6878;
	--content-border: #dde3ec;
	--content-surface: #f5f8fd;
	/* Cards, tiles, FAQ items and table frames: white with --content-border, --content-radius and --content-shadow. */
	--content-card: #fff;
	--content-radius: .25rem;
	--content-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	/* Anton (weight 400 only) with metric-adjusted fallbacks; @font-face in public-navigation.css. */
	--content-font-display: var(--site-font-display, Impact, "Arial Narrow", sans-serif);
	--content-width: 72rem;
	/* Spacing scale. Every block sits --content-block-gap below the block above it (or below the navbar); the page ends
	   with the same gap above the footer. Full-bleed bands use --content-band-padding as their inner top/bottom
	   padding; a band touches the navbar, an adjacent band and the footer (see "Bands" below). */
	--content-block-gap: 2.5rem;
	--content-band-padding: 2.5rem;
	--content-strip-padding: .85rem;
	display: block;
	color: var(--content-text);
	padding: 0 0 var(--content-block-gap);
}
@media (min-width: 48rem) {
	.public-content { --content-band-padding: 3.5rem; }
}

.public-content .content-block {
	width: min(var(--content-width), 100% - 2rem);
	margin: 0 auto;
	padding: var(--content-block-gap) 0 0;
}
/* The gap is the block padding alone: the outer margins of a block's first and last content (a paragraph's bottom
   margin, a section's top margin, six levels deep) do not add to it. */
.public-content .content-block > :first-child,
.public-content .content-block > :first-child > :first-child,
.public-content .content-block > :first-child > :first-child > :first-child,
.public-content .content-block > :first-child > :first-child > :first-child > :first-child,
.public-content .content-block > :first-child > :first-child > :first-child > :first-child > :first-child,
.public-content .content-block > :first-child > :first-child > :first-child > :first-child > :first-child > :first-child { margin-top: 0; }
.public-content .content-block > :last-child,
.public-content .content-block > :last-child > :last-child,
.public-content .content-block > :last-child > :last-child > :last-child,
.public-content .content-block > :last-child > :last-child > :last-child > :last-child,
.public-content .content-block > :last-child > :last-child > :last-child > :last-child > :last-child,
.public-content .content-block > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0; }

/*
 * Bands: full-bleed blocks with their own background (cta-banner, feature-section, link-list band, photo-cards band,
 * application-strip, conference-hero, full photo-carousel, hero with an image). A band keeps the normal gap to the
 * normal blocks above and below it, but touches the navbar (first block), an adjacent band (no strip of page
 * background, no doubled border line) and the footer (last block). A full carousel with a heading starts with that
 * heading, so its top edge counts as a normal block.
 */
.public-content .content-block:first-child:has(> :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band, .content-application-strip, .content-conference-hero, .content-hero--with-image), > .content-photo-carousel:not(.content-photo-carousel--compact) > .content-photo-carousel-viewport:first-child),
.public-content .content-block:has(> :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band, .content-application-strip, .content-conference-hero, .content-photo-carousel:not(.content-photo-carousel--compact), .content-hero--with-image)) + .content-block:has(> :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band, .content-application-strip, .content-conference-hero, .content-hero--with-image), > .content-photo-carousel:not(.content-photo-carousel--compact) > .content-photo-carousel-viewport:first-child) {
	padding-top: 0;
}
.public-content .content-block:first-child > :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band),
.public-content .content-block:has(> :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band, .content-application-strip, .content-conference-hero, .content-photo-carousel:not(.content-photo-carousel--compact), .content-hero--with-image)) + .content-block > :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band) {
	border-top-width: 0;
}
/* A page that ends with a band runs that band straight into the footer: no bottom padding of the page in between. */
.public-content:has(> .content-block:last-child > :is(.content-cta-banner, .content-feature-section, .content-link-list--band, .content-photo-cards--band, .content-application-strip, .content-conference-hero, .content-photo-carousel:not(.content-photo-carousel--compact), .content-hero--with-image)) {
	padding-bottom: 0;
}

/* Year picker below a page hero (PublicContentYearHeading: Committees, Downloads, …): the big year is text; the real select
   lies transparently over it at body size, so the opened list is a normal-sized menu. */
.public-content .content-year-picker { display: flex; align-items: baseline; gap: .5rem; margin: 0; }
.public-content .content-year-picker__control {
	position: relative;
	display: inline-block;
	font-family: var(--content-font-display);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.14;
	letter-spacing: .02em;
	color: var(--content-primary);
	border-bottom: 3px solid currentColor;
	padding-right: .65em;
}
/* The chevron is a mask filled with currentColor, so it follows the theme's primary colour (a data URI cannot use var()). */
.public-content .content-year-picker__control::after {
	content: "";
	position: absolute;
	top: 0;
	right: .1em;
	bottom: 0;
	width: .45em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat center / contain;
	pointer-events: none;
}
.public-content .content-year-picker__select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	font-family: system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.4;
	cursor: pointer;
}
.public-content .content-year-picker__control:hover { color: var(--content-primary-hover); }
.public-content .content-year-picker__control:focus-within { outline: 3px solid var(--content-primary); outline-offset: 4px; }

/* Previous/next arrow button of every slider (photo cards, photo carousel, issue slider): one component, the same size
   and look everywhere. It sits over the slider's left and right edge at the vertical middle of the photos: each block
   only makes the box around its track positioned and may move the button's centre with --content-nav-top (default the
   middle of that box) and its distance from the edge with --content-nav-inset. One chevron, drawn as a mask in the
   button's text colour (currentColor) and centred in the button. Dark and translucent, so it reads on photos and on
   white paper alike. */
.public-content .content-nav-button {
	position: absolute;
	top: var(--content-nav-top, 50%);
	bottom: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--content-radius);
	background: rgba(0, 0, 0, .55);
	color: #fff;
	opacity: 1;
	box-shadow: 0 .25rem .75rem rgba(16, 24, 40, .2);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.public-content .content-nav-button--prev { left: var(--content-nav-inset, .75rem); right: auto; }
.public-content .content-nav-button--next { right: var(--content-nav-inset, .75rem); left: auto; }
.public-content .content-nav-button[hidden] { display: none; }
.public-content .content-nav-button::before {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m10.5 3-5 5 5 5'/%3e%3c/svg%3e") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m10.5 3-5 5 5 5'/%3e%3c/svg%3e") no-repeat center / contain;
}
.public-content .content-nav-button--next::before { transform: scaleX(-1); }
.public-content .content-nav-button:hover:not(:disabled),
.public-content .content-nav-button:focus { border-color: #fff; background: rgba(0, 0, 0, .75); color: #fff; opacity: 1; }
.public-content .content-nav-button:disabled { opacity: .4; cursor: default; }
/* Keyboard focus: a white ring with a primary halo outside the button, visible on photos and on light backgrounds. */
.public-content .content-nav-button:focus-visible { outline: 3px solid var(--content-primary); outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }
@media (prefers-reduced-motion: reduce) {
	.public-content .content-nav-button { transition: none; }
}

/* Back link above the title of a sub page ("← Team"), the same as the committee pages' "← All committees". */
.public-content .team-back { margin: 0 0 1rem; font-size: .95rem; }

/* Full-bleed blocks (hero, banners) opt out of the width limit with this modifier. */
.public-content .content-block.content-block--full {
	width: 100%;
}

/* Headings: page and section titles (h1, h2) in Anton 400 uppercase with a little letter and word spacing, so the
   condensed caps stay readable (no faux bold: Anton has one weight, so synthesis is off). Small titles (h3: cards,
   steps, team names) use the bold body face in caps with wider tracking, which reads better at small sizes. Long words
   may break. */
.public-content h1,
.public-content h2,
.public-content h3 {
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.public-content h1,
.public-content h2 {
	font-family: var(--content-font-display);
	font-weight: 400;
	font-synthesis: none;
	word-spacing: .08em;
}
.public-content h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.14; letter-spacing: .02em; margin: 0 0 1rem; }
.public-content h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: .02em; margin: 0 0 1rem; color: var(--content-text); }
.public-content h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; letter-spacing: .05em; margin: 0 0 .6rem; clear: none; }
.public-content p { line-height: 1.6; margin: 0 0 1rem; }
/* Buttons keep their own label colours: :where() leaves this rule at the specificity of `.public-content a`,
   which would otherwise beat Bootstrap's `.btn { color: var(--bs-btn-color) }` (blue label on a blue fill). */
.public-content a:where(:not(.btn)) { color: var(--content-primary); text-decoration: underline; text-underline-offset: .15em; }
.public-content a:where(:not(.btn)):hover { color: var(--content-primary-hover); }
.public-content a.btn { text-decoration: none; }
/* Bootstrap primary buttons inside the content follow the content theme (olmun-bootstrap-theme.css pins them to #0a3caa). */
.public-content .btn-primary {
	--bs-btn-bg: var(--content-primary);
	--bs-btn-border-color: var(--content-primary);
	--bs-btn-hover-bg: var(--content-primary-hover);
	--bs-btn-hover-border-color: var(--content-primary-hover);
	--bs-btn-active-bg: var(--content-primary-hover);
	--bs-btn-active-border-color: var(--content-primary-hover);
	--bs-btn-disabled-bg: var(--content-primary);
	--bs-btn-disabled-border-color: var(--content-primary);
}
.public-content .btn-outline-primary {
	--bs-btn-color: var(--content-primary);
	--bs-btn-border-color: var(--content-primary);
	--bs-btn-hover-bg: var(--content-primary);
	--bs-btn-hover-border-color: var(--content-primary);
	--bs-btn-active-bg: var(--content-primary);
	--bs-btn-active-border-color: var(--content-primary);
	--bs-btn-disabled-color: var(--content-primary);
	--bs-btn-disabled-border-color: var(--content-primary);
}

/* Bootstrap tables (table block, Executive Board history) take the content colours instead of Bootstrap's black text,
   grey rules and white cells (the white cells would hide the row stripes). */
.public-content .table {
	--bs-table-color: var(--content-text);
	--bs-table-bg: transparent;
	--bs-table-border-color: var(--content-border);
}

.public-content .content-columns { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) {
	.public-content .content-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.public-content .content-columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.public-content .content-faq-list { border-top: 1px solid var(--content-border); }
.public-content .content-faq-item { border-bottom: 1px solid var(--content-border); }
.public-content .content-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 1rem 2.25rem 1rem 0;
	position: relative;
	font-weight: 600;
}
.public-content .content-faq-item summary::-webkit-details-marker { display: none; }
.public-content .content-faq-item summary::after {
	content: "+";
	position: absolute;
	right: .25rem;
	top: .8rem;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--content-primary);
}
.public-content .content-faq-item[open] summary::after { content: "\2212"; }
.public-content .content-faq-item summary:focus-visible { outline: 2px solid var(--content-primary); outline-offset: 2px; }
.public-content .content-faq-answer { padding: 0 0 1rem; color: var(--content-text); }

/* Draft preview */
.content-preview-banner {
	position: sticky;
	top: 0;
	z-index: 1020;
	padding: .6rem 1rem;
	background: #fff4d6;
	border-bottom: 1px solid #e8c766;
	color: #4d3b00;
	text-align: center;
}
.content-preview-banner a { color: #4d3b00; text-decoration: underline; }
