/**
 * YAY ERP theme — styles.
 *
 * The house rules (STANDARD/YAY-APP-STANDARD.md §1): neutral ground, white
 * surfaces, hairline borders, one accent used sparingly, system type, no glow,
 * no motion that is not feedback, nothing fetched from another host.
 * The brand colours arrive as custom properties from the Customizer (inc/tokens.php).
 *
 *  1 Tokens          6 Content          11 ERP surfaces
 *  2 Base            7 Listings         12 Elementor
 *  3 Layout          8 Forms, buttons   13 Marketing blocks
 *  4 Header, nav     9 Comments         14 Dark mode (opt-in)
 *  5 Footer         10 Widgets          15 Motion, print
 */

/* 1 ── Tokens ─────────────────────────────────────────────────────────── */

:root {
	--yay-primary: #00633b;
	--yay-primary-600: #004d2e;
	--yay-primary-050: #ebf3ef;
	--yay-gold: #d4aa25;
	--yay-crimson: #aa0010;
	--yay-ground: #f5f6f7;
	--yay-surface: #ffffff;
	--yay-ink: #1f2326;
	--yay-ink-strong: #0a0a0a;
	--yay-line: #e3e5e8;
	--yay-line-strong: #cfd3d8;
	--yay-muted: #5f656b; /* 5.9:1 on white */
	--yay-parchment: #e2dfdb;
	--yay-radius: 8px;
	--yay-radius-sm: 4px;
	--yay-shadow: 0 1px 2px rgba(16, 24, 20, .04);
	--yay-shadow-hover: 0 2px 5px rgba(16, 24, 20, .07);
	--yay-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--yay-font-head: var(--yay-font-body);
	--yay-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--yayt-width: 1200px;
	--yayt-prose: 720px;
	--yayt-gutter: 24px;
	--yayt-header-h: 68px;
}

/* 2 ── Base ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--yayt-header-h) + 16px); }
body {
	margin: 0;
	background: var(--yay-surface);
	color: var(--yay-ink);
	font-family: var(--yay-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--yay-font-head);
	color: var(--yay-ink-strong);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, dl, figure, blockquote, table, pre { margin: 0 0 1.15em; }
a { color: var(--yay-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--yay-primary-600); }
img, svg, video { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--yay-line); margin: 2em 0; }
code, kbd, pre { font-family: var(--yay-font-mono); font-size: .9em; }
pre { background: var(--yay-ground); border: 1px solid var(--yay-line); border-radius: var(--yay-radius-sm); padding: 14px 16px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--yay-line); vertical-align: top; }
th { font-weight: 600; color: var(--yay-ink-strong); }
blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--yay-gold); color: var(--yay-ink); }
::selection { background: var(--yay-primary-050); }
:focus-visible { outline: 2px solid var(--yay-primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.yayt-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--yay-ink-strong); color: #fff; padding: 10px 16px; border-radius: var(--yay-radius-sm); }
.yayt-skip:focus { top: 12px; color: #fff; }

.yayt-kicker {
	font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--yay-primary); margin: 0 0 .75em;
}
.yayt-kicker a { color: inherit; text-decoration: none; }
.yayt-meta { color: var(--yay-muted); font-size: .9rem; margin: 0 0 .75em; }
.yayt-meta__sep { margin: 0 .5em; }

/* 3 ── Layout ─────────────────────────────────────────────────────────── */

.yayt-container { width: 100%; max-width: var(--yayt-width); margin-inline: auto; padding-inline: var(--yayt-gutter); }
.yayt-container--prose { max-width: calc(var(--yayt-prose) + 2 * var(--yayt-gutter)); }
.yayt-main { padding-block: 56px 80px; min-height: calc(100vh - 360px); }
.yayt-main--app { background: var(--yay-ground); padding-block: 40px 72px; min-height: 60vh; }
.yayt-layout { display: block; }
.yayt-has-sidebar .yayt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.yayt-no-sidebar .yayt-layout__primary { max-width: none; }
.single-post.yayt-no-sidebar .yayt-layout__primary,
.single-yayhr_job .yayt-layout__primary { max-width: var(--yayt-prose); margin-inline: auto; }

@media (max-width: 960px) {
	.yayt-has-sidebar .yayt-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
	:root { --yayt-gutter: 16px; }
	.yayt-main { padding-block: 36px 56px; }
}

/* 4 ── Header and navigation ──────────────────────────────────────────── */

.yayt-announce { background: var(--yay-primary-600); color: #fff; font-size: .88rem; text-align: center; padding: 8px 0; }
.yayt-announce a { color: #fff; text-decoration: none; font-weight: 600; }
.yayt-announce a:hover { text-decoration: underline; color: #fff; }

.yayt-header { background: var(--yay-surface); border-bottom: 1px solid var(--yay-line); z-index: 50; }
.yayt-sticky .yayt-header { position: sticky; top: 0; }
.admin-bar.yayt-sticky .yayt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.yayt-sticky .yayt-header { top: 0; position: relative; } }

.yayt-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--yayt-header-h); }
.yayt-header__brand { flex: 0 0 auto; display: flex; align-items: center; }
.yayt-logo { display: inline-flex; align-items: center; text-decoration: none; }
.yayt-logo img { display: block; height: 40px; width: auto; }
.yayt-logo--text { font-weight: 700; font-size: 1.2rem; color: inherit; }
.custom-logo-link img { display: block; max-height: 44px; width: auto; }

.yayt-nav { flex: 1 1 auto; }
.yayt-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.yayt-menu > li { position: relative; }
.yayt-menu a {
	display: flex; align-items: center; min-height: 40px; padding: 0 12px;
	color: var(--yay-ink-strong); font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: var(--yay-radius-sm);
}
.yayt-menu a:hover, .yayt-menu .current-menu-item > a, .yayt-menu .current-menu-ancestor > a { color: var(--yay-primary); background: var(--yay-primary-050); }
.yayt-menu .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.yayt-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--yay-surface); border: 1px solid var(--yay-line); border-radius: var(--yay-radius); box-shadow: var(--yay-shadow-hover);
	visibility: hidden; opacity: 0;
}
.yayt-menu li:hover > .sub-menu, .yayt-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }

/* The mega panel (model: pipedrive.com). The header is the positioning box, so the
   panel spans the full width under it; the item itself stays static. */
.yayt-header { position: relative; }
.yayt-menu--default, .yayt-menu { position: static; }
.yayt-menu > li.yayt-mega { position: static; }
.yayt-mega__panel {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
	background: var(--yay-surface); border-top: 1px solid var(--yay-line); border-bottom: 1px solid var(--yay-line);
	box-shadow: 0 12px 24px rgba(16, 24, 20, .08); visibility: hidden; opacity: 0;
}
.yayt-mega:hover > .yayt-mega__panel, .yayt-mega:focus-within > .yayt-mega__panel, .yayt-mega.is-open > .yayt-mega__panel { visibility: visible; opacity: 1; }
.yayt-mega__inner {
	max-width: calc(var(--yayt-width) + 120px); margin: 0 auto; padding: 32px var(--yayt-gutter) 28px;
	display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 0 32px;
}
/* Measured on pipedrive.com, 2026-11-11: 16px/600 labels, 36px line icons with no tile,
   rows about 60px, columns read top to bottom. 20 modules: four columns of five. */
.yayt-mega__grid {
	list-style: none; margin: 0; padding: 0 32px 0 0; border-right: 1px solid var(--yay-line);
	display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--mega-rows, 5), auto);
	grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 16px; align-content: start;
}
.yayt-mega__grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.yayt-menu .yayt-mega__link {
	display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px; border-radius: var(--yay-radius-sm);
	color: var(--yay-ink-strong); font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; background: transparent;
}
.yayt-menu .yayt-mega__link:hover { background: var(--yay-primary-050); color: var(--yay-primary); }
.yayt-nav-icon { flex: 0 0 36px; width: 36px; height: 36px; }
.yayt-nav-text { display: flex; flex-direction: column; min-width: 0; }
.yayt-nav-title { font-size: 1rem; }
.yayt-nav-desc { font-size: .875rem; color: var(--yay-muted); font-weight: 400; line-height: 1.4; margin-top: 2px; }
/* Between the phone layout and a full desktop, three columns that read across. */
@media (min-width: 961px) and (max-width: 1240px) {
	.yayt-mega__grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yayt-mega__grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yayt-mega__inner { grid-template-columns: minmax(0, 1fr) 240px; }
}
/* 1.2.2: columns under headings, as on pipedrive.com (its Resources and Why panels,
   2026-11-13): small muted headings, icon rows for modules, arrow rows for text links,
   a "See all" link at a column's foot. A panel with no card spans the full width. Every
   panel keeps a four-column grid, so its columns line up with the others' (pipedrive.com
   does the same), and keeps it down to 961px: two rows of groups doubled the panel. */
.yayt-mega__inner--full { grid-template-columns: minmax(0, 1fr); }
.yayt-mega__cols {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-content: start;
	padding: 0 32px 0 0; border-right: 1px solid var(--yay-line);
}
.yayt-mega__inner--full .yayt-mega__cols { padding-right: 0; border-right: 0; }
.yayt-mega__heading { margin: 0 0 6px; padding: 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--yay-muted); }
.yayt-mega__list { list-style: none; margin: 0; padding: 0; }
.yayt-menu .yayt-mega__link--arrow { min-height: 40px; padding: 8px 10px; gap: 10px; }
/* A module name never splits mid-word (the body's break-word did, "Membership/s" at
   1100px); at mid width the rows give the name the room instead. */
.yayt-nav-title { overflow-wrap: normal; }
@media (min-width: 961px) and (max-width: 1240px) {
	.yayt-menu .yayt-mega__col .yayt-mega__link { gap: 8px; padding-left: 4px; padding-right: 4px; }
	.yayt-mega__col .yayt-nav-icon { flex-basis: 28px; width: 28px; height: 28px; }
}
.yayt-nav-arrow { flex: 0 0 auto; font-weight: 400; }
.yayt-menu .yayt-mega__all {
	display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin: 4px 10px 0; padding: 0;
	color: var(--yay-primary); font-weight: 600; font-size: .95rem; text-decoration: none; background: transparent;
}
.yayt-menu .yayt-mega__all:hover { text-decoration: underline; background: transparent; color: var(--yay-primary); }
.yayt-mega__promo { background: var(--yay-primary-600); color: #fff; border-radius: var(--yay-radius); overflow: hidden; align-self: start; }
.yayt-mega__shot { margin: 0; background: var(--yay-ground); }
.yayt-mega__shot img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: left top; }
.yayt-mega__shot figcaption { font-size: .72rem; color: var(--yay-muted); background: #fff; padding: 4px 12px; }
.yayt-mega__promo-body { padding: 18px 20px 20px; }
.yayt-mega__promo-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; color: #fff; }
.yayt-mega__promo-desc { font-size: .9rem; margin: 0 0 16px; color: rgba(255, 255, 255, .86); }
.yayt-menu .yayt-btn--light, .yayt-btn--light { background: #fff; color: var(--yay-primary-600); min-height: 40px; padding: 0 16px; display: inline-flex; }
.yayt-menu .yayt-btn--light:hover, .yayt-btn--light:hover { background: var(--yay-parchment); color: var(--yay-primary-600); }
.yayt-mega__strip { background: var(--yay-ground); border-top: 1px solid var(--yay-line); }
.yayt-mega__strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
	padding: 14px max(var(--yayt-gutter), calc((100% - var(--yayt-width) - 120px) / 2 + var(--yayt-gutter)));
}
.yayt-mega__lead { color: var(--yay-muted); font-size: .92rem; margin-right: -16px; }
.yayt-mega__push { margin-left: auto; }
.yayt-menu .yayt-mega__strip a { gap: 6px; min-height: 36px; padding: 0; color: var(--yay-ink-strong); font-weight: 600; font-size: .95rem; background: transparent; }
.yayt-menu .yayt-mega__strip a:hover { color: var(--yay-primary); text-decoration: underline; background: transparent; }
.yayt-menu .yayt-mega__strip a.yayt-mega__chip { padding: 0 12px; border-radius: var(--yay-radius-sm); background: var(--yay-primary-050); color: var(--yay-primary); }
.yayt-menu .yayt-mega__strip a.yayt-mega__chip:hover { background: var(--yay-primary); color: #fff; text-decoration: none; }
.yayt-promo, .yayt-strip, .yayt-heading, .yayt-see-all { list-style: none; }
/* A link to a section of the home page is never "the current page", though WordPress
   marks it so on the home page: only a real page match, or an open panel, is tinted. */
.yayt-menu > li > a[href*="#"] { background: transparent; color: var(--yay-ink-strong); }
.yayt-menu > li > a[href*="#"]:hover { background: var(--yay-primary-050); color: var(--yay-primary); }
.yayt-mega > a[aria-expanded="true"] { color: var(--yay-primary); background: var(--yay-primary-050); }

.yayt-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }
.yayt-link-quiet { color: var(--yay-ink-strong); font-weight: 500; text-decoration: none; padding: 8px 4px; }
.yayt-link-quiet:hover { color: var(--yay-primary); }

.yayt-nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--yay-line); border-radius: var(--yay-radius-sm); color: var(--yay-ink-strong); cursor: pointer;
}

@media (max-width: 960px) {
	.yayt-header__inner { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
	.yayt-nav-toggle { display: inline-flex; order: 2; }
	.yayt-header__actions { order: 1; margin-left: auto; }
	.yayt-header__actions .yayt-link-quiet { display: none; }
	.yayt-nav { order: 3; flex-basis: 100%; display: none; }
	.yayt-nav.is-open { display: block; }
	.yayt-menu { flex-direction: column; align-items: stretch; padding: 8px 0; border-top: 1px solid var(--yay-line); }
	.yayt-menu .sub-menu { position: static; visibility: visible; opacity: 1; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.yayt-menu .menu-item-has-children > a::after { display: inline-block; margin-left: auto; }
	.yayt-mega__panel { position: static; visibility: visible; opacity: 1; box-shadow: none; border: 0; display: none; }
	.yayt-mega:hover > .yayt-mega__panel, .yayt-mega:focus-within > .yayt-mega__panel { display: none; }
	.yayt-mega.is-open > .yayt-mega__panel { display: block; }
	.yayt-mega__inner { grid-template-columns: 1fr; padding: 4px 0 12px 8px; gap: 12px; }
	.yayt-mega__grid, .yayt-mega__grid--wide { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; border-right: 0; padding: 0; }
	.yayt-mega__cols, .yayt-mega__inner--full .yayt-mega__cols { grid-template-columns: 1fr; gap: 10px; border-right: 0; padding: 0; }
	.yayt-mega__shot { display: none; }
	.yayt-mega__push { display: none; }
	.yayt-mega__strip { padding: 10px 8px; }
}
@media (max-width: 420px) {
	.yayt-header__actions .yayt-btn { padding-inline: 14px; font-size: .9rem; }
	.yayt-logo img { height: 34px; }
}

/* 5 ── Footer ─────────────────────────────────────────────────────────── */

.yayt-footer { background: var(--yay-ink-strong); color: #c9ccd0; border-top: 3px solid var(--yay-gold); padding: 56px 0 28px; font-size: .95rem; }
.yayt-footer a { color: #fff; text-decoration: none; }
.yayt-footer a:hover { text-decoration: underline; color: #fff; }
.yayt-footer__top { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.yayt-footer__brand .yayt-logo img { height: 44px; }
.yayt-footer__tagline { margin-top: 16px; max-width: 32ch; }
.yayt-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.yayt-footer__cols--default { --cols: 4; }
.yayt-footer__cols--1 { --cols: 1; } .yayt-footer__cols--2 { --cols: 2; } .yayt-footer__cols--3 { --cols: 3; }
.yayt-footer .widget-title { color: var(--yay-parchment); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.yayt-footer ul { list-style: none; margin: 0; padding: 0; }
.yayt-footer li { margin: 0 0 8px; }
.yayt-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 22px; font-size: .88rem; }
.yayt-footer__bottom p { margin: 0; }
.yayt-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.yayt-footer__menu li { margin: 0; }
.yayt-footer__powered { margin-left: auto !important; color: #9aa0a6; }
@media (max-width: 860px) {
	.yayt-footer__top { grid-template-columns: 1fr; }
	.yayt-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yayt-footer__powered { margin-left: 0 !important; }
}
@media (max-width: 480px) { .yayt-footer__cols { grid-template-columns: 1fr; } }

/* 6 ── Content ────────────────────────────────────────────────────────── */

.yayt-entry__head { margin-bottom: 28px; }
.yayt-entry__title { margin-bottom: 12px; }
.yayt-entry__media { margin: 0 0 32px; }
.yayt-entry__media img { border-radius: var(--yay-radius); display: block; width: 100%; }
.yayt-entry__content > * + h2 { margin-top: 1.6em; }
.yayt-entry__content > * + h3 { margin-top: 1.4em; }
.yayt-entry__content li + li { margin-top: .35em; }
.yayt-entry__content img { border-radius: var(--yay-radius-sm); }
.alignwide { margin-inline: calc(-1 * min(120px, (100vw - var(--yayt-prose)) / 2 - var(--yayt-gutter))); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { color: var(--yay-muted); font-size: .85rem; margin-top: 8px; }

.yayt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.yayt-chip, .yayt-chips a {
	display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px;
	background: var(--yay-primary-050); color: var(--yay-primary-600); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.yayt-chip:hover, .yayt-chips a:hover { background: var(--yay-primary); color: #fff; }

.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--yay-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; font-weight: 600; }
.post-navigation .yayt-meta { display: block; margin-bottom: 4px; font-weight: 400; }

.yayt-404 { text-align: left; padding-block: 40px; }
.yayt-404 .yayt-search { margin: 24px 0; }

/* 7 ── Listings ───────────────────────────────────────────────────────── */

.yayt-listing-head { margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--yay-line); }
.yayt-listing-head__title { margin-bottom: 8px; }
.yayt-listing-head__desc { color: var(--yay-muted); max-width: 65ch; }

.yayt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.yayt-card {
	display: flex; flex-direction: column; background: var(--yay-surface); border: 1px solid var(--yay-line);
	border-radius: var(--yay-radius); box-shadow: var(--yay-shadow); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease;
}
.yayt-card:hover { box-shadow: var(--yay-shadow-hover); border-color: var(--yay-line-strong); }
.yayt-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yayt-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.yayt-card__title { font-size: 1.2rem; margin-bottom: 8px; }
.yayt-card__title a { color: var(--yay-ink-strong); text-decoration: none; }
.yayt-card__title a:hover { color: var(--yay-primary); }
.yayt-card__excerpt { color: var(--yay-ink); font-size: .96rem; }
.yayt-card__excerpt p { margin: 0 0 12px; }
.yayt-card__more { margin-top: auto; font-weight: 600; text-decoration: none; font-size: .95rem; }
.yayt-card__more::after { content: " \2192"; }
.yayt-card--job { border-left: 3px solid var(--yay-primary); }

.yayt-pagination { margin-top: 40px; }
.yayt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.yayt-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--yay-line); border-radius: var(--yay-radius-sm); text-decoration: none; color: var(--yay-ink-strong); background: var(--yay-surface);
}
.yayt-pagination .page-numbers.current { background: var(--yay-primary); border-color: var(--yay-primary); color: #fff; }
.yayt-none { padding: 32px; border: 1px dashed var(--yay-line-strong); border-radius: var(--yay-radius); background: var(--yay-ground); }

/* 8 ── Forms and buttons ──────────────────────────────────────────────── */

.yayt-btn, button[type="submit"], input[type="submit"], .wp-block-button__link, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
	border: 1px solid transparent; border-radius: var(--yay-radius-sm); font: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
	text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.yayt-btn--primary, button[type="submit"], input[type="submit"], .wp-block-button__link, .comment-form .submit {
	background: var(--yay-primary); color: #fff;
}
.yayt-btn--primary:hover, button[type="submit"]:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .comment-form .submit:hover {
	background: var(--yay-primary-600); color: #fff;
}
.yayt-btn--ghost { background: transparent; color: var(--yay-ink-strong); border-color: var(--yay-line-strong); }
.yayt-btn--ghost:hover { border-color: var(--yay-primary); color: var(--yay-primary); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--yay-primary); border-color: currentColor; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--yay-ink);
	background: var(--yay-surface); border: 1px solid var(--yay-line-strong); border-radius: var(--yay-radius-sm);
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yay-primary); box-shadow: 0 0 0 3px var(--yay-primary-050); }
label { font-weight: 600; }

.yayt-search { display: flex; gap: 8px; max-width: 520px; }
.yayt-search__input { flex: 1; }

/* 9 ── Comments ───────────────────────────────────────────────────────── */

.yayt-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--yay-line); }
.yayt-comments__title { font-size: 1.3rem; margin-bottom: 16px; }
.yayt-comments__list, .yayt-comments__list .children { list-style: none; padding: 0; margin: 0 0 32px; }
.yayt-comments__list .children { padding-left: 24px; border-left: 2px solid var(--yay-line); margin-top: 16px; }
.yayt-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--yay-line); }
.yayt-comments .comment-meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--yay-muted); }
.yayt-comments .avatar { border-radius: 50%; }
.comment-form p { margin-bottom: 16px; }

/* 10 ── Widgets ───────────────────────────────────────────────────────── */

.yayt-layout__side .widget { margin-bottom: 36px; }
.yayt-layout__side .widget-title, .yayt-layout__side .wp-block-heading, .yayt-layout__side h2, .yayt-layout__side .wp-block-search__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yay-muted); margin-bottom: 12px; }
.yayt-layout__side ul { list-style: none; padding: 0; margin: 0; }
.yayt-layout__side .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.yayt-layout__side .wp-block-search__button { margin: 0; }
.yayt-footer .wp-block-heading, .yayt-footer h2 { color: var(--yay-parchment); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.yayt-layout__side li { padding: 6px 0; border-bottom: 1px solid var(--yay-line); }

/* 11 ── YAY ERP surfaces ──────────────────────────────────────────────────
 * The ERP and HRMS bring their own layout; the theme supplies width, type and
 * the primary token, and nothing else. The HRMS keeps its own palette (set in
 * the HRMS brand settings) — the theme deliberately does not override it. */

.yayt-app { min-width: 0; }
.yayt-app > .yayhr, .yayt-app > div > .yayhr { max-width: none; }

/* YAY Forms prints its own small stylesheet with a fixed green; follow the tenant's. */
body .yayf-public { max-width: 680px; }
body .yayf-public .yayf-c__input { min-height: 44px; border-color: var(--yay-line-strong); }
body .yayf-public .yayf-c__input:focus { border-color: var(--yay-primary); box-shadow: 0 0 0 3px var(--yay-primary-050); outline: none; }
body .yayf-public .yayf-public__submit { background: var(--yay-primary); border-radius: var(--yay-radius-sm); min-height: 44px; }
body .yayf-public .yayf-public__submit:hover { background: var(--yay-primary-600); }
body .yayf-public--done p { border-left-color: var(--yay-primary); }

/* A job posting: the HRMS facts table and apply form sit inside the prose column. */
.single-yayhr_job .yayt-entry__content .yayhr { margin-top: 8px; }

/* 12 ── Elementor ──────────────────────────────────────────────────────── */

/* Elementor's Full Width template: let sections run edge to edge. */
.elementor-template-full-width .yayt-main,
.page-template-elementor_header_footer .yayt-main { padding: 0; }
.elementor-page .yayt-entry__head { display: none; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-button { border-radius: var(--yay-radius-sm); font-weight: 600; }

/* 13 ── Marketing blocks (classes applied in the starter templates) ─────── */

.yayt-hero { background-color: var(--yay-primary-050); }
.yayt-checks ul { list-style: none; padding: 0; margin: 0; }
.yayt-shot img {
	border-radius: var(--yay-radius); border: 1px solid var(--yay-line); box-shadow: 0 12px 32px rgba(16, 24, 20, .10);
}
/* 1.1.0: real screenshots (captioned as demonstration data) and photographs. */
/* 1.1.5: every screenshot is 1920x1200 (the static suite holds that), so its box is reserved
   before it loads. Without it a lazy screenshot is 0px tall until it arrives, and a jump to
   #editions landed ~600px short as the pictures above pushed the section down (yayerp.com). */
.yayt-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--yay-surface); }
/* Elementor's ".elementor-widget-image a (img)" is inline-block and outranks the line above:
   the lightbox link then shrinks to fit a picture with no size yet, and the box is ~20px. */
.yayt-screen.elementor-widget-image a, .yayt-screen.elementor-widget-image img { display: block; width: 100%; }
.yayt-screen figcaption, .yayt-screen .widget-image-caption { font-size: .8rem; color: var(--yay-muted); text-align: left; margin-top: 8px; }
.yayt-photo img {
	display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--yay-radius); box-shadow: 0 12px 32px rgba(16, 24, 20, .10);
}
.yayt-gallery .yayt-screen img { box-shadow: 0 6px 18px rgba(16, 24, 20, .08); }
.yayt-band .yayt-photo img { aspect-ratio: 21 / 8; border-radius: 0; box-shadow: none; }
.yayt-stat { border-top: 2px solid var(--yay-gold); padding-top: 16px; }
.yayt-stat .elementor-heading-title { font-variant-numeric: tabular-nums; }
.yayt-module .elementor-widget-container { height: 100%; }
.yayt-module .elementor-image-box-wrapper {
	height: 100%; padding: 22px; text-align: left; background: var(--yay-surface); border: 1px solid var(--yay-line);
	border-radius: var(--yay-radius); box-shadow: var(--yay-shadow); transition: box-shadow .15s ease, border-color .15s ease;
}
.yayt-module:hover .elementor-image-box-wrapper { box-shadow: var(--yay-shadow-hover); border-color: var(--yay-line-strong); }
.yayt-module .elementor-image-box-img { margin: 0 0 14px !important; width: 48px !important; }
/* 1.1.5: the icon box is block-level all the way down. Inline-block, its baseline moved 8px
   between a loaded and a not-yet-loaded picture, and the card grew as the icons arrived. */
.yayt-module.elementor-widget-image-box .elementor-image-box-img { display: block; height: 48px; line-height: 0; }
.yayt-module .elementor-image-box-img a, .yayt-module .elementor-image-box-img img { display: block; width: 48px; height: 48px; }
.yayt-module .elementor-image-box-title { margin: 0 0 6px; }
.yayt-module .elementor-image-box-description { margin: 0; }
.yayt-edition { border: 1px solid var(--yay-line); border-radius: var(--yay-radius); box-shadow: var(--yay-shadow); }
/* Module pages (model: pipedrive.com feature pages). */
.yayt-narrow > .e-con-inner, .yayt-narrow.e-con-full { max-width: 820px; margin-inline: auto; }
.yayt-feature-card { border: 1px solid var(--yay-line); border-radius: var(--yay-radius); box-shadow: var(--yay-shadow); }
.yayt-lookfor, .yayt-notyet { margin: 0; padding: 0; list-style: none; }
.yayt-lookfor li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--yay-line); }
.yayt-lookfor li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--yay-primary); border-bottom: 2.5px solid var(--yay-primary); transform: rotate(-45deg); }
.yayt-lookfor strong { color: var(--yay-ink-strong); }
.yayt-notyet li { position: relative; padding: 6px 0 6px 24px; }
.yayt-notyet li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 2px; background: var(--yay-muted); }
.yayt-faq .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--yay-line) !important; }
.yayt-faq .elementor-tab-title { padding: 20px 0 !important; }
.yayt-faq .elementor-tab-content { padding: 0 0 20px !important; border: 0 !important; color: var(--yay-ink); }
.yayt-faq .elementor-tab-content p:last-child { margin-bottom: 0; }

.yayt-badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--yay-gold); color: var(--yay-ink-strong);
	font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
/* Where the contact form cannot be shown (inc/forms.php): the address, never a dead end. */
.yayt-placeholder-note { font-size: .82rem; color: var(--yay-muted); font-style: italic; }
/* 1.0.x left this editor's note on Home and Contact; pages not yet updated still carry it.
   Instructions for the editor, never for a visitor. */
body:not(.logged-in) .yayt-placeholder-note { display: none; }
.yayt-contact-fallback { font-size: 1.05rem; padding: 16px 20px; border-left: 4px solid var(--yay-gold); background: var(--yay-surface); }

/* 14 ── Dark mode (opt-in: Customizer → YAY ERP) ───────────────────────── */

@media (prefers-color-scheme: dark) {
	.yayt-dark-auto {
		--yay-ground: #121416;
		--yay-surface: #1a1d20;
		--yay-ink: #e3e5e8;
		--yay-ink-strong: #f5f6f7;
		--yay-line: #2c3034;
		--yay-line-strong: #3b4045;
		--yay-muted: #a3a9af;
		--yay-primary-050: rgba(255, 255, 255, .06);
		color-scheme: dark;
	}
	.yayt-dark-auto a { color: color-mix(in srgb, var(--yay-primary) 55%, #fff); }
	.yayt-dark-auto .yayt-btn--primary, .yayt-dark-auto button[type="submit"] { color: #fff; }
}

/* 15 ── Motion and print ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.yayt-announce, .yayt-header, .yayt-footer, .yayt-nav-toggle, .yayt-skip, .yayt-layout__side,
	.yayt-comments, .post-navigation, .yayt-pagination, .yayt-search { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.yayt-main, .yayt-main--app { padding: 0; background: #fff; }
	.yayt-container { max-width: none; padding: 0; }
	a { color: #000; }
	.yayt-entry__content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
	.yayt-card { break-inside: avoid; box-shadow: none; }
}
