/*
 * VIS Hub dashboard and calendar (hub/dashboard.php, hub/calendar.php,
 * hub/_account.php). Grace's layout (welcome band, tiles over its edge,
 * Up next, What's on, Learning with a side column, Saved), drawn in the
 * website's language from system.css: display face for the band headings,
 * the one label, white cards with the site radius and hairline, gold-ruled
 * links, navy filters, paper (#f3f4f6) and white bands. Colours come from
 * the scheme tokens (vis-scheme-dark / vis-scheme-light on each band).
 */

.vh--dashboard, .vh--calendar { font-family: var(--wp--preset--font-family--body); font-size: 1rem; line-height: 1.5; }
/* One column, the site header's: 1600px at most, the root padding either side. */
.vh-d-wrap, :is(.vh--dashboard, .vh--calendar) .vh-d-wrap { width: min(100% - 2 * var(--wp--style--root--padding-left, max(1rem, 5vw)), 1600px); margin-inline: auto; }
:is(.vh--dashboard, .vh--calendar) :is(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:is(.vh--dashboard, .vh--calendar) :is(ul, ol) { padding: 0; list-style: none; }
:is(.vh--dashboard, .vh--calendar) a:focus-visible, :is(.vh--dashboard, .vh--calendar) button:focus-visible { outline: var(--wp--custom--focus--ring); outline-offset: 3px; }

/* Type: band headings in the display face, labels as the site's one label. */
.vh-d-hero__title, .vh-d-h2 {
	font-family: var(--wp--preset--font-family--display) !important; font-style: italic; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; color: var(--vis-ink);
}
.vh-d-hero__title { font-size: clamp(2.25rem, 1.25rem + 3.5vw, 4.5rem) !important; line-height: .9; text-wrap: balance; }
.vh-d-h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem) !important; line-height: .95; }
.vh-d-label {
	font-family: var(--wp--preset--font-family--body) !important; font-style: normal !important; font-size: .875rem !important; font-weight: 700 !important;
	letter-spacing: 0 !important; text-transform: none; line-height: 1.3; color: var(--vis-accent-ink);
}
.vh-d-card__title, .vh-d-card__title a {
	font-family: var(--wp--preset--font-family--body) !important; font-style: normal !important; text-transform: none !important; font-weight: 600 !important;
	font-size: var(--vis-card-title-size) !important; line-height: 1.15 !important; letter-spacing: -.02em; color: var(--vis-ink) !important; text-decoration: none !important;
}
.vh-d-card__text { color: var(--vis-ink); font-size: .9375rem; line-height: 1.5; }
.vh-d-sub, .vh-d-empty { color: var(--vis-ink); font-size: .875rem; line-height: 1.45; }
.vh-d-empty { color: var(--vis-muted); }
.vh-d-empty { font-size: .9375rem; }
.vh-d-due { margin-top: .15rem !important; font-size: .8125rem; font-weight: 700; color: var(--vis-accent-ink); }
.vh-d-due.is-overdue { color: #b32d2e; }
.vh-d-due--none { font-weight: 500; color: var(--vis-ink); }

/* Links: the site's gold underline. Card actions: the site's caps action with an arrow. */
.vh-d-link {
	color: var(--vis-ink) !important; font-size: .9375rem; font-weight: 600; text-decoration: underline !important;
	text-decoration-color: var(--wp--preset--color--gold-500) !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em;
}
.vh-d-link:hover { color: var(--vis-accent-ink) !important; }
.vh-d-card__action {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.25rem; align-self: flex-start;
	font-size: .875rem !important; font-weight: 700; letter-spacing: 0; text-transform: none; text-decoration: none !important; color: var(--vis-accent-ink) !important;
}
.vh-d-card__action::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--vis-ease); }
.vh-d-card:hover .vh-d-card__action::after { transform: translateX(3px); }
.vh-d-linkbtn { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }

/* Cards: one card language (white on paper, site radius, hairline). */
.vh-d-card {
	position: relative; display: flex; flex-direction: column; background: var(--wp--preset--color--white);
	border: 1px solid var(--vis-surface-line); border-radius: var(--wp--custom--radius--lg); color: var(--vis-ink);
	transition: border-color .4s, box-shadow .6s var(--vis-ease);
}
.vh-d-card:hover { border-color: var(--vis-surface-line-hover, var(--vis-line)); }
.vh-d-bar { display: block; height: 4px; margin: .25rem 0 .7rem; border-radius: 4px; background: var(--wp--preset--color--gray-100); overflow: hidden; }
.vh-d-bar > span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--wp--preset--color--gold-500); }
.vh-d-chip {
	position: absolute; top: .75rem; left: .75rem; padding: .3rem .7rem; border-radius: var(--wp--custom--radius--pill);
	background: rgba(3, 25, 63, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--wp--preset--color--white);
	font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.vh-d-thumb__letter { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 3.5rem; color: rgba(255, 255, 255, .15); }

/* Bands */
.vh-d-band { padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; color: var(--vis-ink); }
.vh-d-band--white { background-color: var(--wp--preset--color--white) !important; }
.vh-d-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.25rem; margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }
.vh-d-head > .vh-d-h2 { margin-right: auto; }
.vh-d-head__end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.vh-d-head--side { align-items: center; justify-content: space-between; min-height: 2.75rem; margin-bottom: 1rem; }
.vh-d-range { order: 1; width: 100%; margin-top: -.5rem !important; color: var(--vis-muted); font-size: .9375rem; }
.vh-d-whatson { min-width: 0; }
.vh-d-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 341px); gap: clamp(2rem, 3.5vw, 3rem); align-items: start; }
.vh-d-side { display: grid; gap: 2rem; min-width: 0; }
.vh-d-side__title { margin: 0; }

/* 1. Welcome band (Grace): photo on the right under a navy wash, the
   welcome in the body face, white tiles sitting across the band's foot
   (the navy stops at the tiles' middle, the paper band carries on). The
   site header floats over it, so the top padding clears it. */
.vh-d-hero {
	--tile-h: 166px;
	position: relative; isolation: isolate; overflow: hidden; padding: clamp(10.5rem, 8rem + 5vw, 13.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
	background: var(--vh-grey, #f3f4f6); color: var(--vis-ink);
}
.vh-d-hero::before { content: ""; position: absolute; inset: 0 0 calc(var(--tile-h) * .57 + clamp(2.5rem, 2rem + 2vw, 3.5rem)) 36%; z-index: -2; background: var(--vh-hero-img) center 35% / cover no-repeat; opacity: .5; }
.vh-d-hero::after {
	content: ""; position: absolute; inset: 0 0 calc(var(--tile-h) * .57 + clamp(2.5rem, 2rem + 2vw, 3.5rem)); z-index: -1;
	background: linear-gradient(90deg, var(--wp--preset--color--navy-900) 0%, var(--wp--preset--color--navy-900) 36%, rgb(11 35 63 / 70%) 60%, rgb(11 35 63 / 55%) 100%);
}
.vh-d-hero .vh-d-hero__title {
	font-family: var(--wp--preset--font-family--body) !important; font-style: normal; font-weight: 700; text-transform: none; letter-spacing: -.04em;
	font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem) !important; line-height: 1.05; color: #fff;
}
.vh-d-hero__line { max-width: 34rem; margin-top: 1.4rem !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: #fff; }
.vh-d-hero--account { padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
/* Bands without tiles (account pages, calendar): navy all the way down. */
.vh-d-hero:not(:has(.vh-d-tiles)) { background: var(--wp--preset--color--navy-900); }
.vh-d-hero:not(:has(.vh-d-tiles))::before, .vh-d-hero:not(:has(.vh-d-tiles))::after { bottom: 0; }
.vh-d-preview { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 1.5rem !important; padding: .6rem .9rem; border: 1px solid var(--vis-line); border-radius: var(--wp--custom--radius--lg); font-size: .8125rem; color: #fff; }
.vh-d-preview a { color: var(--wp--preset--color--gold-500); font-weight: 700; }

.vh-d-tiles { margin-top: clamp(4rem, 3rem + 3vw, 6.5rem); }
.vh-d-tiles__list { display: grid; grid-template-columns: repeat(var(--tiles, 5), minmax(0, 1fr)); gap: clamp(.75rem, 1.3vw, 1.4rem); }
.vh-d-tile { /* Grace's tile: white, rounded, soft shadow */
	display: flex; flex-direction: column; height: 100%; min-height: var(--tile-h); padding: 21px 24px 24px; border-radius: 16px;
	background: #fff; box-shadow: 0 2px 4px rgb(11 35 63 / 6%), 0 10px 28px rgb(11 35 63 / 10%); text-decoration: none !important;
	transition: transform .4s var(--vis-ease, ease), box-shadow .4s;
}
.vh-d-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgb(11 35 63 / 8%), 0 16px 36px rgb(11 35 63 / 14%); }
.vh-d-tile > * { flex-shrink: 0; }
.vh-d-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--wp--preset--color--gold-500); color: var(--wp--preset--color--navy-950); }
.vh-d-tile__title { font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--wp--preset--color--blue-700); }
.vh-d-tile.is-soon { cursor: default; }
.vh-d-tile.is-soon:hover { transform: none; }
.vh-d-tile.is-soon .vh-d-tile__icon { background: rgb(11 35 63 / 8%); color: var(--wp--preset--color--navy-900); }
.vh-d-tile__soon { align-self: flex-start; margin-top: .55rem; padding: .2rem .6rem; border-radius: 999px; background: rgb(11 35 63 / 7%); font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--navy-900); }
.vh-d-tile__text { margin-top: .45rem; font-size: .9375rem; line-height: 1.45; color: var(--wp--preset--color--navy-900); } /* fixed: the tiles sit in the dark hero, where --vis-ink is white */

/* 3. Up next --------------------------------------------------------------- */
.vh-d-up .vh-d-h2 { margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }
.vh-d-up__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(1rem, 1.5vw, 1.35rem); }
.vh-d-up__card { min-height: 236px; padding: clamp(1.25rem, 2vw, 1.6rem); gap: .45rem; }
.vh-d-up__card .vh-d-card__title { margin: .2rem 0 .3rem !important; color: var(--wp--preset--color--blue-700) !important; }

/* 4. What's on ------------------------------------------------------------- */
.vh-d-seg { display: inline-flex; gap: .4rem; }
.vh-d-seg :is(button, a), .vh-d-tabs button {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 1rem; border: 1px solid var(--vis-line); border-radius: var(--wp--custom--radius--pill);
	background: transparent; color: var(--vis-ink); font-family: var(--wp--preset--font-family--body) !important; font-style: normal; font-size: .8125rem !important; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.vh-d-seg :is(button, a):hover, .vh-d-tabs button:hover { border-color: var(--vis-ink); }
:is(.vh-d-seg button[aria-pressed="true"], .vh-d-seg a[aria-current="true"], .vh-d-tabs button[aria-selected="true"]) { background: var(--wp--preset--color--navy-900); border-color: var(--wp--preset--color--navy-900); color: var(--wp--preset--color--white); }
.vh-d-tabs__count { font-size: .75rem; letter-spacing: 0; color: var(--vis-muted); font-variant-numeric: tabular-nums; }
.vh-d-tabs button[aria-selected="true"] .vh-d-tabs__count { color: var(--wp--preset--color--gold-500); }

.vh-week[hidden], .vh-d-daylist[hidden] { display: none !important; }
.vh-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--vis-surface-line); border-radius: var(--wp--custom--radius--lg); overflow: hidden; background: var(--wp--preset--color--white); }
.vh-week__day { min-height: 151px; padding: .75rem .55rem; border-left: 1px solid var(--vis-surface-line); }
.vh-week__day:first-child { border-left: 0; }
.vh-week__day.is-today { background: color-mix(in srgb, var(--wp--preset--color--gold-500) 9%, white); box-shadow: inset 0 3px 0 var(--wp--preset--color--gold-500); }
.vh-week__head { display: grid; gap: .2rem; margin-bottom: .75rem !important; }
.vh-week__name { font-size: var(--vis-label-size); font-weight: 700; letter-spacing: var(--vis-label-tracking); text-transform: uppercase; color: var(--vis-muted); }
.vh-week__day.is-today .vh-week__name { color: var(--wp--preset--color--navy-900); }
.vh-week__num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.75rem; line-height: 1; color: var(--vis-ink); }
.vh-week__items { display: grid; gap: .35rem; }
.vh-chipcal { border-radius: var(--wp--custom--radius--md); font-size: .75rem; line-height: 1.3; color: var(--wp--preset--color--navy-900); background: var(--wp--preset--color--gray-100); }
.vh-chipcal > :is(a, span) { display: block; padding: .35rem .5rem; color: inherit !important; text-decoration: none !important; }
.vh-chipcal > a:hover { text-decoration: underline !important; }
.vh-chipcal.is-appointment { background: color-mix(in srgb, var(--wp--preset--color--gold-500) 28%, white); }
.vh-chipcal.is-key { background: var(--wp--preset--color--navy-900); color: var(--wp--preset--color--white); font-weight: 600; }

.vh-d-daylist > ul { display: grid; gap: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--vis-surface-line); border-radius: var(--wp--custom--radius--lg); background: var(--wp--preset--color--white); }
.vh-d-daylist__day { margin-bottom: .5rem !important; color: var(--vis-ink) !important; }
.vh-d-daylist li ul { display: grid; gap: .4rem; }
.vh-d-daylist li li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; font-size: .9375rem; }
.vh-d-daylist__time { color: var(--vis-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.vh-d-daylist a { color: var(--vis-ink); font-weight: 600; text-decoration-color: var(--wp--preset--color--gold-500); text-underline-offset: .2em; }
.vh-d-daylist > .vh-d-empty { padding: 1.25rem 1.5rem; border: 1px solid var(--vis-surface-line); border-radius: var(--wp--custom--radius--lg); background: var(--wp--preset--color--white); }

/* Rows inside a card: appointments, announcements, opportunities */
.vh-d-rows { padding: .25rem 1.25rem; }
.vh-d-rows > .vh-d-empty { padding: 1rem 0; }
.vh-d-row + .vh-d-row { border-top: 1px solid var(--vis-surface-line); }
.vh-d-row, .vh-d-row__button { display: grid; gap: .25rem; padding: .95rem 0; }
.vh-d-row:has(> .vh-d-row__button) { padding: 0; }
.vh-d-row__button { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; color: inherit; text-decoration: none !important; }
.vh-d-row__title { font-size: .9375rem; font-weight: 600; line-height: 1.35; color: var(--vis-ink); }
.vh-d-row__button:hover .vh-d-row__title { text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold-500); text-underline-offset: .2em; }
.vh-d-row__meta { font-size: .8125rem; color: var(--vis-muted); }
.vh-d-row__meta strong { color: var(--vis-accent-ink); }
.vh-d-row.is-new .vh-d-row__title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 .45rem .1rem 0; border-radius: 50%; background: var(--wp--preset--color--gold-500); }

/* 5. Learning ---------------------------------------------------------------- */
.vh-d-sub-title { margin-bottom: 1rem !important; color: var(--vis-ink) !important; }
.vh-d-learn__list { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(1rem, 1.5vw, 1.35rem); }
.vh-d-lcard { overflow: hidden; }
.vh-d-lcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, var(--wp--preset--color--navy-800), var(--wp--preset--color--navy-950)); }
.vh-d-lcard__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--vis-ease); }
.vh-d-lcard:hover .vh-d-lcard__media img { transform: scale(1.05); }
.vh-d-lcard__body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.25rem 1.25rem; }
.vh-d-lcard .vh-d-card__title { margin-bottom: .5rem !important; }
.vh-d-lcard .vh-d-card__title a::after { content: ""; position: absolute; inset: 0; } /* The whole card is the link. */
.vh-d-lcard:hover .vh-d-card__title a { text-decoration: underline !important; text-decoration-color: var(--wp--preset--color--gold-500) !important; text-underline-offset: .2em; }
.vh-d-empty-card { display: grid; gap: .75rem; justify-items: start; padding: 1.5rem; }
.vh-d-rec__title { margin-top: clamp(2rem, 3vw, 2.5rem) !important; }
.vh-d-rec__list { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(1rem, 1.5vw, 1.35rem); }
.vh-d-rec { flex-direction: row; align-items: center; gap: .9rem; padding: .75rem; }
.vh-d-rec__thumb { flex: none; width: 72px; height: 72px; border-radius: var(--wp--custom--radius--md); overflow: hidden; background: var(--wp--preset--color--navy-800); }
.vh-d-rec__thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.vh-d-rec__thumb .vh-d-thumb__letter { font-size: 2rem; }
.vh-d-rec__text { display: grid; gap: .2rem; min-width: 0; }
.vh-d-rec__link { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--vis-ink) !important; text-decoration: none !important; }
.vh-d-rec__link::after { content: ""; position: absolute; inset: 0; }
.vh-d-rec:hover .vh-d-rec__link { text-decoration: underline !important; text-decoration-color: var(--wp--preset--color--gold-500) !important; text-underline-offset: .2em; }

/* One item on its own: a wide card laid out as a row, not a narrow card beside empty space. */
.vh-d-up__list[style*="--n:1"] .vh-d-up__card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 2rem; }
.vh-d-up__list[style*="--n:1"] .vh-d-card__action { margin: 0 0 0 auto; padding: 0; }
.vh-d-learn__list[style*="--n:1"] { grid-template-columns: 1fr; }
.vh-d-learn__list[style*="--n:1"] .vh-d-lcard { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; }
.vh-d-learn__list[style*="--n:1"] .vh-d-lcard__media { aspect-ratio: auto; min-height: 200px; }

/* Announcements dialog */
.vh-d-dialog { width: min(560px, 100% - 2rem); max-height: min(80vh, 760px); padding: 0; border: 0; border-radius: var(--wp--custom--radius--lg); box-shadow: 0 30px 80px -20px rgba(3, 25, 63, .55); color: var(--vis-ink); }
.vh-d-dialog::backdrop { background: rgb(3 25 63 / 60%); }
.vh-d-dialog__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--vis-surface-line); background: var(--wp--preset--color--white); }
.vh-d-dialog__close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--vis-line); border-radius: 50%; background: none; color: var(--vis-ink); cursor: pointer; }
.vh-d-dialog__list li { display: grid; gap: .35rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--vis-surface-line); }
.vh-d-dialog__body { color: var(--vis-muted); font-size: .9375rem; line-height: 1.6; }
.vh-d-dialog__body p + p { margin-top: .6em; }

/* 6. Saved -------------------------------------------------------------------- */
.vh-d-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.vh-d-saved__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.5vw, 1.35rem); }
.vh-d-scard { min-height: 161px; padding: clamp(1.25rem, 2vw, 1.5rem); gap: .45rem; }
.vh-d-saved .vh-d-empty { padding-top: .5rem; }

/* Account pages */
.vh-d-account__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.5vw, 1.35rem); margin-bottom: 2rem !important; }
.vh-d-account__item { gap: .5rem; padding: 1.5rem; }

/* Calendar page */
.vh-cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.vh-cal__nav { display: flex; align-items: center; gap: .6rem; }
.vh-cal__nav .vh-d-h2 { margin: 0 .75rem 0 .4rem; }
.vh-cal__step { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--vis-line); border-radius: 50%; color: var(--vis-ink); }
.vh-cal__step:hover { border-color: var(--vis-ink); }
.vh-cal__switches { display: flex; flex-wrap: wrap; gap: .75rem; }
.vh-cal__week .vh-week__day { min-height: 260px; }
.vh-cal__key { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem !important; }
.vh-cal__key .vh-chipcal { display: inline-block; }
.vh-month { border: 1px solid var(--vis-surface-line); border-radius: var(--wp--custom--radius--lg); overflow: hidden; background: var(--wp--preset--color--white); }
.vh-month__head, .vh-month__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vh-month__head span { padding: .6rem; background: var(--vis-paper); border-left: 1px solid var(--vis-surface-line); font-size: var(--vis-label-size); font-weight: 700; letter-spacing: var(--vis-label-tracking); text-transform: uppercase; color: var(--vis-muted); }
.vh-month__head span:first-child { border-left: 0; }
.vh-month__day { min-height: 118px; padding: .5rem; border-top: 1px solid var(--vis-surface-line); border-left: 1px solid var(--vis-surface-line); }
.vh-month__day:first-child { border-left: 0; }
.vh-month__day.is-today { background: color-mix(in srgb, var(--wp--preset--color--gold-500) 9%, white); }
.vh-month__day.is-other { background: #fafbfc; }
.vh-month__day.is-other .vh-month__num { opacity: .4; }
.vh-month__num { display: block; margin-bottom: .35rem; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.25rem; line-height: 1; color: var(--vis-ink); }
.vh-month__more a { font-size: .75rem; font-weight: 700; color: var(--vis-accent-ink); }

/* Smaller screens ---------------------------------------------------------- */
@media (max-width: 1180px) {
	.vh-d-tiles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vh-d-up__list:not([style*="--n:1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-d-saved__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vh-d-split { grid-template-columns: minmax(0, 1fr); } /* minmax(0): a plain 1fr let the seven-day week push the panel past the screen edge */
	.vh-d-account__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.vh-d-hero::before { left: 0; opacity: .3; }
	.vh-d-learn__list:not([style*="--n:1"]), .vh-d-rec__list, .vh-d-saved__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-d-tiles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* The week swipes sideways a day at a time; about three and a half days show, so the cut-off day says there is more.
	   relative: the hidden day names (absolute) scroll with the week instead of widening the page. */
	.vh-week { grid-template-columns: repeat(7, minmax(max(92px, 28%), 1fr)); overflow-x: auto; position: relative; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
	.vh-week::-webkit-scrollbar { display: none; }
	.vh-week__day { scroll-snap-align: start; }
	.vh-week.is-scrollable:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), rgb(0 0 0 / 35%)); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), rgb(0 0 0 / 35%)); }
	.vh-month__day { min-height: 84px; padding: .35rem .25rem; }
	.vh-month .vh-chipcal > :is(a, span) { padding: .2rem .25rem; font-size: .6875rem; }
}
@media (max-width: 640px) {
	.vh-d-tile { padding: 1rem; }
	.vh-d-tile__text { display: none; }
	.vh-d-tile__icon { width: 36px; height: 36px; margin-bottom: .6rem; }
	.vh-d-learn__list[style*="--n:1"] .vh-d-lcard { grid-template-columns: 1fr; }
	.vh-d-up__list, .vh-d-learn__list, .vh-d-rec__list, .vh-d-saved__list, .vh-d-account__list { grid-template-columns: 1fr; }
	.vh-d-up__card { min-height: 0; }
	.vh-d-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .25rem; }
	.vh-d-tabs button { flex: none; }
	.vh-d-daylist li li { grid-template-columns: 1fr; gap: .1rem; }
	.vh-month .vh-week__items { display: none; } /* Phones: a dot per busy day; the list view carries the detail. */
	.vh-month__day:has(.vh-week__items) .vh-month__num::after { content: ""; display: block; width: 6px; height: 6px; margin: .35rem auto 0; border-radius: 50%; background: var(--wp--preset--color--gold-500); }
}

/* This month's wellbeing tip (Grace's mock-up, 19 Nov): a flat cream card with a
   thin peach edge, month and title on the left, a battery icon on the right. */
.vh-d-tip { padding: 1.5rem 1.5rem 1.6rem; border: 1px solid #f6e3cf; border-radius: var(--wp--custom--radius--md); background: #fdf2e8; }
.vh-d-tip__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.vh-d-tip__head { display: flex; flex-direction: column; gap: .2rem; margin: 0 !important; }
.vh-d-tip__month { font-family: var(--wp--preset--font-family--body); font-size: .9375rem; font-weight: 400; line-height: 1.3; color: var(--wp--preset--color--navy-900); }
.vh-d-tip__kind { font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--navy-900); }
.vh-d-tip__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #f9dcbf; color: #b4570b; }
.vh-d-tip__text { margin: 0 !important; font-size: 1rem; line-height: 1.7; color: #4a5568; }

/* My tasks (vis-core hub/tasks.php): tick boxes in the side panel and the full list. */
.vh-d-tasks ul { margin: 0; padding: 0; list-style: none; }
.vh-d-task { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .25rem .8rem; align-items: start; padding: .95rem 0; }
.vh-d-task + .vh-d-task { border-top: 1px solid var(--vis-surface-line); }
.vh-d-tasks--all { padding: 0 1.5rem .5rem; }
.vh-d-tasks--all .vh-d-task { padding: 1.1rem 0; }
.vh-d-task__box {
	appearance: none; width: 20px; height: 20px; margin: .1rem 0 0; border: 1.5px solid #8a94a3; border-radius: 3px; background: #fff; cursor: pointer;
	display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.vh-d-task__box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.vh-d-task__box:checked { background: var(--wp--preset--color--navy-900); border-color: var(--wp--preset--color--navy-900); }
.vh-d-task__box:checked::after { opacity: 1; }
.vh-d-task__box:focus-visible { outline: 3px solid var(--wp--preset--color--gold-500); outline-offset: 2px; }
.vh-d-task__body { display: grid; gap: .25rem; min-width: 0; }
.vh-d-task__title { font-size: .9375rem; font-weight: 600; line-height: 1.35; color: var(--vis-ink); cursor: pointer; }
.vh-d-task__meta { margin: 0 !important; font-size: .8125rem; color: var(--vis-muted); }
.vh-d-task__meta strong { color: var(--vis-accent-ink); }
.vh-d-task.is-overdue .vh-d-task__meta strong { color: #b32d2e; }
.vh-d-task.is-done .vh-d-task__title { color: var(--vis-muted); text-decoration: line-through; text-decoration-color: rgb(10 33 63 / 35%); }
.vh-d-task.is-done .vh-d-task__meta strong { color: var(--vis-muted); }
.vh-d-task__done:not(:empty)::before { content: " · "; }
.vh-d-task__text { font-size: .875rem; line-height: 1.5; color: var(--vis-ink); }
.vh-d-task__text p + p { margin-top: .5rem; }
.vh-d-task__link { margin-top: .15rem; font-size: .8125rem; }
.vh-chipcal.is-task { background: color-mix(in srgb, var(--wp--preset--color--blue-700, #1b4f9c) 16%, white); font-weight: 600; }

/* 19 Nov: What's on date range, day names and empty lines in navy (dashboard only) */
.vh-d-week .vh-d-range,
.vh-d-week .vh-week__name,
.vh-d-week .vh-d-empty { color: var(--wp--preset--color--navy-900); }

/* 19 Nov: Up next and the latest two announcements share one band: Up next on the
   left, Announcements on the right, each a stack of compact cards. Either alone
   takes the full width. */
.vh-d-up__card, .vh-d-up__list[style*="--n:1"] .vh-d-up__card { min-height: 0; padding: 1rem 1.25rem 1.05rem; gap: .2rem; }
.vh-d-up__card .vh-d-card__title { margin: .1rem 0 .15rem !important; }
.vh-d-up__card .vh-d-card__action { padding-top: .55rem; }
.vh-d-up--split .vh-d-up__wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.vh-d-up--split .vh-d-up__list { grid-template-columns: 1fr; gap: .75rem; }
.vh-d-up--split .vh-d-up__list .vh-d-up__card { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.vh-d-up--split .vh-d-up__list .vh-d-card__action { margin: 0; padding: .55rem 0 0; }
.vh-d-ann__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }
.vh-d-ann .vh-d-ann__head .vh-d-h2 { margin-bottom: 0; }
.vh-d-ann__head .vh-d-linkbtn { margin-left: auto; }
/* Unread: a gold dot (a fill, never gold text) and the count in VIS blue. */
.vh-d-ann__dot { display: inline-block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wp--preset--color--gold-500); }
.vh-d-ann__unread { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: var(--wp--preset--color--blue-700); font-size: .875rem; font-weight: 600; }
.vh-d-ann__unread[hidden] { display: none; }
.vh-d-ann__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.vh-d-ann__tag { display: inline-block; padding: .1rem .45rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.vh-d-ann__tag--imp { background: var(--wp--preset--color--gold-500); color: var(--wp--preset--color--navy-950); }
.vh-d-ann__tag--pin { border: 1px solid currentColor; color: var(--wp--preset--color--blue-700); }
.vh-d-ann__item.is-new .vh-d-card__title, .vh-d-ann__card.is-new .vh-d-card__title { font-weight: 700; }
@media (max-width: 900px) {
	.vh-d-up--split .vh-d-up__wrap { grid-template-columns: 1fr; }
}

/* 19 Nov: Saved tab empty line ("No saved opportunities yet…") in navy. */
.vh-d-saved .vh-d-empty { color: var(--wp--preset--color--navy-900); }
