/* LedgerPilot demo site: Compliance calendar (Agent B). Uses site.css tokens. */
.xc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xc [data-tone="teal"] { --tone: var(--teal); } .xc [data-tone="brass"] { --tone: var(--brass); } .xc [data-tone="amber"] { --tone: var(--amber); }
.xc [data-tone="ink"] { --tone: var(--ink-2); } .xc [data-tone="plum"] { --tone: var(--plum); } .xc [data-tone="red"] { --tone: var(--red); }
.xc-lab { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-right: 4px; }

/* ---- filter bar */
.xc-bar { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.xc-who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xc-pill { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink-2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.xc-pill:hover { border-color: var(--brass); transform: translateY(-1px); }
.xc-pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xc-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.xc-search { position: relative; flex: 1 1 260px; display: block; }
.xc-search input { width: 100%; font: 500 15px/1.3 var(--sans); color: var(--ink); background: var(--field); border: 1px solid var(--line2); border-radius: 11px; padding: 11px 12px 11px 38px; }
.xc-search::before { content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; border: 2px solid var(--mut); border-radius: 50%; transform: translateY(-62%); }
.xc-search::after { content: ''; position: absolute; left: 25px; top: 58%; width: 6px; height: 2px; background: var(--mut); transform: rotate(45deg); }
.xc-search input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.xc-laws { display: flex; flex-wrap: wrap; gap: 6px; }
.xc-law { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); cursor: pointer; transition: opacity .2s, background .2s; }
.xc-law i { width: 9px; height: 9px; border-radius: 3px; background: var(--tone); }
.xc-law[aria-pressed="false"] { opacity: .45; background: transparent; }
.xc-law[aria-pressed="false"] i { background: transparent; border: 1.5px solid var(--tone); }
.xc-rare { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--mut); cursor: pointer; }
.xc-rare input { accent-color: var(--ink); width: 16px; height: 16px; }
.xc-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mut); margin: 14px 2px 22px; }
.xc-stamp { flex: none; font: 700 10px/1 var(--mono); color: var(--teal); border: 1.5px solid currentColor; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; transform: rotate(-8deg); }

/* ---- stage: wheel + month */
.xc-stage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 26px; align-items: start; margin-bottom: 28px; }
.xc-wheelbox { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); overflow: hidden; }
.xc-wheelbox::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, var(--brass-soft), transparent 62%); pointer-events: none; }
.xc-wheel { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; position: relative; overflow: visible; }
.xc-sec { cursor: pointer; outline: none; }
.xc-secbg { fill: transparent; stroke: var(--line); stroke-width: 1; transition: fill .25s; }
.xc-sec:hover .xc-secbg { fill: color-mix(in srgb, var(--brass) 7%, transparent); }
.xc-sec.now .xc-secbg { fill: color-mix(in srgb, var(--teal) 6%, transparent); }
.xc-sec.sel .xc-secbg { fill: color-mix(in srgb, var(--brass) 14%, transparent); stroke: var(--brass); stroke-width: 1.2; }
.xc-sec:focus-visible .xc-secbg { stroke: var(--brass); stroke-width: 2.5; }
.xc-mlab { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; fill: var(--mut); pointer-events: none; }
.xc-sec.sel .xc-mlab, .xc-sec.now .xc-mlab { fill: var(--brass-ink); }
.xc-ticks { stroke: var(--line2); stroke-width: 1; fill: none; }
.xc-ring { fill: none; stroke: var(--tone); stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 2 4; }
.xc-elapsed { fill: color-mix(in srgb, var(--teal) 45%, transparent); }
.xc-dot { fill: var(--tone); stroke: var(--card); stroke-width: 1.5; cursor: pointer; transition: r .2s; transform-box: fill-box; transform-origin: center; }
.xc-dot.past { fill-opacity: .3; }
.xc-dot:hover, .xc-dot.on { r: 7; stroke: var(--ink); }
.ca-ready .xc-dot { animation: xc-pop .6s var(--ease) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes xc-pop { from { transform: scale(0); } to { transform: scale(1); } }
.xc-needle line { stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.xc-needle circle { fill: var(--brass); stroke: var(--card); stroke-width: 2; }
.xc-needle { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brass) 60%, transparent)); }
.xc-hub { fill: var(--card); stroke: var(--line2); }
.xc-hub-k { font: 600 9.5px/1 var(--mono); letter-spacing: .14em; fill: var(--mut); }
.xc-hub-v { font: 500 26px/1 var(--serif); fill: var(--ink); }
.xc-hub-s { font: 500 10px/1 var(--mono); fill: var(--mut); }
.xc-hub-n { font: 600 11px/1 var(--sans); fill: var(--brass-ink); }
.xc-hub-d { font: 500 9.5px/1 var(--mono); fill: var(--mut); }
.xc-legend { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font: 500 11.5px/1 var(--mono); color: var(--mut); }
.xc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xc-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }

.xc-monthbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.xc-mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 3px double var(--line2); }
.xc-mhead h2 { flex: 1; margin: 0; font-size: clamp(22px, 2.4vw, 30px); text-align: center; }
.xc-nav, .xc-todaybtn { border: 1px solid var(--line2); background: var(--card2); color: var(--ink); border-radius: 9px; height: 36px; min-width: 36px; font: 600 18px/1 var(--sans); cursor: pointer; }
.xc-todaybtn { font: 600 12.5px/1 var(--sans); padding: 0 12px; }
.xc-nav:hover, .xc-todaybtn:hover { border-color: var(--brass); }
.xc-nav:disabled { opacity: .35; cursor: not-allowed; }
.xc-grid { display: grid; gap: 4px; }
.xc-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.xc-dow span { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); text-align: center; padding: 4px 0; }
.xc-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 76px; min-width: 0; padding: 6px 5px 5px; border-radius: 9px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.xc-cell.pad { background: transparent; border-color: transparent; cursor: default; }
.xc-cell:not(.pad):hover { border-color: var(--brass); transform: translateY(-1px); }
.xc-cell.past { opacity: .62; }
.xc-cell.sun .xc-dn { color: var(--red); }
.xc-cell.has { background: var(--card); }
.xc-cell.today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.xc-cell.today .xc-dn::after { content: 'today'; font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-left: 5px; }
.xc-cell.sel { border-color: var(--brass); background: var(--brass-soft); }
.xc-dn { font: 600 13px/1 var(--mono); }
.xc-pills { display: grid; gap: 2px; min-width: 0; }
.xc-pills i { display: block; font: 600 10px/1.25 var(--sans); font-style: normal; padding: 2px 5px; border-radius: 4px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--ink); border-left: 2px solid var(--tone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xc-pills em { font: 600 10px/1 var(--mono); color: var(--mut); font-style: normal; padding-left: 3px; }
.xc-dots { display: none; gap: 3px; }
.xc-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.xc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.xc-chip { display: inline-grid; grid-template-columns: auto auto; grid-template-areas: 'b s' 'b m'; column-gap: 8px; align-items: center; padding: 7px 11px 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.xc-chip:hover { transform: translateY(-1px); border-color: var(--tone); }
.xc-chip b { grid-area: b; font: 700 13px/1 var(--mono); padding: 6px 7px; border-radius: 7px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--ink); min-width: 38px; text-align: center; }
.xc-chip span { grid-area: s; font: 600 12.5px/1.2 var(--sans); }
.xc-chip small { grid-area: m; font: 500 10.5px/1.2 var(--mono); color: var(--mut); }
.xc-chip.hot b { background: var(--red); color: #fff; }
.xc-chip.warm b { background: color-mix(in srgb, var(--amber) 28%, transparent); }

/* ---- agenda */
.xc-agendahead { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 14px; }
.xc-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.xc-seg > button { border: 0; background: transparent; padding: 8px 13px; border-radius: 9px; font: 500 13.5px/1 var(--sans); color: var(--mut); cursor: pointer; }
.xc-seg > button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.xc-count { margin: 0; flex: 1; font-size: 14px; color: var(--ink-2); }
.xc-clear { border: 0; background: none; color: var(--brass-ink); font: 600 13px/1 var(--sans); text-decoration: underline; cursor: pointer; padding: 0 4px; }
.xc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.xc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 13.5px/1.1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.xc-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px var(--brass-soft); color: var(--bg); }
.xc-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.xc-btn.ghost:hover { color: var(--ink); border-color: var(--brass); }
.xc-btn.sm { padding: 8px 12px; font-size: 12.5px; }
.xc-printhead { display: none; }
.xc-agenda { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--line2); }
.xc-mon { padding: 18px 0 8px; }
.xc-mon span { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.xc-item { border-bottom: 1px solid var(--line); position: relative; }
.xc-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--tone); opacity: .8; }
.xc-item.past { opacity: .62; }
.xc-ihead { width: 100%; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 20px; gap: 14px; align-items: center; padding: 14px 8px 14px 14px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; border-radius: 10px; transition: background .2s; }
.xc-ihead:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.xc-date { display: grid; justify-items: center; line-height: 1; padding: 6px 0; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); }
.xc-date b { font: 600 22px/1 var(--serif); }
.xc-date span { font: 600 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.xc-date small { font: 500 9.5px/1.2 var(--mono); color: var(--mut); }
.xc-main { display: grid; gap: 3px; min-width: 0; }
.xc-law-t { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.xc-law-t i { width: 8px; height: 8px; border-radius: 2px; background: var(--tone); }
.xc-law-t em { font-style: normal; color: var(--teal); }
.xc-law-t .stamp { font-size: 9px; padding: 2px 5px; }
.xc-title { font: 600 15.5px/1.3 var(--sans); }
.xc-formline { font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.xc-cd { font: 600 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); white-space: nowrap; }
.xc-cd.hot { background: var(--red); color: #fff; border-color: var(--red); }
.xc-cd.warm { background: color-mix(in srgb, var(--amber) 20%, transparent); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.xc-cd.past { color: var(--mut); }
.xc-caret { width: 10px; height: 10px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(45deg); transition: transform .3s var(--ease); justify-self: center; margin-top: -4px; }
.xc-item.open .xc-caret { transform: rotate(225deg); margin-top: 4px; }
.xc-item.open { background: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 12px; }
.xc-exp { padding: 2px 16px 18px 90px; animation: xc-in .35s var(--ease) both; }
@keyframes xc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.xc-exp dl { margin: 0; display: grid; gap: 0; border-top: 1px dashed var(--line2); }
.xc-exp dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.xc-exp dt { font: 600 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.xc-exp dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.xc-n { display: block; margin-top: 4px; color: var(--mut); font-size: 13.5px; }
.xc-form { font: 600 13.5px/1.3 var(--mono); color: var(--teal); }
.xc-verify { margin: 10px 0 0; font-size: 13px; color: var(--stamp); }
.xc-expact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xc-empty { padding: 26px; text-align: center; color: var(--mut); border-bottom: 1px solid var(--line); }
.xc-rules { margin-top: 34px; }
.xc-rules h2 { font-size: clamp(22px, 2.4vw, 30px); }
.xc-rulegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.xc-rule { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 6px; box-shadow: var(--shadow-sm); }
.xc-rule b { font: 600 15px/1.3 var(--sans); }
.xc-rule p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.xc-src { margin-top: 22px; font-size: 12.5px; color: var(--mut); }

/* ---- responsive */
@media (max-width: 1000px) {
  .xc-stage { grid-template-columns: minmax(0, 1fr); }
  .xc-wheel { max-width: 440px; }
}
@media (max-width: 640px) {
  .xc-bar { padding: 14px; }
  .xc-who { gap: 6px; }
  .xc-pill { padding: 8px 12px; font-size: 13px; }
  .xc-wheelbox, .xc-monthbox { padding: 12px; border-radius: var(--r); }
  .xc-cell { min-height: 46px; padding: 5px 3px; align-items: center; }
  .xc-pills { display: none; }
  .xc-dots { display: flex; justify-content: center; flex-wrap: wrap; }
  .xc-cell.today .xc-dn::after { display: none; }
  .xc-mhead h2 { font-size: 20px; }
  .xc-ihead { grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 10px; padding: 12px 4px 12px 12px; }
  .xc-date { grid-row: span 2; }
  .xc-cd { grid-column: 2; justify-self: start; grid-row: 2; }
  .xc-caret { grid-column: 3; grid-row: 1; }
  .xc-exp { padding: 0 8px 16px 12px; }
  .xc-exp dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .xc-agendahead { align-items: stretch; }
  .xc-count { flex-basis: 100%; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ca-ready .xc-dot, .xc-exp { animation: none !important; }
}
@media print {
  .xc-bar, .xc-stage, .xc-agendahead, .xc-expact, .xc-caret, .xc-src { display: none !important; }
  .xc-printhead { display: block; font-size: 12px; margin-bottom: 8px; color: #000; }
  .xc-ihead { padding: 6px 0; grid-template-columns: 52px 1fr auto; }
  .xc-item, .xc-rule { break-inside: avoid; }
  .xc-item::before { display: none; }
  .xc-cd.hot { background: none; color: #000; border-color: #000; }
}

/* tighter join between the page hero and the module */
.sec.tight.x-calendar-sec { padding-top: 6px; }

/* print always on white paper, whatever the office-hours theme */
@media print {
  html[data-part] { color-scheme: light; --bg: #fff; --bg2: #f4f4f4; --card: #fff; --card2: #f7f7f7; --field: #fff; --tape: #fff; --ink: #000; --ink-2: #222; --mut: #555; --line: rgba(0, 0, 0, .14); --line2: rgba(0, 0, 0, .3); --rule: rgba(0, 0, 0, .06); --brass-ink: #6b4a10; --brass-soft: rgba(168, 121, 43, .12); --teal: #24676a; --shadow: none; --shadow-sm: none; }
}
