/* ══════════════════════════════════════════════
   CCA PORTAL — TRANSFIGURATION WHEEL MODULE
   ══════════════════════════════════════════════ */

#module-wheel { background: var(--bg); }
.wheel-shell { flex: 1; }

/* Compact head: title on the left, tabs on the right, one slim row */
.wh-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.wh-head-in {
  max-width: 1240px; margin: 0 auto; padding: 8px 24px 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.wh-titleblock { padding-bottom: 12px; min-width: 0; }
/* Title in the small orange all-caps style */
.wh-title {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 11px; line-height: 1.2; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--coral); margin: 0; white-space: nowrap;
}
.wh-tabs { border-bottom: none; background: transparent; justify-content: flex-end; }

/* --wh-top is set by wFit() in wheel.js; 170px is a fallback estimate */
#module-wheel { --wh-fit: calc(100vh - var(--wh-top, 170px) - 14px); }
@supports (height: 100dvh) { #module-wheel { --wh-fit: calc(100dvh - var(--wh-top, 170px) - 14px); } }

.wh-page { max-width: 1240px; margin: 0 auto; padding: 12px 24px 14px; }
.wh-intro { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 18px; }
.wh-muted { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* Layout */
.wh-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px;
  height: max(var(--wh-fit), 460px);
}
.wh-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wh-svg { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; display: block; margin: 0 auto; }
/* The side panel scrolls inside itself if a card is taller than the screen */
.wh-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.wh-side > * { flex-shrink: 0; } /* scroll the panel; never squash its cards */

/* Orientation chips */
.wh-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.wh-chip {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid #DDD; background: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mid); cursor: pointer; transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.wh-chip.ori-edge { border-radius: 6px; box-shadow: inset 5px 0 0 var(--ori, transparent), 0 1px 4px rgba(0,0,0,0.06); }
.wh-chip:hover { border-color: var(--text); }
.wh-chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* Segmented buttons */
.wh-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light);
}
.wh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wh-seg-3 { grid-template-columns: repeat(3, 1fr); }
.wh-seg-5 { grid-template-columns: repeat(5, auto); }
.wh-seg-5 .wh-segbtn { padding-left: 3px; padding-right: 3px; letter-spacing: 0.04em; }
.wh-segbtn {
  padding: 8px 6px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-mid); cursor: pointer; transition: all .2s;
}
.wh-segbtn:hover { border-color: var(--text); }
.wh-segbtn.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.wh-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.wh-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mid); cursor: pointer; }
.wh-check input { accent-color: var(--teal); }

/* Cards */
.wh-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 16px 18px 14px; overflow: hidden;
}
.wh-card-empty { background: var(--bg-warm); }
.wh-card-bar { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--loc, var(--coral)); }
.wh-eyebrow-sm { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.wh-card-title { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 600; line-height: 1.15; margin-bottom: 6px; }
.wh-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-mid); }
.wh-field { margin-top: 10px; }
.wh-field .wh-label { margin-bottom: 4px; }
.wh-quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px !important; line-height: 1.35 !important; color: var(--text) !important; margin-bottom: 4px; }
.wh-link { margin-top: 10px; background: none; border: none; padding: 0; font-size: 12px; color: var(--coral); cursor: pointer; text-decoration: underline; }

/* Wheel SVG */
.wh-wedge { stroke: #fff; stroke-width: 2.5; cursor: pointer; transition: opacity .25s, filter .2s; }
.wh-wedge:hover { filter: brightness(1.08) saturate(1.1); }
.wh-axis { stroke: rgba(0,0,0,0.28); stroke-width: 2; stroke-dasharray: 7 8; pointer-events: none; }
.wh-pin { cursor: pointer; }
.wh-pin-text { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: 2.5px; pointer-events: none; }
.wh-life-text { font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 600; letter-spacing: 2.5px; fill: #0B3B35; pointer-events: none; } /* same style as the other Location labels (.wh-pin-text) */
.wh-static { cursor: default; }
.wh-static:hover { filter: none; }
.wh-pin-extra-text { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: 1.8px; pointer-events: none; }
.wh-pin-sub { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0.2px; fill: #333; pointer-events: none; }
.wh-life-sub { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.2px; fill: #0B3B35; pointer-events: none; }

/* Spiral */
.wh-draw { animation: whDraw 1.1s ease forwards; }
@keyframes whDraw { to { stroke-dashoffset: 0; } }
.wh-legend { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 6px; }
.wh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 5px 0 10px; vertical-align: middle; }
.wh-rootgrid { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.wh-rootgrid p { margin-top: 4px; }
.wh-root .wh-quote { font-size: 17px !important; }
.wh-progress { height: 3px; background: #EEE; border-radius: 2px; margin-top: 14px; overflow: hidden; }
.wh-progress div { height: 100%; transition: width .4s; }
.wh-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wh-controls-wide { grid-column: 1 / -1; }
.wh-play.playing { border-color: var(--coral); color: var(--coral); }
.wh-speed { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wh-speed button { border: 0; border-left: 1px solid var(--border); background: #fff; font: 500 10px 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); padding: 0 2px; cursor: pointer; min-height: 34px; }
.wh-speed button:first-child { border-left: 0; }
.wh-speed button.active { background: var(--text); color: #fff; }
.wh-btn:disabled { opacity: .4; cursor: default; }
.wh-btn {
  padding: 9px 8px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mid); cursor: pointer;
}
.wh-btn:hover { border-color: var(--text); }
.wh-btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.wh-steps { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wh-steps li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 13px; background: #fff; }
.wh-steps li span { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1px solid #CCC; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-light); }
.wh-steps li.active { border-color: var(--text); background: var(--bg-warm); }
.wh-steps li.active span { background: var(--text); color: #fff; border-color: var(--text); }
.wh-both { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; }
.wh-both th, .wh-both td { text-align: left; vertical-align: top; padding: 7px 6px; border-top: 1px solid var(--border); }
.wh-both thead th { border-top: none; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.wh-both tbody th { font-weight: 600; white-space: nowrap; }

/* The Agreements tab */
.os-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.os-grid { min-width: 760px; max-width: 1000px; margin: 0 auto; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.os-row { display: grid; grid-template-columns: 136px repeat(7, 1fr); }
.os-rowhead {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  background: #fff; color: var(--text); border-right: 1px solid #E6E6E6;
  box-shadow: inset 6px 0 0 var(--ori, transparent); /* orientation color strip on the left edge */
  font-size: 13px; font-weight: 600; letter-spacing: .06em; min-height: 74px;
}
.os-corner { background: #fff; min-height: 46px; }
.os-colhead { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; min-height: 46px; }
.os-cell {
  border: none; border-left: 1px solid #F0F0F0; border-top: 1px solid #F0F0F0; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; transition: background .15s;
}
.os-down { background: #F7F5F2; }
.os-cell:hover { background: color-mix(in srgb, var(--loc) 12%, #fff); }
.os-cell.active { background: color-mix(in srgb, var(--loc) 20%, #fff); box-shadow: inset 0 0 0 2px var(--loc); }
.os-cell.os-focus { box-shadow: inset 0 0 0 2px var(--loc), inset 0 0 0 4px var(--text); }
.os-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--loc); }
.os-cap { font-size: 9px; letter-spacing: .08em; color: var(--text-light); }
.wh-os-note { font-size: 12.5px; margin-top: -10px; color: var(--text-mid); font-style: italic; max-width: 720px; margin-left: auto; margin-right: auto; }
.os-band { text-align: center; padding: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.os-band span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .1em; text-transform: none; opacity: .85; }
.os-band-up { background: #EAF6F1; color: #1F7A57; }
.os-band-down { background: #F4F1EC; color: #7A6A55; }
.os-hinge { text-align: center; padding: 9px; font-size: 12px; letter-spacing: .1em; color: #1F9E92; border-top: 2px dashed #3CC1B2; border-bottom: 2px dashed #3CC1B2; }
.os-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.os-rootpick { display: flex; align-items: center; gap: 8px; }
.os-rootpick .wh-seg-5 { width: 400px; max-width: 100%; }
.os-upnote { margin: -4px 0 8px; font-size: 12.5px !important; }
.os-answer { box-shadow: inset 4px 0 0 var(--ori); padding: 4px 0 4px 10px; margin-top: 8px; }
.os-answer .wh-label { display: block; margin-bottom: 2px; }
.os-answer p { font-size: 13px !important; line-height: 1.5 !important; margin: 0 !important; }
.os-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
.os-view { grid-template-columns: repeat(2, auto); justify-content: center; margin: 0 auto 12px; width: max-content; }

/* Compact map above the two windowpanes */
.os-mapwrap { margin: 4px auto 18px; }
.os-map { max-width: 900px; min-width: 620px; }
.os-map .os-rowhead, .os-map .os-cell { min-height: 34px; }
.os-map .os-rowhead { font-size: 11.5px; }
.os-map .os-colhead { min-height: 28px; font-size: 10px; }
.os-map .os-dot { width: 11px; height: 11px; }
.os-map .os-band { padding: 5px; font-size: 10px; }
.os-map .os-hinge { padding: 0; height: 6px; border-bottom: 0; }
.os-map-part .os-down, .os-map-sep .os-up { opacity: .55; }
.os-map .os-cell:hover { opacity: 1; }
.oss-focus { background: color-mix(in srgb, var(--coral) 8%, #fff); }
.oss-flash { animation: ossFlash 1.6s ease; }
@keyframes ossFlash { 0%, 40% { background: color-mix(in srgb, var(--coral) 22%, #fff); } 100% { background: transparent; } }
.osp-gwnote { font-size: 12.5px !important; margin: -2px 0 8px; }

/* God / Self / Reality: bold, with dark letter badges (no extra colors) */
.os-dim { display: inline-flex; align-items: center; gap: 8px; }
.os-dimbadge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: #1A1A1A; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0; font-style: normal; flex-shrink: 0; }
.os-dimhead { font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1A1A1A; margin-bottom: 6px; }
.wh-card-title .os-dim { gap: 10px; }
.wh-card-title .os-dimbadge { width: 26px; height: 26px; font-size: 13px; vertical-align: 3px; }
.osl-dims .wh-segbtn { display: inline-flex; align-items: center; gap: 6px; }
.osl-dims .os-dimbadge { width: 16px; height: 16px; font-size: 9px; }
.osl-dims .wh-segbtn.active .os-dimbadge { background: #fff; color: var(--coral); }

/* Agreements windows: Separation and Participation */
.os-view { grid-template-columns: repeat(2, auto) 14px repeat(2, auto); }
.os-view-gap { display: block; }
.os-oritag { display: inline-block; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid);
  box-shadow: inset 0 2px 0 var(--ori); padding: 3px 0 0; margin-left: 6px; vertical-align: 1px; }
.oss-roots { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(100%, 720px); }
.oss-roots .wh-segbtn.ori-edge { box-shadow: inset 0 4px 0 var(--ori); padding-top: 10px; }
.oss-card, .osp-card { max-width: 1100px; margin: 0 auto; }
.oss-summary { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.oss-sumgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.oss-sumgrid p { font-size: 13px !important; margin: 2px 0 0; }
.oss-toggle { margin: 12px 0 4px; }
.oss-table { margin-top: 6px; }
.oss-row { display: grid; grid-template-columns: 170px repeat(3, minmax(0, 1fr)); gap: 12px; padding: 9px 0; border-top: 1px solid #EEE; align-items: start; }
.oss-head { border-top: none; padding-bottom: 2px; }
/* Row label: two left lines, the Location color then the To Me / By Me color */
.oss-loc { padding: 2px 6px 2px 24px; font-size: 13.5px; line-height: 1.4;
  box-shadow: inset 5px 0 0 var(--loc), inset 9px 0 0 #fff, inset 14px 0 0 var(--o2); }
.oss-ori { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); margin-top: 2px; }
/* Soft band behind the middle (Self) column */
.oss-row > :nth-child(3) { background: #F6F5F2; margin: -9px 0; padding: 9px 10px; }
.oss-head > * { margin: 0 !important; padding: 6px 10px !important; }
.oss-head > :nth-child(3) { border-radius: 6px 6px 0 0; }
.oss-head .os-dimhead { margin-bottom: 0; }
.oss-num { display: inline-block; min-width: 22px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.oss-cell { font-size: 13px; line-height: 1.45; color: var(--text-mid); }
.oss-dimlabel { display: none; }
.oss-cell .os-answer p { font-size: 12px !important; }
.oss-topart { margin-top: 4px; font-size: 11px; }
.osp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 18px; }
.osp-agree { box-shadow: inset 4px 0 0 var(--ori); padding: 2px 0 2px 14px; }
.osp-lbl { font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.osp-lbl .os-oritag { margin-left: 2px; }
.osp-agree p { margin: 0 0 6px; }
.osp-under { border-top: 1px solid var(--border); padding-top: 12px; }
.osp-under .osl-row { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .os-view { grid-template-columns: repeat(2, auto); }
  .os-view-gap { display: none; }
  .oss-roots { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .oss-summary, .oss-sumgrid, .osp-pair { grid-template-columns: 1fr; }
  .oss-row { grid-template-columns: 1fr; gap: 6px; }
  .oss-head { display: none; }
  .oss-dimlabel { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1A1A1A; margin-bottom: 4px; }
  .oss-dimlabel .os-dimbadge { width: 18px; height: 18px; font-size: 9.5px; }
  .oss-row > :nth-child(3) { margin: 0; padding: 6px 8px; border-radius: 4px; }
  .osp-under .osl-row { grid-template-columns: 1fr; }
}
@media print {
  body.printing-wheel .oss-roots, body.printing-wheel .oss-toggle, body.printing-wheel .oss-topart { display: none !important; }
}

/* By Location (five Roots → one Participation pair) */
.osl-intro { max-width: 760px; margin: 0 auto 12px; }
.osl-pickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 14px; }
.osl-locs { grid-template-columns: repeat(7, minmax(0, 1fr)); width: min(100%, 860px); }
/* Location buttons: equal widths, color line across the top */
.osl-locs .wh-segbtn.ori-edge { box-shadow: inset 0 4px 0 var(--ori); padding-top: 10px; }
.osl-dims { grid-template-columns: repeat(3, auto); }
.osl-card { max-width: 1100px; margin: 0 auto; }
.osl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px 300px; gap: 12px; align-items: center; margin-top: 6px; }
.osl-head { margin-bottom: 8px; }
.osl-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid #EEE; align-items: start; }
.osl-colheads { border-top: none; padding: 0 0 2px; }
.osl-root { padding: 2px 0 2px 12px; font-size: 13px; line-height: 1.35; }
.osl-root span { display: block; font-size: 11px; color: var(--text-light); margin-top: 2px; }
.osl-ag { font-size: 13px; line-height: 1.45; color: var(--text-mid); }
/* Rule: top line = which column/choice; side line = which item.
   To Me / By Me are columns, so their orientation color runs across the top. */
.osl-colhead { box-shadow: inset 0 3px 0 var(--ori); padding-top: 7px; }
.osl-code { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--text); background: #F1EFEA; border: 1px solid #CFCBC2; border-radius: 3px; padding: 0 4px; margin-right: 6px; vertical-align: 1px; }
.osl-arrow { align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 2px solid #CFCFCF; border-radius: 0 12px 12px 0; border-top: 2px solid #CFCFCF; border-bottom: 2px solid #CFCFCF; border-left: none; margin: 34px 0 6px; }
.osl-arrow span { font-size: 22px; color: var(--text-light); margin-left: 40px; }
.osl-part { align-self: center; background: #FBFBF9; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.osl-part .os-answer p { font-size: 13.5px !important; }
.osl-gridlink { margin-top: 12px; }
@media (max-width: 900px) {
  .osl-grid { grid-template-columns: 1fr; }
  .osl-arrow { border: none; margin: 0; }
  .osl-arrow span { margin: 0; transform: rotate(90deg); }
  .osl-row { grid-template-columns: 1fr; gap: 4px; }
  .osl-colheads { display: none; }
  .osl-ag::before { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); display: block;
    width: max-content; padding-top: 4px; margin-bottom: 2px; box-shadow: inset 0 2px 0 var(--ori); }
  .osl-row .osl-ag:nth-child(2)::before { content: 'To Me'; }
  .osl-row .osl-ag:nth-child(3)::before { content: 'By Me'; }
  .osl-locs { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .osl-locs .wh-segbtn { font-size: 9px; letter-spacing: 0.04em; padding-left: 2px; padding-right: 2px; overflow: hidden; text-overflow: ellipsis; }
}
@media print {
  body.printing-wheel .os-view, body.printing-wheel .osl-pickers, body.printing-wheel .osl-gridlink, body.printing-wheel .os-links { display: none !important; }
  body.printing-wheel .osl-grid { grid-template-columns: minmax(0, 1fr) 24px 240px; }
}
#os-detail { max-width: 1000px; margin: 16px auto 0; }
.os-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.os-col .wh-label { margin-bottom: 6px; }
.os-col p { margin-bottom: 8px; }
.os-mtitle { font-weight: 600; color: var(--text) !important; margin-bottom: 2px !important; }
.os-script { font-size: 12px !important; color: var(--text-light) !important; }

/* Short laptop screens: tighten the side panel so a Location card fits */
@media (min-width: 901px) and (max-height: 720px) {
  .wh-chip, .wh-segbtn { padding-top: 6px; padding-bottom: 6px; }
  .wh-side { gap: 8px; }
  .wh-card { padding: 14px 16px 12px; }
  .wh-card-title { font-size: 23px; margin-bottom: 4px; }
  .wh-field { margin-top: 8px; }
  .wh-card p { line-height: 1.5; }
  .wh-link { margin-top: 6px; }
}

/* Governing Center view */
.wh-gc .wh-card-title { margin-bottom: 2px; }
.wh-gc-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px !important; line-height: 1.35 !important; color: var(--text) !important; margin-bottom: 6px; }
.wh-gc-intro { font-size: 12.5px !important; line-height: 1.5 !important; margin-bottom: 10px; }
.wh-gc-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wh-gc-cond {
  padding: 7px 6px; border: 1.5px solid var(--c); background: #fff; color: var(--c); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.25; cursor: pointer;
}
.wh-gc-cond.active { background: var(--c); color: #fff; }
.wh-gc-note { font-size: 11px !important; line-height: 1.45 !important; color: var(--text-light) !important; margin: 6px 0 10px; }
.wh-gc-locs { margin-bottom: 10px; }
.wh-gc-locs .wh-segbtn.wh-gc-on { background: color-mix(in srgb, var(--loc) 30%, #fff); border-color: var(--text); color: var(--text); }
.wh-gc-detail { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px 10px 16px; }
.wh-gc-detail .wh-label { margin-bottom: 3px; }
.wh-gc-fn { font-weight: 600; color: var(--text) !important; margin-bottom: 8px; }
.wh-gc-spiral { display: block; text-decoration: none; font-weight: 600; margin-top: 10px; }
.wh-gc-spiral:hover { text-decoration: underline; }
.wh-gc-foot { font-size: 11px !important; line-height: 1.45 !important; margin-top: 6px; }
.wh-gc-back { margin-top: 4px; }
/* The intro only fits on taller screens; it still prints */
@media (min-width: 901px) and (max-height: 860px) { .wh-gc-intro { display: none; } }
@media (min-width: 901px) and (max-height: 720px) {
  .wh-gc-sub { font-size: 15.5px !important; }
  .wh-gc-note { margin: 4px 0 6px; }
  .wh-gc-detail { padding: 8px 10px 8px 14px; }
  .wh-gc-detail p { line-height: 1.45; }
}

/* Edit in place (admins) */
.wh-edit-btn.active { background: var(--coral); color: #fff; }
body.wh-editing .wh-ed {
  outline: 1.5px dashed rgba(244, 132, 95, 0.75); outline-offset: 2px; border-radius: 2px;
  cursor: text; transition: background .15s;
}
body.wh-editing .wh-ed:hover, body.wh-editing .wh-ed:focus { background: rgba(244, 132, 95, 0.12); outline-style: solid; }
.wh-editor-card { max-width: 560px; }
.wh-editor-card .wh-card-title { font-size: 20px; }
.wh-ed-text { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.55; resize: vertical; margin-top: 6px; }
.wh-ed-note { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; margin-top: 8px; }
.wh-ed-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.wh-ed-msg { font-size: 12px; color: var(--text-light); min-height: 16px; margin-top: 6px; }
.wh-ed-msg.err { color: #c62828; }
@media print { .wh-edit-btn, #wh-editor { display: none !important; } body.wh-editing .wh-ed { outline: none !important; background: none !important; } }

/* Print */
.wh-print-btn {
  margin-left: 10px; padding: 2px 9px; vertical-align: 1px; border-radius: 999px;
  border: 1.5px solid var(--coral); background: #fff; color: var(--coral);
  font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer;
}
.wh-print-btn:hover { background: var(--coral); color: #fff; }
.wh-print-only { display: none; }

@media print {
  @page { margin: 0.5in; }
  body.printing-wheel * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.printing-wheel #loading-screen,
  body.printing-wheel #login-screen,
  body.printing-wheel #welcome-screen,
  body.printing-wheel #reset-screen,
  body.printing-wheel #assessment-screen,
  body.printing-wheel .app-header,
  body.printing-wheel #admin-banner,
  body.printing-wheel #module-assessment,
  body.printing-wheel #module-codes,
  body.printing-wheel .wh-head,
  body.printing-wheel .wh-side,
  body.printing-wheel .os-rootbar,
  body.printing-wheel #wh-about { display: none !important; }
  body.printing-wheel #app-screen { display: block !important; min-height: 0 !important; }
  body.printing-wheel #module-wheel { display: block !important; overflow: visible !important; background: #fff !important; }
  body.printing-wheel .wh-print-only { display: block !important; }
  body.printing-wheel .wh-page { max-width: 100% !important; padding: 0 !important; }
  body.printing-wheel .wh-layout { display: block !important; height: auto !important; }
  body.printing-wheel .wh-stage { display: block !important; }
  body.printing-wheel .wh-svg { width: 100% !important; height: auto !important; max-height: 7.4in !important; flex: none !important; }
  body.printing-wheel .wh-pin, body.printing-wheel .wh-pin-extra { opacity: 1; }
  body.printing-wheel .os-wrap { overflow: visible !important; }
  body.printing-wheel .os-grid { min-width: 0 !important; max-width: 100% !important; }
  body.printing-wheel .os-rowhead, body.printing-wheel .os-cell { min-height: 54px !important; }
  body.printing-wheel #os-detail .wh-card { break-inside: avoid; margin-top: 14px; }
  body.printing-wheel .wh-intro { margin-bottom: 10px; }
  #wh-print-head { text-align: center; margin-bottom: 10px; }
  .wh-print-eyebrow { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--coral); }
  .wh-print-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; margin: 2px 0; }
  .wh-print-sub { font-size: 13px; font-weight: 600; color: var(--text); }
  .wh-print-date { font-size: 10px; color: var(--text-light); margin-top: 2px; }
  #wh-print-appendix { break-before: page; page-break-before: always; }
  #wh-print-appendix:empty { display: none !important; }
  .wh-print-h2 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin: 0 0 10px; }
  .wh-print-note { font-size: 12px; line-height: 1.55; color: var(--text-mid); margin-bottom: 12px; }
  .wh-print-table { width: 100%; border-collapse: collapse; font-size: 11.5px; line-height: 1.45; }
  .wh-print-table th, .wh-print-table td { text-align: left; vertical-align: top; padding: 8px 8px; border-top: 1px solid #DDD; }
  .wh-print-table thead th { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); border-top: none; }
  .wh-print-table tbody th { width: 22%; box-shadow: inset 5px 0 0 var(--loc); padding-left: 14px; }
  .wh-print-table tbody th span { display: block; font-weight: 400; color: var(--text-light); margin-top: 2px; }
  .wh-print-table tr { break-inside: avoid; }
  .wh-print-root { font-size: 11.5px; line-height: 1.5; border: 1px solid #DDD; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
  .wh-print-root div { margin-top: 3px; }
  .wh-print-root span { font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-right: 6px; }
  .wh-print-steps { list-style: none; padding: 0; margin: 0; }
  .wh-print-steps li { font-size: 11.5px; line-height: 1.5; padding: 7px 0; border-top: 1px solid #EEE; break-inside: avoid; }
  .wh-print-steps p { margin: 2px 0 0; color: var(--text-mid); }
  #wh-print-appendix .wh-card { border: none; padding: 0; }
}

/* About the Wheel */
.wh-info {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: 1px;
  width: 18px; height: 18px; margin-left: 8px; border-radius: 50%;
  border: 1.5px solid var(--coral); background: #fff; color: var(--coral);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 700; font-size: 14px;
  letter-spacing: 0; text-transform: none; line-height: 1; cursor: pointer; padding: 0;
}
.wh-info:hover { background: var(--coral); color: #fff; }
.wh-modal {
  position: fixed; inset: 0; z-index: 500; background: rgba(20, 20, 20, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wh-modal-card {
  position: relative; background: #fff; border-radius: 10px; max-width: 620px; width: 100%;
  max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px 30px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.wh-modal-card p { font-size: 15px; line-height: 1.65; color: var(--text-mid); margin: 0 0 12px; }
.wh-modal-card:focus { outline: none; }
.wh-modal-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 18px; color: var(--text-light); cursor: pointer; }
.wh-modal-x:hover { color: var(--text); }
.wh-about-spiral { border-left: 4px solid var(--sp); padding-left: 12px; }
.wh-about-key { font-family: 'Cormorant Garamond', serif; font-size: 19px !important; line-height: 1.45 !important; color: var(--text) !important; margin-top: 16px !important; }
.wh-modal-ok { margin-top: 6px; padding: 10px 18px; }
.wh-spiral-intro { font-size: 12.5px; line-height: 1.5; color: var(--text-mid); margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  /* Stacked: the page scrolls normally; the wheel spans the width */
  .wh-head-in { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 0; }
  .wh-titleblock { text-align: center; padding: 2px 16px 4px; }
  .wh-title { white-space: normal; line-height: 1.9; }
  .wh-tabs { justify-content: safe center; }
  .wh-tabs .tab-btn { padding: 10px 10px 11px; }
  .wh-layout { grid-template-columns: 1fr; height: auto; }
  .wh-svg { height: auto; flex: none; max-height: 72vh; }
  .wh-side { overflow: visible; padding-right: 0; }
  .wh-chips { grid-template-columns: repeat(4, auto); justify-content: start; }
  .wh-page { padding: 12px 16px 60px; }
  .os-cols { grid-template-columns: 1fr; }
}

/* Participation Reality: above a Location's Participation Agreements */
.osp-reality { position: relative; background: color-mix(in srgb, var(--loc) 7%, #fff); border-left: 4px solid var(--loc); border-radius: var(--radius); padding: 12px 16px 10px; margin: 10px 0; }
.osp-reality-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px !important; line-height: 1.5 !important; color: var(--text); margin: 4px 0 2px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.osp-reality.open .osp-reality-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.osp-reality-more { font-size: 11px; }
@media print { .osp-reality-text { display: block; -webkit-line-clamp: unset; overflow: visible; } .osp-reality-more { display: none; } }

