/*
Theme Name: YouCine APK TV
Theme URI: https://wordpress.org/
Author: Equipe YouCine APK
Description: Block theme for a Portuguese YouCine APK download site. White GeneratePress style layout: white header with a gold download button, dark hero band, shadow cards, cream app info card with gold chips, gold call to action band, humanist system fonts. Every section is a core block, editable in the block editor; app facts and the download link live in one option (yt_app).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youcineapktv
*/

/* Values measured on the reference layout at 1366px: container 1320px with 32px gutters, header 100px, 18px/1.5
   body, section padding 128px (96px on mobile), cards with a 20px soft shadow and 3px corners, 4px button corners,
   pill taglines, cream app card with a thin gold rule and tinted value chips. Colours: the YouCine gold (#fab927) is
   used only as a fill behind dark text, never as text on white (it would fail AA contrast). */
:root {
	--yt-gold: #fab927;
	--yt-gold-hover: #ffcb52;
	--yt-chip: #fde9bb;
	--yt-gold-soft: #fef8e9;
	--yt-cream: #fcfbf5;
	--yt-rule: #fbe3a8;
	--yt-night: #121110;
	--yt-ink: #0f0f0d;
	--yt-ink-2: #38362e;
	--yt-line: #ece7d8;
	--yt-shadow: 0 0 20px 4px rgba(68, 68, 87, .1);
	--yt-head: "Gill Sans", "Gill Sans MT", Candara, "Segoe UI", Calibri, system-ui, -apple-system, sans-serif;
	--yt-body: "Segoe UI", Candara, "Gill Sans", "Gill Sans MT", Calibri, system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(h2, h3, [id]) { scroll-margin-top: 24px; }
:where(.wp-site-blocks) :is(a, button, summary, input, [tabindex]):focus-visible { outline: 3px solid var(--yt-ink); outline-offset: 3px; border-radius: 2px; }
.yt-hero :is(a, summary):focus-visible, .yt-band :is(a):focus-visible { outline-color: #fff; }
.wp-block-image img { height: auto; }
p:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
.yt-main { padding-bottom: 0; }
.yt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header (white bar, logo left, menu + gold button right) ---------- */
.yt-header-wrap { position: relative; z-index: 60; background: #fff; }
.yt-header { padding-top: 0 !important; padding-bottom: 0 !important; }
.yt-header-row { min-height: 100px; gap: 1rem !important; }
.yt-logo { display: block; line-height: 0; flex: none; }
.yt-logo-img { width: 150px; height: auto; display: block; }
.yt-header-end { gap: 1.25rem !important; }
.yt-nav { font-size: 16px; font-weight: 600; }
.yt-nav .wp-block-navigation-item__content { padding: .5em 24px; color: var(--yt-ink); text-decoration: none; }
.yt-nav .wp-block-navigation-item__content:hover, .yt-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--yt-ink-2); text-decoration: underline; text-decoration-color: var(--yt-gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.yt-nav .wp-block-navigation__submenu-icon { margin-left: -18px; margin-right: 18px; }
.yt-nav .wp-block-navigation__submenu-container { background: var(--yt-gold) !important; border: 0 !important; min-width: 220px !important; padding: 0 !important; }
.yt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--yt-ink); font-size: 16px; padding: 12px 24px !important; }
.yt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--yt-gold-hover); text-decoration: none; }
.yt-nav .wp-block-navigation__responsive-container-open { color: var(--yt-ink); }
.yt-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.yt-nav .is-menu-open { padding: 1.25rem 1.5rem 2rem !important; }
.yt-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.yt-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.yt-nav .is-menu-open .wp-block-navigation__container,
.yt-nav .is-menu-open .wp-block-navigation__submenu-container,
.yt-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left !important; width: 100%; }
.yt-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; }
.yt-nav .is-menu-open .wp-block-navigation-item__content { padding: .8rem 0 !important; font-size: 18px; border-bottom: 1px solid var(--yt-line); width: 100%; }
.yt-nav .is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; padding: 0 0 0 1rem !important; }
.yt-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .7rem 0 !important; }
/* The inline menu needs about 900px; below that use the drawer, like the reference does below 1050px. */
@media (min-width: 600px) and (max-width: 959px) {
	.yt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.yt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.yt-head-cta { display: inline-flex; align-items: center; gap: .55em; background: var(--yt-gold); color: var(--yt-ink); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; padding: 12.8px 28px; border-radius: 4px; text-decoration: none; white-space: nowrap; flex: none; }
.yt-head-cta::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--yt-m-download) center/contain no-repeat; mask: var(--yt-m-download) center/contain no-repeat; }
.yt-head-cta:hover { background: var(--yt-gold-hover); color: var(--yt-ink); }

/* ---------- Content rhythm (article column) ---------- */
.yt-content { color: var(--yt-ink); }
.yt-content > * { margin-block-start: 0 !important; margin-block-end: 1.4rem !important; }
.yt-content > h2.wp-block-heading { font-size: 36px; line-height: 1.2; margin-block-start: 4rem !important; margin-block-end: 1.1rem !important; letter-spacing: -.01em; }
.yt-content > .yt-tagline + h2.wp-block-heading { margin-block-start: 0 !important; }
.yt-content > h3.wp-block-heading { font-size: 23px; margin-block-start: 2.2rem !important; margin-block-end: .6rem !important; }
.yt-content a:not(.wp-block-button__link):not(.yt-card-link) { color: var(--yt-ink); text-decoration-color: var(--yt-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yt-content a:not(.wp-block-button__link):hover { color: var(--yt-ink-2); text-decoration-color: var(--yt-ink-2); }
.yt-content ul.wp-block-list, .yt-content ol.wp-block-list { padding-left: 1.5rem; }
.yt-content li { margin: 0 0 .35rem; }
.yt-content li::marker { color: var(--yt-ink-2); }
.yt-lead { font-size: 19px; color: var(--yt-ink-2); }

/* Pill above section headlines (the reference's taglines). */
.yt-tagline { line-height: 1; margin-block-start: 4rem !important; margin-block-end: 1rem !important; }
.yt-tagline span { display: inline-block; background: var(--yt-chip); color: var(--yt-ink-2); font-size: 14.4px; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: .04em; border-radius: 9999px; padding: 10px 20px; }
.yt-content > .yt-tagline:first-child { margin-block-start: 0 !important; }

/* ---------- Hero (dark band, centred) ---------- */
.yt-content > .yt-hero { margin-block-end: 0 !important; }
.yt-hero { background: var(--yt-night) url("assets/img/hero-bg.webp") center / cover no-repeat; color: #fff; padding: 128px 32px !important; text-align: center; }
.yt-hero > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.yt-hero .yt-tagline { margin: 0 auto 22px !important; }
.yt-hero .yt-tagline span { background: var(--yt-gold); color: var(--yt-ink); }
.yt-hero h1 { color: #fff; font-size: 52px; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 22px !important; }
.yt-hero-lead { color: #fff; font-size: 18px; line-height: 1.6; max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.yt-hero .yt-btn-xl { margin-top: 32px !important; }
.yt-hero-meta { color: #e9e6dc; font-size: 15px; margin-top: 14px !important; letter-spacing: .01em; }
.yt-hero-sm { padding: 88px 32px !important; }
.yt-hero-sm h1 { font-size: 44px; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, filter .15s ease; }
.yt-dl .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .55em; white-space: nowrap; }
.yt-dl .wp-block-button__link::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--yt-m-download) center/contain no-repeat; mask: var(--yt-m-download) center/contain no-repeat; }
.yt-btn-xl .wp-block-button__link { font-size: 19px; padding: 17px 34px; }
.yt-btn-full { display: flex; width: 100%; }
.yt-btn-full .wp-block-button { width: 100%; }
.yt-btn-full .wp-block-button__link { width: 100%; }
.yt-dl-dark .wp-block-button__link { background: var(--yt-ink-2); color: #fff; border: 1px solid var(--yt-ink); }
.yt-dl-dark .wp-block-button__link:hover { background: var(--yt-ink); color: #fff; }

/* ---------- Trust row (3 shadow cards under the hero) ---------- */
.yt-trust { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-block-start: 64px !important; margin-block-end: 0 !important; }
.yt-trust > * { margin: 0 !important; }
.yt-trust-card { background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; padding: 32px !important; text-align: center; }
.yt-trust-card > * { margin: 0 !important; }
.yt-trust-title { font-family: var(--yt-head); font-size: 24px; line-height: 1.25; margin-bottom: 6px !important; }
.yt-trust-sub { color: var(--yt-ink-2); font-size: 17px; }
.yt-ico::before { content: ""; display: block; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 14px; background: var(--yt-gold); -webkit-mask: none; }
.yt-ico { position: relative; }
.yt-ico::after { content: ""; position: absolute; width: 30px; height: 30px; background: var(--yt-ink); -webkit-mask: var(--yt-i) center/contain no-repeat; mask: var(--yt-i) center/contain no-repeat; }
.yt-trust-card.yt-ico::after { top: 46px; left: calc(50% - 15px); }

/* ---------- App info block (screens left, cream card right) ---------- */
.yt-appinfo-wrap { margin-block-start: 96px !important; margin-block-end: 0 !important; }
.yt-appinfo { gap: 0 !important; align-items: stretch !important; margin: 0 !important; }
.yt-appinfo > .wp-block-column:first-child { display: flex; align-items: center; padding-right: 0; }
.yt-appinfo-shot { margin: 0 !important; width: 100%; }
.yt-appinfo-shot img { width: 100%; border-radius: 20px; display: block; }
.yt-appcard { background: var(--yt-cream); border: 1px solid var(--yt-rule); padding: 32px !important; height: 100%; }
.yt-appcard > * { margin: 0 !important; }
.yt-appcard-head { gap: 20px !important; align-items: center !important; margin-bottom: 14px !important; flex-wrap: nowrap !important; }
.yt-appcard-icon, .yt-mini-icon { margin: 0 !important; flex: none; }
.yt-appcard-icon img { width: 80px !important; height: 80px; border-radius: 14px; display: block; }
.yt-mini-icon img { width: 64px !important; height: 64px; border-radius: 12px; display: block; }
.yt-appcard-id > * { margin: 0 !important; }
.yt-appcard-name { font-family: var(--yt-head); font-size: 26px; line-height: 1.2; }
.yt-appcard-sub { color: var(--yt-ink-2); font-size: 17px; }
.yt-pill-green { display: inline-block; background: #dcf7c8; color: #1d5c0b; font-size: 15px; line-height: 1.3; border-radius: 9999px; padding: 4px 12px; margin-top: 6px !important; }
.yt-rows { list-style: none; margin: 0 0 24px !important; padding: 0; }
.yt-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--yt-line); font-size: 18px; }
.yt-rows li:last-child { border-bottom: 0; }
.yt-k { color: var(--yt-ink); }
.yt-chip { background: var(--yt-chip); color: var(--yt-ink); font-size: 15px; line-height: 1.35; border-radius: 4px; padding: 4px 9px; text-align: right; }
.yt-appinfo-wrap + * { margin-top: 0; }

/* ---------- Cards, device grid, steps ---------- */
.yt-grid { display: grid !important; gap: 28px; }
.yt-grid > * { margin: 0 !important; }
.yt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .yt-grid-3, .yt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .yt-grid-2, .yt-grid-3, .yt-grid-4, .yt-trust { grid-template-columns: 1fr; } }
.yt-card { background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; padding: 28px 24px !important; }
.yt-card > * { margin: 0 0 10px !important; }
.yt-card > :last-child { margin-bottom: 0 !important; }
.yt-card h3 { font-size: 21px; line-height: 1.25; }
.yt-card p { font-size: 16.5px; line-height: 1.55; color: var(--yt-ink-2); }
.yt-tile { width: 58px; height: 58px; border-radius: 14px; background: var(--yt-gold); margin-bottom: 16px !important; }
.yt-tile::before { display: none; }
.yt-tile.yt-ico::after { top: 14px; left: 14px; }
.yt-card-more { margin-top: 14px !important; }
.yt-card-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: 16.5px; color: var(--yt-ink) !important; text-decoration: none; border-bottom: 3px solid var(--yt-gold); padding-bottom: 2px; }
.yt-card-link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--yt-m-arrow) center/contain no-repeat; mask: var(--yt-m-arrow) center/contain no-repeat; }
.yt-card-link:hover { border-bottom-color: var(--yt-ink); }

.yt-steps { counter-reset: ytstep; }
.yt-step { counter-increment: ytstep; background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; padding: 30px 24px !important; }
.yt-step > * { margin: 0 !important; }
.yt-step::before { content: counter(ytstep); display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yt-gold); color: var(--yt-ink); font-family: var(--yt-head); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.yt-step h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px !important; }
.yt-step p { color: var(--yt-ink-2); font-size: 16.5px; line-height: 1.55; }

.yt-tips { background: var(--yt-gold-soft); border-radius: 20px; padding: 22px 26px !important; }
.yt-tips > * { margin: 0 !important; }
.yt-tips-title { margin-bottom: 8px !important; }
.yt-tips ul { padding-left: 1.3rem !important; }

.yt-note { background: var(--yt-cream); border-left: 5px solid var(--yt-gold); padding: 18px 22px !important; }
.yt-note > * { margin: 0 !important; }
.yt-note.is-warn { background: #fff4f0; border-left-color: #c2410c; }

/* ---------- Gold call to action band ---------- */
.yt-content > .yt-band { margin-block-start: 5rem !important; margin-block-end: 0 !important; }
.yt-band { background: var(--yt-gold); color: var(--yt-ink); padding: 80px 32px !important; }
.yt-band > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.yt-band h2 { color: var(--yt-ink); font-size: 40px; margin-bottom: 14px !important; }
.yt-band p { font-size: 18px; }
.yt-band .yt-btn-xl { margin-top: 28px !important; }

/* ---------- Screenshots strip ---------- */
.yt-content > .yt-shots { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.yt-shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.yt-shots > .wp-block-image { flex: 0 0 calc((100% - 70px) / 6); margin: 0 !important; scroll-snap-align: start; }
.yt-shots > .wp-block-image img { width: 100% !important; aspect-ratio: 540 / 1071; object-fit: cover; border-radius: 14px; border: 1px solid var(--yt-line); background: #111; display: block; }
.yt-shots-caption { font-size: 15px; color: var(--yt-ink-2); }
@media (max-width: 900px) { .yt-shots > .wp-block-image { flex-basis: 40%; } }

/* ---------- Tables ---------- */
.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; border: 1px solid var(--yt-line); }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--yt-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table th { background: var(--yt-chip); color: var(--yt-ink); font-weight: 700; }
.wp-block-table tbody tr:nth-child(even) td { background: var(--yt-cream); }
.yt-spec td:first-child { width: 38%; font-weight: 700; }
.yt-compare table { min-width: 600px; table-layout: auto !important; }

/* ---------- Lists with icons ---------- */
.yt-check, .yt-cross { list-style: none; padding-left: 0 !important; }
.yt-check li, .yt-cross li { position: relative; padding-left: 32px; }
.yt-check li::before, .yt-cross li::before { content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%; background: var(--yt-gold); }
.yt-check li::after, .yt-cross li::after { content: ""; position: absolute; left: 4px; top: 8px; width: 13px; height: 13px; background: var(--yt-ink); -webkit-mask: var(--yt-m-check) center/contain no-repeat; mask: var(--yt-m-check) center/contain no-repeat; }
.yt-cross li::before { background: var(--yt-line); }
.yt-cross li::after { -webkit-mask-image: var(--yt-m-x); mask-image: var(--yt-m-x); }
.yt-proscons { gap: 28px !important; }
.yt-proscons > .wp-block-column { background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; padding: 26px; }
.yt-proscons h3 { margin: 0 0 12px !important; font-size: 21px; }
.yt-proscons ul { margin: 0; }

/* ---------- TOC and FAQ (details) ---------- */
.yt-toc { background: var(--yt-cream); border: 1px solid var(--yt-rule); border-radius: 4px; }
.yt-toc summary { font-weight: 700; padding: 14px 20px; cursor: pointer; }
.yt-toc-list { margin: 0; padding: 0 20px 16px 44px; columns: 2; column-gap: 32px; }
.yt-toc-list li { margin: 0 0 6px; break-inside: avoid; }
.yt-toc-list a { color: var(--yt-ink); text-decoration-color: var(--yt-gold); text-decoration-thickness: 2px; }
@media (max-width: 680px) { .yt-toc-list { columns: 1; } }
.yt-faq > * { margin: 0 0 12px !important; }
.yt-faq .wp-block-details { background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; }
.yt-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 22px; font-family: var(--yt-head); font-weight: 700; font-size: 19px; line-height: 1.35; }
.yt-faq summary::-webkit-details-marker { display: none; }
.yt-faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yt-gold) var(--yt-chev-img) center / 18px no-repeat; transition: transform .2s ease; }
.yt-faq .wp-block-details[open] summary::after { transform: rotate(180deg); }
.yt-faq .wp-block-details > :not(summary) { margin: 0 !important; padding: 0 22px 20px; color: var(--yt-ink-2); }

/* ---------- Related box, compact app card ---------- */
.yt-related { border: 1px solid var(--yt-rule); background: var(--yt-cream); border-radius: 4px; padding: 20px 24px !important; }
.yt-related > * { margin: 0 !important; }
.yt-related ul { margin-top: 8px !important; }
.yt-mini { background: var(--yt-cream); border: 1px solid var(--yt-rule); padding: 22px !important; }
.yt-mini > * { margin: 0 !important; }
.yt-mini .yt-appcard-head { margin-bottom: 16px !important; }

/* ---------- Inner pages and posts ---------- */
.yt-title-band { background: var(--yt-cream); border-bottom: 1px solid var(--yt-line); padding: 48px 24px 40px !important; }
.yt-title-band > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.yt-title-band h1 { font-size: 42px; line-height: 1.15; margin-top: 10px !important; }
.yt-breadcrumbs { font-size: 15px; color: var(--yt-ink-2); }
.yt-breadcrumbs a { color: var(--yt-ink-2); }
.yt-meta { gap: 0 !important; font-size: 15px; color: var(--yt-ink-2); margin-top: 14px !important; }
.yt-meta > * { margin: 0 !important; }
.yt-meta > * + *::before { content: "\00B7"; margin: 0 .6em; }
.yt-legal { padding-top: 48px; padding-bottom: 80px; }
.yt-legal > h2.wp-block-heading { font-size: 28px; margin-block-start: 2.4rem !important; }
.yt-single { padding-top: 40px; padding-bottom: 72px; }
.yt-cover { margin: 0 0 2rem !important; }
.yt-cover img { border-radius: 12px; }
.yt-single .yt-content > h2.wp-block-heading { font-size: 30px; margin-block-start: 2.8rem !important; }
.yt-related-band { background: var(--yt-gold-soft); padding: 64px 24px !important; margin-top: 0 !important; }
.yt-related-heading { font-size: 30px; margin: 0 0 24px !important; }

/* ---------- Post cards ---------- */
.yt-post-grid .wp-block-post-template { gap: 28px !important; }
.yt-post-grid .wp-block-post { background: #fff; box-shadow: var(--yt-shadow); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.yt-post-grid .wp-block-post-featured-image { margin: 0; }
.yt-post-grid .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; }
.yt-card-body { padding: 20px 22px 24px; }
.yt-card-body > * { margin: 0 !important; }
.yt-post-grid .wp-block-post-title { font-size: 21px; line-height: 1.3; }
.yt-post-grid .wp-block-post-title a { color: var(--yt-ink); text-decoration: none; }
.yt-post-grid .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--yt-gold); text-decoration-thickness: 3px; }
.yt-post-grid .wp-block-post-excerpt { margin-top: 10px !important; color: var(--yt-ink-2); font-size: 16.5px; }
.yt-post-grid .wp-block-post-excerpt__excerpt { margin: 0 0 12px; }
.yt-post-grid .wp-block-post-excerpt__more-link { color: var(--yt-ink); font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--yt-gold); }
.yt-archive-grid { padding-top: 64px; padding-bottom: 80px; }
@media (max-width: 1024px) { .yt-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .yt-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
.wp-block-query-pagination { margin-top: 40px; gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: .3rem .8rem; border: 1px solid var(--yt-line); color: var(--yt-ink); text-decoration: none; }
.wp-block-query-pagination .current { background: var(--yt-gold); border-color: var(--yt-gold); }

/* ---------- Footer (white, four columns) ---------- */
.yt-footer-wrap { margin-top: 0; }
.yt-footer { background: #fff; border-top: 1px solid var(--yt-line); padding-top: 64px !important; padding-bottom: 28px !important; }
.yt-footer-cols { gap: 40px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.yt-footer-title { font-size: 24px !important; line-height: 1.3; margin: 0 0 14px !important; }
.yt-footer-about { font-size: 16px; line-height: 1.6; color: var(--yt-ink-2); margin: 0 !important; }
.yt-footer-links { list-style: none; padding: 0; margin: 0; }
.yt-footer-links li { margin: 0 0 8px; }
.yt-footer a { color: var(--yt-ink-2); text-decoration: none; font-size: 17.6px; }
.yt-footer a:hover { color: var(--yt-ink); text-decoration: underline; text-decoration-color: var(--yt-gold); text-decoration-thickness: 2px; }
.yt-footer-bottom { font-size: 15px; color: var(--yt-ink-2); border-top: 1px solid var(--yt-line); padding-top: 22px; margin-top: 48px !important; margin-bottom: 0 !important; }

/* ---------- 404 and search ---------- */
.yt-404 { padding-top: 96px !important; padding-bottom: 96px !important; }
.wp-block-search__input { border: 1px solid var(--yt-line); background: #fff; color: var(--yt-ink); padding: .6rem .9rem; font-size: 1rem; }
.wp-block-search__button { margin-left: .5rem; background: var(--yt-gold); color: var(--yt-ink); border: 0; font-weight: 700; }

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
	.yt-header-row { min-height: 80px; }
	.yt-header-end { gap: .5rem !important; }
	.yt-header-end > :last-child { order: -1; } /* the reference puts the square download button before the menu */
	.yt-head-cta { padding: 0; width: 56px; height: 50px; justify-content: center; }
	.yt-head-cta::before { width: 24px; height: 24px; }
	.yt-head-cta__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 781px) {
	.yt-appinfo > .wp-block-column:first-child { margin-bottom: 24px; }
}
@media (max-width: 767px) {
	.yt-hero { padding: 72px 20px !important; }
	.yt-hero-sm { padding: 56px 20px !important; }
	.yt-hero h1 { font-size: 34px; }
	.yt-hero-sm h1 { font-size: 30px; }
	.yt-hero-lead { font-size: 17px; }
	.yt-content > h2.wp-block-heading, .yt-band h2 { font-size: 28px; margin-block-start: 3rem !important; }
	.yt-band h2 { margin-block-start: 0 !important; }
	.yt-content > h3.wp-block-heading { font-size: 21px; }
	.yt-tagline { margin-block-start: 3rem !important; }
	.yt-trust { margin-block-start: 40px !important; gap: 20px; }
	.yt-appinfo-wrap { margin-block-start: 56px !important; }
	.yt-appcard { padding: 22px !important; }
	.yt-rows li { font-size: 16.5px; }
	.yt-band { padding: 56px 20px !important; }
	.yt-title-band h1 { font-size: 30px; }
	.yt-btn-xl .wp-block-button__link { font-size: 16px; padding: 15px 16px; }
	.yt-btn-full .wp-block-button__link { font-size: 16px; padding: 15px 12px; }
}
@media (max-width: 420px) {
	.yt-btn-xl .wp-block-button__link, .yt-btn-full .wp-block-button__link { font-size: 14.5px; letter-spacing: -.01em; padding: 15px 10px; gap: .4em; }
	.yt-appcard, .yt-mini { padding: 18px 14px !important; }
	.yt-appcard .yt-btn-full .wp-block-button__link, .yt-mini .yt-btn-full .wp-block-button__link { font-size: 13.5px; padding: 15px 6px; }
	.yt-logo-img { width: 130px; }
}
@media (max-width: 370px) {
	.yt-btn-xl .wp-block-button__link, .yt-btn-full .wp-block-button__link { font-size: 13px; }
	.yt-appcard .yt-btn-full .wp-block-button__link, .yt-mini .yt-btn-full .wp-block-button__link { font-size: 12.5px; }
}

/* ---------- Icons (generated by content/make_icons.py) ---------- */
/* ICONS:START */
:root {
	--yt-m-download: 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 4v11'/%3E%3Cpath d='m7 11 5 5 5-5'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E");
	--yt-m-shield: 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 3 5 6v5c0 4.5 3 8 7 10 4-2 7-5.5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--yt-m-phone: 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%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
	--yt-m-tv: 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%3Crect x='2.5' y='5' width='19' height='12' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='m9 2 3 3 3-3'/%3E%3C/svg%3E");
	--yt-m-box: 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%3Crect x='3' y='9' width='18' height='8' rx='2'/%3E%3Cpath d='M7 13h.01'/%3E%3Cpath d='M11 13h6'/%3E%3Cpath d='M8 17v2M16 17v2'/%3E%3C/svg%3E");
	--yt-m-desktop: 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%3Crect x='2.5' y='4' width='19' height='13' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E");
	--yt-m-apple: 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='M15.5 3c0 1.9-1.4 3.4-3.2 3.5 0-1.9 1.4-3.4 3.2-3.5z'/%3E%3Cpath d='M12 8.2c-1-.6-2.1-1-3.2-1C6 7.2 4 9.6 4 13c0 4 2.6 8 5 8 1.1 0 1.8-.6 3-.6s1.9.6 3 .6c2.4 0 5-4 5-8 0-3.4-2-5.8-4.8-5.8-1.1 0-2.2.4-3.2 1z'/%3E%3C/svg%3E");
	--yt-m-film: 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%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M7 3v18M17 3v18M3 8h4M3 12h4M3 16h4M17 8h4M17 12h4M17 16h4'/%3E%3C/svg%3E");
	--yt-m-play: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8.5 5 3.5-5 3.5z'/%3E%3C/svg%3E");
	--yt-m-subtitles: 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%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M6 12h3M11 12h7M6 15.5h8M16 15.5h2'/%3E%3C/svg%3E");
	--yt-m-wifi: 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='M2.5 9a14 14 0 0 1 19 0'/%3E%3Cpath d='M5.5 12.5a9.5 9.5 0 0 1 13 0'/%3E%3Cpath d='M8.5 16a5 5 0 0 1 7 0'/%3E%3Cpath d='M12 19.5h.01'/%3E%3C/svg%3E");
	--yt-m-refresh: 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='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
	--yt-m-check: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
	--yt-m-x: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E");
	--yt-m-alert: 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 3 2 20h20z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
	--yt-m-book: 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 6c-2-1.5-5-2-8-1.5v14c3-.5 6 0 8 1.5 2-1.5 5-2 8-1.5v-14c-3-.5-6 0-8 1.5z'/%3E%3Cpath d='M12 6v14'/%3E%3C/svg%3E");
	--yt-m-search: 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%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
	--yt-m-heart: 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 20s-7.5-4.6-7.5-10A4.2 4.2 0 0 1 12 7.5 4.2 4.2 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z'/%3E%3C/svg%3E");
	--yt-m-clock: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--yt-m-list: 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='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E");
	--yt-m-kids: 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%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M5 21c0-4 3-7 7-7s7 3 7 7'/%3E%3C/svg%3E");
	--yt-m-globe: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
	--yt-m-lock: 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%3Crect x='4.5' y='11' width='15' height='10' rx='2'/%3E%3Cpath d='M8 11V7.5a4 4 0 0 1 8 0V11'/%3E%3C/svg%3E");
	--yt-m-spark: 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 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M18 6l-2.5 2.5M8.5 15.5 6 18'/%3E%3C/svg%3E");
	--yt-m-cast: 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='M3 8V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6'/%3E%3Cpath d='M3 12a8 8 0 0 1 8 8M3 16a4 4 0 0 1 4 4'/%3E%3Cpath d='M3 20h.01'/%3E%3C/svg%3E");
	--yt-m-file: 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='M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E");
	--yt-m-settings: 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%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1'/%3E%3C/svg%3E");
	--yt-m-users: 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%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7'/%3E%3Cpath d='M18 14c2 .6 3.5 2.6 3.5 6'/%3E%3C/svg%3E");
	--yt-m-star: 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 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2-5.5-2.9-5.5 2.9 1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E");
	--yt-m-chev: 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='m7 10 5 5 5-5'/%3E%3C/svg%3E");
	--yt-m-arrow: 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='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--yt-chev-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}
.yt-i-download { --yt-i: var(--yt-m-download); }
.yt-i-shield { --yt-i: var(--yt-m-shield); }
.yt-i-phone { --yt-i: var(--yt-m-phone); }
.yt-i-tv { --yt-i: var(--yt-m-tv); }
.yt-i-box { --yt-i: var(--yt-m-box); }
.yt-i-desktop { --yt-i: var(--yt-m-desktop); }
.yt-i-apple { --yt-i: var(--yt-m-apple); }
.yt-i-film { --yt-i: var(--yt-m-film); }
.yt-i-play { --yt-i: var(--yt-m-play); }
.yt-i-subtitles { --yt-i: var(--yt-m-subtitles); }
.yt-i-wifi { --yt-i: var(--yt-m-wifi); }
.yt-i-refresh { --yt-i: var(--yt-m-refresh); }
.yt-i-check { --yt-i: var(--yt-m-check); }
.yt-i-x { --yt-i: var(--yt-m-x); }
.yt-i-alert { --yt-i: var(--yt-m-alert); }
.yt-i-book { --yt-i: var(--yt-m-book); }
.yt-i-search { --yt-i: var(--yt-m-search); }
.yt-i-heart { --yt-i: var(--yt-m-heart); }
.yt-i-clock { --yt-i: var(--yt-m-clock); }
.yt-i-list { --yt-i: var(--yt-m-list); }
.yt-i-kids { --yt-i: var(--yt-m-kids); }
.yt-i-globe { --yt-i: var(--yt-m-globe); }
.yt-i-lock { --yt-i: var(--yt-m-lock); }
.yt-i-spark { --yt-i: var(--yt-m-spark); }
.yt-i-cast { --yt-i: var(--yt-m-cast); }
.yt-i-file { --yt-i: var(--yt-m-file); }
.yt-i-settings { --yt-i: var(--yt-m-settings); }
.yt-i-users { --yt-i: var(--yt-m-users); }
.yt-i-star { --yt-i: var(--yt-m-star); }
.yt-i-chev { --yt-i: var(--yt-m-chev); }
.yt-i-arrow { --yt-i: var(--yt-m-arrow); }
/* ICONS:END */
