/*
 * The Nova Cafe - articles and pages: split header with cover, reading column + right sidebar,
 * contents, correction note, share strip and "Pass the cup" panel, related row, info pages,
 * glossary page.
 */

.read-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; pointer-events: none; }
.read-progress__bar { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }

/* Header ------------------------------------------------------------------------ */
.article-head { padding-block: 26px 34px; border-bottom: 1px solid var(--line-strong); }
.article-head__grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.article-head.has-cover .article-head__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; }
}
.article-head__section { margin: 0 0 12px; }
.article-head__section a {
	display: inline-block; padding: 4px 12px; border-radius: 3px; background: var(--yellow); color: var(--espresso);
	font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.article-head__section a:hover { background: var(--espresso); color: var(--yellow); }
.article-head__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -.018em; margin: 0 0 16px; overflow-wrap: anywhere; hyphens: auto; }
.article-head__deck { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.375rem); line-height: 1.45; color: var(--ink-soft); margin: 0 0 20px; }
.article-head__cover { margin: 0; }
.article-head__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.article-head__cover figcaption { margin-top: 8px; font-size: .8125rem; color: var(--ink-soft); }

.byline { padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 16px; }
.byline__author { margin: 0 0 8px; font-weight: 600; }
.byline__author a { font-weight: 700; }
.byline__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: .8125rem; }
.byline__facts div { display: flex; gap: 6px; }
.byline__facts dt { color: var(--coffee); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .6875rem; padding-top: 2px; }
.byline__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.badge-demo--lg { margin: 10px 0 0; font-size: .75rem; text-transform: none; letter-spacing: 0; padding: 4px 10px; }

/* Share ----------------------------------------------------------------------------- */
.share__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px;
	border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--espresso);
	text-decoration: none; cursor: pointer; font-weight: 650; font-size: .875rem;
}
.share__btn:hover { border-color: var(--espresso); background: var(--foam); }
.share__btn--text { border-radius: 999px; padding: 0 14px; }
.share--strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.share--strip .share__title { margin: 0; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--coffee); }
.share__status { margin: 0; font-size: .875rem; font-weight: 600; }
.share__status:empty { display: none; }

.share--panel {
	margin: 40px 0 16px; padding: 26px; border-radius: var(--radius-lg); background: var(--espresso); color: var(--cream);
	--social-bg: var(--espresso); border-bottom: 6px solid var(--yellow);
}
.share--panel .share__title { margin: 0 0 6px; font-size: 1.625rem; color: var(--cream); }
.share__lede { margin: 0 0 16px; color: rgba(255, 248, 236, .86); }
.share--panel .share__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.share--panel .share__btn {
	width: 100%; justify-content: flex-start; padding: 0 14px; border-radius: var(--radius); border-color: rgba(255, 248, 236, .3);
	background: rgba(255, 248, 236, .06); color: var(--cream);
}
.share--panel .share__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--espresso); --social-bg: var(--yellow); }
.share--panel .share__status { margin-top: 12px; color: var(--yellow); }
.share__fallback { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.share__fallback[hidden] { display: none; }
.share__fallback input { min-height: 44px; padding: 8px 10px; border-radius: var(--radius); border: 0; background: var(--white); color: var(--espresso); width: 100%; }
.social-icon { flex: none; }

/* Body ------------------------------------------------------------------------------------ */
.article-body { display: grid; gap: 40px; padding-top: 34px; }
@media (min-width: 1024px) { .article-body.has-side { grid-template-columns: minmax(0, 700px) 320px; justify-content: space-between; gap: 56px; } }
.article-main { min-width: 0; max-width: 700px; }
.article-side { min-width: 0; }

.article-note { margin: 0 0 26px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius); }
.article-note__label { margin: 0 0 4px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--coffee); }
.article-note p:last-child { margin: 0; }

.toc { margin: 0 0 28px; padding: 16px 18px; background: var(--foam); border-radius: var(--radius); border: 1px solid var(--line); }
.toc__title { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.toc__list { margin: 10px 0 0; padding-left: 1.4em; }
.toc__list li { padding: 3px 0; }
.toc__list li::marker { color: var(--coffee); font-weight: 700; }

.entry { font-size: 1.125rem; line-height: 1.75; overflow-wrap: break-word; }
.entry > * { margin-block: 0 1.15em; }
.entry h2 { font-size: clamp(1.45rem, 2.4vw, 1.875rem); margin-top: 1.6em; scroll-margin-top: 80px; }
.entry h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry a { color: var(--espresso); text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; }
.entry a:hover { background: var(--yellow); text-decoration: none; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--yellow); font-family: var(--font-head); font-style: italic; font-size: 1.25rem; }
.entry ul,
.entry ol { padding-left: 1.3em; }
.entry li::marker { color: var(--coffee); }
.entry figure { margin-inline: 0; }
.entry figcaption,
.entry .wp-caption-text { font-size: .875rem; color: var(--ink-soft); margin-top: 6px; }
.entry img { border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry th,
.entry td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.entry hr { border: 0; height: 1px; background: var(--line-strong); }
.entry .demo-note { padding: 12px 16px; background: var(--latte); border: 1px dashed var(--coffee); border-radius: var(--radius); font-size: 1rem; }

.term-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.term-row__label { margin: 0; font-weight: 700; font-size: .875rem; }
.term-row ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article-standards { margin: 0; }

.related { padding-block: 44px 8px; margin-top: 40px; background: var(--latte); border-top: 1px solid var(--line); }
.related__grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .related__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.related .card { background: var(--white); border-radius: var(--radius-lg); padding: 12px 12px 16px; border: 1px solid var(--line); }
.related .card__body { padding-inline: 4px; }

/* Pages --------------------------------------------------------------------------------------- */
.page-view__head { padding-block: 30px 26px; border-bottom: 4px double var(--espresso); background: var(--foam); }
.page-view__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 10px; }
.page-view__intro { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; max-width: 62ch; color: var(--ink-soft); }
.page-view__updated { margin: 0; }
.page-view__body { display: grid; gap: 28px; padding-top: 34px; }
@media (min-width: 1024px) { .page-view__body.has-toc { grid-template-columns: 240px minmax(0, 720px); gap: 48px; } }
.page-view__main { min-width: 0; max-width: 720px; }
.page-toc { align-self: start; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 5px solid var(--yellow); }
.page-toc__title { margin: 0 0 8px; font-weight: 750; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coffee); }
.page-toc ol { margin: 0; padding-left: 1.2em; font-size: .9375rem; }
.page-toc li { padding: 3px 0; }
.contact-form-wrap { margin-top: 32px; padding: 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); border-top: 6px solid var(--espresso); }
.contact-form-wrap h2 { font-size: 1.6rem; }

.sitemap-grid { display: grid; gap: 32px; padding-top: 34px; }
@media (min-width: 900px) { .sitemap-grid { grid-template-columns: 1fr 2fr; } }
.sitemap-list { margin: 0 0 28px; padding: 0; list-style: none; }
.sitemap-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.sitemap-list time { flex: none; font-size: .8125rem; color: var(--ink-soft); }

/* Glossary page ------------------------------------------------------------------------------------ */
.glossary { padding-top: 30px; max-width: 900px; }
.glossary__letters ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.glossary__letters a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-strong); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.glossary__letters a:hover { background: var(--espresso); color: var(--yellow); }
.glossary__letter { font-size: 2.5rem; color: var(--coffee); border-bottom: 2px solid var(--espresso); padding-bottom: 4px; scroll-margin-top: 80px; }
.glossary__list { margin: 0 0 30px; }
.glossary__item { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.glossary__item:target { background: var(--foam); box-shadow: -12px 0 0 var(--foam), 12px 0 0 var(--foam); }
.glossary__item dt { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.glossary__item dfn { font-style: normal; }
.glossary__item dd { margin: 0; }
.glossary__item dd p:last-child { margin: 0; }
