/*
Theme Name: TIGA243
Theme URI: https://tiga243.com
Author: 2null1
Author URI: https://2null1.com
Description: The theme of tiga243.com: the home page, the shop, the race calendar, the plain pages, the e-mails and the shop manager's admin, in English and Slovenian. No page builder, no SEO plugin. The home page and the shell (header pills, menu, footer) are generated from site/ in the project, see theme/build_home.py and theme/README.md.
Version: 0.9.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: tiga243
*/

/* What every page that is not the home page adds to the home page's stylesheet (assets/css/site.css, loaded first:
   tokens, type, buttons, the header pills, the menu and the footer come from there).
   Also loaded on the home page, for the cookie bar at the end of this file. */

/* ===== The page: a navy head under the floating pills, then the content on white ===== */
.pg{display:block;background:var(--ground)}
.pg__head{background:var(--band);color:var(--band-ink);padding:clamp(132px,21vh,204px) 0 clamp(36px,6.5vh,68px)}
.pg__head .t-kicker{display:block;margin-bottom:14px;color:var(--kicker-on-band)}
.pg__title{font-size:clamp(44px,8.2vw,116px);line-height:.9;letter-spacing:-.005em}
.pg__body{padding:clamp(40px,7vh,84px) 0 clamp(72px,11vh,128px)}
.pg__wide{min-width:0}
.pg__actions{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:32px}

/* running text: the legal pages. One readable column, the site's type */
.pg__text{max-width:760px;color:var(--ink-muted)}
.pg__text > :first-child{margin-top:0}
.pg__text h2,.pg__text h3,.pg__text h4{font-family:var(--font-display);font-weight:700;text-transform:uppercase;line-height:1.05;color:var(--ink);text-wrap:balance}
.pg__text h2{margin:56px 0 16px;font-size:clamp(26px,3.2vw,36px)}
.pg__text h3{margin:40px 0 12px;font-size:22px;letter-spacing:.02em}
.pg__text h4{margin:32px 0 10px;font-size:17px;letter-spacing:.08em}
.pg__text p,.pg__text ul,.pg__text ol{margin:0 0 18px}
.pg__text ul,.pg__text ol{padding-left:1.25em}
.pg__text li{margin-bottom:6px}
.pg__text strong,.pg__text b{color:var(--ink);font-weight:600}
.pg__text a:not(.t-btn){color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pg__text a:not(.t-btn):hover{text-decoration-thickness:2px}
.pg__text table{width:100%;margin:0 0 24px;border-collapse:collapse;font-size:15px}
.pg__text th,.pg__text td{padding:10px 12px 10px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.pg__text th{font-family:var(--font-display);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
/* Returns page: the three forms as cards at the top (client, 1 Dec 2026: "easy to find") */
.pg__text .rt-forms{display:grid;gap:14px;margin:8px 0 40px}
.pg__text .rt-form{border:1px solid var(--line);border-left:4px solid var(--accent);padding:20px 22px;display:grid;gap:10px}
.pg__text .rt-form h3{margin:0;font-size:20px}
.pg__text .rt-form p{margin:0}
.pg__text .rt-form .t-btn{padding:14px 22px;margin-top:4px;max-width:100%;box-sizing:border-box;line-height:1.3}
.pg__text .rt-form small{display:block;margin-top:8px;color:var(--ink-muted);font-size:13px}   /* WordPress wraps the button and this line in one <p> */
@media (max-width:700px){
  .pg__head{padding:124px 0 32px}
  .pg__text h2{margin-top:44px}
}

/* The footer's last word is an outline that the scroll fills in on the home page. Here nothing is tied to the scroll,
   so it stands filled */
.tiga-page .ff__h span{color:#ffffff;-webkit-text-stroke:0}

/* ===== Cookie bar (CookieYes): a navy card at the foot of the screen in the site's type, in place of the plugin's
   white strip across the page. The plugin writes its colours inline, hence !important. ===== */
#cookie-law-info-bar{left:auto !important;right:max(16px,2vw) !important;bottom:max(16px,2vw) !important;width:min(440px,calc(100vw - 32px)) !important;box-sizing:border-box;padding:22px 24px 20px !important;border-radius:20px;background:var(--band,#06173f) !important;color:var(--band-ink,#fff) !important;box-shadow:0 18px 48px #06173f55 !important;font:400 15px/1.5 Barlow,system-ui,sans-serif !important;text-align:left !important}
#cookie-law-info-bar span{display:block}
#cookie-law-info-bar a{color:#fff !important}
#cookie-law-info-bar .cli-plugin-button,#cookie-law-info-bar .cli-plugin-main-link{font:700 13px/1 Rajdhani,system-ui,sans-serif !important;letter-spacing:.14em;text-transform:uppercase}
#cookie-law-info-bar .cli-plugin-button{display:inline-block !important;margin:16px 10px 0 0 !important;padding:14px 22px 12px !important;border-radius:0 !important;background:var(--accent,#0a2d82) !important;color:#fff !important;text-decoration:none !important}
#cookie-law-info-bar .cli-plugin-button:hover{background:#fff !important;color:var(--band,#06173f) !important}
#cookie-law-info-again{display:none !important} /* the plugin's own "manage consent" tab: the footer has "Cookie settings" */

/* ===== Home page, shop section: the real products (inc/home-shop.php). The tabs are buttons; the cards' photos
   are cut out on white, so they sit on the tinted ground; flags and prices as in the shop ===== */
.sh__tabs button.t-chip{font-family:var(--font-display);cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease}
.sh__tabs button.t-chip:not(.t-chip--on):hover{border-color:var(--ink)}
.sh__grid[hidden]{display:none}
.sh .t-pc{align-content:start}   /* name and price right under the photo, with or without a row of sizes */
.sh .t-pc__img img{object-fit:contain;mix-blend-mode:multiply}
.sh .t-pc__badge{text-transform:uppercase}
.sh .t-pc__badge--new{background:var(--accent);color:var(--on-accent)}
.sh .t-pc__badge--out{background:#ffffffe6;color:var(--ink)}
.sh .t-pc__price del{margin-right:6px;font-weight:500;color:var(--ink-muted)}
.sh .t-pc__price ins{text-decoration:none;color:var(--signal)}
.sh .t-pc__price .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sh .t-pc__from{white-space:nowrap}

/* ===== Header pill: the cart count beside "Shop" (inc/cart.php), a small red dot with the number ===== */
.hdr__cart{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:-4px;padding:0 6px;border-radius:12px;background:var(--signal);color:#fff;font-family:var(--font-display);font-weight:700;font-size:13px;line-height:1;text-decoration:none;transition:transform .2s ease}
.hdr__cart:hover{transform:scale(1.1)}
.hdr__cart[hidden]{display:none}

/* the shop's own pages (cart, checkout, account): slim strip with a modest title */
.tsc__head{padding-bottom:28px}
.tsc__title{margin:14px 0 0;font-family:var(--font-display);font-weight:700;font-size:clamp(36px,4.4vw,60px);line-height:.95;text-transform:uppercase;color:#fff}

/* ===== Race calendar page (templates/calendar.php): one row per round. The next race stands out (white card, red
   dot, as the card on the home page); rounds that are over are dimmed; cancelled ones struck through ===== */
.rc{background:var(--ground-alt)}
.rc__top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 32px;margin-bottom:clamp(24px,4vh,40px)}
.rc__lead{margin:0;font-size:18px;color:var(--ink-muted)}
.rc__lead strong{color:var(--ink);font-weight:600}
.rc__year{margin:48px 0 16px;font-size:clamp(28px,3.4vw,40px);color:var(--ink)}
.rc__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.rc__race{display:grid;grid-template-columns:56px 190px minmax(0,1fr) minmax(0,240px) 140px;align-items:center;gap:0 20px;padding:18px 20px;border-bottom:1px solid var(--line);color:var(--ink)}
.rc__rd{font-family:var(--font-display);font-weight:700;font-size:14px;letter-spacing:.14em;color:var(--ink-muted)}
.rc__when{font-family:var(--font-display);font-weight:600;font-size:17px;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.rc__name{font-family:var(--font-display);font-weight:700;font-size:clamp(19px,1.7vw,24px);line-height:1.05;letter-spacing:.02em;text-transform:uppercase}
.rc__name a{color:inherit;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;transition:background-size .25s ease}
.rc__name a:hover,.rc__name a:focus-visible{background-size:100% 2px}
.rc__place{font-size:15px;color:var(--ink-muted)}
.rc__flag{display:inline-block;width:20px;height:15px;margin:0 8px 0 0;vertical-align:-2px;border-radius:2px;box-shadow:0 0 0 1px #06173f1f}
.rc__state{justify-self:end;display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:700;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-muted);white-space:nowrap}
.rc__race.is-next{position:relative;z-index:1;margin:-1px -8px 0;padding:24px 28px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 24px #06173f14}
.rc__race.is-next .rc__name{font-size:clamp(24px,2.4vw,34px);color:var(--accent)}
.rc__race.is-next .rc__state{color:var(--signal)}
.rc__race.is-next .rc__state i{width:7px;height:7px;border-radius:50%;background:var(--signal)}
.rc__race.is-over > :not(.rc__state){opacity:.45}
.rc__race.is-off .rc__name,.rc__race.is-off .rc__when{text-decoration:line-through;text-decoration-thickness:2px;color:var(--ink-muted)}
.rc__race.is-off .rc__state{color:var(--signal)}
.rc__note{margin:28px 0 0;max-width:640px;font-size:14px;color:var(--ink-muted)}
@media (max-width:900px){
  .rc__race{grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"rd when state" "rd name name" "rd place place";gap:4px 14px;padding:16px 4px}
  .rc__rd{grid-area:rd;align-self:start;padding-top:2px}
  .rc__when{grid-area:when;font-size:15px}
  .rc__name{grid-area:name}
  .rc__place{grid-area:place;font-size:14px}
  .rc__state{grid-area:state;font-size:11px;letter-spacing:.16em}
  .rc__race.is-next{margin:-1px -10px 0;padding:18px 14px}
}

/* Tim's result at a GP that is over: the place in display type, "overall" under it; a win in gold with the cup,
   a podium in the jersey blue */
.rc__res{display:inline-grid;grid-template-columns:auto auto;align-items:center;column-gap:8px;letter-spacing:0;text-transform:none}
.rc__res b{font-family:var(--font-display);font-weight:700;font-size:28px;line-height:1;letter-spacing:.01em;color:var(--ink)}
.rc__res small{grid-column:1 / -1;justify-self:end;font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-muted)}
.rc__res.is-pod b{color:var(--accent)}
.rc__res.is-win b{color:var(--gold)}
.rc__cup{width:24px;height:24px;fill:var(--gold)}
.rc__res:has(.rc__cup) small{grid-column:1 / -1}
.rc__race.is-over:has(.rc__res) > :not(.rc__state){opacity:.62}   /* a race with a result is history, not noise */

/* Hover: a red bar grows on the left, the row turns white, the name steps in and turns blue */
.rc__race{position:relative;transition:background-color .25s ease}
.rc__race::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:2px;background:var(--signal);transform:scaleY(0);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.rc__name{transition:transform .3s cubic-bezier(.2,.7,.2,1),color .25s ease}
.rc__rd{transition:color .25s ease}
@media (hover:hover){
  .rc__race:not(.is-next):hover{background:#ffffffb3}
  .rc__race:hover::before{transform:scaleY(1)}
  .rc__race:not(.is-off):hover .rc__name{transform:translateX(10px);color:var(--accent)}
  .rc__race:hover .rc__rd{color:var(--signal)}
  .rc__race.is-over:hover > *{opacity:1}
  .rc__race.is-next{transition:box-shadow .3s ease,transform .3s cubic-bezier(.2,.7,.2,1)}
  .rc__race.is-next:hover{box-shadow:0 14px 36px #06173f24}
  .rc__race.is-next::before{display:none}
}

/* Scroll: each row rises into place as it comes up the screen, the number and the name a step behind it; the big
   title drifts up and fades as the page leaves it. Tied to the scroll position (no timers), like the home page.
   Browsers without scroll-linked animations show the page as it is. The motion uses translate, so it never fights
   the hover (transform) or the dimming of past rounds (opacity of the cells). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rc__race{animation:rc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 90%}
    .rc__race .rc__name{animation:rc-step linear both;animation-timeline:view();animation-range:entry 10% entry 100%}
    .rc__race .rc__rd{animation:rc-slide linear both;animation-timeline:view();animation-range:entry 20% entry 100%}
    .rc__race .rc__res{animation:rc-pop linear both;animation-timeline:view();animation-range:entry 40% cover 30%}
    .page-template-templatescalendar-php .pg__head .wrap{animation:rc-lift linear both;animation-timeline:scroll(root);animation-range:0 60vh}
  }
}
@keyframes rc-rise{from{opacity:0;translate:0 56px}to{opacity:1;translate:none}}
@keyframes rc-step{from{translate:-28px 0}to{translate:none}}
@keyframes rc-slide{from{translate:0 14px}to{translate:none}}
@keyframes rc-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes rc-lift{to{opacity:.15;translate:0 -40px}}
@media (max-width:900px){.rc__res b{font-size:22px}.rc__cup{width:18px;height:18px}}

/* Seasons that are not the current one: closed rows under it, newest first (<details>), opened on a click */
.rc__year--now{margin-top:0}
.rc__season{border-bottom:1px solid var(--line)}
.rc__season:first-of-type{margin-top:clamp(40px,7vh,72px);border-top:1px solid var(--line)}
.rc__season summary{display:flex;align-items:baseline;gap:20px;padding:22px 20px;cursor:pointer;list-style:none;transition:background-color .25s ease}
.rc__season summary::-webkit-details-marker{display:none}
.rc__season summary .rc__year{margin:0;font-size:clamp(26px,2.8vw,36px);transition:color .25s ease}
.rc__sum{font-size:15px;color:var(--ink-muted)}
.rc__chev{margin-left:auto;align-self:center;width:12px;height:12px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-3px) rotate(45deg);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.rc__season[open] .rc__chev{transform:translateY(3px) rotate(-135deg)}
.rc__season summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media (hover:hover){.rc__season summary:hover{background:#ffffffb3}.rc__season summary:hover .rc__year{color:var(--accent)}}
.rc__season .rc__list{border-top:0;margin-bottom:24px}
.rc__season[open] summary{border-bottom:1px solid var(--line)}
@media (max-width:900px){.rc__season summary{flex-wrap:wrap;gap:4px 14px;padding:18px 4px}.rc__sum{order:3;flex-basis:100%;font-size:14px}}

/* The circuit beside the pointer (calendar.js): a small white card like the home page's next race card, the
   outline lying tilted and turning, the town under it. Fades in; follows the pointer from the script. */
.rc__tip{position:fixed;left:0;top:0;z-index:60;width:200px;padding:14px 16px 12px;display:grid;justify-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 36px #06173f29;pointer-events:none;opacity:0;scale:.9;transition:opacity .2s ease,scale .25s cubic-bezier(.2,.7,.2,1);will-change:transform}
.rc__tip.is-on{opacity:1;scale:1}
.rc__tipflag{display:block;width:150px;height:113px;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px #06173f1f}
.rc__tip svg{display:block;width:150px;height:110px;overflow:visible;fill:none;stroke:var(--accent);stroke-width:3.2px;stroke-linecap:round;stroke-linejoin:round}
.rc__tip path{vector-effect:non-scaling-stroke}
.rc__tip .trk3d__sh{stroke:#06173f;opacity:.12}
.rc__tiptown{font-family:var(--font-display);font-weight:700;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--ink-muted)}
.rc__osm{margin-top:8px;font-size:12px}
.rc__osm a{color:inherit}
@media (hover:none){.rc__tip{display:none}}
/* a circuit that is not mapped yet: the drawn lap of the home card, dashed and paler, with a note under the town */
.rc__tip.is-generic svg{stroke:var(--ink-muted);stroke-dasharray:7 7;opacity:.7}
.rc__tip.is-generic .trk3d__sh{display:none}
.rc__tip.is-place svg{height:90px;stroke:none}
.rc__tip .rc__pin{fill:var(--accent)}
.rc__tip .rc__pindot{fill:#fff}
.rc__tip .rc__pinring{fill:none;stroke:var(--accent);stroke-width:2px;opacity:.35;transform-origin:100px 150px;transform:scaleY(.35)}
.rc__tipgeo{font-size:12px;font-variant-numeric:tabular-nums;color:var(--ink);letter-spacing:.04em}
.rc__tipgeo:empty{display:none}
.rc__tipnote{font-size:12px;line-height:1.3;color:var(--ink-muted);text-align:center}
.rc__tipnote:empty{display:none}
