/* Portal · Wellness tab — extends portal.css. Accent = phase-2 (sienna). */

.pw { --pw: var(--phase-2); --pw-lo: var(--phase-2-lo); }

/* intro banner */
.pw-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: 6px;
  padding: 26px 30px; margin-bottom: 30px; position: relative; overflow: hidden;
}
.pw-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 88% 10%, var(--pw-lo), transparent 60%); pointer-events: none; }
.pw-banner > * { position: relative; }
.pw-banner .bl .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pw); }
.pw-banner .bl h2 { font-family: var(--serif); font-weight: 300; font-size: 27px; color: var(--ink-900); margin: 8px 0 6px; }
.pw-banner .bl h2 em { font-style: italic; color: var(--pw); }
.pw-banner .bl p { font-family: var(--serif); font-size: 15px; color: var(--ink-500); line-height: 1.55; max-width: 54ch; margin: 0; }
.pw-banner .ba { display: flex; flex-direction: column; gap: 10px; }
.pw-cta {
  display: inline-flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 14px 22px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: transform 250ms, background 250ms, color 250ms;
  border: 1px solid var(--ink-900); background: var(--ink-900); color: var(--sand-50); white-space: nowrap;
  text-decoration: none; appearance: none; -webkit-appearance: none;
}
.pw-cta:hover { transform: translateY(-1px); background: var(--pw); border-color: var(--pw); }
.pw-cta.ghost { background: transparent; color: var(--ink-900); }
.pw-cta.ghost:hover { background: var(--ink-900); color: var(--sand-50); border-color: var(--ink-900); }

/* ring strip */
.pw-ring { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--sand-300); border-radius: 6px; background: var(--sand-50); margin-bottom: 30px; }
.pw-ring .rw { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.pw-ring svg { transform: rotate(-90deg); }
.pw-ring .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.pw-ring .rv b { font-family: var(--serif); font-size: 22px; color: var(--ink-900); line-height: 1; }
.pw-ring .rv span { font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-500); }
.pw-ring .ri .l { font-family: var(--serif); font-size: 17px; color: var(--ink-900); }
.pw-ring .ri .l em { font-style: italic; color: var(--pw); }
.pw-ring .ri .m { font-family: var(--serif); font-size: 14px; color: var(--ink-500); margin-top: 3px; line-height: 1.5; }

/* section headers */
.pw-h { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 16px; }
.pw-h h3 { font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--ink-900); margin: 0; }
.pw-h h3 em { font-style: italic; color: var(--pw); }
.pw-h .more { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pw); cursor: pointer; }

/* provider cards */
/* Column count comes from PillarTab.tsx as --cols (data-driven, capped at 4).
   It used to be set inline as grid-template-columns, which outranks stylesheets
   and killed the mobile overrides below. As a variable, the media queries win.
   Fallback of 4 = the previous static value, so static consumers are unaffected. */
.pw-provs { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.pw-prov { background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: 6px; overflow: hidden; cursor: pointer; transition: transform 350ms, border-color 250ms; }
.pw-prov:hover { transform: translateY(-3px); border-color: var(--pw); }
.pw-prov .hero { height: 116px; position: relative; display: grid; place-items: center; }
.pw-prov .hero .tex { position: absolute; inset: 0; opacity: 0.45; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 9px); }
.pw-prov .hero .mono { font-family: var(--serif); font-weight: 500; font-size: 44px; color: rgba(255,255,255,0.92); }
.pw-prov .hero .live { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; background: #b3402f; color: #fff; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.pw-prov .hero .live i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: pulseMarker 1.6s infinite; }
.pw-prov .bd { padding: 14px 16px 16px; }
.pw-prov .bd .mod { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pw); }
.pw-prov .bd .nm { font-family: var(--serif); font-size: 19px; color: var(--ink-900); margin: 4px 0 3px; }
.pw-prov .bd .tl { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-500); line-height: 1.4; }
.pw-prov .bd .meta { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.pw-prov .bd .meta b { color: var(--ink-900); }

/* class cards */
.pw-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pw-class { cursor: pointer; }
.pw-class .thumb { height: 110px; border-radius: 5px; position: relative; overflow: hidden; display: grid; place-items: center; transition: transform 350ms; }
.pw-class:hover .thumb { transform: translateY(-2px); }
.pw-class .thumb .tex { position: absolute; inset: 0; opacity: 0.42; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 9px); }
.pw-class .thumb .g { font-size: 30px; color: rgba(255,255,255,0.92); z-index: 2; }
.pw-class .thumb .len { position: absolute; left: 9px; bottom: 9px; z-index: 3; font-family: var(--mono); font-size: 9px; color: #fff; background: rgba(0,0,0,0.32); padding: 2px 8px; border-radius: 999px; }
.pw-class .thumb .play { position: absolute; right: 9px; bottom: 9px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink-900); display: grid; place-items: center; font-size: 10px; padding-left: 2px; }
.pw-class .t { font-family: var(--serif); font-size: 15px; color: var(--ink-900); margin: 9px 2px 1px; line-height: 1.2; }
.pw-class .m { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin: 0 2px; }

/* two-column lists (live + in-person) */
/* Sits directly under the Featured-providers grid with nothing between them.
   Every other section on this page gets its air from .pw-h's `margin: 30px 0 16px`,
   but .pw-two has no .pw-h — its headings live inside the tiles — so it had no
   top margin at all and butted straight into the provider cards. Match the 30px
   rhythm the rest of the page already uses. */
.pw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.pw-tile { background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: 6px; padding: 22px 24px; }
.pw-tile h3 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 16px; }
.pw-tile h3 em { font-style: normal; color: var(--pw); }
.pw-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sand-200); cursor: pointer; }
.pw-row:last-child { border-bottom: 0; }
.pw-row .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; color: #fff; }
.pw-row .av.glyph { font-size: 19px; }
.pw-row .ri .a { font-family: var(--serif); font-size: 16px; color: var(--ink-900); line-height: 1.2; }
.pw-row .ri .b { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); margin-top: 3px; }
.pw-row .rr { text-align: right; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.pw-row .rr b { display: block; color: var(--pw); font-size: 13px; font-family: var(--serif); letter-spacing: 0; }
.pw-row .rr .live { color: #b3402f; }
.pw-pill { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--sand-300); color: var(--ink-500); }

/* sidebar group labels */
.side-nav .nav-group {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-400); padding: 16px 12px 6px; margin-top: 4px;
}

/* arc flag beside pillar H1 */
.pw-arcflag {
  display: inline-block; margin-left: 14px; vertical-align: middle;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pw); border: 1px solid var(--pw-soft, var(--sand-300)); border-radius: 999px; padding: 5px 11px;
}

/* available-to-add banner variant */
.pw-banner.avail { background: var(--sand-50); }
.pw-banner.avail::before { background: radial-gradient(ellipse at 88% 10%, var(--pw-lo), transparent 60%); opacity: 0.7; }
.pw-banner.avail .k { color: var(--ink-500); }
.pw-banner.avail .k::before { content: '◦ '; color: var(--pw); }
.pw-offer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pw-offer span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-700);
  background: var(--pw-lo); border: 1px solid var(--pw-soft, var(--sand-300)); border-radius: 999px; padding: 6px 11px;
}

/* activated stat strip (replaces the wellness ring for non-wellness pillars) */
.pw-ring .pw-stat { flex: 1; text-align: left; padding-right: 18px; border-right: 1px solid var(--sand-300); }
.pw-ring .pw-stat:last-child { border-right: 0; }
.pw-ring .pw-stat b { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink-900); line-height: 1.1; }
.pw-ring .pw-stat span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-500); }

/* provider hero monogram + texture (shared) */
.pw-prov .hero .mono { font-family: var(--serif); font-weight: 500; font-size: 40px; color: rgba(255,255,255,0.92); }
.pw-prov .hero .tex { position: absolute; inset: 0; opacity: 0.42; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 9px); }

@media (max-width: 1100px) {
  .pw-provs, .pw-classes { grid-template-columns: 1fr 1fr; }
  .pw-two { grid-template-columns: 1fr; }
  .pw-banner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pw-provs, .pw-classes { grid-template-columns: 1fr; }
}

/* Empty-state copy (e.g. "Nothing scheduled yet — open the app"). Base scope,
   below the media queries as in the retired public/portal-wellness.css. */
.pw-empty { font-family: var(--sans); font-size: 13px; color: var(--ink-400); padding: 10px 0; }
.pw-empty a { color: var(--pw, var(--forest)); text-decoration: underline; }
