/* [ti_month_calendar]: month flight-price calendars, optionally with average temperatures.
   Type, ink, line and radius follow the shared editorial tokens (editorial-guide.css --tig-*),
   with the same fallbacks so the component also works outside a .ti-guide page.
   Tier colours are tints of the brand green 43CB83 / sand F8BE6C / pink ED2893. */
.ti-mcal{
 --mc-ink:var(--tig-ink,#191919);--mc-body:var(--tig-body,#2a2a2a);--mc-muted:var(--tig-muted,#5c5c5c);
 --mc-line:var(--tig-line,#e0e0e0);--mc-line-soft:var(--tig-line-soft,#eee);--mc-radius:var(--tig-radius,12px);
 --mc-pink:var(--tig-pink,#ed2893);--mc-text:var(--tig-text,17px);--mc-small:var(--tig-small,14px);
 --mc-meta:var(--tig-meta,13px);--mc-label:var(--tig-label,11px);--mc-h3:var(--tig-h3,20px);
 --mc-low-bg:#e3f7ec;--mc-low-ink:#0b6436;--mc-low-dot:#43cb83;
 --mc-mid-bg:#fdefd9;--mc-mid-ink:#7a4b06;--mc-mid-dot:#f0a63a;
 --mc-high-bg:#fde3ef;--mc-high-ink:#9c0f55;--mc-high-dot:#ed2893;
 --mc-sun:#f8be6c;--mc-sun-stroke:#e79a2d;
 --mc-cell-h:72px;
 background:#fff;border:1px solid var(--mc-line);border-radius:var(--mc-radius);box-sizing:border-box;color:var(--mc-ink);
 font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,sans-serif;margin:32px 0;max-width:100%;padding:28px;
}
.ti-mcal *,.ti-mcal *:before,.ti-mcal *:after{box-sizing:border-box}
.ti-mcal__head{margin:0 0 20px}
.ti-mcal .ti-mcal__title{color:var(--mc-ink);font-family:inherit;font-size:var(--mc-h3);font-weight:600;letter-spacing:-.2px;line-height:1.25;margin:0 0 6px;text-transform:none}
.ti-mcal__intro,.ti-mcal__note{color:var(--mc-muted);font-size:var(--mc-small);line-height:1.5;margin:0}
.ti-mcal__note{font-size:var(--mc-meta);margin:0 0 12px}

/* Stats strip */
.ti-mcal__stats{border-bottom:1px solid var(--mc-line-soft);border-top:1px solid var(--mc-line-soft);display:grid;gap:0;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 24px;padding:0}
.ti-mcal__stats>div{border-left:1px solid var(--mc-line-soft);min-width:0;padding:12px 12px 14px}
.ti-mcal__stats>div:first-child{border-left:0;padding-left:0}
.ti-mcal__stats dt{color:var(--mc-muted);font-size:var(--mc-label);font-weight:600;letter-spacing:.08em;line-height:1.3;text-transform:uppercase}
.ti-mcal__stats dd{color:var(--mc-ink);font-size:18px;font-weight:600;line-height:1.25;margin:4px 0 0}
.ti-mcal__stats dd span{color:var(--mc-muted);font-size:var(--mc-meta);font-weight:500}

/* Panels */
.ti-mcal__panels{display:grid;gap:32px;grid-template-columns:repeat(2,minmax(0,1fr))}
.ti-mcal__panel{min-width:0}
.ti-mcal .ti-mcal__ptitle{color:var(--mc-ink);font-family:inherit;font-size:16px;font-weight:600;letter-spacing:0;line-height:1.3;margin:0 0 4px;text-transform:none}

/* Calendar tables */
.ti-mcal table.ti-mcal__cal{border:0;border-collapse:separate;border-spacing:4px;margin:0 -4px;table-layout:fixed;width:calc(100% + 8px)}
.ti-mcal__cal th,.ti-mcal__cal td{border:0;font-family:inherit;padding:0;text-align:center;vertical-align:top}
.ti-mcal__cal th{color:var(--mc-muted);font-size:var(--mc-label);font-weight:600;letter-spacing:.06em;line-height:1;padding:0 0 4px;text-transform:uppercase}
.ti-mcal__cal abbr{border:0;cursor:default;text-decoration:none}
.ti-mcal__cal td{border-radius:8px;height:var(--mc-cell-h);position:relative}
.ti-mcal__cal td.is-empty{background:transparent}
.ti-mcal__d{display:block;font-size:var(--mc-small);font-weight:600;line-height:1;padding-top:10px}

/* Prices */
.ti-mcal__cal--prices td.is-low{background:var(--mc-low-bg);color:var(--mc-low-ink)}
.ti-mcal__cal--prices td.is-mid{background:var(--mc-mid-bg);color:var(--mc-mid-ink)}
.ti-mcal__cal--prices td.is-high{background:var(--mc-high-bg);color:var(--mc-high-ink)}
.ti-mcal__cal--prices .ti-mcal__d{font-size:18px;padding-top:16px}
.ti-mcal__dots{display:inline-flex;gap:3px;justify-content:center}
.ti-mcal__cal .ti-mcal__dots{display:flex;margin-top:10px}
.ti-mcal__dots i{background:currentColor;border-radius:50%;display:block;flex:0 0 5px;height:5px;margin:0!important;padding:0;width:5px}
.ti-mcal ul.ti-mcal__legend{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:12px 0 0!important;padding:0!important}
.ti-mcal ul.ti-mcal__legend li{align-items:center;border-radius:20px;display:inline-flex;font-size:12px;gap:6px;line-height:1.2;list-style:none;margin:0;padding:6px 10px;white-space:nowrap}
.ti-mcal ul li:before,.ti-mcal ul li:after{content:none;display:none}
.ti-mcal__legend b{font-weight:600}
.ti-mcal__legend .is-low{background:var(--mc-low-bg);color:var(--mc-low-ink)}
.ti-mcal__legend .is-mid{background:var(--mc-mid-bg);color:var(--mc-mid-ink)}
.ti-mcal__legend .is-high{background:var(--mc-high-bg);color:var(--mc-high-ink)}
.ti-mcal__peaks{color:var(--mc-body);font-size:var(--mc-meta);line-height:1.5;margin-top:14px}
.ti-mcal__peaks strong{color:var(--mc-ink);display:block;font-size:var(--mc-label);font-weight:700;letter-spacing:.08em;margin-bottom:4px;text-transform:uppercase}
.ti-mcal .ti-mcal__peaks ul{list-style:none;margin:0!important;padding:0!important}
.ti-mcal .ti-mcal__peaks li{font-size:var(--mc-small);line-height:1.5;list-style:none;margin:0 0 3px;padding:0}

/* Month caption (multi-month and prices-only calendars) */
.ti-mcal table.ti-mcal__cal caption.ti-mcal__caption{caption-side:top;color:var(--mc-ink);font-family:inherit;font-size:18px;font-weight:700;letter-spacing:-.2px;line-height:1.2;padding:0 4px 10px;text-align:left}
.ti-mcal__panel .ti-mcal__cal+.ti-mcal__cal{margin-top:20px}

/* Prices-only mode: months side by side, legend below spanning both */
.ti-mcal--prices .ti-mcal__head{margin-bottom:22px}
.ti-mcal--prices .ti-mcal__intro+.ti-mcal__intro{margin-top:4px}
.ti-mcal--prices .ti-mcal__panels.is-single{grid-template-columns:minmax(0,520px)}
.ti-mcal--prices .ti-mcal__cal--prices td{height:60px}
.ti-mcal--prices .ti-mcal__cal--prices .ti-mcal__d{padding-top:13px}
.ti-mcal--prices ul.ti-mcal__legend{margin-top:20px}
.ti-mcal--prices .ti-mcal__peaks ul{columns:2;column-gap:32px}
.ti-mcal--prices .ti-mcal__peaks li{break-inside:avoid}

/* Weather */
.ti-mcal__cal--weather td:not(.is-empty){background:#fbf8f3;color:var(--mc-ink)}
.ti-mcal__cal--weather .ti-mcal__d{color:var(--mc-muted);font-size:11px;font-weight:500;left:6px;padding:0;position:absolute;top:6px}
.ti-mcal__sun{display:block;fill:var(--mc-sun);height:14px;position:absolute;right:5px;stroke:var(--mc-sun-stroke);stroke-linecap:round;stroke-width:1.8;top:5px;width:14px}
.ti-mcal__cal--weather td:not(.is-empty){padding-top:24px}
.ti-mcal__hi{display:block;font-size:17px;font-weight:600;line-height:1.1;white-space:nowrap}
.ti-mcal__c{font-size:.62em;font-weight:500;margin-left:1px;position:relative;top:-.45em}
.ti-mcal__f,.ti-mcal__lo{color:var(--mc-muted);display:block;font-size:10px;line-height:1.3}
.ti-mcal__f{display:none}

.ti-mcal__src{border-top:1px solid var(--mc-line-soft);color:var(--mc-muted);font-size:12px;line-height:1.5;margin:24px 0 0;padding-top:12px}
.ti-mcal__src a{color:var(--mc-muted)!important;text-decoration:underline;text-underline-offset:2px}
.ti-mcal .ti-mcal__sr{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px!important;margin:-1px;overflow:hidden;padding:0;position:absolute!important;white-space:nowrap;width:1px!important}

@media(min-width:1100px){.ti-mcal__f{display:block}.ti-mcal{--mc-cell-h:84px}}
@media(max-width:899px){
 .ti-mcal__panels{gap:28px;grid-template-columns:1fr}
 .ti-mcal--prices .ti-mcal__peaks ul{columns:1}
 .ti-mcal__f{display:block}
 .ti-mcal{--mc-cell-h:84px}
}
@media(max-width:600px){
 .ti-mcal{border-left:0;border-radius:0;border-right:0;padding:22px 0}
 .ti-mcal__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ti-mcal__stats>div{border-left:0;border-top:1px solid var(--mc-line-soft);padding:10px 0}
 .ti-mcal__stats>div:nth-child(-n+2){border-top:0}
 .ti-mcal__stats>div:nth-child(even){padding-left:12px}
 .ti-mcal table.ti-mcal__cal{border-spacing:3px;margin:0 -3px;width:calc(100% + 6px)}
 .ti-mcal{--mc-cell-h:76px}
 .ti-mcal__cal--prices td,.ti-mcal--prices .ti-mcal__cal--prices td{height:54px}
 .ti-mcal--prices .ti-mcal__cal--prices .ti-mcal__d{padding-top:12px}
 .ti-mcal__cal--prices .ti-mcal__d{font-size:16px;padding-top:12px}
 .ti-mcal__cal .ti-mcal__dots{margin-top:8px}
 .ti-mcal__cal--weather .ti-mcal__d{left:4px;top:4px;font-size:10px}
 .ti-mcal__sun{height:11px;right:3px;top:4px;width:11px}
 .ti-mcal__cal--weather td:not(.is-empty){padding-top:20px}
 .ti-mcal__hi{font-size:15px}
 .ti-mcal__f,.ti-mcal__lo{font-size:9.5px}
}
