/* tokila beauty calendar. The month grid reads like a cosmetics palette: deeper pans mean more events that day.
   The theme styles article headings and tables through `.art, #tinymce`, which carries ID specificity,
   so heading and table rules here are scoped to #tcal-page. */
.tcal {
  --tc-ink: #2a2126;
  --tc-sub: #6c5f66;
  --tc-rose: #d52166;
  --tc-rose-ink: #a3114a;
  --tc-blush: #fdf2f6;
  --tc-line: #eee2e7;
  --tc-pan: #f9f6f7;
  --tc-lv1: #fdeef3;
  --tc-lv2: #fad9e5;
  --tc-lv3: #f5bed2;
  --tc-lv4: #ee9dba;
  --tc-lv5: #e47aa0;
  --tc-num: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  color: var(--tc-ink);
  overflow-wrap: anywhere;
  line-height: 1.7;
}
/* The theme sets `* { word-break: break-all }`, which splits Latin words such as brand names mid-word. */
.tcal, .tcal * { word-break: normal; }
.tcal .c-popup { --c: #d52166; }
.tcal .c-experience { --c: #8a5cc2; }
.tcal .c-fair { --c: #c98510; }
.tcal .c-exhibition { --c: #25877f; }
.tcal .c-other { --c: #8f8489; }
.tcal .c-beauty { --c: #d52166; }
.tcal .c-fashion { --c: #3a5a8c; }
.tcal .c-lifestyle { --c: #5f7f3a; }
.tcal a { color: inherit; }
.tcal :focus-visible { outline: 2px solid var(--tc-rose-ink); outline-offset: 2px; }
.tcal-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

#tcal-page .tcal-title { margin: 10px 0 18px; font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: .02em; word-break: keep-all; }

/* Events / launches switch and genre chips */
.tcal-switch { display: inline-flex; gap: 2px; margin: 6px 0 4px; padding: 3px; border-radius: 999px; background: #f4eef1; }
.tcal-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--tc-sub); text-decoration: none; }
.tcal-switch a[aria-current] { background: #fff; color: var(--tc-ink); box-shadow: 0 2px 8px -4px rgba(42, 33, 38, .35); }
.tcal-genres { display: flex; gap: 14px; margin: 0 0 8px; font-size: 13px; }
.tcal-genres a { padding: 4px 0; color: var(--tc-sub); text-decoration: none; border-bottom: 2px solid transparent; }
.tcal-genres a[aria-current] { color: var(--tc-ink); font-weight: 700; border-bottom-color: var(--tc-rose); }

/* Kind chips and filters */
.tcal-cats { display: flex; gap: 6px; margin: 0 0 10px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.tcal-cats::-webkit-scrollbar { display: none; }
.tcal-cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.tcal-cats a:hover { border-color: #dcc3cd; }
.tcal-cats a[aria-current] { background: var(--tc-ink); border-color: var(--tc-ink); color: #fff; }
.tcal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tcal-cats a[aria-current] .tcal-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.tcal-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.tcal-select select { min-height: 36px; padding: 0 34px 0 14px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232a2126' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 13px; cursor: pointer; }
.tcal-toggle { position: relative; }
.tcal-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tcal-toggle span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px dashed #d8c6ce; border-radius: 999px; font-size: 13px; color: var(--tc-sub); cursor: pointer; user-select: none; }
.tcal-toggle input:checked + span { border: 1px solid var(--tc-rose); background: var(--tc-blush); color: var(--tc-rose-ink); font-weight: 700; }
.tcal-toggle input:checked + span::before { content: "✓"; margin-right: 5px; }
.tcal-toggle input:focus-visible + span { outline: 2px solid var(--tc-rose-ink); outline-offset: 2px; }
.tcal-filter__submit { min-height: 36px; padding: 0 18px; border-radius: 999px; background: var(--tc-ink); color: #fff; font-size: 13px; font-weight: 700; }
.tcal-js .tcal-filter__submit { display: none; }

/* The palette */
.tcal-board { margin: 0 0 32px; padding: 16px 12px 14px; border: 1px solid var(--tc-line); border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -34px rgba(163, 17, 74, .5); transition: opacity .2s; }
.tcal-board__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.tcal .tcal-board__month { display: flex; align-items: baseline; gap: 5px; margin: 0; line-height: 1; }
.tcal-board__month span { font-size: 13px; color: var(--tc-sub); }
.tcal-board__month b { font-family: var(--tc-num); font-size: 44px; font-weight: 500; letter-spacing: -.02em; }
.tcal-board__month small { margin-left: 8px; font-size: 12px; color: var(--tc-sub); white-space: nowrap; }
.tcal-pan__d small { font-size: .62em; letter-spacing: 0; }
.tcal-board__month em { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--tc-blush); color: var(--tc-rose-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.tcal-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--tc-line); border-radius: 50%; font-size: 22px; line-height: 1; text-decoration: none; transition: background .15s, border-color .15s; }
.tcal-arrow:hover { background: var(--tc-blush); border-color: #e8bccd; }
#tcal-page .tcal-grid { width: calc(100% + 8px); margin: 0 -4px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
#tcal-page .tcal-grid th, #tcal-page .tcal-grid td { padding: 0; border: 0; background: none; font-size: inherit; vertical-align: top; }
#tcal-page .tcal-grid th { padding: 2px 0 4px; font-size: 11px; font-weight: 700; color: var(--tc-sub); text-align: center; letter-spacing: .1em; }
.tcal-grid .is-sun { --day: #8e0d40; }
.tcal-grid .is-sat { --day: #234b80; }
#tcal-page .tcal-grid th.is-sun, #tcal-page .tcal-grid th.is-sat { color: var(--day); }
.tcal-grid td.lv-1 { --tc-pan: #fdf2f6; }
.tcal-grid td.lv-2 { --tc-pan: #fbe2eb; }
.tcal-grid td.lv-3 { --tc-pan: #f8cfde; }
.tcal-pan { position: relative; display: flex; flex-direction: column; min-height: 72px; padding: 7px 8px 8px; border-radius: 14px; background: var(--tc-pan); box-shadow: inset 0 0 0 1px rgba(42, 33, 38, .04), inset 0 -10px 14px -12px rgba(42, 33, 38, .28); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.tcal-pan:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(42, 33, 38, .08), 0 10px 18px -12px rgba(163, 17, 74, .6); }
.tcal-pan.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--tc-line); }
.tcal-pan__d { font-family: var(--tc-num); font-size: 18px; font-weight: 500; line-height: 1; color: var(--day, var(--tc-ink)); }
.tcal-pan.is-empty .tcal-pan__d { color: #b3a7ad; }
.tcal-grid td.is-past .tcal-pan__d { opacity: .55; }
.tcal-pan__today { position: absolute; top: 7px; right: 7px; padding: 1px 5px; border-radius: 999px; background: var(--tc-ink); color: #fff; font-size: 9px; font-weight: 700; line-height: 1.5; }
.tcal-grid td.is-today .tcal-pan { box-shadow: inset 0 0 0 2px var(--tc-ink); }
.tcal-pan__n { margin-top: auto; font-size: 13px; font-weight: 700; line-height: 1.2; }
.tcal-pan__n small { margin-left: 1px; font-size: 9px; font-weight: 400; }
.tcal-pan__dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.tcal-pan__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.tcal-grid td.is-selected .tcal-pan { background: var(--tc-ink); color: #fff; }
.tcal-grid td.is-selected .tcal-pan__d { color: #fff; }
/* Each day: the count, a dot when events start and a ring when one ends. */
.tcal-pan__foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.tcal-pan__foot .tcal-pan__n { margin-top: 0; }
.tcal-pan__marks { display: flex; gap: 3px; }
.tcal-grid i.is-start, .tcal-grid i.is-end, .tcal-legend i.is-start, .tcal-legend i.is-end { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.tcal-grid i.is-start, .tcal-legend i.is-start { background: var(--tc-rose); }
.tcal-grid i.is-end, .tcal-legend i.is-end { box-shadow: inset 0 0 0 1.5px var(--tc-ink); }
.tcal-grid td.is-selected i.is-end { box-shadow: inset 0 0 0 1.5px #fff; }
#tcal-page .tcal-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 4px 0; font-size: 12px; color: var(--tc-sub); }
.tcal-legend span { display: inline-flex; align-items: center; gap: 5px; }
#tcal-app[aria-busy="true"] .tcal-board, #tcal-app[aria-busy="true"] .tcal-list { opacity: .45; }

/* Kind and state labels */
.tcal-cat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tcal-cat::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tcal-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.tcal-badge.is-open { background: var(--tc-rose); color: #fff; }
.tcal-badge.is-soon { background: var(--tc-blush); color: var(--tc-rose-ink); }
.tcal-badge.is-ended { background: #f1edef; color: var(--tc-sub); }
.tcal-badge.is-cancelled { background: var(--tc-ink); color: #fff; }
.tcal-badge.is-postponed { background: #fdf0d9; color: #7a4d00; }
.tcal-badge.is-trade { background: #eef1f6; color: #34496b; }
.tcal-badge.is-released { background: #f1edef; color: var(--tc-sub); }
.tcal-badge.is-genre { background: #eef1f7; color: #2e4a75; }

/* Filters: area, kind, then genre and yes/no conditions; each chip shows how many items it would leave. */
.tcal-filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; padding: 14px 16px; border-radius: 16px; background: #faf7f8; }
.tcal-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tcal-filters__label { flex: none; width: 3em; font-size: 12px; font-weight: 700; color: var(--tc-sub); }
#tcal-page .tcal-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--tc-ink); text-decoration: none; white-space: nowrap; }
.tcal-chip:hover { border-color: #dcc3cd; }
.tcal-chip small { font-size: 11px; font-weight: 500; color: var(--tc-sub); }
#tcal-page .tcal-chip[aria-current] { border-color: var(--tc-ink); background: var(--tc-ink); color: #fff; }
.tcal-chip[aria-current] small { color: #f6c9da; }
.tcal-chip[aria-current] .tcal-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.tcal-filters .tcal-genres { flex: none; display: inline-flex; gap: 2px; margin: 0; padding: 2px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff; }
.tcal-filters .tcal-genres a { padding: 5px 12px; border: 0; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tcal-filters .tcal-genres a[aria-current] { background: var(--tc-blush); color: var(--tc-rose-ink); }
.tcal-filters .tcal-filter { display: contents; }
.tcal-filters .tcal-toggle span { min-height: 34px; white-space: nowrap; }
@media (max-width: 600px) {
  .tcal-filters { padding: 12px; }
  .tcal-filters__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tcal-filters__row::-webkit-scrollbar { display: none; }
}

/* The list as cards: two columns where they fit. The script shows a batch at a time as the reader scrolls. */
#tcal-page .tcal-lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
#tcal-page .tcal-lcards > li { margin: 0; padding: 0; border: 0; list-style: none; }
.tcal-lcard[hidden], .tcal-lgroup[hidden] { display: none !important; }
/* The brand and title link covers the card (its ::after); the place button sits above it. */
.tcal-lcard__box { position: relative; display: flex; gap: 12px; height: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--tc-line); border-radius: 16px; background: #fff; color: var(--tc-ink); transition: border-color .15s, box-shadow .15s; }
.tcal-lcard__box:hover { border-color: #e7b3c6; box-shadow: 0 10px 22px -18px rgba(163, 17, 74, .6); }
#tcal-page .tcal-lcard__link { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.tcal-lcard__link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tcal-lcard__link:focus-visible { outline: none; }
.tcal-lcard__link:focus-visible::after { outline: 2px solid var(--tc-rose-ink); outline-offset: 2px; }
.tcal-lcard__line { position: relative; display: block; min-width: 0; }
#tcal-page .tcal-place { position: relative; z-index: 1; display: block; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 11px; line-height: 1.5; color: var(--tc-sub); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
#tcal-page .tcal-place.is-cut { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.tcal-place__tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(280px, 80vw, 100%); box-sizing: border-box; overflow-wrap: anywhere; padding: 7px 10px; border-radius: 8px; background: var(--tc-ink); color: #fff; font-size: 12px; line-height: 1.5; white-space: normal; box-shadow: 0 8px 18px -10px rgba(42, 33, 38, .6); opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.tcal-place__tip::after { content: ""; position: absolute; top: 100%; left: 14px; border: 6px solid transparent; border-top-color: var(--tc-ink); }
.tcal-place.is-cut:hover + .tcal-place__tip, .tcal-place.is-cut:focus-visible + .tcal-place__tip, .tcal-place.is-open + .tcal-place__tip { opacity: 1; visibility: visible; }
.tcal-lcard__thumb { flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 12px; background: var(--tc-blush); }
.tcal-lcard__thumb.is-empty { background: color-mix(in srgb, var(--c, #d52166) 16%, #fff); }
#tcal-page .tcal-lcard__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.tcal-lcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tcal-lcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11px; font-weight: 700; color: var(--tc-sub); }
.tcal-lcard__tag { padding: 0 7px; border-radius: 999px; background: #f4eef1; font-size: 10px; line-height: 1.7; }
.tcal-lcard__top .tcal-wbadge { margin-left: auto; }
.tcal-lcard__brand { font-size: 15px; font-weight: 700; line-height: 1.4; }
.tcal-lcard__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; line-height: 1.5; }
.tcal-lcard__meta { font-size: 11px; line-height: 1.5; color: var(--tc-sub); }
.tcal-lcard__left { margin-left: 6px; color: var(--tc-rose-ink); }
.tcal-lcard__cond { font-size: 11px; font-weight: 700; color: #195c56; }
.tcal-lgroup + .tcal-lgroup { margin-top: 8px; }
.tcal-more { display: block; margin: 16px auto 0; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--tc-blush); font: inherit; font-size: 13px; font-weight: 700; color: var(--tc-rose-ink); cursor: pointer; }
@media (max-width: 600px) {
  .tcal-lcard__thumb { width: 68px; height: 68px; }
}

/* Compact month list */
#tcal-page .tcal-list h2, #tcal-page .tcal-related h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 17px; font-weight: 700; }
.tcal-list h2 span { font-size: 12px; font-weight: 400; color: var(--tc-sub); }
.tcal .tcal-rows { margin: 0; padding: 0; border-top: 1px solid var(--tc-line); }
.tcal .tcal-rows > li { margin: 0; list-style: none; border-bottom: 1px solid var(--tc-line); }
.tcal-row a { display: grid; grid-template-columns: 4.4em 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 6px; text-decoration: none; transition: background .15s; }
.tcal-row__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--tc-pan); }
#tcal-page .tcal-row__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.tcal-row__thumb.is-empty { position: relative; background: var(--tc-lv1); box-shadow: inset 0 -8px 12px -10px rgba(42, 33, 38, .25); }
.tcal-row__thumb.is-empty::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .7; }
.tcal-row a:hover { background: #fcf6f8; }
.tcal-row__date { line-height: 1.15; white-space: nowrap; }
.tcal-row__date b { display: block; font-family: var(--tc-num); font-size: 18px; font-weight: 600; }
.tcal-row__date small { font-size: 11px; color: var(--tc-sub); }
.tcal-row__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 700; line-height: 1.5; }
.tcal-row a:hover .tcal-row__title { color: var(--tc-rose-ink); }
.tcal-row__meta { display: flex; gap: 8px; margin-top: 2px; overflow: hidden; font-size: 12px; color: var(--tc-sub); white-space: nowrap; }
.tcal-row__meta > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tcal-row.is-ended a, .tcal-row.is-cancelled a { opacity: .6; }
#tcal-page .tcal-list__group { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--tc-sub); }
#tcal-page .tcal-list h2 + .tcal-list__group { margin-top: 14px; }
.tcal-list__group span { font-size: 12px; font-weight: 400; }
.tcal-row__date.is-carried small { display: block; margin-bottom: 1px; }
.tcal-row__date.is-carried b { font-size: 16px; }
.tcal-subscribe { margin: 18px 0 0; font-size: 13px; }
.tcal-subscribe a, .tcal-back a, .tcal-ev__page a, .tcal-day__close a { color: var(--tc-rose-ink); text-decoration: underline; text-underline-offset: 3px; }
.tcal-empty { margin: 16px 0; padding: 18px; border-radius: 14px; background: var(--tc-pan); font-size: 14px; color: var(--tc-sub); }

/* Event cards (day view, brand pages) */
.tcal-card { margin: 0 0 10px; }
.tcal-card__link { display: block; padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tcal-card__link:hover { border-color: #e6b7c9; box-shadow: 0 10px 24px -18px rgba(163, 17, 74, .6); }
.tcal-card__link.has-media { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.tcal-card__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--tc-pan); }
#tcal-page .tcal-card__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.tcal-card__body { display: block; min-width: 0; }
.tcal-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
#tcal-page .tcal-card__title { margin: 6px 0 0; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 700; line-height: 1.5; }
.tcal-card__link:hover .tcal-card__title { color: var(--tc-rose-ink); }
.tcal-card__brand { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .06em; color: var(--tc-sub); }
.tcal-card__info { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 13px; }
.tcal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tcal-tags span { padding: 1px 9px; border-radius: 999px; background: #f6f1f3; font-size: 11px; line-height: 1.8; }
.tcal-card.is-ended .tcal-card__link, .tcal-card.is-cancelled .tcal-card__link { background: #fcfbfb; }

/* Day view */
.tcal-day { margin: 0 0 32px; }
.tcal-day__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: center; margin: 0 0 16px; }
.tcal .tcal-day__date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0; border-radius: 16px; background: var(--tc-lv2); box-shadow: inset 0 -10px 14px -12px rgba(42, 33, 38, .3); line-height: 1; }
.tcal-day__date b { font-family: var(--tc-num); font-size: 22px; font-weight: 600; }
.tcal-day__date span { margin-top: 4px; font-size: 11px; }
#tcal-page .tcal-day__head h2 { margin: 0; padding: 0; border: 0; background: none; font-size: 18px; font-weight: 700; line-height: 1.4; }
.tcal .tcal-day__count { margin: 0; font-size: 12px; color: var(--tc-sub); }
.tcal-day__close { margin: 16px 0 0; font-size: 13px; }
.tcal-modal .tcal-day__close { display: none; }
.tcal-day h2:focus, .tcal-ev__title:focus { outline: none; }

/* Event detail: an invitation card with the dates set large */
.tcal-ev { margin: 6px 0 0; }
.tcal .tcal-ev__figure { margin: 0 0 14px; }
#tcal-page .tcal-ev__img { display: block; width: 100%; height: auto; max-height: 440px; margin: 0; object-fit: contain; border-radius: 20px; background: var(--tc-pan); }
.tcal-ev__figure figcaption { margin-top: 6px; font-size: 11px; color: var(--tc-sub); text-align: right; }
#tcal-page .tcal-modal .tcal-ev__img { max-height: 280px; }
.tcal-ev__hero { position: relative; padding: 26px 26px 24px; border-radius: 22px; background: var(--tc-blush); }
.tcal-ev__hero::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(213, 33, 102, .22); border-radius: 16px; pointer-events: none; }
.tcal .tcal-ev__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
.tcal .tcal-ev__dates { display: flex; align-items: flex-end; gap: 14px; margin: 16px 0 6px; line-height: .9; }
.tcal-ev__dates span { display: flex; align-items: flex-end; gap: 6px; }
.tcal-ev__dates b { font-family: var(--tc-num); font-size: 54px; font-weight: 500; letter-spacing: -.02em; }
.tcal-ev__dates small { padding-bottom: 6px; font-size: 13px; color: var(--tc-sub); }
.tcal-ev__dates i { width: 26px; height: 1px; margin-bottom: 24px; background: var(--tc-ink); }
.tcal .tcal-ev__span { margin: 0; font-size: 13px; color: var(--tc-sub); }
#tcal-page .tcal-ev__title { margin: 14px 0 0; padding: 0; border: 0; background: none; font-size: 22px; font-weight: 700; line-height: 1.45; }
.tcal .tcal-ev__by { margin: 6px 0 0; font-size: 13px; letter-spacing: .05em; color: var(--tc-sub); }
.tcal-ev.is-cancelled .tcal-ev__dates b { text-decoration: line-through; text-decoration-thickness: 2px; }
.tcal .tcal-ev__notice { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--tc-ink); background: #f6f3f4; font-weight: 700; }
.tcal .tcal-ev__lead { margin: 20px 0 0; font-size: 15px; line-height: 1.9; }
.tcal .tcal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tcal-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--tc-ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.tcal-btn:hover { background: var(--tc-blush); }
.tcal-btn--primary { background: var(--tc-ink); color: #fff !important; }
.tcal-btn--primary:hover { background: var(--tc-rose-ink); border-color: var(--tc-rose-ink); }
.tcal .tcal-facts { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); margin: 24px 0 0; border-top: 1px solid var(--tc-line); font-size: 14px; }
.tcal .tcal-facts dt, .tcal .tcal-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--tc-line); }
.tcal .tcal-facts dt { font-size: 12px; font-weight: 700; color: var(--tc-sub); letter-spacing: .08em; }
.tcal-facts dd small { display: block; font-size: 12px; color: var(--tc-sub); }
.tcal .tcal-facts dd.tcal-tags { margin: 0; }
.tcal .tcal-ev__source { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; font-size: 12px; color: var(--tc-sub); }
.tcal-ev__source a { color: var(--tc-rose-ink); }
.tcal .tcal-note { margin: 8px 0 0; font-size: 12px; color: var(--tc-sub); }
.tcal .tcal-ev__page { margin: 22px 0 0; font-size: 14px; font-weight: 700; }
.tcal-ev__page a::after { content: " →"; }
.tcal-brandbox { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--tc-line); border-radius: 18px; }
.tcal .tcal-brandbox__label { margin: 0; font-size: 11px; letter-spacing: .14em; color: var(--tc-sub); }
.tcal .tcal-brandbox__name { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.tcal .tcal-brandbox__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 13px; }
.tcal-brandbox__links a { color: var(--tc-rose-ink); }
.tcal-related { margin: 40px 0 0; }
.tcal .tcal-back { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; font-size: 13px; }

/* Brand index (unchanged content, lighter frame) */
.tcal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tcal-tabs a { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0 8px; border: 1px solid var(--tc-line); border-radius: 10px; font-size: 13px; text-decoration: none; }
.tcal-tabs a:hover { background: var(--tc-blush); }
.tcal .tcal-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 8px 0 24px; padding: 0; }
.tcal .tcal-brands li { margin: 0; padding: 8px 0; list-style: none; border-bottom: 1px solid var(--tc-line); }

/* Dialog: centred card on wide screens, bottom sheet on phones */
.tcal-modal { width: min(600px, calc(100vw - 32px)); max-width: none; max-height: min(86vh, 900px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--tc-ink); overflow: visible; }
.tcal-modal::backdrop { background: rgba(42, 33, 38, .5); }
.tcal-modal__sheet { display: flex; flex-direction: column; max-height: min(86vh, 900px); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px -30px rgba(42, 33, 38, .6); }
.tcal-modal__bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 6px 10px 6px 14px; border-bottom: 1px solid var(--tc-line); }
.tcal-modal__back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tcal-modal__back[hidden] { display: none; }
.tcal-modal__back:hover { background: var(--tc-blush); }
.tcal-modal__close { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; font-size: 24px; line-height: 1; }
.tcal-modal__close:hover { background: var(--tc-blush); }
.tcal-modal__body { padding: 20px 22px 26px; overflow-y: auto; overscroll-behavior: contain; }
.tcal-modal .tcal-day { margin: 0; }
.tcal-modal .tcal-ev { margin: 0; }
.tcal-modal .tcal-ev__hero { padding: 22px 22px 20px; }
.tcal-modal .tcal-ev__dates b { font-size: 46px; }
#tcal-page .tcal-modal .tcal-ev__title { font-size: 20px; }
.tcal-loading { margin: 24px 0; text-align: center; font-size: 13px; color: var(--tc-sub); }
html.tcal-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .tcal-modal[open] .tcal-modal__sheet { animation: tcal-rise .24s cubic-bezier(.2, .8, .2, 1); }
  .tcal-modal[open]::backdrop { animation: tcal-fade .2s ease-out; }
  .tcal-modal__body > * { animation: tcal-fade .18s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .tcal *, .tcal *::before { transition: none !important; }
}
@keyframes tcal-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes tcal-fade { from { opacity: 0; } }

@media (max-width: 600px) {
  #tcal-page .tcal-title { font-size: 19px; }
  .tcal-board { margin: 0 -6px 28px; padding: 12px 6px 12px; border-radius: 20px; }
  .tcal-board__month b { font-size: 38px; }
  #tcal-page .tcal-grid { width: calc(100% + 6px); margin: 0 -3px; border-spacing: 3px; }
  .tcal-pan { min-height: 56px; padding: 5px 4px 5px 5px; border-radius: 10px; }
  .tcal-pan__d { font-size: 15px; }
  .tcal-pan__today { top: 4px; right: 3px; padding: 0 3px; font-size: 8px; }
  .tcal-pan__n { font-size: 12px; }
  .tcal-pan__n small { font-size: 8px; }
  .tcal-pan__dots { gap: 2px; margin-top: 3px; }
  .tcal-pan__dots i { width: 5px; height: 5px; }
  .tcal-row a { grid-template-columns: 4em 52px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; gap: 2px 10px; padding: 11px 2px; }
  .tcal-row__thumb { grid-column: 2; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 10px; }
  .tcal-card__link.has-media { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .tcal-row__date { grid-column: 1; grid-row: 1; }
  .tcal-row__date.is-carried b { font-size: 14px; }
  .tcal-row__date.is-carried small { font-size: 10px; }
  .tcal-row__main { grid-column: 3; grid-row: 1 / span 2; }
  .tcal-row .tcal-badge { grid-column: 1; grid-row: 2; justify-self: start; padding: 0 6px; font-size: 10px; }
  /* Fade the right edge so the kind chips read as scrollable. */
  .tcal-cats { padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .tcal-ev__hero { padding: 22px 20px 20px; }
  .tcal-ev__dates b { font-size: 44px; }
  #tcal-page .tcal-ev__title { font-size: 19px; }
  .tcal .tcal-facts { grid-template-columns: 5.5em minmax(0, 1fr); }
  .tcal .tcal-brands { grid-template-columns: 1fr; }
  .tcal-modal { width: 100vw; max-height: 92vh; margin: auto 0 0; }
  .tcal-modal__sheet { max-height: 92vh; border-radius: 22px 22px 0 0; }
  .tcal-modal__body { padding: 18px 16px 28px; }
  .tcal-modal .tcal-ev__dates b { font-size: 40px; }
  @media (prefers-reduced-motion: no-preference) {
    .tcal-modal[open] .tcal-modal__sheet { animation: tcal-sheet .28s cubic-bezier(.2, .8, .2, 1); }
  }
}
@keyframes tcal-sheet { from { transform: translateY(40%); opacity: .4; } }

/* Fixed details at the top of a news article (smd_before_content). The theme styles .art__cont p, a and img through
   `.art, #tinymce`, so the box scopes its links to #tcal-box and uses div elements for text. */
#tcal-box { margin: 0 0 28px; font-size: 15px; }
#tcal-box a { color: inherit; text-decoration: none; }
#tcal-box .tcal-ev { margin: 0; }
#tcal-box .tcal-ev__hero { padding: 20px 22px 18px; }
#tcal-box .tcal-ev__dates b { font-size: 46px; }
#tcal-box .tcal-btn--primary { color: #fff; }
#tcal-box .tcal-ev__page a, #tcal-box .tcal-ev__source a { color: var(--tc-rose-ink); text-decoration: underline; text-underline-offset: 3px; }
#tcal-box .tcal-facts { margin-top: 18px; }
@media (max-width: 600px) {
  #tcal-box .tcal-ev__dates b { font-size: 38px; }
}
#tcal-box .tcal-sessions { margin: 14px 0 0; padding: 0; border-top: 1px solid var(--tc-line); }
#tcal-box .tcal-sessions > li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 10px 0; list-style: none; border-bottom: 1px solid var(--tc-line); }
.tcal-sessions__date { font-family: var(--tc-num); font-size: 16px; font-weight: 600; }
.tcal-sessions__place b { display: block; font-size: 14px; }
.tcal-sessions__place small { display: block; font-size: 12px; color: var(--tc-sub); }
#tcal-box .tcal-sessions__map { padding: 4px 12px; border: 1px solid var(--tc-line); border-radius: 999px; font-size: 12px; }

/* Calendar widget (calendar-widget.js): a strip of the next 20 days and the picked day's cards, under news articles
   and on the top page. Wide screens also show it as a sticky rail left of the article; narrower screens get a floating
   button that opens it in the dialog. Inside .art__cont the theme colours links and styles headings and lists with ID
   specificity, hence the #tcal-widget / #tcal-rail / #tcal-wmodal scopes. */
#tcal-widget { max-width: 650px; margin: 36px auto 28px; padding: 18px 18px 16px; border: 1px solid var(--tc-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -32px rgba(163, 17, 74, .5); }
#tcal-widget .tcal-widget__title { margin: 0 0 12px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; }
#tcal-widget a, #tcal-rail a, #tcal-wmodal .tcal-widget a { color: inherit; text-decoration: none; }
.tcal-widget__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tcal-widget__tabs { display: inline-flex; padding: 2px; border-radius: 999px; background: #f4eef1; }
.tcal-widget__tabs a { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--tc-sub) !important; }
.tcal-widget__tabs a[aria-current] { background: #fff; color: var(--tc-ink) !important; box-shadow: 0 2px 6px -3px rgba(42, 33, 38, .35); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) a.tcal-widget__month { font-size: 12px; font-weight: 700; color: var(--tc-rose-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Date strip: always scrollable, with a visible bar, on every screen. */
.tcal-strip { margin: 0 -4px; padding: 2px 4px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #e7b3c6 #f6eef2; }
.tcal-strip::-webkit-scrollbar { height: 6px; }
.tcal-strip::-webkit-scrollbar-track { border-radius: 3px; background: #f6eef2; }
.tcal-strip::-webkit-scrollbar-thumb { border-radius: 3px; background: #e7b3c6; }
.tcal-strip__days { display: flex; gap: 6px; width: max-content; }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-strip__day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 46px; padding: 7px 0 6px; border: 1px solid var(--tc-line); border-radius: 12px; background: #fff; color: var(--tc-ink); }
.tcal-strip__day:hover { border-color: #e7b3c6; }
.tcal-strip__wd { font-size: 10px; font-weight: 700; color: var(--tc-sub); }
.tcal-strip__day.is-sun .tcal-strip__wd { color: #8e0d40; } .tcal-strip__day.is-sat .tcal-strip__wd { color: #234b80; }
.tcal-strip__day.is-today .tcal-strip__wd { color: var(--tc-ink); }
.tcal-strip__day b { font-family: var(--tc-num); font-size: 18px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tcal-strip__n { font-size: 10px; font-weight: 700; line-height: 1; color: var(--tc-rose-ink); }
.tcal-strip__day.is-empty b, .tcal-strip__day.is-empty .tcal-strip__n { color: #b9adb3; }
.tcal-strip__marks { display: flex; gap: 3px; height: 6px; }
.tcal-widget i.is-start, .tcal-widget i.is-end { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.tcal-widget i.is-start { background: var(--tc-rose); }
.tcal-widget i.is-end { box-shadow: inset 0 0 0 1.5px var(--tc-ink); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-strip__day[aria-pressed="true"] { border-color: var(--tc-ink); background: var(--tc-ink); color: #fff; }
.tcal-strip__day[aria-pressed="true"] .tcal-strip__wd, .tcal-strip__day[aria-pressed="true"] .tcal-strip__n { color: #f6c9da; }
.tcal-strip__day[aria-pressed="true"] i.is-end { box-shadow: inset 0 0 0 1.5px #fff; }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-widget__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; padding: 0; font-size: 11px; line-height: 1.5; color: var(--tc-sub); }
.tcal-widget__legend span { display: inline-flex; align-items: center; gap: 4px; }

/* The picked day: up to three cards linking to the articles, and the day's full list (dialog). */
.tcal-wday { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tc-line); transition: opacity .15s; }
.tcal-wday[aria-busy="true"], .tcal-widget[aria-busy="true"] .tcal-wday { opacity: .45; }
.tcal-wday__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tcal-wday__date { font-size: 15px; font-weight: 700; }
.tcal-wday__date small { margin-left: 6px; font-size: 11px; color: var(--tc-rose-ink); }
.tcal-wday__count { font-size: 12px; white-space: nowrap; color: var(--tc-sub); }
.tcal-wday__count b { font-family: var(--tc-num); font-size: 18px; font-weight: 600; color: var(--tc-rose-ink); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wday__empty { margin: 0 0 8px; font-size: 13px; color: var(--tc-sub); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wcards { display: flex; flex-direction: column; gap: 8px; max-height: 400px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #e7b3c6 #f6eef2; }
.tcal-wcards::-webkit-scrollbar { width: 6px; }
.tcal-wcards::-webkit-scrollbar-track { border-radius: 3px; background: #f6eef2; }
.tcal-wcards::-webkit-scrollbar-thumb { border-radius: 3px; background: #e7b3c6; }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wcards__more { padding: 10px; font-size: 12px; text-align: center; color: var(--tc-sub); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wcards li { margin: 0; padding: 0; list-style: none; border: 0; background: none; }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wcards li::before { content: none; }
.tcal-wcard { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--tc-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tcal-wcard:hover { border-color: #e7b3c6; box-shadow: 0 10px 22px -18px rgba(163, 17, 74, .6); }
.tcal-wcard__thumb { flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--tc-blush); }
.tcal-wcard__thumb.is-empty { background: color-mix(in srgb, var(--c, #d52166) 16%, #fff); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) .tcal-wcard__thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.tcal-wcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcal-wcard__top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--tc-sub); }
.tcal-wbadge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #f4eef1; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--tc-sub); }
.tcal-wbadge.is-start { background: var(--tc-rose); color: #fff; }
.tcal-wbadge.is-end { background: var(--tc-ink); color: #fff; }
.tcal-wbadge.is-soon { box-shadow: inset 0 0 0 1px var(--tc-ink); background: #fff; color: var(--tc-ink); }
.tcal-wcard__brand { font-size: 14px; font-weight: 700; line-height: 1.4; }
.tcal-wcard__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; line-height: 1.5; color: var(--tc-ink); }
.tcal-wcard__meta { font-size: 11px; line-height: 1.5; color: var(--tc-sub); }
.tcal-wcard__left { margin-left: 6px; color: var(--tc-rose-ink); }
.tcal-wtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tcal-wtags span { padding: 1px 8px; border-radius: 999px; background: #f4eef1; font-size: 10px; font-weight: 700; line-height: 1.6; color: var(--tc-sub); }
:is(#tcal-widget, #tcal-rail, #tcal-wmodal) a.tcal-wday__all { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; text-align: right; text-decoration: underline; text-underline-offset: 3px; color: var(--tc-rose-ink); }
.tcal-strip__day:focus-visible, .tcal-wcard:focus-visible, .tcal-wday__all:focus-visible, .tcal-widget__tabs a:focus-visible { outline: 3px solid var(--tc-rose-ink); outline-offset: 2px; }

/* Sticky rail: from 1272px the article moves right to make room for a 224px calendar on its left. */
.tcal-rail[hidden] { display: none; }
@media (min-width: 1272px) {
  .tcal-has-widget:not(.tcal-touch) .main__inner { margin-left: max(264px, calc((100% - 650px) / 2)); margin-right: auto; }
  .tcal-has-widget .l-main article.art { position: relative; }
  .tcal-rail { position: absolute; top: 0; bottom: 0; left: -248px; width: 224px; }
  .tcal-rail__sticky { position: sticky; top: 84px; }
  #tcal-rail .tcal-widget { padding: 12px 10px 12px; border: 1px solid var(--tc-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -32px rgba(163, 17, 74, .5); }
  #tcal-rail .tcal-widget__tabs a { padding: 3px 8px; font-size: 11px; }
  /* The rail is narrow: smaller dates, cards without the article title. */
  #tcal-rail .tcal-strip__day { width: 38px; padding: 6px 0 5px; }
  #tcal-rail .tcal-strip__day b { font-size: 15px; }
  #tcal-rail .tcal-wday__date { font-size: 13px; }
  #tcal-rail .tcal-wcard { gap: 8px; padding: 6px; border-radius: 12px; }
  #tcal-rail .tcal-wcard__thumb { width: 44px; height: 44px; border-radius: 8px; }
  #tcal-rail .tcal-wcard__title { display: none; }
  #tcal-rail .tcal-wcard__top { gap: 4px; font-size: 10px; }
  #tcal-rail .tcal-wbadge { padding: 0 6px; font-size: 10px; }
  #tcal-rail .tcal-wcard__brand { font-size: 12px; }
  #tcal-rail .tcal-wcards { max-height: 320px; }
  #tcal-rail .tcal-wday__all { font-size: 11px; }
  .tcal-has-widget:not(.tcal-touch) .tcal-fab { display: none !important; }
  /* The rail gives way to anything drawn over it (ads must never be covered); the button takes over. */
  .tcal-rail-covered .tcal-rail__sticky { visibility: hidden; }
  html.tcal-rail-covered body.tcal-has-widget .tcal-fab { display: inline-flex !important; }
}
.tcal-touch .tcal-rail { display: none !important; }

/* Floating button below 1272px: bottom left, clear of the centred share bar and the fixed sidebar. */
.tcal-fab { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px 0 14px; border-radius: 999px; background: #2a2126; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; box-shadow: 0 12px 28px -12px rgba(42, 33, 38, .7); }
.tcal-fab__icon { flex: none; width: 22px; height: 22px; fill: #f6c9da; }
.tcal-fab__count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: #fdf2f6; color: #a3114a; font-family: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; font-size: 16px; font-weight: 600; }
.tcal-fab:focus-visible { outline: 3px solid #a3114a; outline-offset: 3px; }
.tcal-js .tcal-rail .tcal-widget__title { display: none; }

/* The shared dialog on articles: same sheet as the calendar page. */
.tcal-wmodal { color: #2a2126; }
.tcal-wmodal .tcal-widget.is-dialog { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
.tcal-wmodal #tcal-page .tcal-ev__img { max-height: 280px; }
.tcal-wmodal .tcal-day__close { display: none; }
@media (min-width: 1272px) {
  #tcal-rail .tcal-widget__head { flex-wrap: wrap; justify-content: center; gap: 6px; }
}
/* Phones: the widget spans the column; the article's own margins frame it. */
@media (max-width: 600px) {
  #tcal-widget { padding: 16px 12px 14px; border-radius: 18px; }
  .tcal-wcard__thumb { width: 64px; height: 64px; }
}
/* Phones: the button sits above the fixed share bar (6.5rem) so it never covers its centred icons. */
@media (max-width: 600px) {
  .tcal-fab { bottom: calc(6.5rem + 8px + env(safe-area-inset-bottom)); }
}

/* Top page: between the panel of the newest articles and the article list, as wide as the list. */
#tcal-widget.is-home { max-width: 650px; margin: 32px auto 12px; }
@media (min-width: 601px) {
  #tcal-widget.is-home { padding: 22px 26px 18px; }
  #tcal-widget.is-home .tcal-widget__title { font-size: 17px; }
}
@media (max-width: 600px) {
  #tcal-widget.is-home { margin: 24px 16px 8px; }
}

/* Brand page: the brand's calendar (cards, ended ones folded away), then its articles. */
#tcal-page .tcal-bcal h2 { margin: 28px 0 6px; padding: 0; border: 0; background: none; font-size: 17px; font-weight: 700; }
.tcal-bcal__past { margin-top: 16px; }
.tcal-bcal__past summary { padding: 10px 14px; border-radius: 12px; background: var(--tc-pan); font-size: 13px; font-weight: 700; color: var(--tc-sub); cursor: pointer; }
.tcal-bcal__past[open] summary { margin-bottom: 10px; }
.tcal-bcal__past .tcal-lcard__box { opacity: .8; }
#tcal-page .tcal-brand-note { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #f4eef1; font-size: 13px; font-weight: 700; color: var(--tc-ink); }
#tcal-page .tcal-articles h2 { margin: 36px 0 6px; padding: 0; border: 0; background: none; font-size: 17px; font-weight: 700; }
.tcal-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.tcal-pager a { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 10px; border: 1px solid var(--tc-line); border-radius: 10px; font-size: 13px; text-decoration: none; }
.tcal-pager a[aria-current] { background: var(--tc-ink); border-color: var(--tc-ink); color: #fff; }

/* Monthly search guides use the same typography and focus treatment as the calendar. */
.tcal-seo-intro,.tcal-seo-help p{font-size:14px;line-height:1.9;margin:16px 0 22px}
.tcal-seo-links{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}
.tcal-seo-links a,.tcal-seo-current a{display:inline-block;padding:10px 14px;border:1px solid #ddd;border-radius:4px;color:#333;font-size:13px;line-height:1.6;text-decoration:none}
.tcal-seo-links a:hover,.tcal-seo-links a[aria-current="page"]{border-color:#b42157;background:#fff4f7}
.tcal-seo-links a:focus-visible,.tcal-seo-current a:focus-visible{outline:2px solid #b42157;outline-offset:3px}
.tcal-seo-months h2,.tcal-seo-help h2{font-size:20px;margin:30px 0 16px}
.tcal-seo-months h3{font-size:16px;margin:24px 0 12px}
