/* treniraj.si v5 — base: fonts, reset, document, typography, layout primitives, a11y, WC notices.
   Rules: tokens only (no colour/size literals), every selector once, breakpoints 480/768/1024/1280.
   Breakpoints are max-width and INCLUSIVE in every v5 file: a 1024px viewport (iPad landscape) gets the touch
   chrome (burger, tab bar) — a system decision, not a header bug; do not change it in one file only. */

/* ── Self-hosted variable fonts (latin + latin-ext so č/š/ž never fall back).
   ?v=1 is the cache-bust of the font files — it MUST match treniraj_preconnect() in functions.php byte for byte, or the
   preload and the @font-face fetch are two different URLs and every face is downloaded twice. Bump both together. ── */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../../fonts/inter-latin-ext.woff2?v=1") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../../fonts/inter-latin.woff2?v=1") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;
  src:url("../../fonts/manrope-latin-ext.woff2?v=1") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;
  src:url("../../fonts/manrope-latin.woff2?v=1") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;}
html{background:var(--tr-black);/* platno pod dokumentom: na kratkih straneh se pod nogo ne vidi bela */-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--tr-header-h) + var(--tr-nav-h) + var(--tr-s2));}
body{margin:0;font-family:var(--tr-font);font-size:var(--tr-fs-15);line-height:var(--tr-lh);color:var(--tr-ink);background:var(--tr-white);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis:none;overflow-x:hidden;}
p,figure,blockquote,dl,dd,pre{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
hr{border:0;border-top:var(--tr-border);margin:var(--tr-s6) 0;}
img,video{display:block;max-width:100%;height:auto;}
svg{display:inline-block;vertical-align:middle;}
table{border-collapse:collapse;border-spacing:0;width:100%;}
input,select,textarea{font:inherit;color:inherit;margin:0;}
button{font:inherit;color:inherit;margin:0;padding:0;background:none;border:0;cursor:pointer;text-align:inherit;}
button:disabled{cursor:not-allowed;}
input::-webkit-search-decoration,input::-webkit-search-cancel-button{-webkit-appearance:none;}
[hidden]{display:none;}
strong,b{font-weight:700;}
small{font-size:var(--tr-fs-13);}
address{font-style:normal;}
del{color:var(--tr-grey-500);}
ins{text-decoration:none;}

/* ── Headings: Manrope only ≥ 24px (h1/h2); everything smaller is Inter ── */
h1{margin:0;font-family:var(--tr-font-display);font-size:var(--tr-fs-h1);font-weight:800;line-height:var(--tr-lh-tight);letter-spacing:-.03em;}
h2{margin:0;font-family:var(--tr-font-display);font-size:var(--tr-fs-h2);font-weight:800;line-height:var(--tr-lh-tight);letter-spacing:-.02em;}
h3{margin:0;font-size:var(--tr-fs-20);font-weight:700;line-height:var(--tr-lh-snug);}
h4{margin:0;font-size:var(--tr-fs-16);font-weight:700;line-height:var(--tr-lh-snug);}
h5,h6{margin:0;font-size:var(--tr-fs-14);font-weight:700;line-height:var(--tr-lh-snug);}
h1 strong,h2 strong,h3 strong,h4 strong{font-weight:inherit;}

/* ── Links ── */
a{color:inherit;text-decoration:none;transition:color var(--tr-t) var(--tr-ease);}
a:hover{color:var(--tr-red-ink);}

/* ── Dark context: flips text, links and the focus ring. Wrap any black surface in .tr-dark. ── */
.tr-dark{color:var(--tr-on-dark);}
.tr-dark a:hover{color:var(--tr-on-dark);}
.tr-dark del{color:var(--tr-on-dark-faint);}

/* ── Focus: visible everywhere, never removed without replacement (the only important-override besides reduced-motion) ── */
:focus{outline:none;}
:focus-visible{outline:2px solid var(--tr-ink) !important;outline-offset:3px;}
.tr-dark :focus-visible{outline-color:var(--tr-on-dark) !important;}

/* ── Skip link + screen-reader text ── */
.tr-skip-link{position:absolute;left:var(--tr-s4);top:-100px;z-index:var(--tr-z-skip);padding:var(--tr-s3) var(--tr-s4);border-radius:var(--tr-r);background:var(--tr-ink);color:var(--tr-on-dark);font-size:var(--tr-fs-14);font-weight:600;transition:top var(--tr-t) var(--tr-ease);}
.tr-skip-link:focus{top:var(--tr-s4);color:var(--tr-on-dark);}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}
.screen-reader-text:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal;}

/* ── Layout primitives ── */
.tr-container{width:100%;max-width:var(--tr-container);margin:0 auto;padding:0 var(--tr-gutter);}
.tr-section{padding:var(--tr-section) 0;}
.tr-section--grey{background:var(--tr-grey-50);}
main{display:block;}

/* ── Prose (long-form content: legal, FAQ answers, descriptions). Max measure 68ch. ── */
.tr-prose{font-size:var(--tr-fs-15);line-height:var(--tr-lh);color:var(--tr-grey-700);}
.tr-prose > *+*{margin-top:var(--tr-s4);}
.tr-prose h2{margin-top:var(--tr-s7);font-size:var(--tr-fs-24);color:var(--tr-ink);}
.tr-prose h3{margin-top:var(--tr-s6);color:var(--tr-ink);}
.tr-prose h4{margin-top:var(--tr-s5);color:var(--tr-ink);}
.tr-prose a:not(.tr-btn){color:var(--tr-red-ink);text-decoration:underline;text-underline-offset:2px;}
.tr-prose a:not(.tr-btn):hover{color:var(--tr-red-hover);}
.tr-prose strong{color:var(--tr-ink);}
.tr-prose ul{list-style:disc;padding-left:var(--tr-s5);}
.tr-prose ol{list-style:decimal;padding-left:var(--tr-s5);}
.tr-prose li+li{margin-top:var(--tr-s2);}
.tr-prose blockquote{padding:var(--tr-s3) var(--tr-s5);border-left:3px solid var(--tr-red);color:var(--tr-ink);font-weight:500;}
.tr-prose table{font-size:var(--tr-fs-14);}
.tr-prose td{padding:var(--tr-s3) var(--tr-s4);border-bottom:var(--tr-border);text-align:left;vertical-align:top;}
.tr-prose th{padding:var(--tr-s3) var(--tr-s4);border-bottom:var(--tr-border);text-align:left;vertical-align:top;font-weight:700;color:var(--tr-ink);background:var(--tr-grey-50);}
.tr-prose img{border-radius:var(--tr-r-lg);}
.tr-prose hr{margin:var(--tr-s6) 0;}
.tr-prose code{font-size:var(--tr-fs-13);padding:2px 6px;border-radius:var(--tr-r-sm);background:var(--tr-grey-50);}
.tr-scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch;}

/* ── WooCommerce notices: slim bordered bars (WC default stylesheet is dequeued) ── */
.woocommerce-notices-wrapper:empty{display:none;}
.woocommerce-message{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:var(--tr-s3) var(--tr-s4);margin:0 0 var(--tr-s5);padding:var(--tr-s3) var(--tr-s4);border:var(--tr-border);border-left-width:3px;border-radius:var(--tr-r);background:var(--tr-grey-50);font-size:var(--tr-fs-14);line-height:var(--tr-lh-snug);color:var(--tr-ink);list-style:none;border-left-color:var(--tr-green);}
.woocommerce-info{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--tr-s3) var(--tr-s4);margin:0 0 var(--tr-s5);padding:var(--tr-s3) var(--tr-s4);border:var(--tr-border);border-left-width:3px;border-radius:var(--tr-r);background:var(--tr-grey-50);font-size:var(--tr-fs-14);line-height:var(--tr-lh-snug);color:var(--tr-ink);list-style:none;border-left-color:var(--tr-grey-700);}
.woocommerce-error{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--tr-s1);margin:0 0 var(--tr-s5);padding:var(--tr-s3) var(--tr-s4);border:var(--tr-border);border-left-width:3px;border-radius:var(--tr-r);background:var(--tr-grey-50);font-size:var(--tr-fs-14);line-height:var(--tr-lh-snug);color:var(--tr-ink);list-style:none;flex-direction:column;border-left-color:var(--tr-red);}
.woocommerce-error li{padding-left:0;}
.woocommerce-message a:not(.tr-btn),.woocommerce-info a:not(.tr-btn),.woocommerce-error a:not(.tr-btn){color:var(--tr-red-ink);text-decoration:underline;text-underline-offset:2px;}
/* Plain links ("Razveljavi?" after "… odstranjen.") follow the sentence (flex-start above); only a button is pushed to the right edge. */
.woocommerce-message .tr-btn{order:2;flex:none;margin-left:auto;}
/* Checkout validation list: WC wraps each whole line in <a href="#field_id">. Only the bold field name is drawn as the
   jump link (red, underlined); the message text stays ink — seven fully underlined red lines were one unreadable wall. */
.woocommerce-error li a[href^="#"]:not(.tr-btn){color:var(--tr-ink);text-decoration:none;}
.woocommerce-error li a[href^="#"]:not(.tr-btn) strong{color:var(--tr-red-ink);text-decoration:underline;text-underline-offset:2px;}
.woocommerce-error li a[href^="#"]:not(.tr-btn):hover strong{color:var(--tr-red-hover);}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{content:none;}

/* ── ≤ 768px ── */
@media (max-width:768px){
  .tr-section{padding:var(--tr-section-sm) 0;}
  .tr-prose h2{margin-top:var(--tr-s6);}
}
