/* ABOUTME: About stencil styles, measured from the designer's AboutPage.tsx and HowWeWorkFlow.tsx. Shared patterns
   ABOUTME: (page title band, feature photo, MediaTextPair, buttons, type scale) live in the child theme's nclc.css. */

.scribe-about { --ab-head: 72px; --ab-offset: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ab-head) + 64px); }
@media (min-width: 1440px) { .scribe-about { --ab-head: 88px; } }
.scribe-about .ab-band { padding-block: 64px; scroll-margin-top: var(--ab-offset); }
.scribe-about .ab-ink { color: var(--n-800); }
.scribe-about .ab-muted { color: var(--n-700); }
.scribe-about .ab-top { object-position: top; }
@media (min-width: 1024px) { .scribe-about .ab-band { padding-block: 96px; } }

/* == section: head == */
/* The title band is the theme's .page-hero. */
/* == /section == */

/* == section: photo == */
.scribe-about .ab-photo { object-position: top; }
/* == /section == */

/* == section: tabs == */
.scribe-about .ab-tabs { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ab-head)); z-index: 90; background: var(--n-0); transition: box-shadow .15s; }
.scribe-about .ab-tabs.is-stuck { box-shadow: var(--shadow-l1); }
.scribe-about .ab-tabs__phone { border-bottom: 1px solid var(--n-200); }
.scribe-about .ab-tabs__select { display: flex; flex-direction: column; gap: 4px; padding-block: 12px; }
.scribe-about .ab-tabs__select-label { color: var(--n-700); }
.scribe-about .ab-tabs__select select { box-sizing: border-box; width: 100%; height: 48px; border: 1px solid var(--n-300); border-radius: var(--r-sm); background: var(--n-0); padding: 0 12px; font: 400 18px/1.4 var(--sans); color: var(--n-900); }
.scribe-about .ab-tabs__select select:focus { border-color: var(--azure-600); }
.scribe-about .ab-tabs__row { display: none; border-bottom: 1px solid var(--n-200); }
.scribe-about .ab-tabs__list { display: flex; flex-wrap: wrap; white-space: nowrap; }
.scribe-about .ab-tabs__list li { flex: none; }
.scribe-about .ab-tabs__list a { position: relative; display: flex; height: 48px; align-items: center; padding: 0 12px; font: 600 17px/1 var(--sans); color: var(--n-700); text-decoration: none; }
.scribe-about .ab-tabs__list a:hover { color: var(--n-900); }
.scribe-about .ab-tabs__list a[aria-current="true"] { color: var(--n-900); }
.scribe-about .ab-tabs__list a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow-500); }
.scribe-about .ab-tabs__edit { padding-block: 8px; font: 400 14px/1.4 var(--sans); color: var(--n-600); }
@media (min-width: 768px) {
	.scribe-about .ab-tabs__phone { display: none; }
	.scribe-about .ab-tabs__row { display: block; }
}
@media (min-width: 1024px) { .scribe-about .ab-tabs__list a { padding: 0 16px; font-size: 18px; } }
/* == /section == */

/* == section: mission == */
.scribe-about .ab-mission__box { display: grid; gap: 32px; border-radius: var(--r-xl); background: var(--pastel-100); padding: 32px; }
.scribe-about .ab-mission__col { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .scribe-about .ab-mission__box { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .scribe-about .ab-mission__box { padding: 48px; } }
/* == /section == */

/* == section: story == */
.scribe-about .ab-stack { display: flex; flex-direction: column; gap: 64px; }
.scribe-about .mtp__media.ab-video .scribe-embed { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.scribe-about .mtp__media.ab-video .video-label { position: absolute; inset: 16px auto auto 16px; width: auto; height: auto; }
.scribe-about .ab-story__body { display: flex; flex-direction: column; gap: 16px; color: var(--n-800); }
.scribe-about .ab-story__body p { margin: 0; }
.scribe-about .ab-timeline { min-width: 0; }
.scribe-about .ab-timeline__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.scribe-about .ab-timeline__title { min-width: 0; }
.scribe-about .ab-timeline__range { color: var(--plum-700); }
.scribe-about .ab-timeline__btns { display: flex; flex: none; gap: 8px; }
.scribe-about .ab-timeline__btn { width: 48px; height: 48px; padding: 0; }
.scribe-about .ab-timeline__btn:disabled { opacity: .4; cursor: default; }
.scribe-about .ab-timeline__edit { margin: -8px 0 16px; font: 400 14px/1.4 var(--sans); color: var(--n-600); }
.scribe-about .ab-timeline__list { display: flex; align-items: stretch; gap: 24px; margin: 0; padding: 0 0 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; list-style: none; scrollbar-color: var(--plum-300) var(--n-200); }
.scribe-about .ab-timeline__list:focus-visible { outline: 2px solid var(--azure-600); outline-offset: 4px; }
.scribe-about .ab-year { display: flex; flex: none; flex-direction: column; }
.scribe-about .ab-year__mark { position: relative; display: flex; height: 48px; align-items: center; gap: 12px; margin-bottom: 16px; }
.scribe-about .ab-year__mark::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -24px; height: 4px; margin: auto 0; background: var(--plum-300); }
.scribe-about .ab-year__pill { position: relative; border-radius: 999px; background: var(--plum-700); padding: 4px 16px; font: 600 20px/1.5 var(--display); color: var(--n-0); }
.scribe-about .ab-year__dot { position: relative; display: block; background: var(--n-50); padding: 4px; }
.scribe-about .ab-year__dot svg { display: block; }
.scribe-about .ab-year__entries { display: flex; flex: 1; align-items: stretch; gap: 24px; }
.scribe-about .ab-entry { display: flex; width: min(85vw, 360px); box-sizing: border-box; flex: none; flex-direction: column; scroll-snap-align: start; gap: 8px; overflow: hidden; border-radius: var(--r-lg); background: var(--n-0); padding: 24px; box-shadow: var(--shadow-l1); }
.scribe-about .ab-entry__when { font: 600 16px/1.5 var(--sans); color: var(--plum-700); }
.scribe-about .ab-entry__body { font: 400 18px/29px var(--sans); color: var(--n-800); }
@media (min-width: 768px) { .scribe-about .ab-entry { width: 340px; } }
/* == /section == */

/* == section: how == */
.scribe-about .ab-how { color: var(--n-0); }
.scribe-about .ab-how__inner { display: flex; flex-direction: column; gap: 48px; }
.scribe-about .ab-how__head { display: flex; max-width: 70ch; flex-direction: column; gap: 16px; }
.scribe-about .ab-how__head .t-h2 { color: var(--n-0); }
.scribe-about .ab-flow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scribe-about .ab-flow__step { display: contents; }
.scribe-about .ab-flow__card { display: flex; box-sizing: border-box; width: 100%; flex-direction: column; align-items: center; gap: 16px; border-radius: var(--r-lg); background: var(--n-0); padding: 24px; text-align: center; box-shadow: var(--shadow-l1); }
.scribe-about .ab-flow__icon { display: flex; color: var(--turquoise-700); }
.scribe-about .ab-flow__icon svg { width: 36px; height: 36px; }
.scribe-about .ab-flow__label { font: 600 20px/1.25 var(--display); color: var(--n-900); }
/* The yellow arrow after every step but the last (designer: ArrowDown on phones, ArrowRight from 1024px). */
.scribe-about .ab-flow__step::after { content: ""; flex: none; width: 32px; height: 32px; background: var(--yellow-500);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / 32px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E") center / 32px no-repeat; }
.scribe-about .ab-flow__step.is-last::after { content: none; }
body.scribe-editing .scribe-about .ab-flow__step { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 1024px) {
	.scribe-about .ab-flow { flex-direction: row; align-items: stretch; }
	.scribe-about .ab-flow__card { flex: 1 1 0; }
	.scribe-about .ab-flow__step::after { align-self: center;
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
	body.scribe-editing .scribe-about .ab-flow__step { flex: 1 1 0; flex-direction: row; }
}
.scribe-about .ab-how__boxes { display: flex; flex-direction: column; gap: 24px; }
.scribe-about .ab-how__boxes .t-h3 { color: var(--n-900); }
/* == /section == */

/* == section: council == */
.scribe-about .ab-council__inner { display: flex; flex-direction: column; gap: 40px; }
.scribe-about .ab-council__head { display: flex; flex-direction: column; gap: 12px; }
.scribe-about .ab-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.scribe-about .ab-tile-li { height: 100%; }
.scribe-about .ab-tile { display: flex; box-sizing: border-box; height: 100%; flex-direction: column; align-items: center; gap: 12px; border: 1px solid var(--n-200); border-radius: var(--r-lg); background: var(--n-0); padding: 20px; text-align: center; text-decoration: none; }
.scribe-about a.ab-tile:hover { border-color: var(--azure-500); }
.scribe-about .ab-tile__logo { display: grid; width: 100%; max-width: 120px; aspect-ratio: 1; place-items: center; }
.scribe-about .ab-tile__logo img { width: 100%; height: 100%; object-fit: contain; }
.scribe-about .ab-tile__logo > .scribe-image-placeholder { width: 100%; height: 100%; min-height: 0; } /* edit mode: Scribe's empty-photo box is 200px tall by default */
.scribe-about .ab-tile__name { font: 600 18px/1.63 var(--sans); color: var(--n-900); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.scribe-about .ab-tile__url { font: 400 13px/1.4 var(--sans); color: var(--n-600); }
.scribe-about .ab-council__group { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--n-200); padding-top: 32px; }
.scribe-about .ab-council__plus { font: 400 18px/1.63 var(--sans); color: var(--n-800); }
.scribe-about .ab-council__note { font: 400 14px/24px var(--sans); color: var(--n-700); }
.scribe-about .ab-council__question { border: 2px dashed var(--n-400); border-radius: var(--r-sm); padding: 16px; font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--n-700); }
@media (min-width: 400px) { .scribe-about .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .scribe-about .ab-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* == /section == */

/* == section: reports == */
.scribe-about .ab-reports__inner { display: flex; flex-direction: column; gap: 32px; }
.scribe-about .ab-reports__list { display: flex; flex-direction: column; gap: 24px; }
.scribe-about .ab-report { display: flex; min-width: 0; flex-direction: column; gap: 12px; border: 1px solid var(--n-200); border-radius: var(--r-lg); background: var(--n-0); padding: 20px; box-shadow: var(--shadow-l1); }
.scribe-about .ab-report__links { display: flex; flex-wrap: wrap; gap: 12px; }
.scribe-about .ab-report__link { display: inline-flex; align-items: center; gap: 8px; }
.scribe-about .ab-report__lang { font: 400 13px/1.4 var(--sans); color: var(--n-600); }
.scribe-about .ab-report__none { color: var(--n-600); }
.scribe-about .ab-reports__edit { font: 400 14px/1.4 var(--sans); color: var(--n-600); }
.scribe-about .ab-archive { border-top: 1px solid var(--n-200); padding-top: 24px; }
.scribe-about .ab-archive summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; font: 600 18px/1.4 var(--sans); color: var(--azure-700); cursor: pointer; list-style: none; }
.scribe-about .ab-archive summary::-webkit-details-marker { display: none; }
.scribe-about .ab-archive summary::marker { content: ""; }
.scribe-about .ab-archive summary svg { flex: none; transition: transform .15s; }
.scribe-about .ab-archive[open] summary svg { transform: rotate(180deg); }
.scribe-about .ab-archive > :not(summary) { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .scribe-about .ab-archive summary svg { transition: none; } }
@media (min-width: 768px) { .scribe-about .ab-report { padding: 24px; } }
/* == /section == */

/* == section: team == */
.scribe-about .ab-team__inner { display: flex; flex-direction: column; gap: 40px; }
.scribe-about .ab-team__edit { font: 400 14px/1.4 var(--sans); color: var(--n-600); }
.scribe-about .ab-team__grid { display: grid; gap: 48px 32px; }
.scribe-about .ab-person { display: flex; width: 100%; flex-direction: column; gap: 16px; }
.scribe-about .ab-person__photo { width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: var(--r-lg); object-fit: cover; }
.scribe-about .ab-person__text { display: flex; flex-direction: column; gap: 12px; }
.scribe-about .ab-person__id { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.scribe-about .ab-person__name { font: 600 22px/1.25 var(--display); color: var(--n-900); }
.scribe-about .ab-person__mail { display: inline-flex; margin-left: 8px; vertical-align: middle; color: var(--azure-700); transition: opacity .15s; }
.scribe-about .ab-person__mail:hover { opacity: .7; color: var(--azure-700); }
.scribe-about .ab-person__title { font: 400 16px/24px var(--sans); color: var(--n-700); }
.scribe-about .ab-person__pronouns { color: var(--n-700); }
.scribe-about .ab-person__bio { max-width: 65ch; font: 400 16px/28px var(--sans); color: var(--n-800); }
@media (min-width: 640px) { .scribe-about .ab-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* == /section == */
