/*
 * VIS Hub, as designed by Grace Claringbold (Miro "VIS Hub", Nov 2026;
 * screens in docs/lms-board-grace/). Loaded on hub pages only (inc/hub.php).
 *
 * Grace's board is the page shell to follow (Nathan, 5 Nov); the website's
 * header, footer, type rules and components stay, and her sample data are
 * placeholders. Shared here: tokens, the listing hero, the experts band,
 * buttons, chips, filters, cards' common parts. Each view adds
 * hub-<view>.css.
 *
 * Measurements are Grace's, at 1440 wide. Class prefix: vh-.
 */

body.vis-lms {
	--vh-navy: var(--wp--preset--color--navy-900);      /* #0b233f page navy */
	--vh-deep: #041b3f;                                 /* experts band */
	--vh-ink: var(--wp--preset--color--navy-900);       /* headings on light */
	--vh-blue: var(--wp--preset--color--blue-700);      /* card titles, links on light */
	--vh-text: #24344a;                                 /* body on light */
	--vh-muted: #5b6676;
	--vh-gold: var(--wp--preset--color--gold-500);
	--vh-grey: #f3f4f6;                                 /* light band */
	--vh-line: #e3e6ea;
	--vh-cream: #fff6e9;
	--vh-chip-blue: #2d6cb5;
	--vh-chip-soft: #d6e4f2;
	--vh-green: #e3f3e6;
	--vh-green-ink: #23703a;
	--vh-radius: 12px;
	--vh-wrap: 1152px;
	--vh-gutter: clamp(16px, 4vw, 40px);
	--vh-display: var(--wp--preset--font-family--display);
	--vh-body: var(--wp--preset--font-family--body);
	--vh-shadow: 0 1px 2px rgb(11 35 63 / 6%), 0 4px 16px rgb(11 35 63 / 6%);
}
body.vh-page--dashboard { --vh-wrap: 1262px; }

.vh, .vh * { box-sizing: border-box; }
.vh { font-family: var(--vh-body); color: var(--vh-text); font-size: 16px; line-height: 1.5; }
.vh :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
.vh :where(ul, ol) { padding: 0; list-style: none; }
.vh img { display: block; max-width: 100%; height: auto; }
.vh a { color: inherit; }
.vh-main { margin: 0 !important; }
.vh-main > .entry-content, .vh-main > .wp-block-post-content { margin: 0 !important; max-width: none !important; }

.vh-wrap { width: min(var(--vh-wrap), 100% - 2 * var(--vh-gutter)); margin-inline: auto; }
.vh-icon { flex: none; }
.vis-visually-hidden, .vh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type: the brand's condensed face, slanted and uppercase. */
.vh-display {
	font-family: var(--vh-display) !important; font-style: italic; font-weight: 400; text-transform: uppercase;
	letter-spacing: .005em; line-height: .95;
}

/* Buttons ------------------------------------------------------------------ */
.vh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: 0 1.6rem; border: 0; border-radius: 6px;
	background: var(--vh-gold); color: var(--vh-navy) !important; font: 600 15px/1 var(--vh-body);
	text-decoration: none !important; cursor: pointer; transition: background-color .15s;
}
.vh-btn:hover { background: var(--wp--preset--color--gold-300); }
.vh-btn--navy { background: var(--vh-navy); color: #fff !important; }
.vh-btn--navy:hover { background: var(--wp--preset--color--navy-800); }
.vh-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 55%); }
.vh-btn--ghost:hover { background: rgb(255 255 255 / 8%); }
.vh-btn--line { background: #fff; color: var(--vh-navy) !important; box-shadow: inset 0 0 0 1px #c9cfd7; }
.vh-btn--line:hover { background: var(--vh-grey); }
.vh-btn--sm { min-height: 34px; padding: 0 .95rem; font-size: 13px; border-radius: 4px; }
.vh-btn:focus-visible, .vh a:focus-visible, .vh button:focus-visible, .vh summary:focus-visible, .vh input:focus-visible, .vh select:focus-visible, .vh textarea:focus-visible {
	outline: 3px solid var(--vh-gold); outline-offset: 3px;
}

/* "View resource", "Continue": underlined text links. */
.vh-link { color: var(--vh-blue); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vh-link:hover { text-decoration-thickness: 2px; }
/* "START COURSE →": small caps tracked action. */
.vh-go { display: inline-flex; align-items: center; gap: .4rem; color: var(--vh-navy); font: 700 12.5px/1 var(--vh-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.vh-go .vh-icon { width: 13px; height: 13px; transition: transform .15s; }
.vh-go:hover .vh-icon { transform: translateX(3px); }

/* Chips --------------------------------------------------------------------- */
.vh-chip {
	display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: var(--wp--custom--radius--pill, 999px); /* rounded like the dashboard chips (Alice, 10 Nov) */
	font: 700 10.5px/1 var(--vh-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
	background: var(--vh-chip-soft); color: var(--vh-navy);
}
.vh-chip .vh-icon { width: 12px; height: 12px; }
.vh-chip--blue { background: var(--vh-chip-blue); color: #fff; }
.vh-chip--navy { background: var(--vh-navy); color: #fff; }
.vh-chip--gold { background: var(--vh-gold); color: var(--vh-navy); }
.vh-chip--white { background: #fff; color: var(--vh-navy); }
.vh-chip--green { background: var(--vh-green); color: var(--vh-green-ink); }
.vh-chip--line { background: transparent; color: var(--vh-navy); box-shadow: inset 0 0 0 1px currentColor; }
.vh-chip--pill { border-radius: 999px; padding: .4rem .7rem; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }

/* Square filters (listings): All · Breakfast · Saved (0) */
.vh-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.vh-filters button, .vh-filters a {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border: 1px solid #b9c2cd; border-radius: 0;
	background: #fff; color: var(--vh-navy); font: 600 14px/1 var(--vh-body); text-decoration: none; cursor: pointer;
}
.vh-filters [aria-pressed="true"], .vh-filters [aria-current="true"] { background: var(--vh-gold); border-color: var(--vh-gold); }
.vh-filters span { font-weight: 500; }

/* Pill filters (resources, experts): outlined on navy, gold when pressed (Grace's) */
.vh-filters--pills button { min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.vh-filters--pills button[aria-pressed="true"] { background: var(--vh-gold); border-color: var(--vh-gold); color: #0a213f; }

/* Phones: All · a category dropdown · Saved in place of a wall of category pills (hub.php filter_pick) */
.vh-filters__pick { display: none; position: relative; }
.vh-filters__pick select {
	appearance: none; -webkit-appearance: none; min-height: 38px; max-width: 100%; padding: 0 38px 0 16px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px;
	background: transparent; color: #fff; font: 600 13px/1 var(--vh-body); cursor: pointer;
}
.vh-filters__pick select option { color: #0a213f; }
.vh-filters__pick.is-active select { background: var(--vh-gold); border-color: var(--vh-gold); color: #0a213f; }
.vh-filters__pick .vh-icon { position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: #fff; pointer-events: none; }
.vh-filters__pick.is-active .vh-icon { color: #0a213f; }
@media (max-width: 700px) {
	.vh-filters--pick button[data-filter]:not([data-filter="all"], [data-filter="saved"]) { display: none; }
	.vh-filters--pick .vh-filters__pick { display: inline-flex; flex: 1 1 0; min-width: 0; }
	.vh-filters--pick .vh-filters__pick select { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
	.vh-filters--pick { flex-wrap: nowrap; }
	.vh-filters--pick > button { flex: none; }
}

/* Search box (listings) */
.vh-search { position: relative; display: block; width: min(300px, 100%); }
.vh-search input {
	width: 100%; height: 44px; padding: 0 2.75rem 0 1rem; border: 1px solid #b9c2cd; border-radius: 0; background: #fff;
	font: 400 14px var(--vh-body); color: var(--vh-navy);
}
.vh-search .vh-icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--vh-gold); pointer-events: none; }

/* Hearts (vis-core Saved): white disc on images */
.vh .vh-heart {
	display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; color: var(--vh-navy); cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}
.vh .vh-heart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vh .vh-heart[aria-pressed="true"] { color: var(--vh-gold); }
.vh .vh-heart[aria-pressed="true"] svg { fill: currentColor; }

/* "Load more" pill */
.vh-more { display: flex; justify-content: center; margin-top: 2.25rem; }
.vh-more[hidden] { display: none; } /* display:flex above outranked the hidden attribute, so "Load more" stayed under a finished or empty list */
.vh-more__btn {
	display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1.75rem; border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px;
	background: transparent; color: #fff; font: 700 12.5px/1 var(--vh-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.vh-more__btn .vh-icon { width: 14px; height: 14px; color: var(--vh-gold); }
.vh-more__btn:hover { background: rgb(255 255 255 / 8%); }
.vh-light .vh-more__btn { border-color: var(--vh-navy); color: var(--vh-navy); }

/* Listing hero --------------------------------------------------------------- */
.vh-hero {
	position: relative; isolation: isolate; display: grid; align-items: end; min-height: 477px; padding: 140px 0 44px;
	background: var(--vh-navy); color: #fff; text-align: center; overflow: hidden;
}
.vh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--vh-hero-img, none) center / cover no-repeat;
}
.vh-hero::after { /* the navy wash Grace puts over the banner photo */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgb(11 35 63 / 88%) 0%, rgb(11 35 63 / 80%) 45%, rgb(11 35 63 / 96%) 100%);
}
.vh-hero__inner { display: grid; justify-items: center; }
.vh-hero__crumb { margin-bottom: .9rem; font: 700 11.5px/1 var(--vh-body); letter-spacing: .12em; text-transform: uppercase; color: var(--vh-gold); }
.vh-hero__crumb a { color: inherit; text-decoration: none; }
.vh-hero__title { font-size: clamp(3rem, 1.6rem + 4.2vw, 4.75rem); color: #fff; }
.vh-hero__lead { max-width: 30rem; margin-top: 1.25rem; font-size: 17px; line-height: 1.45; color: rgb(255 255 255 / 85%); }
.vh-hero__rule { display: block; width: 48px; height: 2px; margin-top: 1.9rem; background: var(--vh-gold); }

/* Section heads on bands */
.vh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.vh-h2 { font: 500 26px/1.2 var(--vh-body); color: var(--vh-ink); letter-spacing: -.005em; }
.vh-dark .vh-h2, .vh-on-navy .vh-h2 { color: #fff; }
.vh-note { font-size: 13.5px; color: var(--vh-muted); }
.vh-dark .vh-note, .vh-on-navy .vh-note { color: rgb(255 255 255 / 75%); }

/* Experts band ------------------------------------------------------------- */
.vh-experts { background: var(--vh-deep); color: #fff; padding: 64px 0 72px; }
.vh-experts__title { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 2.75rem); color: #fff; margin-bottom: 1.6rem; }
.vh-experts__lead { margin: -.9rem 0 1.6rem; font-size: 15px; color: rgb(255 255 255 / 85%); }
.vh-experts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vh .vh-expert.vis-card {
	position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; min-height: 364px; margin: 0 !important;
	padding: 0; border: 0; border-radius: 0; background: #12294b; color: #fff; overflow: hidden; box-shadow: 0 6px 20px rgb(0 0 0 / 22%);
}
.vh .vh-expert.vis-card[hidden] { display: none !important; }
.vh-expert__photo { position: absolute; inset: 0; margin: 0; background: repeating-linear-gradient(135deg, #1b3456 0 18px, #213c61 18px 36px); }
.vh-expert__photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 20%; }
.vh-expert__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 35 63 / 0%) 35%, rgb(11 35 63 / 92%) 78%); }
.vh-expert__body { position: relative; padding: 0 20px 26px; }
.vh-expert__body::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 12px; background: var(--vh-gold); }
.vh-expert__name { font: 700 19px/1.25 var(--vh-body) !important; color: #fff !important; text-transform: none !important; font-style: normal !important; }
.vh-expert__role { margin-top: .4rem !important; font-size: 13.5px; line-height: 1.4; color: var(--vh-gold); }
.vh-expert__bio { margin-top: 1.15rem; }
.vh-expert__bio summary { display: inline-flex; align-items: center; gap: .35rem; list-style: none; cursor: pointer; font: 700 13.5px/1 var(--vh-body); color: #fff; }
.vh-expert__bio summary::-webkit-details-marker { display: none; }
.vh .vh-expert__bio summary::after { display: none !important; } /* the site's own arrow; the hub draws its icon */
.vh-expert__bio summary .vh-icon { width: 13px; height: 13px; }
.vh-expert__bio[open] .vis-card__more-body { margin-top: .75rem; font-size: 14px; color: rgb(255 255 255 / 88%); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
	.vh-experts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.vh-hero { min-height: 380px; padding-top: 120px; }
	.vh-experts__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	/* Two across on a phone: a taller card and smaller text, so the name and role sit under the face, not on it. */
	.vh .vh-expert.vis-card { min-height: 0; aspect-ratio: 5 / 9; }
	.vh-expert__photo img { object-position: center 8%; }
	.vh-expert__photo::after { background: linear-gradient(180deg, rgb(11 35 63 / 0%) 40%, rgb(11 35 63 / 94%) 66%); }
	.vh-expert__body { padding: 0 14px 16px; }
	.vh-expert__body::before { width: 24px; margin-bottom: 8px; }
	.vh-expert__name { font-size: 16px !important; line-height: 1.2 !important; }
	.vh-expert__role { margin-top: .3rem !important; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.vh-expert__bio { margin-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
	.vh *, .vh *::before, .vh *::after { transition: none !important; animation: none !important; }
}

/* "Got a question?" in the band above the hub footer (hub/parts/question.php):
   the band's own field and button language (system.css §newsletter). */
.vis-newsletter .vh-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; width: 100%; }
.vh-ask__field { display: grid; gap: .5rem; min-width: 0; }
.vh-ask__field--full { grid-column: 1 / -1; }
.vh-ask label {
	font-family: var(--wp--preset--font-family--body); font-size: var(--vis-label-size, .75rem); font-weight: 700; letter-spacing: var(--vis-label-tracking, .12em);
	text-transform: uppercase; color: #fff;
}
.vh-ask :is(input, textarea) {
	width: 100%; min-height: 56px; margin: 0; padding: 0 1.25rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: var(--wp--custom--radius--lg);
	background: rgb(255 255 255 / 8%); color: #fff !important; -webkit-text-fill-color: #fff; caret-color: #fff; font: inherit; font-size: 1.0625rem; box-sizing: border-box; transition: border-color .3s, background .3s;
}
.vh-ask textarea { min-height: 120px; padding: 1rem 1.25rem; resize: vertical; line-height: 1.5; }
.vh-ask :is(input, textarea):focus { outline: none; border-color: var(--wp--preset--color--gold-500); background: rgb(255 255 255 / 12%); }
.vh-ask :is(input, textarea)::placeholder { color: rgb(255 255 255 / 55%); }
.vh-ask input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #1a3150 inset; }
.vh-ask [aria-invalid="true"] { border-color: #ff9b8a; }
.vh-ask__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vh-ask__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.vh-ask__privacy { font-size: .875rem; font-weight: 700; color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.vh-ask__send {
	display: inline-flex; align-items: center; gap: .9rem; min-height: 56px; margin: 0; padding: 0 1.75rem; border: 0; border-radius: var(--wp--custom--radius--pill); cursor: pointer;
	background: var(--wp--preset--color--gold-500); color: var(--wp--preset--color--navy-950); font: inherit; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: background .3s;
}
.vh-ask__send::after { content: ""; width: 14px; height: 14px; background: var(--vis-arrow-ink) center / contain no-repeat; transition: transform .45s var(--vis-ease); }
.vh-ask__send:hover { background: var(--wp--preset--color--white); }
.vh-ask__send:hover::after { transform: translate(3px, -3px); }
.vh-ask__send:disabled { opacity: .6; cursor: progress; }
.vh-ask__send:focus-visible, .vh-ask__privacy:focus-visible { outline: var(--wp--custom--focus--ring, 3px solid #f8981d); outline-offset: 3px; }
.vh-ask__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: .9375rem; color: #fff; }
.vh-ask__status:empty { display: none; }
.vh-ask__status.is-error { color: #ffb4a8; }
@media (max-width: 640px) {
	.vis-newsletter .vh-ask { grid-template-columns: 1fr; }
	.vh-ask__send { width: 100%; justify-content: center; }
}
