/* Theme additions to the design's main.css (ropka.css, unchanged). Only what WordPress adds: the skip link, the
   form's spam trap, the insurance list once the client has written it, the cookie choice on the privacy page,
   pages the client creates himself, and the block content of the privacy policy. */
.skip-link{position:absolute;left:12px;top:-80px;z-index:100;background:var(--rp-black);color:#fff;padding:12px 18px;font-family:var(--rp-font);font-weight:800;text-decoration:none}
.skip-link:focus{top:12px;outline:4px solid var(--rp-yellow)}
main:focus{outline:0}
.rp-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.submit[disabled]{opacity:.6;cursor:progress}
/* Kindlustusliigid (lehel Kindlustus), näha alles siis, kui klient on loendi kirjutanud */
.rp-ins .t-h2{margin:10px 0 22px}
.rp-ins-list{list-style:none;margin:0;padding:0;border-top:var(--rp-rule) solid var(--rp-black)}
.rp-ins-list li{padding:18px 0;border-bottom:2px solid var(--rp-black);font-size:22px;font-weight:650;line-height:1.35}
/* privacy page: the policy text is block content inside the design's .prose */
.prose h2{font-family:var(--rp-font);font-weight:900;font-stretch:125%;font-size:30px;line-height:1.1;margin:40px 0 16px}
.prose h2:first-child{margin-top:0}
.prose h3{font-family:var(--rp-font);font-weight:850;font-stretch:115%;font-size:22px;line-height:1.2;margin:28px 0 10px}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.3em}
.prose li{margin:.3em 0}
.prose table{border-collapse:collapse;width:100%;margin:0 0 1.4em;font-size:16px}
.prose th,.prose td{border:2px solid var(--rp-black);padding:8px 10px;text-align:left;vertical-align:top}
/* the cookie note was drawn on the homepage only (top:850px = its bottom 43 px below the door section). Anchored to the
   door's bottom it sits the same on every page, whatever the door's height (Kindlustus, 404 are shorter). */
.cookie-dock{top:auto;bottom:-43px}
.rp-cookie-choice{max-width:none}
.rp-cookie-now{font-size:17px}
/* a page the client creates himself */
.rp-generic{padding-top:26px;padding-bottom:110px}
.rp-generic-in{max-width:900px}
/* Extra content sections (24.11, design/build/build_theme.py extra_content): design components only */
.rp-more-in{max-width:880px}
.rp-prose{margin-top:24px;max-width:820px}
.rp-sheet .rp-prose{margin-top:18px}
.rp-sheet{max-width:980px}
.rp-prose p{margin:0 0 16px;font-size:19px;line-height:1.6;font-weight:450}
.rp-prose p:last-child{margin-bottom:0}
.rp-prose .rp-steps{margin:24px 0}
.rp-prose .rp-steps li{font-size:19px}
.rp-bullets{list-style:none;margin:6px 0 18px;padding:0;border-top:2px solid var(--rp-black)}
.rp-bullets li{position:relative;padding:12px 0 12px 34px;border-bottom:2px solid var(--rp-black);font-size:19px;line-height:1.45;font-weight:500}
.rp-bullets li::before{content:"";position:absolute;left:0;top:17px;width:14px;height:14px;background:var(--rp-yellow);border:3px solid var(--rp-black)}
/* FAQ: cards on the page, + / – tile in the logo's yellow */
.rp-faq-list{display:grid;gap:14px;margin-top:32px;max-width:980px}
.rp-q{padding:0;border:3px solid var(--rp-black)}
.rp-q summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:16px 20px 16px 24px;font-family:var(--rp-font);font-weight:850;font-stretch:110%;font-size:21px;line-height:1.3}
.rp-q summary::-webkit-details-marker{display:none}
.rp-q summary:hover .rp-q-i{background:var(--rp-black)}
.rp-q summary:hover .rp-q-i::before,.rp-q summary:hover .rp-q-i::after{background:var(--rp-yellow)}
.rp-q-i{position:relative;flex:0 0 auto;width:40px;height:40px;background:var(--rp-yellow);border:4px solid var(--rp-black);transition:background .15s}
.rp-q-i::before,.rp-q-i::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:4px;background:var(--rp-black);transform:translate(-50%,-50%)}
.rp-q-i::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .2s}
.rp-q[open] .rp-q-i::after{transform:translate(-50%,-50%) rotate(0deg)}
.rp-q[open]{box-shadow:var(--rp-shadow-up)}
.rp-q p{margin:0;padding:0 24px 22px;font-size:18px;line-height:1.6;max-width:820px}
@media (prefers-reduced-motion: reduce){.rp-q-i,.rp-q-i::after{transition:none}}
@container site (max-width:1099px){
  .rp-prose p,.rp-bullets li,.rp-prose .rp-steps li{font-size:17px}
  .rp-q summary{font-size:18px;padding:14px 14px 14px 18px}
  .rp-q p{padding:0 18px 18px;font-size:17px}
  .cookie-dock{bottom:auto}
  .rp-ins-list li{font-size:19px}
  .prose h2{font-size:26px}
  .rp-generic{padding-bottom:64px}
}
/* Content round 12/2026 ---------------------------------------------------------------------------------------------
   In-text links in the extra content: underlined like the design's own prose links (axe link-in-text-block). */
.rp-prose a{color:inherit;font-weight:650;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.rp-prose a:hover{text-decoration-color:var(--rp-yellow);text-decoration-thickness:4px}
/* Google's map only on a click (site.js): „Näita kaarti" on the drawn map, in the design's black/yellow button style;
   the click puts Google's map into the same box. Nothing goes to Google before the click. */
.rp-map{position:relative}
.rp-map-cta{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 24px);text-align:center}
.rp-map-show{min-height:52px;padding:0 22px;border:var(--rp-line) solid var(--rp-black);background:var(--rp-black);color:var(--rp-yellow);cursor:pointer;font-family:var(--rp-font);font-weight:850;font-stretch:112%;font-size:18px;line-height:1;box-shadow:var(--rp-shadow)}
.rp-map-show:hover{background:var(--rp-yellow);color:var(--rp-black)}
.rp-map-note{padding:3px 8px;background:#fff;color:var(--rp-black);border:2px solid var(--rp-black);font-size:14px;font-weight:600;line-height:1.35}
.rp-map.is-on>:not(.rp-map-frame){visibility:hidden}
.rp-map-frame{position:absolute;inset:0;z-index:3;width:100%;height:100%;border:3px solid var(--rp-black);background:#F1F2F2}
/* „Viimati uuendatud" (the page's dateModified): one small muted line; on the privacy page under the heading rule */
.rp-updated{margin:0;font-size:15px;line-height:1.4;font-weight:500;color:#4A4D4F}
.rp-updated-wrap{padding-top:0;padding-bottom:36px}
.prose .rp-updated{margin:0 0 28px}
.rp-generic-in .rp-updated{margin-top:28px}
@container site (max-width:1099px){
  .rp-map-cta{bottom:10px}
  .rp-map-show{min-height:46px;padding:0 16px;font-size:16px}
  .rp-map-note{font-size:13px}
  .rp-updated-wrap{padding-bottom:28px}
}
/* Privacy page heading: „küpsisepoliitika“ (one 16-letter word, 9.5 × the font size wide) overflowed the white sheet at
   every width from 320 to ~1290 px (measured 01.12.2026). The sheet is a size container; the heading scales with it
   and never grows past the design's size (56 px, mobile 32 px) — at 1440 px it is unchanged. */
.clip-sheet{container:rpsheet / inline-size}
.clip-sheet .t-h1.s{font-size:min(56px,10.2cqi)}
@container site (max-width:1099px){.clip-sheet .t-h1.s{font-size:min(32px,10.2cqi)}}
/* Sweep 01.12.2026 (conversion review): addresses open the map, numbers call, larger tap targets */
.rp-addr{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.rp-addr:hover{text-decoration-thickness:2px}
.rp-bar-a{color:inherit;text-decoration:none}
.rp-bar-a:hover{text-decoration:underline}
.kv a.big{display:inline-block;padding:8px 0;margin:-8px 0}
.rp-q p a{color:inherit;font-weight:650;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
/* Sweep 01.12.2026 (a11y review) ----------------------------------------------------------------------------------
   A001: black buttons on a light page get the site's normal ring (black outline + yellow band), not a yellow line on white */
:is(.hdr-tel,.btn-main,.btn-call,.btn-m).on-black:focus-visible{outline-color:var(--rp-black);box-shadow:0 0 0 8px var(--rp-yellow)}
/* A002: the yellow call box in the mobile menu keeps its inner line and gets a ring on the black panel */
.mmenu .mm-call:focus-visible{box-shadow:0 0 0 4px var(--rp-black),0 0 0 8px var(--rp-yellow)}
/* A008: a focus outline that forced-colours mode paints (transparent otherwise) */
.chk input:focus-visible,.inp-plate:focus-within{outline:3px solid transparent;outline-offset:3px}
/* A003: nothing slides sideways; below 378 px the header call button is icon-only (its aria-label stays), below 342 px
   the buttons wrap to their own row. 390 px and wider stay as designed. */
.site{overflow:clip}
@container site (max-width:377px){.hdr-m .btn-m.dark{font-size:0;gap:0}}
@container site (max-width:341px){.hdr-in{flex-wrap:wrap;row-gap:10px}.hdr-m{margin-left:auto}}
/* A004: long one-word headings and numbers scale with the screen below 390 px instead of being cut (390 unchanged:
   size × (width − 120 px) / 270 px), the door-sign rows may wrap, and any word that still cannot fit breaks */
:is(.site,.comp) :is(.t-display,.t-h1,.t-h2,.t-h3){overflow-wrap:break-word}
@container site (max-width:389px){
  .t-h2{font-size:min(32px,calc(11.85cqi - 14.2px))}
  .form-sheet .t-h2{font-size:32px}   /* the form sheet is its own container: several words, they wrap (confirm pass N1) */
  #h-meist{font-size:min(66px,calc(24.44cqi - 29.3px))!important}   /* the design's inline 66 px */
  .t-num{font-size:min(44px,calc(16.3cqi - 19.6px))}
  .mmenu .mm-call .n{font-size:min(27px,calc(10cqi - 12px))}
}
/* Sweep 01.12.2026 (visual review F001–F005): door and board items sized to their OWN card, never above the drawn
   size — the desktop door shrinks with the window up to ~1410 px, the type did not. 1440 and 390 stay as drawn. */
.door-leaf>.note{container-type:inline-size}
.door-leaf>.note .t-display{font-size:min(86px,var(--rp-h1fit,14.8cqi))}
.door-leaf>.note .t-display.word{font-size:min(72px,var(--rp-h1fit,10.3cqi))}   /* one word: always inside its note */
.door-side .tearoff{container-type:inline-size}
.door-side .tearoff .t-num{font-size:min(62px,calc((100cqi - 48px) / 6.45))}   /* 62 px at 1440 (448 px note) */
.wcard .txt{font-size:min(44px,16.2cqi)}   /* 44 px on the 273 px card at 1440 */
.row-wc>.note,.grid12>.sp4>.note,.stamp-host{container-type:inline-size}
.plate .pn{font-size:min(38px,calc((100cqi - 66px) / 5.8))}   /* 38 px at 1440 (287 px note) */
.stamp{font-size:min(24px,10.5cqi)}
.door-side>.note .t-h3,.board-frame article.note .t-h3{overflow-wrap:break-word}
.hrow{flex-wrap:wrap;row-gap:2px}
.hrow .v{margin-left:auto}
@container site (max-width:1099px){
  .door-leaf>.note .t-display{font-size:min(46px,var(--rp-h1fit,14.8cqi))}
  .door-leaf>.note .t-display.word{font-size:min(36px,var(--rp-h1fit,10.3cqi))}
  .door-side .tearoff .t-num{font-size:min(44px,calc((100cqi - 32px) / 6.45))}
  /* the drawn PHONE sizes (main.css mobile block) stay the cap below 1100 px — confirm pass N2 */
  .wcard .txt{font-size:min(28px,12cqi)}
  .plate .pn{font-size:min(26px,calc((100cqi - 80px) / 5.8))}
}
/* the last items of the width sweep (01.12, measured): each formula gives the drawn size at 1440 */
.row-wc>.note.swap .plate .pn{font-size:min(38px,calc((100cqi - 118px) / 5.6))}
.door-leaf .row-wc .stamp-host.pad-m .stamp{font-size:min(34px,calc((100cqi + 29px) / 8.8))!important}   /* inline 34 px */
.door-side>.note{container-type:inline-size}
.plate.xl .pn{font-size:min(104px,calc((100cqi - 107px) / 2.7))}
a.note.pad-s[href^="mailto:"]{overflow-wrap:anywhere;min-width:0}
.clip-sheet .prose,.yboard p{overflow-wrap:break-word}
@container site (max-width:389px){.door-leaf .row-wc .stamp-host.pad-m .stamp{font-size:min(34px,calc((100cqi - 14px) / 8.8))!important}}
/* each hero heading may be as large as its longest word fits in the note (100 / the word's width in em, measured
   01.12.2026); a heading the client rewrites falls back to the default and, at worst, breaks a word — never clips */
.rp-page-front{--rp-h1fit:15.5cqi}            /* „Kasutatud“ 6.37 em */
.rp-page-vahetus{--rp-h1fit:20cqi}            /* „vahetus“ 4.93 em */
.rp-page-liising{--rp-h1fit:17.4cqi}          /* „liisinguga“ 5.67 em */
.rp-page-kindlustus{--rp-h1fit:10.6cqi}       /* „Autokindlustus“ 9.28 em */
.rp-page-meist-ja-kontakt{--rp-h1fit:21cqi}   /* „kontakt“ 4.70 em */
.rp-page-404{--rp-h1fit:28cqi}                /* „Lehte“ 3.49 em */
.rp-page-auto24-mall{--rp-h1fit:18cqi}        /* „Müügis olevad autod“ */
/* the drawn phone sizes of the two larger plates (these desktop rules above sit after the first 1099 block) — N2 */
@container site (max-width:1099px){
  .row-wc>.note.swap .plate .pn{font-size:min(26px,calc((100cqi - 118px) / 5.6))}
  .plate.xl .pn{font-size:min(56px,calc((100cqi - 107px) / 2.7))}
}
/* Ingmar 01.12.2026 „jah“ (conversion review F03): on phones and tablets the header stays at the top while scrolling,
   so „Helista“ and „Menüü“ are always one tap away. The open menu scrolls inside the screen; anchored targets (form
   links „… ↓“, skip link) stop below the header. Desktop (≥ 1100 px) keeps the drawn static header. */
@container site (max-width:1099px){
  .comp:has(>.hdr){position:sticky;top:0;z-index:30}
  .mmenu{max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
  #sisu,main [id]{scroll-margin-top:100px}
}
