/* WaiBOP staff tools stylesheet — shared by the staff calendar (and any other staff pages).
   Brand: WaiBOP Football design system — WaiBOP Red, fern blues, Lato. */
:root {
  --wb-red: #D62C32;
  --wb-red-dark: #A6282C;
  --wb-blue: #165791;
  --wb-light-blue: #099BD4;
  --ink: #130C0E;
  --ink-muted: #636466;
  --surface: #FFFFFF;
  --surface-grey: #EDEDEE;
  --line: #d6d7d9;
  --line-soft: #e7e8ea;
  --school-hol: #fbeaea;
  --today: #fff6d6;
  --radius: 4px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--surface-grey); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--wb-blue); }

/* ---------- Header ---------- */
.st-header { background: var(--surface); border-bottom: 3px solid var(--wb-red); }
.st-header-inner { max-width: 1400px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.st-brand { font-weight: 900; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.st-brand span { color: var(--wb-red); }
.st-nav { display: flex; gap: 4px; }
.st-nav a { text-decoration: none; color: var(--ink-muted); font-weight: 700; padding: 6px 12px; border-radius: var(--radius); }
.st-nav a.on { color: var(--ink); background: var(--surface-grey); }
.st-nav a:hover { color: var(--ink); }
.st-who { margin-left: auto; font-size: 14px; color: var(--ink-muted); }
.st-who a { margin-left: 10px; color: var(--ink); }

.st-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 24px 60px; }

/* ---------- Buttons and inputs ---------- */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 7px 13px; cursor: pointer; font-weight: 700; font-size: 14px; line-height: 1.2; }
.btn:hover { border-color: var(--ink-muted); }
.btn.primary { background: var(--wb-red); border-color: var(--wb-red); color: #fff; }
.btn.primary:hover { background: var(--wb-red-dark); border-color: var(--wb-red-dark); }
.btn.danger { color: var(--wb-red-dark); }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.icon { padding: 7px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.field input, .field select, .field textarea { font-weight: 400; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; background: #fff; }
.field textarea { min-height: 80px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ---------- Toolbar and filters ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-title { font-weight: 900; font-size: 26px; margin: 0 8px; min-width: 220px; }
.cal-toolbar .grow { flex: 1; }
.cal-search { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; width: 220px; background: #fff; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px 4px 8px; font-size: 13px; cursor: pointer; user-select: none; }
.chip .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.chip.off { opacity: .45; background: transparent; }
.chip.off .sw { background: transparent !important; outline: 1px solid var(--ink-muted); }
.cal-banner { background: #fff; border-left: 4px solid var(--wb-red); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Year view (season timeline) ---------- */
.yr { overflow: visible; }
@media (max-width: 1150px) { .yr { overflow-x: auto; } }
.yr-inner { min-width: 1100px; }
.yr-row { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--line-soft); }
.yr-label { padding: 5px 12px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--line); }
.yr-track { position: relative; height: 24px; }
.yr-head .yr-track { height: 30px; }
.yr-head { position: sticky; top: 0; background: var(--surface); z-index: 5; border-bottom: 1px solid var(--line); box-shadow: 0 2px 4px rgba(19,12,14,.08); }
.yr-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); font-size: 12px; font-weight: 900; text-transform: uppercase; padding: 7px 6px; cursor: pointer; color: var(--ink-muted); }
.yr-month:hover { color: var(--wb-red); }
.yr-group .yr-label { font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; background: var(--surface-grey); }
.yr-group .yr-track { background: var(--surface-grey); height: 26px; }
.yr-bg { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.yr-bg.hol { background: var(--school-hol); }
.yr-bg.grid { border-left: 1px solid var(--line-soft); }
.yr-bg.now { border-left: 2px solid var(--wb-red); z-index: 2; }
.yr-bar { position: absolute; top: 3px; height: 18px; border-radius: 3px; font-size: 11.5px; line-height: 18px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; }
.yr-bar:hover { filter: brightness(1.1); outline: 2px solid var(--ink); }
.yr-bar.tbc { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 5px, transparent 5px 10px); }
.yr-dot { position: absolute; top: 5px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); border-radius: 2px; cursor: pointer; z-index: 1; }
.yr-dot:hover { outline: 2px solid var(--ink); }
.yr-dot span { display: block; transform: rotate(-45deg); color: #fff; font-size: 9px; font-weight: 900; line-height: 14px; text-align: center; }
.yr-tick { position: absolute; top: 9px; width: 2px; height: 6px; margin-left: -1px; background: rgba(255,255,255,.8); border-radius: 1px; z-index: 1; pointer-events: none; }
.yr-ph { position: absolute; top: 4px; width: 4px; height: 16px; margin-left: -2px; background: var(--wb-red); border-radius: 2px; cursor: pointer; }
.yr-term { position: absolute; top: 3px; height: 18px; background: #d4e5f4; color: var(--wb-blue); font-size: 11.5px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.yr-legend { font-size: 13px; color: var(--ink-muted); padding: 10px 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.yr-legend i { display: inline-block; width: 14px; height: 10px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }

/* ---------- Month view ---------- */
.mo-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 5; box-shadow: 0 2px 4px rgba(19,12,14,.08); }
.mo-head div { padding: 8px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--ink-muted); }
.mo-week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); min-height: 128px; }
.mo-week:last-child { border-bottom: 0; }
.mo-day { border-right: 1px solid var(--line-soft); padding: 5px 7px 6px; cursor: pointer; min-width: 0; }
.mo-day:last-child { border-right: 0; }
.mo-day:hover { background: #fafafa; }
.mo-day.out { background: #f7f7f8; color: #a6a7a9; }
.mo-day.shol { background: var(--school-hol); }
.mo-day.today { background: var(--today); }
.mo-num { font-weight: 900; font-size: 14px; display: flex; align-items: baseline; gap: 6px; }
.mo-num small { font-weight: 700; font-size: 11px; color: var(--wb-red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-note { font-size: 11px; color: var(--wb-blue); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-bars { position: absolute; left: 0; right: 0; top: 40px; pointer-events: none; }
.mo-bar { position: absolute; height: 19px; font-size: 12px; line-height: 19px; padding: 0 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: auto; cursor: pointer; }
.mo-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mo-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mo-bar.single { background: transparent !important; color: var(--ink) !important; padding-left: 14px; }
.mo-bar.single::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.mo-bar:hover { outline: 2px solid var(--ink); }
.mo-more { position: absolute; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); pointer-events: auto; cursor: pointer; padding: 0 6px; }
.mo-more:hover, .mo-rounds:hover { color: var(--wb-red); }
.mo-rounds { position: absolute; width: calc(100% / 7); font-size: 11.5px; line-height: 16px; color: var(--ink); pointer-events: auto; cursor: pointer; padding: 0 6px 0 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-rounds::before { content: ""; position: absolute; left: 6px; top: 4px; width: 7px; height: 7px; border-radius: 2px; background: var(--dot); }

/* ---------- Day view ---------- */
.dy-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.dy-strip button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 7px 4px; cursor: pointer; text-align: center; font-size: 13px; }
.dy-strip button b { display: block; font-size: 18px; font-weight: 900; }
.dy-strip button small { display: block; color: var(--ink-muted); font-size: 11px; }
.dy-strip button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.dy-strip button.on small { color: #ddd; }
.dy-strip button.shol { background: var(--school-hol); }
.dy-strip button.on.shol { background: var(--ink); }
.dy-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .dy-grid { grid-template-columns: 1fr; } }
.dy-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dy-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--surface-grey); }
.badge.ph { background: #fbe3e4; color: var(--wb-red-dark); }
.badge.term { background: #d4e5f4; color: var(--wb-blue); }
.badge.shol { background: var(--school-hol); color: var(--wb-red-dark); }
.dy-sec { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.dy-sec:last-child { border-bottom: 0; }
.dy-sec h3 { margin: 0 0 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.ev { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.ev:first-of-type { border-top: 0; }
.ev:hover .ev-t { color: var(--wb-red); }
.ev-when { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.ev-t { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ev-t .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ev-m { font-size: 13px; color: var(--ink-muted); }
.tag-tbc { font-size: 10.5px; font-weight: 900; color: var(--wb-red-dark); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; }
.rounds-grp { margin-bottom: 10px; }
.rounds-grp h4 { margin: 6px 0 4px; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.rounds-grp ul { margin: 0; padding: 0; list-style: none; }
.rounds-grp li { font-size: 14px; padding: 4px 0 4px 17px; border-top: 1px dashed var(--line-soft); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.rounds-grp li:hover { color: var(--wb-red); }
.rounds-grp li span:last-child { color: var(--ink-muted); text-align: right; }
.empty { color: var(--ink-muted); font-size: 14px; padding: 6px 0; }

/* ---------- Search results ---------- */
.results { margin-bottom: 16px; }
.results .dy-sec { max-height: 340px; overflow: auto; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(19,12,14,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow: auto; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 560px; border-top: 4px solid var(--wb-red); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-h { padding: 16px 20px 0; display: flex; align-items: flex-start; gap: 12px; }
.modal-h h2 { margin: 0; font-size: 20px; font-weight: 900; flex: 1; }
.modal-b { padding: 14px 20px; display: grid; gap: 12px; }
.modal-b .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-f { padding: 12px 20px 18px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line-soft); }
.modal-f .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--ink-muted); font-weight: 700; }
.kv dd { margin: 0; white-space: pre-wrap; }
.err { color: var(--wb-red-dark); font-size: 14px; font-weight: 700; }
.muted { color: var(--ink-muted); font-size: 13px; }

/* ---------- Login ---------- */
.login { max-width: 380px; margin: 10vh auto; padding: 28px; display: grid; gap: 14px; }
.login h1 { margin: 0; font-weight: 900; font-size: 26px; text-transform: uppercase; }
.login h1 span { color: var(--wb-red); }

@media print {
  .st-header, .cal-toolbar, .cal-filters { display: none; }
  body { background: #fff; }
}

/* ---------- Week view ---------- */
.wk { overflow: visible; }
.wk-head, .wk-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 4px rgba(19,12,14,.08); }
.wk-h { padding: 8px 10px; border-right: 1px solid var(--line-soft); cursor: pointer; min-width: 0; }
.wk-h:last-child, .wk-col:last-child { border-right: 0; }
.wk-h:hover .wk-dn { color: var(--wb-red); }
.wk-dn { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); }
.wk-dn b { font-size: 18px; font-weight: 900; color: var(--ink); }
.wk-ph { font-size: 11.5px; font-weight: 700; color: var(--wb-red); }
.wk-sub { font-size: 11.5px; font-weight: 700; color: var(--wb-blue); }
.wk-spans { position: relative; border-bottom: 1px solid var(--line); }
.wk-spans .mo-bar.tbc { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
.wk-body { min-height: 360px; }
.wk-col { position: relative; border-right: 1px solid var(--line-soft); padding: 8px 6px 34px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-h.shol, .wk-col.shol { background: var(--school-hol); }
.wk-h.today, .wk-col.today { background: var(--today); }
.wk-item { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid; border-radius: 4px; padding: 5px 7px; cursor: pointer; font-size: 13px; }
.wk-item:hover { border-color: var(--wb-red); }
.wk-time { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.wk-t { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.wk-m { font-size: 12px; color: var(--ink-muted); }
.wk-rounds { display: grid; gap: 3px; margin-top: 2px; }
.wk-round { position: relative; font-size: 12px; line-height: 1.3; padding-left: 12px; cursor: pointer; }
.wk-round::before { content: ""; position: absolute; left: 1px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.wk-round span { font-weight: 700; }
.wk-round em { font-style: normal; color: var(--ink-muted); display: block; }
.wk-season { position: relative; font-size: 12px; font-weight: 700; line-height: 1.3; padding-left: 12px; cursor: pointer; }
.wk-season::before { content: ""; position: absolute; left: 0; top: 3px; width: 8px; height: 8px; border-radius: 2px; background: var(--dot); }
.wk-add { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 4px; border: 1px dashed var(--line); background: transparent; color: var(--ink-muted); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.wk-col:hover .wk-add { opacity: 1; }
.wk-add:hover { border-color: var(--wb-red); color: var(--wb-red); }
@media (max-width: 900px) {
  .wk { overflow-x: auto; }
  .wk-head, .wk-spans, .wk-body { min-width: 840px; }
  .wk-head { position: static; }
  .wk-add { opacity: 1; }
}

/* ---------- Marketing plan view: one block per month ---------- */
.pl-jump { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface-grey); padding: 8px 0; margin-bottom: 4px; }
.pl-jump button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--wb-blue); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.pl-jump button:hover { border-color: var(--wb-red); color: var(--wb-red); }
.pl-month { margin-bottom: 18px; overflow: hidden; }
.pl-month.now { border-color: var(--wb-red); }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 3px solid var(--wb-red); }
.pl-head h3 { margin: 0; font-size: 20px; font-weight: 900; text-transform: uppercase; color: var(--wb-blue); letter-spacing: .02em; }
.pl-label { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.pl-focus { background: #f3f7fb; padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.pl-focus-item { cursor: pointer; }
.pl-focus-t { font-weight: 900; display: flex; align-items: center; gap: 7px; }
.pl-focus-m { font-size: 13px; color: var(--ink-muted); margin: 2px 0 0 17px; }
.pl-focus-item ul { margin: 4px 0 0 17px; padding-left: 16px; font-size: 14px; }
.pl-focus-item:hover .pl-focus-t { color: var(--wb-red); }
.pl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px 100px; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); align-items: start; cursor: pointer; font-size: 14px; }
.pl-row:last-child { border-bottom: 0; }
.pl-row:hover { background: #fafafa; }
.pl-th { cursor: default; font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--ink-muted); background: #fafafa; }
.pl-date { font-weight: 700; white-space: nowrap; }
.pl-t { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.pl-t .sw, .pl-focus-t .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pl-idea { color: var(--ink-muted); margin: 2px 0 0 17px; }
.pl-ch { color: var(--ink-muted); font-size: 13px; }
.pl-row.ctx { color: var(--wb-blue); font-size: 13px; padding-top: 5px; padding-bottom: 5px; background: #f7fafd; cursor: default; }
.pl-row.ctx[data-id] { cursor: pointer; }
.pl-row.ctx.ph { color: var(--wb-red); background: #fdf5f5; }
.pl-empty { padding: 12px 16px; color: var(--ink-muted); font-size: 14px; }
.pl-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #ececee; color: #3a3a3c; white-space: nowrap; }
.pl-st.st-planned { background: #dbe8f5; color: var(--wb-blue); }
.pl-st.st-in-progress { background: #fdf0c4; color: #6b4e00; }
.pl-st.st-done { background: #d9efdb; color: #1f5e24; }
.cp-intro { margin: 0 0 8px; font-size: 13px; }
.pl-jump button[data-jump^="c"] { color: var(--wb-red); }
@media (max-width: 800px) {
  .pl-row { grid-template-columns: 90px minmax(0, 1fr); }
  .pl-row > div:nth-child(3), .pl-row > div:nth-child(4) { display: none; }
}
@media print {
  .st-header, .cal-toolbar, .cal-filters, .pl-jump, .pl-head .btn { display: none !important; }
  .pl-month { break-inside: avoid-page; border: 0; }
}

/* ---------- ITC checker (public page, embedded on the WaiBOP website) ---------- */
body.itc-page { background: var(--surface); margin: 24px; font-size: 16px; line-height: 1.5; }
.itc-tool { max-width: 760px; margin: 0 auto; }
.itc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.itc-tool h2 { font-weight: 900; font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.itc-tool h3 { font-weight: 700; font-size: 18px; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ink-muted); }
.itc-tool p { margin: 0 0 12px; }
.itc-intro { font-weight: 300; font-size: 18px; margin-bottom: 24px; }
.itc-why { background: var(--surface-grey); padding: 12px 20px; margin: 0 0 20px; }
.itc-why summary { font-weight: 700; color: var(--wb-blue); cursor: pointer; }
.itc-why ul { margin: 10px 0 4px; padding-left: 20px; }
.itc-why li { margin-bottom: 6px; }
.itc-trail { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.itc-trail li { background: var(--surface-grey); font-size: 13px; padding: 4px 10px; border-radius: var(--radius); }
.itc-trail li b { color: var(--wb-blue); }
.itc-card { background: var(--surface-grey); padding: 24px; border-left: 6px solid var(--wb-blue); }
.itc-step { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 6px; }
.itc-q { font-weight: 900; font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
.itc-hint { color: var(--ink-muted); font-size: 15px; margin-bottom: 20px; }
.itc-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.itc-btn { font-size: 16px; padding: 12px 28px; }
.btn.itc-no { background: var(--wb-blue); border-color: var(--wb-blue); color: #fff; }
.btn.itc-no:hover { background: #0f406b; border-color: #0f406b; }
.itc-links { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn.itc-link { color: var(--wb-blue); text-decoration: underline; font-weight: 400; padding-left: 0; }
.itc-result { background: var(--surface); border: 1px solid var(--surface-grey); border-left: 6px solid var(--wb-red); }
.itc-result.itc-none { border-left-color: #2e7d32; }
.itc-result.itc-warn { border-left-color: var(--wb-blue); }
.itc-tag { display: inline-block; background: var(--wb-red); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: var(--radius); margin-bottom: 10px; }
.itc-none .itc-tag { background: #2e7d32; }
.itc-warn .itc-tag { background: var(--wb-blue); }
.itc-list { list-style: none; padding: 0; margin: 0; }
.itc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--surface-grey); }
.itc-list input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--wb-blue); flex: none; }
.itc-list small { display: block; color: var(--ink-muted); }
.itc-list small a { color: var(--wb-blue); }
.itc-list small .itc-en { color: var(--ink); }
.itc-num { font-weight: 700; color: var(--wb-blue); margin-right: 2px; }
.itc-note { font-size: 14px; color: var(--ink-muted); margin-top: 12px !important; }
.itc-dl { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; margin-top: 12px !important; }
.itc-dl a { color: var(--wb-blue); font-weight: 700; }
.itc-next { background: var(--surface-grey); padding: 16px 20px; margin-top: 24px; }
.itc-next a { color: var(--wb-blue); font-weight: 700; }
.itc-next a.itc-cta { display: inline-block; margin-top: 12px; font-size: 18px; padding: 12px 24px; color: #fff; text-decoration: none; }
.itc-faq { margin-top: 32px; }
.itc-faq details { border-bottom: 1px solid var(--surface-grey); padding: 12px 0; }
.itc-faq summary { font-weight: 700; cursor: pointer; }
.itc-faq details div { margin-top: 8px; color: var(--ink); }
.itc-faq a { color: var(--wb-blue); }
@media print {
  .itc-btns, .itc-links, .itc-cta, .itc-trail, .itc-lang, .itc-dl, .itc-why, .itc-faq { display: none !important; }
  .itc-result { border: 0; }
}


/* Website embed (calendar-embed): category key sits below the calendar */
.st-embed #cal-app { display: flex; flex-direction: column; }
.st-embed .cal-filters { order: 99; margin: 16px 0 0; }


/* Week view: international events band sits under the days */
.wk-spans-foot { border-bottom: 0; border-top: 1px solid var(--line); }
