/*
Theme Name: Tier One Desk
Theme URI: https://guardianitfoundation.org/
Author: Guardian IT Foundation
Description: A fast, secure, blue-and-white block theme for the Tier One Desk website – home, features and contact pages built in, a spam-protected contact form that can open a help desk ticket, and security hardening. No jQuery, no web fonts, no tracking.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tier-one-desk
*/

/* Everything the editor can't express. Colours come from theme.json presets (with fallbacks). */
:root {
	--tod-blue: var(--wp--preset--color--primary, #2C5CC5);
	--tod-blue-d: var(--wp--preset--color--primary-dark, #1E4398);
	--tod-navy: var(--wp--preset--color--navy, #0E1B3D);
	--tod-ink: var(--wp--preset--color--ink, #14213D);
	--tod-slate: var(--wp--preset--color--slate, #4A5878);
	--tod-sky: var(--wp--preset--color--sky, #EEF3FE);
	--tod-line: var(--wp--preset--color--line, #E2E8F3);
	--tod-r: 14px;
	--tod-sh: 0 1px 2px rgba(14, 27, 61, .06), 0 12px 32px rgba(14, 27, 61, .08);
	--tod-wide: 1200px;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--tod-blue); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--tod-blue); border-radius: 8px; box-shadow: var(--tod-sh); }

/* ---------- Header & footer ---------- */
.tod-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--tod-line); }
.admin-bar .tod-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tod-header { top: 46px; } }
.tod-header-inner { max-width: var(--tod-wide); margin-inline: auto !important; padding-block: 14px; gap: 18px !important; align-items: center; }
.tod-brand { gap: 10px !important; align-items: center; }
.tod-brand .wp-block-site-title a { text-decoration: none; }
.tod-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tod-blue); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.03em; }
.tod-header .wp-block-navigation a { color: var(--tod-ink); text-decoration: none; }
.tod-header .wp-block-navigation a:hover, .tod-header .wp-block-navigation .current-menu-item > a { color: var(--tod-blue); }
.tod-header .wp-block-navigation__container { gap: 26px; }
.tod-header .wp-block-button__link { padding: .6rem 1.1rem; font-size: .95rem; }
.tod-footer { background: var(--tod-navy); color: #C6D0E6; margin-top: 0 !important; }
.tod-footer a { color: #fff; text-decoration: none; }
.tod-footer a:hover { text-decoration: underline; }
.tod-footer h2, .tod-footer h3, .tod-footer .wp-block-site-title a { color: #fff; }
.tod-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.tod-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tod-footer-inner { max-width: var(--tod-wide); margin-inline: auto !important; padding-block: 56px 28px; }
.tod-footer .tod-note { color: #A9B7D6; }
.tod-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin-top: 36px !important; font-size: .875rem; }

/* ---------- Sections ---------- */
.tod-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.tod-section > * { max-width: var(--tod-wide); margin-inline: auto !important; }
.tod-section.is-tint { background: var(--tod-sky); }
.tod-section.is-dark { background: var(--tod-navy); color: #C6D0E6; }
.tod-section.is-dark :where(h1, h2, h3, h4) { color: #fff; }
.tod-section.is-blue { background: var(--tod-blue); color: #fff; }
.tod-section.is-blue :where(h1, h2, h3, h4, p) { color: #fff; }
.tod-eyebrow { display: inline-block; margin: 0 0 .75rem !important; padding: .3rem .75rem; border-radius: 99px; background: var(--tod-sky); color: var(--tod-blue-d); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.is-dark .tod-eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
.tod-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--tod-slate); max-width: 680px; }
.is-dark .tod-lede, .is-blue .tod-lede { color: #DCE4F6; }
.tod-center { text-align: center; }
.tod-center .tod-lede { margin-inline: auto; }
.tod-hero.tod-center h1 { max-width: 920px; margin-inline: auto; text-align: center; }
.tod-head { margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.tod-head h2 { margin-top: 0; }
.tod-note { font-size: .9rem; color: var(--tod-slate); }

/* ---------- Hero ---------- */
.tod-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, #fff 0%, var(--tod-sky) 100%); overflow: hidden; }
.tod-hero .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.tod-hero h1 { margin: 0 0 1.1rem; }
.tod-hero h1 em { font-style: normal; color: var(--tod-blue); }
.tod-trust { font-size: .9rem; color: var(--tod-slate); margin-top: 1.25rem !important; }
.tod-trust strong { color: var(--tod-ink); }

/* Product mock (pure HTML/CSS, decorative). */
.tod-mock { background: #fff; border: 1px solid var(--tod-line); border-radius: 16px; box-shadow: 0 30px 70px rgba(14, 27, 61, .16); overflow: hidden; font-size: 13px; color: var(--tod-ink); }
.tod-mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--tod-navy); }
.tod-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: block; }
.tod-mock-bar span { margin-left: 10px; color: #C6D0E6; font-size: 12px; }
.tod-mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.tod-mock-nav { background: #F7F9FE; border-right: 1px solid var(--tod-line); padding: 12px 10px; display: grid; gap: 4px; align-content: start; }
.tod-mock-nav b { display: block; padding: 7px 10px; border-radius: 8px; font-weight: 550; color: var(--tod-slate); }
.tod-mock-nav b.on { background: var(--tod-blue); color: #fff; }
.tod-mock-main { padding: 14px; display: grid; gap: 8px; align-content: start; }
.tod-mock-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.tod-mock-k div { border: 1px solid var(--tod-line); border-radius: 10px; padding: 8px 10px; }
.tod-mock-k small { display: block; color: var(--tod-slate); font-size: 11px; }
.tod-mock-k strong { font-size: 18px; }
.tod-mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--tod-line); border-radius: 10px; }
.tod-mock-row em { font-style: normal; color: var(--tod-slate); font-size: 11.5px; display: block; }
.tod-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--tod-sky); color: var(--tod-blue-d); white-space: nowrap; }
.tod-pill.urgent { background: #FDE8E8; color: #A61B1B; }
.tod-pill.ok { background: #E3F6EC; color: #126B3A; }
.tod-av { width: 24px; height: 24px; border-radius: 50%; background: var(--tod-blue); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
@media (max-width: 600px) { .tod-mock-body { grid-template-columns: 1fr; } .tod-mock-nav { display: none; } }

/* ---------- Logos strip ---------- */
.tod-logos { padding-block: 28px; border-bottom: 1px solid var(--tod-line); }
.tod-logos p { margin: 0 auto 12px !important; text-align: center; color: var(--tod-slate); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tod-logos ul { list-style: none; padding: 0; margin: 0 auto !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--tod-ink); font-weight: 700; font-size: 1rem; opacity: .75; }

/* ---------- Cards ---------- */
.tod-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tod-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tod-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tod-grid, .tod-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tod-grid, .tod-grid.is-4, .tod-grid.is-2 { grid-template-columns: 1fr; } }
.tod-grid > * { margin: 0 !important; }
.tod-card { background: #fff; border: 1px solid var(--tod-line); border-radius: var(--tod-r); padding: 26px; box-shadow: 0 1px 2px rgba(14, 27, 61, .04); transition: box-shadow .2s, transform .2s, border-color .2s; }
.tod-card:hover { box-shadow: var(--tod-sh); transform: translateY(-2px); border-color: #CBD7F1; }
.tod-card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.tod-card p { margin: 0; color: var(--tod-slate); font-size: .975rem; }
.tod-card ul { margin: .75rem 0 0; }
.is-dark .tod-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.is-dark .tod-card p { color: #C6D0E6; }

/* Icons: add the classes "tod-ico tod-ico-NAME" to a heading (Advanced → Additional CSS class). */
.tod-ico::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--tod-sky) var(--tod-ico) center / 22px 22px no-repeat; }
.is-dark .tod-ico::before { background-color: #fff; }
.tod-ico-ticket { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M13 5v2M13 17v2M13 11v2'/%3E%3C/svg%3E"); }
.tod-ico-chat { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.tod-ico-rmm { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.tod-ico-billing { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.tod-ico-quote { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.tod-ico-chart { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.tod-ico-shield { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.tod-ico-cloud { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19a4.5 4.5 0 1 0-1.4-8.8A6 6 0 1 0 6 18.5'/%3E%3Cpath d='M6 19h11.5'/%3E%3C/svg%3E"); }
.tod-ico-heart { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
.tod-ico-bolt { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E"); }
.tod-ico-layers { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 10 5-10 5L2 7z'/%3E%3Cpath d='m2 17 10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E"); }
.tod-ico-spark { --tod-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5CC5' 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 18M6 18l2.5-2.5M15.5 8.5 18 6'/%3E%3C/svg%3E"); }

/* Check lists */
.tod-check { list-style: none; padding: 0 !important; margin: .75rem 0 0; display: grid; gap: .55rem; }
.tod-check li { position: relative; padding-left: 1.75rem; color: var(--tod-slate); font-size: .96rem; }
.tod-check li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--tod-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.tod-check strong { color: var(--tod-ink); }
.is-dark .tod-check li { color: #C6D0E6; }
.is-dark .tod-check strong { color: #fff; }

/* Steps (alert → invoice) */
.tod-steps { counter-reset: step; }
.tod-steps .tod-card { position: relative; padding-top: 58px; }
.tod-steps .tod-card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--tod-blue); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }

/* Feature sections (features page) */
.tod-feature { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--tod-line); }
.tod-feature > * { margin: 0 !important; }
.tod-feature h2 { margin-top: 0; }
.tod-feature .tod-check { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem 1.5rem; margin: 0; }
@media (max-width: 860px) { .tod-feature { grid-template-columns: 1fr; } }
.tod-soon { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #FFF4D6; color: #7A5300; margin-left: 6px; vertical-align: 2px; }

/* Plans */
.tod-plan { display: flex; flex-direction: column; }
.tod-plan .tod-price { font-size: 2.2rem; font-weight: 800; color: var(--tod-navy); margin: .5rem 0 0; letter-spacing: -.02em; }
.tod-plan .tod-price small { font-size: .95rem; font-weight: 500; color: var(--tod-slate); }
.tod-plan .wp-block-buttons { margin-top: auto !important; padding-top: 1.25rem; }
.tod-plan.is-featured { border: 2px solid var(--tod-blue); box-shadow: var(--tod-sh); }
.tod-plan .tod-tag { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--tod-blue); border-radius: 99px; padding: 2px 10px; margin: 0 0 .5rem !important; }

/* FAQ (native details) */
.tod-faq details { border-bottom: 1px solid var(--tod-line); padding: 1rem 0; }
.tod-faq summary { cursor: pointer; font-weight: 650; color: var(--tod-navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.tod-faq summary::-webkit-details-marker { display: none; }
.tod-faq summary::after { content: "+"; color: var(--tod-blue); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.tod-faq details[open] summary::after { content: "–"; }
.tod-faq details p { color: var(--tod-slate); margin: .6rem 0 0; }

/* CTA band */
.tod-cta { text-align: center; }
.tod-cta .wp-block-buttons { justify-content: center; }
.tod-cta .wp-block-button__link { background: #fff; color: var(--tod-blue); }
.tod-cta .wp-block-button__link:hover { background: var(--tod-sky); color: var(--tod-blue-d); }
.tod-cta .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .75); }
.tod-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Outline buttons elsewhere */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--tod-blue); border: 2px solid currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tod-sky); color: var(--tod-blue-d); }

/* ---------- Contact ---------- */
.tod-contact { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tod-contact > * { margin: 0 !important; }
@media (max-width: 900px) { .tod-contact { grid-template-columns: 1fr; } }
.tod-form { background: #fff; border: 1px solid var(--tod-line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--tod-sh); display: grid; gap: 1rem; }
.tod-form .tod-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tod-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--tod-ink); }

.tod-form input, .tod-form select, .tod-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--tod-ink); background: #fff; border: 1px solid #C9D3E6; border-radius: 10px; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s; }
.tod-form textarea { min-height: 150px; resize: vertical; }
.tod-form input:focus, .tod-form select:focus, .tod-form textarea:focus { outline: none; border-color: var(--tod-blue); box-shadow: 0 0 0 3px rgba(44, 92, 197, .18); }
.tod-form .tod-consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--tod-slate); }
.tod-form .tod-consent input { width: auto; margin-top: .3rem; }
.tod-form button { justify-self: start; border: 0; cursor: pointer; background: var(--tod-blue); color: #fff; font: inherit; font-weight: 650; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 10px; }
.tod-form button:hover { background: var(--tod-blue-d); }
.tod-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tod-msg { border-radius: 12px; padding: 1rem 1.2rem; font-weight: 550; }
.tod-msg.ok { background: #E3F6EC; color: #0F5A31; border: 1px solid #B6E5C9; }
.tod-msg.err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3C2C2; }
.tod-side .tod-card + .tod-card { margin-top: 16px !important; }
.tod-side h3 { margin-top: 0; }

/* ---------- Posts ---------- */
.tod-main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.wp-block-post-template { gap: 28px; }
.wp-block-post-template > li { border: 1px solid var(--tod-line); border-radius: var(--tod-r); padding: 24px; }
.wp-block-post-title a { color: var(--tod-navy); text-decoration: none; }
.wp-block-post-title a:hover { color: var(--tod-blue); }
.wp-block-post-date { color: var(--tod-slate); font-size: .875rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tod-card { transition: none; } .tod-card:hover { transform: none; } }

/* ---- Feature video popup (assets/feature-video.js; only loaded when a video is set). ---- */
html.tod-vp-lock { overflow: hidden; }
.tod-vp { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2.5rem); }
.tod-vp[hidden] { display: none; }
.tod-vp-bg { position: absolute; inset: 0; background: rgba(9, 17, 40, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .32s ease; cursor: pointer; }
.tod-vp-box { position: relative; width: min(1120px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--tod-navy, #0E1B3D); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .32s ease, transform .38s cubic-bezier(.2, .8, .2, 1); }
.tod-vp.is-open .tod-vp-bg { opacity: 1; }
.tod-vp.is-open .tod-vp-box { opacity: 1; transform: none; }
.tod-vp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem .7rem 1.25rem; color: #fff; }
.tod-vp-title { margin: 0; font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 600; color: #fff; letter-spacing: 0; line-height: 1.3; }
.tod-vp-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.tod-vp-x:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.tod-vp-x:focus-visible, .tod-vp-skip:focus-visible, .tod-vp-sound:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; }
.tod-vp-frame { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); }
.tod-vp-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tod-vp-sound { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); border: 0; border-radius: 999px; padding: .55rem 1.1rem; background: rgba(255, 255, 255, .95); color: var(--tod-ink, #14213D); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); animation: tod-vp-pulse 2s ease-in-out infinite; }
.tod-vp-sound[hidden] { display: none; }
@keyframes tod-vp-pulse { 50% { box-shadow: 0 6px 20px rgba(0, 0, 0, .3), 0 0 0 8px rgba(255, 255, 255, .2); } }
.tod-vp-err { position: absolute; inset: 0; display: grid; place-content: center; gap: .8rem; text-align: center; color: #fff; background: rgba(9, 17, 40, .92); padding: 1.5rem; }
.tod-vp-err[hidden] { display: none; }
.tod-vp-err p { margin: 0; }
.tod-vp-btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 10px; background: var(--tod-blue, #2C5CC5); color: #fff; font-weight: 600; text-decoration: none; }
.tod-vp-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.25rem .85rem; }
.tod-vp-prog { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.tod-vp-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5b8cff, #8fb0ff); border-radius: 2px; transition: width .25s linear; }
.tod-vp-skip { flex: none; color: #c9d6f5; font-size: .92rem; font-weight: 500; text-decoration: none; }
.tod-vp-skip:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .tod-vp { padding: 0; } .tod-vp-box { border-radius: 0; height: 100%; justify-content: center; } .tod-vp-frame { max-height: none; } }
@media (prefers-reduced-motion: reduce) { .tod-vp-bg, .tod-vp-box, .tod-vp-prog i { transition: none; } .tod-vp-sound { animation: none; } .tod-vp-x:hover { transform: none; } }
