/* @ekm-tags: style, ui-shell */
/*
 * Redesign 2030, Wave 1 slice 1H: Home on the kit. 2026-10-28 the owner chose soft boxes over the open page ("i didnt want to
 * remove the boxes i wanted them softer and made look more upscale and high end"): every card below is a soft glass box again.
 * The first draft, kept for the record: Home as an open, editorial page (owner 2026-10-27: "a bunch of boxes on a page does not look
 * high end product"; "what about a page full of big boxes that look tacky?" — Home and the Day Sheet). Home kept every glass card
 * of #1605 / #1649 as its own box; here the page opens up, on the shared kit's tokens (css/ekm-kit-2030.css):
 *   - the greeting (Good evening / ERIN / the date / the time) is not touched;
 *   - "While you were away" and "Open next" are two open columns between hairlines, not two cards;
 *   - "Today at a glance" and "Executive overview" are stat lines: hairline dividers, Italiana figures, no tiles;
 *   - "Your day" stays the one glass sheet on the page (it is a list);
 *   - "Reference" and "Culture & personal" are open columns divided by hairlines;
 *   - every click stays, every control is a 44px target, nothing is a pill.
 * Pearl and Pearl Night only, presentation only (every item, label, order and handler stays).
 * The engineered-glass card rule in css/ekm-pearl-luxe.css is !important on these cards, so the overrides here are too, with the
 * same selector shape (this file loads after it). tests/redesign-2030-home-browser.test.mjs
 */

/* ── every Home card is a soft glass box (owner 2026-10-28: "i didnt want to remove the boxes i wanted them softer and made
 *    look more upscale and high end"): the boxes of #1605 / #1649 come back in their places, each with the kit's soft box (a
 *    thin fill under the luxe frost, a faint light edge, a diffuse shadow, the greeting's ombre) and its content centred ──── */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(
  #hp-summary-row .hp-summary-card,
  #hp-primary-triad > .hp-triad-slot.hp-softbox,
  .hp-exec-grid .hp-exec-card,
  .hp-ops-support-row > .hp-softbox.hp-dash-card,
  .hp-culture-row > .hp-softbox,
  #home-your-day .hp-day-card.k-sheet
) {
  border: 1px solid var(--k-soft-edge) !important;
  border-radius: var(--k-r-soft) !important;
  background: var(--k-soft-sky) !important;
  background-color: var(--k-soft-fill) !important;
  box-shadow: var(--k-soft-shadow) !important;
  transform: none !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(
  #hp-summary-row .hp-summary-card[role="button"],
  .hp-exec-grid .hp-exec-card[role="button"]
):hover {
  background-color: var(--k-soft-fill-hover) !important;
  box-shadow: var(--k-soft-shadow-hover) !important;
  transform: none !important;
}
/* the figures' cards: icon and label, the numeral and its caption centred in the box */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-summary-row .hp-summary-card, .hp-exec-grid .hp-exec-card) {
  display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; text-align: center !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-summary-row .hp-summary-card, .hp-exec-grid .hp-exec-card) > * {
  justify-content: center !important; text-align: center !important; margin-left: 0 !important; margin-right: 0 !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-summary-row .hp-summary-card-head { display: flex !important; align-items: center; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-summary-row .hp-summary-card-value { display: block; }
/* the boxes with a heading and words (While you were away, Open next, Reference, Culture): heading and text centred */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-primary-triad > .hp-triad-slot.hp-softbox, .hp-culture-row > .hp-softbox) {
  text-align: center !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-ops-support-row > .hp-softbox.hp-dash-card > :first-child {
  text-align: center !important; justify-content: center !important;
}

/* ── the figures: Italiana numbers on the stat lines ─────────────────────────────────────────────────────────────── */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-summary-row .hp-summary-card-value, .hp-exec-grid .hp-exec-card-value) {
  font-family: var(--k-font-display) !important;
  font-weight: 400 !important;
  color: var(--k-ink) !important;
}

/* ── "Your day": its links are 44px ────────────────────────────────────────── */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(.hp-sec-link, .hp-day-head a, .hp-day-head button) {
  display: inline-flex; align-items: center; min-height: 44px;
}

/* ── 44px targets: the practice contacts' links are 44px lines; a link inside a sentence stays inline (WCAG's inline exception) ── */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-pc-fields a[href] {
  display: inline-flex; align-items: center; min-height: 44px;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#home-cleared-toggle, .hp-triad-slot button) {
  min-height: 44px;
}
/* the telehealth links and the culture row's buttons: quiet 44px text buttons, not chips */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(.hp-th-copy, .hp-culture-row .eui-btn) {
  min-height: 44px !important;
  padding: 0 12px !important;
  border-radius: var(--k-r-control) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-th-copy {
  border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--k-ink) !important; font-weight: 600;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-th-copy:hover { background: var(--k-well) !important; }

/* ── links on the open layout: ink with an underline (the look's accent was AA only on the old glass fill; on the open
 *    ombre the light looks' deepest color, e.g. Sage #C9D4C2, sits behind them) ───────────────────────────────────────── */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-primary-triad, .hp-culture-row, .hp-ops-support-row) :is(a[href], #home-cleared-toggle, span[onclick^="shuffleWotd"]) {
  color: var(--k-ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
