/* css/wc-tiles.css  [tiles] 20 Nov 2026. The frosted tile js/wc-tiles.js gives to any text that sat straight on the page.
   The tile is a plate drawn behind the words (a pseudo-element placed from four measured insets), so nothing moves.
   Light glass for dark words, dark glass for light words. One look everywhere: same radius, same gold hairline, same lift. */
:root { --wct-fill: rgba(255, 255, 255, .93); --wct-line: rgba(201, 162, 39, .45); --wct-fill-dk: rgba(24, 38, 30, .93); --wct-line-dk: rgba(232, 206, 128, .5);
  --wct-r: 12px; --wct-shadow: 0 14px 26px -16px rgba(20, 34, 26, .5); --wct-sheen: inset 0 1px 0 rgba(255, 255, 255, .85); --wct-sheen-dk: inset 0 1px 0 rgba(255, 255, 255, .12); }
.wc-tile:not(.wc-tile--inline):not(.wc-tile--box) { isolation: isolate; }
.wc-tile.wc-tile--rel:not(.wc-tile--inline):not(.wc-tile--box) { position: relative; }   /* only an element that had no placement of its own */
.wc-tile:not(.wc-tile--inline):not(.wc-tile--box):not(.wc-tile--after)::before,
.wc-tile.wc-tile--after::after { content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: var(--wct-it, -7px); right: var(--wct-ir, -12px); bottom: var(--wct-ib, -7px); left: var(--wct-il, -12px);
  background-color: var(--wct-fill); border: 1px solid var(--wct-line); border-radius: var(--wct-r); box-shadow: var(--wct-sheen), var(--wct-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); }
.wc-tile.wc-tile--dark:not(.wc-tile--inline):not(.wc-tile--box):not(.wc-tile--after)::before,
.wc-tile.wc-tile--dark.wc-tile--after::after { background-color: var(--wct-fill-dk); border-color: var(--wct-line-dk); box-shadow: var(--wct-sheen-dk), var(--wct-shadow); }
/* a heading and the line under it: one tile */
.wc-tile.wc-tile--top::before, .wc-tile.wc-tile--top.wc-tile--after::after { border-bottom-color: transparent; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: var(--wct-sheen); }
.wc-tile.wc-tile--bot::before, .wc-tile.wc-tile--bot.wc-tile--after::after { border-top-color: transparent; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: var(--wct-shadow); }
/* a short run of words inside a line, and elements whose own before and after are both taken: the fill sits on the element */
.wc-tile.wc-tile--inline, .wc-tile.wc-tile--box { background-color: var(--wct-fill) !important; border-radius: 8px; box-shadow: 0 0 0 5px var(--wct-fill), 0 0 0 6px var(--wct-line), var(--wct-shadow);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wc-tile.wc-tile--dark.wc-tile--inline, .wc-tile.wc-tile--dark.wc-tile--box { background-color: var(--wct-fill-dk) !important; box-shadow: 0 0 0 5px var(--wct-fill-dk), 0 0 0 6px var(--wct-line-dk), var(--wct-shadow); }
/* the tile arrives: it rises a few pixels and settles, once (owner, 20 Nov: "It needs to pop out. It needs to come out").
   Paint only (opacity and transform on the plate), so nothing on the page moves; off for people who ask for less motion. */
@keyframes wct-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wc-tile:not(.wc-tile--inline):not(.wc-tile--box):not(.wc-tile--after)::before,
  .wc-tile.wc-tile--after::after { animation: wct-in .42s cubic-bezier(.2, .7, .2, 1) both; }
}
@media print { .wc-tile::before, .wc-tile::after { display: none !important; } .wc-tile.wc-tile--inline, .wc-tile.wc-tile--box { background-color: transparent !important; box-shadow: none; } }

/* [nogold] 24 Nov 2026, owner: "this weird gold outline on a lot of things ... out of position ... words not fitting". The plate stays
   (text never sits on the bare wall) but it loses the gold hairline, and inline plates lose the 6px ring that spilled over neighbours
   and made words look cramped inside buttons and chips. A soft neutral edge only. */
:root { --wct-line: rgba(34, 51, 42, .07); --wct-line-dk: rgba(255, 255, 255, .08); --wct-shadow: 0 10px 22px -18px rgba(20, 34, 26, .45); }
.wc-tile.wc-tile--inline, .wc-tile.wc-tile--box { box-shadow: none !important; padding-inline: 4px; border-radius: 6px; }
.wc-tile.wc-tile--dark.wc-tile--inline, .wc-tile.wc-tile--dark.wc-tile--box { box-shadow: none !important; }
a .wc-tile--inline, button .wc-tile--inline, .cl-btn.wc-tile--inline, button.wc-tile--inline, a.wc-tile--inline { background-color: transparent !important; padding-inline: 0; }

/* [dock] 25 Nov 2026, owner: "out of position, overlapping". Measured live as the tester copies: the floating buttons came from
   six files and landed on each other (My progress under Coach, Coach under the issue button, Ask under Coach on phones, all over
   the "Viewing as" stamp). One dock: a column of round buttons on the right, a row of pills to its left, everything above the
   stamp. Phone: Ask stays in the corner, Coach and My progress line up to its left. */
:root { --dock-edge: 16px; --dock-base: 44px; --dock-gap: 10px; --dock-col: 62px; }
#wcIssueFab { right: var(--dock-edge) !important; bottom: var(--dock-base) !important; }
.wcx-fab.is-on, .wcx-fab:not(.wctm-fab-lesson) { right: var(--dock-edge) !important; bottom: calc(var(--dock-base) + 36px + var(--dock-gap)) !important; }
.wcx-fab.wctm-fab-lesson { right: var(--dock-edge) !important; bottom: calc(var(--dock-base) + 86px + var(--dock-gap) * 2) !important; }
.ask-fab { right: var(--dock-edge) !important; bottom: calc(var(--dock-base) + 136px + var(--dock-gap) * 3) !important; }
.wcd-fab { right: calc(var(--dock-edge) + var(--dock-col)) !important; bottom: var(--dock-base) !important; }
.wcd { bottom: calc(var(--dock-base) + 60px) !important; }
#mpPill.mp-pill, .mp-pill { right: calc(var(--dock-edge) + var(--dock-col) + 128px) !important; bottom: var(--dock-base) !important; left: auto !important; }
body:not(:has(.wcd-fab)) #mpPill.mp-pill { right: calc(var(--dock-edge) + var(--dock-col)) !important; }
.wcws-pill.is-float:not([hidden]) { right: calc(var(--dock-edge) + var(--dock-col)) !important; bottom: calc(var(--dock-base) + 58px) !important; }
@media (max-width: 720px) {
  :root { --dock-col: 56px; }
  .ask-fab { bottom: var(--dock-base) !important; }
  .wcd-fab { padding: 0 14px 0 10px !important; }
  #mpPill.mp-pill, .mp-pill { right: calc(var(--dock-edge) + var(--dock-col) + 106px) !important; max-width: calc(100vw - var(--dock-col) - 140px) !important; }
  .wcws-pill.is-float:not([hidden]) { bottom: calc(var(--dock-base) + 58px) !important; }
  /* page head actions (period tabs + person picker, filters) wrap onto their own line instead of covering each other */
  [data-theme] .wc-ph .wc-ph__actions { flex-wrap: wrap; row-gap: var(--wcs-space-2, 8px); min-width: 0; }
  [data-theme] .wc-ph .wc-ph__actions > .wc-seg { flex: 0 0 auto; max-width: 100%; }
}

/* [dock2] phones: pages with their own bottom bar (the docked primary like New booking, the calendar day bar) lift the
   floating dock above it; the "Viewing as" stamp moves under the top bar there so it never sits on the bar. */
@media (max-width: 720px) {
  body:has(.wc-ph__primary), body:has(.wcal-dock) { --dock-base: 96px; }
  body:has(.wc-ph__primary) .wc-vault-badge, body:has(.wcal-dock) .wc-vault-badge { bottom: auto !important; top: 60px !important; opacity: .8; }
}

/* [phz] 25 Nov 2026: pages built without a <main> (onboarding) put their header, notices and .wrap straight in <body>; the
   page pattern (#wcxCanvas, fixed) painted over them, so the header and every hire card were invisible. Lift them above it. */
body:has(#wcxCanvas) > :is(header.wc-ph, .wrap, .wp-notice, .container, .page) { position: relative; z-index: 1; }

/* [askround] the round Ask button (46px beside the rail) kept its "Ask anything Ctrl /" words, which spilled out to the right
   edge on pages like onboarding. Round means medal only; the words stay for screen readers. */
body:has(.navv2__rail) .ask-fab { overflow: hidden; }
body:has(.navv2__rail) .ask-fab > :not(.ask-fab__medal) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
