/* ==========================================================================
   YourTechRead — article and page reading layout
   ========================================================================== */

:root {
	--ytr-measure: 720px;
	--ytr-sidebar: 300px;
}

/* ---------- Reading progress ---------- */
.ytr-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .ytr-progress { top: var(--wp-admin--admin-bar--height, 32px); }
.ytr-progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ytr-green-text); }

/* ---------- Hero ---------- */
.ytr-hero { padding-top: 28px; padding-bottom: 28px; }
.ytr-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ytr-muted); margin-bottom: 28px; }
.ytr-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ytr-breadcrumbs li + li::before { content: "/"; color: var(--ytr-line); }
:root[data-theme="dark"] .ytr-breadcrumbs li + li::before { color: var(--ytr-muted); }
.ytr-breadcrumbs li[aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: inline-block; vertical-align: bottom; }
.ytr-breadcrumbs a:hover { color: var(--ytr-green-text); }

.ytr-hero__kicker { margin-bottom: 14px; }
.ytr-title { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.ytr-dek { margin-top: 18px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ytr-ink-2); max-width: 62ch; }

.ytr-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ytr-line); }
.ytr-byline__author { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.ytr-byline__avatar { width: 44px; height: 44px; border-radius: 22px; object-fit: cover; }
.ytr-byline__author > span { display: flex; flex-direction: column; line-height: 1.25; }
.ytr-byline__by { font-size: 12px; color: var(--ytr-muted); }
.ytr-byline__author strong { font-weight: 600; }
.ytr-byline__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ytr-muted); }
.ytr-byline__facts li { display: inline-flex; align-items: center; gap: 6px; }
.ytr-byline .ytr-share { margin-left: auto; }

/* Share buttons */
.ytr-share { display: flex; flex-wrap: wrap; gap: 6px; }
.ytr-share__btn {
	position: relative; width: 40px; height: 40px; border-radius: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ytr-line); background: var(--ytr-surface); color: var(--ytr-ink); cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.ytr-share__btn:hover { border-color: var(--ytr-ink); color: var(--ytr-ink); }
.ytr-copy-link__done {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: var(--ytr-ink); color: var(--ytr-paper); font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .15s;
}
.ytr-copy-link.is-copied .ytr-copy-link__done { opacity: 1; }

/* Featured image */
.ytr-featured { margin: 0 0 36px; }
.ytr-featured__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--ytr-radius-sm); }
.ytr-featured figcaption { margin-top: 10px; font-size: 13px; color: var(--ytr-muted); }

/* ---------- Two-column shell ---------- */
.ytr-shell {
	display: grid;
	grid-template-columns: minmax(0, var(--ytr-measure)) var(--ytr-sidebar);
	justify-content: space-between;
	gap: 64px; align-items: start;
	padding-bottom: 72px;
}
.ytr-main { min-width: 0; }

/* Affiliate disclosure */
.ytr-disclosure {
	display: flex; gap: 10px; align-items: flex-start;
	font-size: 14px; line-height: 1.5; color: var(--ytr-ink-2);
	background: var(--ytr-sunk); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius);
	padding: 12px 14px; margin-bottom: 28px;
}
.ytr-disclosure .ytr-icon { margin-top: 2px; color: var(--ytr-green-text); }
.ytr-disclosure a { color: var(--ytr-green-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Table of contents ---------- */
.ytr-toc--inline { display: none; margin-bottom: 28px; border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); background: var(--ytr-surface); }
.ytr-toc--inline summary {
	display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
	padding: 14px 16px; font-weight: 600; min-height: 52px;
}
.ytr-toc--inline summary::-webkit-details-marker { display: none; }
.ytr-toc--inline summary::after { content: "+"; margin-left: 8px; font-size: 22px; line-height: 1; color: var(--ytr-muted); }
.ytr-toc--inline[open] summary::after { content: "–"; }
.ytr-toc__count { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ytr-muted); }
.ytr-toc--inline .ytr-toc__list { padding: 0 16px 14px; }

.ytr-toc__list { list-style: none; counter-reset: ytr-toc; }
.ytr-toc__item { counter-increment: ytr-toc; }
.ytr-toc__link {
	display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px;
	padding: 8px 0; font-size: 14px; line-height: 1.4; color: var(--ytr-ink-2);
	border-top: 1px solid var(--ytr-line);
}
.ytr-toc__item:first-child > .ytr-toc__link { border-top: 0; }
.ytr-toc__link::before { content: counter(ytr-toc, decimal-leading-zero); font-family: var(--ytr-ff-mono); font-size: 11px; padding-top: 3px; color: var(--ytr-muted); }
.ytr-toc__link:hover { color: var(--ytr-ink); }
.ytr-toc__link.is-read { color: var(--ytr-muted); }
.ytr-toc__link.is-active { color: var(--ytr-ink); font-weight: 600; }
.ytr-toc__link.is-active::before { color: var(--ytr-green-text); }

.ytr-sidebar { position: sticky; top: calc(var(--ytr-header-h) + 24px); display: flex; flex-direction: column; gap: 28px; margin-top: 64px; }
.admin-bar .ytr-sidebar { top: calc(var(--ytr-header-h) + 24px + var(--wp-admin--admin-bar--height, 32px)); }
.ytr-toc--sticky { border-top: 4px solid var(--ytr-rule); padding-top: 14px; }
.ytr-toc__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ytr-toc__title { font-family: var(--ytr-ff-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ytr-ink); }
.ytr-toc__pct { font-family: var(--ytr-ff-mono); font-size: 12px; color: var(--ytr-green-text); }
.ytr-toc--sticky .ytr-toc__list { max-height: calc(100vh - var(--ytr-header-h) - 200px); overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.ytr-toc__top {
	margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 8px 0; font-size: 13px; color: var(--ytr-muted); cursor: pointer;
}
.ytr-toc__top:hover { color: var(--ytr-ink); }

.ytr-sidebar__widgets { display: flex; flex-direction: column; gap: 24px; }
.ytr-sidecard { border-top: 4px solid var(--ytr-rule); padding-top: 14px; }
.ytr-sidepop { list-style: none; margin-top: 8px; }
.ytr-sidepop li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ytr-line); font-weight: 600; font-size: 15px; line-height: 1.35; }
.ytr-sidepop li:first-child { border-top: 0; }
.ytr-sidepop span { font-family: var(--ytr-ff-display); font-weight: 800; color: var(--ytr-green-text); font-size: 20px; line-height: 1; width: 18px; flex: none; }

/* ---------- Content typography ---------- */
.ytr-content { font-size: 18px; line-height: 1.75; color: var(--ytr-ink); overflow-wrap: break-word; }
.ytr-content > * + * { margin-top: 1.15em; }
.ytr-content > :first-child { margin-top: 0; }
.ytr-content p { margin-bottom: 0; }
.ytr-content > p { margin-top: 1.15em; }
.ytr-content > p + p { margin-top: 1em; }
.ytr-content > :first-child { margin-top: 0; }
.ytr-content blockquote p, .ytr-content li p, .ytr-content td p { margin: 0; }
.ytr-content blockquote p + p { margin-top: .4em; }
.ytr-faq__body > :first-child { margin-top: 0; }
.ytr-content a { color: var(--ytr-green-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ytr-content a:hover { text-decoration-thickness: 2px; }
.ytr-content strong { font-weight: 600; }

.ytr-content h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; margin-top: 2.1em; margin-bottom: .5em; position: relative; }
.ytr-content h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-top: 1.7em; margin-bottom: .4em; position: relative; }
.ytr-content h4 { font-family: var(--ytr-ff-body); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-top: 1.5em; }
.ytr-content h2 + *, .ytr-content h3 + * { margin-top: 0; }

.ytr-anchor {
	position: absolute; left: -1.1em; top: 0; width: 1em; text-align: center;
	color: var(--ytr-muted) !important; text-decoration: none !important; font-weight: 400;
	opacity: 0; transition: opacity .15s;
}
.ytr-content h2:hover .ytr-anchor, .ytr-content h3:hover .ytr-anchor, .ytr-anchor:focus { opacity: 1; }

.ytr-content ul, .ytr-content ol { padding-left: 1.4em; }
.ytr-content li + li { margin-top: .45em; }
.ytr-content ul li::marker { color: var(--ytr-green-text); }
.ytr-content ol li::marker { color: var(--ytr-green-text); font-family: var(--ytr-ff-mono); font-size: .85em; }

.ytr-content blockquote, .ytr-content .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ytr-green-text);
	font-family: var(--ytr-ff-display); font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
.ytr-content blockquote strong { font-weight: 700; }
.ytr-content blockquote cite { display: block; margin-top: 8px; font-family: var(--ytr-ff-body); font-size: 14px; font-weight: 400; font-style: normal; color: var(--ytr-muted); }
.ytr-content .wp-block-pullquote { border-block: 4px solid var(--ytr-rule); padding: 24px 0; text-align: left; }
.ytr-content .wp-block-pullquote blockquote { border: 0; padding: 0; }

.ytr-content code { font-family: var(--ytr-ff-mono); font-size: .88em; background: var(--ytr-sunk); border: 1px solid var(--ytr-line); padding: .1em .35em; border-radius: 4px; }
.ytr-content pre { font-family: var(--ytr-ff-mono); font-size: 14px; line-height: 1.6; background: var(--ytr-night); color: #E6ECE8; padding: 18px 20px; border-radius: var(--ytr-radius); overflow-x: auto; }
.ytr-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.ytr-content figure { margin-inline: 0; }
.ytr-content img { border-radius: var(--ytr-radius-sm); height: auto; }
.ytr-content figcaption, .ytr-content .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--ytr-muted); text-align: left; }
.ytr-content iframe[src*="youtube"], .ytr-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--ytr-radius-sm); }
.ytr-content hr { border: 0; border-top: 1px solid var(--ytr-line); margin-block: 2.2em; }
.ytr-content img, .ytr-content video, .ytr-content iframe, .ytr-content embed, .ytr-content figure { max-width: 100%; }

/* Tables */
.ytr-table-wrap, .ytr-content .wp-block-table { overflow-x: auto; border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); background: var(--ytr-surface); }
.ytr-content .wp-block-table .ytr-table-wrap { border: 0; border-radius: 0; }
.ytr-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.ytr-content th, .ytr-content td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ytr-line); min-width: 120px; }
.ytr-content thead th, .ytr-content thead td, .ytr-content tr:first-child th { background: var(--ytr-sunk); font-family: var(--ytr-ff-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ytr-ink); }
.ytr-content tbody tr:last-child td { border-bottom: 0; }
.ytr-content .wp-block-table figcaption { padding: 0 14px 12px; }

/* Buttons from the block editor (affiliate CTAs) */
.ytr-content .wp-block-button__link, .ytr-content .ytr-cta {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px;
	background: var(--ytr-green); color: #fff !important; border-radius: 24px; text-decoration: none !important; font-weight: 600; font-size: 16px;
}
.ytr-content .wp-block-button__link:hover, .ytr-content .ytr-cta:hover { background: var(--ytr-green-hover); }
.ytr-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ytr-ink) !important; border: 1px solid var(--ytr-ink); }

/* Lead summary box (bold first paragraph) */
.ytr-content .ytr-lead {
	font-size: 19px; line-height: 1.6; padding: 18px 22px;
	background: var(--ytr-green-tint); border-left: 3px solid var(--ytr-green-text); border-radius: 0 var(--ytr-radius) var(--ytr-radius) 0;
}
.ytr-content .ytr-lead strong { font-weight: 500; }

/* Key point callouts (a single short bold paragraph) */
.ytr-content .ytr-keypoint {
	font-family: var(--ytr-ff-display); font-size: 20px; line-height: 1.35; letter-spacing: -0.01em;
	border-left: 3px solid var(--ytr-green-text); padding: 2px 0 2px 16px;
}
.ytr-content .ytr-keypoint strong { font-weight: 700; }

/* Runs of bold lines: one clean box of points */
.ytr-points { border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); background: var(--ytr-surface); overflow: hidden; }
.ytr-content .ytr-points > .ytr-points__item {
	margin: 0; position: relative; padding: 13px 16px 13px 46px;
	font-size: 16.5px; line-height: 1.5; border-top: 1px solid var(--ytr-line);
}
.ytr-content .ytr-points > .ytr-points__item:first-child { border-top: 0; }
.ytr-points__item strong { font-weight: 600; }
.ytr-points__item::before {
	content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 9px;
	background: var(--ytr-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23156C40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Flow diagram: Step ↓ Step ↓ Step */
.ytr-flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin-block: 1.6em; }
.ytr-flow .ytr-flow__step {
	margin: 0; width: min(100%, 460px); text-align: center; font-size: 16px; line-height: 1.45;
	background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); padding: 12px 16px;
}
.ytr-flow .ytr-flow__step strong { font-weight: 600; }
.ytr-flow__step:first-child { border-color: var(--ytr-green-text); }
.ytr-flow__arrow { margin: 0 !important; color: var(--ytr-green-text); font-size: 20px; line-height: 1.6; text-align: center; }
.ytr-flow__branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; width: min(100%, 560px); }
.ytr-flow__branches .ytr-flow__step { width: auto; }

/* Inline chain: A → B → C */
.ytr-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 1.4em; }
.ytr-chain__node { padding: 8px 14px; border: 1px solid var(--ytr-line); border-radius: 20px; background: var(--ytr-surface); font-size: 15px; font-weight: 600; line-height: 1.3; }
.ytr-chain__sep { color: var(--ytr-green-text); display: inline-flex; }
.ytr-chain--plus .ytr-chain__sep { font-family: var(--ytr-ff-display); font-weight: 800; font-size: 20px; line-height: 1; }
.ytr-chain--plus .ytr-chain__node { font-weight: 500; }
.ytr-chains { display: flex; flex-direction: column; gap: 8px; margin-block: 1.2em; }
.ytr-chains .ytr-chain { margin: 0; }
.ytr-content .ytr-chains + * { margin-top: 1.2em; }

/* Checklist: paragraphs starting with ☐ */
.ytr-checklist { list-style: none; padding: 0 !important; border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); background: var(--ytr-surface); }
.ytr-checklist li { margin: 0 !important; border-top: 1px solid var(--ytr-line); }
.ytr-checklist li:first-child { border-top: 0; }
.ytr-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; cursor: pointer; font-size: 16px; line-height: 1.5; }
.ytr-checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--ytr-muted); border-radius: 5px; background: var(--ytr-surface); cursor: pointer; display: grid; place-content: center; }
.ytr-checklist input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ytr-checklist input:checked { background: var(--ytr-green); border-color: var(--ytr-green); }
.ytr-checklist input:checked::after { opacity: 1; }
.ytr-checklist input:checked + span { color: var(--ytr-muted); text-decoration: line-through; text-decoration-color: var(--ytr-line); }

/* FAQ accordion */
.ytr-faq { border-top: 1px solid var(--ytr-rule); }
.ytr-faq__item { border-bottom: 1px solid var(--ytr-line); }
.ytr-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.ytr-faq__item summary::-webkit-details-marker { display: none; }
.ytr-faq__item summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--ytr-green-text); flex: none; }
.ytr-faq__item[open] summary::after { content: "–"; }
.ytr-faq__item summary h3 { margin: 0 !important; font-size: 19px; }
.ytr-faq__body { padding-bottom: 16px; color: var(--ytr-ink-2); }
.ytr-faq__body > * + * { margin-top: .8em; }

/* Ad / affiliate slot inside the article */
.ytr-inline-slot { margin-block: 2em; padding-block: 16px; border-block: 1px solid var(--ytr-line); text-align: center; }
.ytr-inline-slot .ytr-widget__title { margin-bottom: 8px; }

/* Page links */
.ytr-pages { margin-top: 2em; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ytr-pages a, .ytr-pages > span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ytr-line); border-radius: 18px; }

/* ---------- Article footer ---------- */
.ytr-article__footer { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.ytr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ytr-tags__label { font-family: var(--ytr-ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ytr-muted); margin-right: 4px; }
.ytr-tags a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--ytr-line); border-radius: 17px; font-size: 14px; background: var(--ytr-surface); }
.ytr-tags a:hover { border-color: var(--ytr-ink); color: var(--ytr-ink); }

.ytr-share-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-block: 1px solid var(--ytr-line); }
.ytr-share-cta p { font-size: 16px; color: var(--ytr-ink-2); }
.ytr-share-cta strong { color: var(--ytr-ink); }

.ytr-author { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--ytr-sunk); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); }
.ytr-author__avatar { width: 80px; height: 80px; border-radius: 40px; object-fit: cover; flex: none; }
.ytr-author__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ytr-eyebrow--muted { color: var(--ytr-muted); }
.ytr-author__name { font-size: 24px; }
.ytr-author__body p { color: var(--ytr-ink-2); font-size: 16px; line-height: 1.6; }

.ytr-postnav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ytr-postnav__link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); background: var(--ytr-surface); transition: border-color .15s; }
.ytr-postnav__link:hover { border-color: var(--ytr-ink); color: var(--ytr-ink); }
.ytr-postnav__link--next { text-align: right; align-items: flex-end; }
.ytr-postnav__dir { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ytr-ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ytr-muted); }
.ytr-postnav__title { font-family: var(--ytr-ff-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }

/* Related */
.ytr-related { padding-top: 56px; padding-bottom: 32px; border-top: 1px solid var(--ytr-line); background: var(--ytr-paper); }

/* ---------- Comments ---------- */
.ytr-comments { margin-top: 56px; }
.ytr-comments__title, .comment-reply-title { font-size: 28px; margin-bottom: 18px; }
.ytr-comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.ytr-comments .comment-list .children { list-style: none; padding-left: 28px; margin: 0; border-left: 1px solid var(--ytr-line); }
.ytr-comments .comment-body { padding: 18px 0; border-top: 1px solid var(--ytr-line); }
.ytr-comments .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--ytr-muted); margin-bottom: 8px; }
.ytr-comments .comment-author { display: flex; align-items: center; gap: 10px; color: var(--ytr-ink); }
.ytr-comments .comment-author .avatar { width: 36px; height: 36px; border-radius: 18px; }
.ytr-comments .comment-author .says { display: none; }
.ytr-comments .comment-author .fn { font-weight: 600; font-style: normal; }
.ytr-comments .comment-content { font-size: 16px; line-height: 1.65; }
.ytr-comments .comment-content p + p { margin-top: .8em; }
.ytr-comments .reply { margin-top: 8px; font-size: 14px; font-weight: 600; }
.ytr-comments .reply a { color: var(--ytr-green-text); }
.ytr-comments .comment-respond { margin-top: 16px; }
.ytr-comments .comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ytr-comments .comment-form > p { grid-column: 1 / -1; margin: 0; }
.ytr-comments .comment-form-author, .ytr-comments .comment-form-email, .ytr-comments .comment-form-url { grid-column: auto !important; }
.ytr-comments .comment-notes, .ytr-comments .logged-in-as { font-size: 14px; color: var(--ytr-muted); }
.ytr-comments label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.ytr-comments input[type="text"], .ytr-comments input[type="email"], .ytr-comments input[type="url"], .ytr-comments textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ytr-ink); background: var(--ytr-surface);
	border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); padding: 12px 14px;
}
.ytr-comments input:focus, .ytr-comments textarea:focus { outline: none; border-color: var(--ytr-green-text); box-shadow: 0 0 0 3px var(--ytr-green-tint); }
.ytr-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.ytr-comments .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.ytr-comments .form-submit input[type="submit"] {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px; cursor: pointer;
	background: var(--ytr-ink); color: var(--ytr-paper); font: inherit; font-weight: 600;
}
.ytr-comments .form-submit input[type="submit"]:hover { background: var(--ytr-green); color: #fff; }

/* ---------- Static pages ---------- */
.ytr-page-wrap { max-width: calc(var(--ytr-measure) + 2 * var(--ytr-gutter)); padding-top: 48px; padding-bottom: 80px; }
.ytr-page-wrap .ytr-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 28px; }
.ytr-page-wrap--wide { max-width: var(--ytr-wrap); }

/* Block alignments inside the reading column */
.ytr-content .alignwide { margin-inline: calc(-1 * min(120px, (100vw - var(--ytr-measure)) / 2)); max-width: none; }
.ytr-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.ytr-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.ytr-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.ytr-content .aligncenter { margin-inline: auto; }
.ytr-shell .ytr-content .alignwide, .ytr-shell .ytr-content .alignfull { margin-inline: 0; width: auto; max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ytr-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ytr-main { max-width: var(--ytr-measure); margin-inline: auto; width: 100%; }
	.ytr-sidebar { display: none; }
	.ytr-toc--inline { display: block; }
}

@media (max-width: 720px) {
	.ytr-hero { padding-top: 16px; padding-bottom: 24px; }
	.ytr-breadcrumbs ol { margin-bottom: 18px; }
	.ytr-breadcrumbs li[aria-current] { display: none; }
	.ytr-title { font-size: 34px; }
	.ytr-dek { font-size: 17px; margin-top: 12px; }
	.ytr-byline { margin-top: 20px; padding-top: 16px; gap: 12px 18px; }
	/* On phones the hero keeps one share button, which opens the phone's own share sheet. */
	.ytr-share--hero .ytr-share__btn:not(.ytr-copy-link) { display: none; }
	.ytr-byline .ytr-share { margin-left: auto; }
	.ytr-featured { margin: 0 calc(-1 * var(--ytr-gutter)) 28px; }
	.ytr-featured__img { border-radius: 0; }
	.ytr-featured figcaption { padding-inline: var(--ytr-gutter); }

	.ytr-content { font-size: 17px; line-height: 1.72; }
	.ytr-content h2 { font-size: 26px; }
	.ytr-content h3 { font-size: 21px; }
	.ytr-content blockquote { font-size: 20px; }
	.ytr-anchor { display: none; }
	.ytr-content .alignleft, .ytr-content .alignright { float: none; margin: 1em 0; max-width: 100%; }

	.ytr-share-cta { flex-direction: column; align-items: flex-start; }
	.ytr-author { flex-direction: column; padding: 20px; }
	.ytr-postnav { grid-template-columns: minmax(0, 1fr); }
	.ytr-postnav__link--next { text-align: left; align-items: flex-start; }
	.ytr-comments .comment-form { grid-template-columns: minmax(0, 1fr); }
	.ytr-related { padding-top: 40px; }
}
