/* Ranktiva theme: custom CSS.
   Every rule here belongs to a named block style or to a site-wide detail
   that block settings cannot express. See Launch/03-website/build/foundation-plan-2026-11-18.md, section 6. */

/* Site-wide details */
html{scroll-padding-top:96px}
::selection{background:#1E1422;color:#fff}
a{text-underline-offset:5px}
summary::marker{color:#FF5A3C}
:focus-visible{outline:3px solid #1E1422;outline-offset:3px}
.has-ink-background-color :focus-visible{outline-color:#fff}
p{margin-block:0}

/* Press and hover feel (values from the approved mockups) */
a,.wp-block-button__link{transition:transform 150ms cubic-bezier(.16,1,.3,1),opacity 150ms ease-out}
a:active,.wp-block-button__link:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){a:hover,.wp-block-button__link:hover{opacity:.84}}
@media (prefers-reduced-motion:reduce){a,.wp-block-button__link{transition:none}}

/* Header: fixed while scrolling, on desktop only */
@media (min-width:782px){
  header.rk-sticky-desktop{position:sticky;top:var(--wp-admin--admin-bar--position-offset,0px);z-index:50}
}
.rk-wordmark,.rk-wordmark a{text-decoration:none;line-height:normal}
.rk-wordmark a{display:inline-block;padding:9px 0}
.rk-main-nav .wp-block-navigation__container,.rk-legal-nav .wp-block-navigation__container{row-gap:0}
.wp-block-navigation .wp-block-navigation-item__content{padding:13px 0;line-height:normal}
.rk-legal-nav .wp-block-navigation-item__content{text-decoration:underline;font-weight:500;font-size:16px}
.rk-back a{display:inline-block;padding:14px 0}
.rk-copy{max-width:62em;text-wrap:pretty}

/* Buttons */
.wp-block-button.is-style-dark .wp-block-button__link{background:#1E1422;border-color:#1E1422;color:#fff}
.wp-block-button.is-style-outline-white .wp-block-button__link{background:transparent;border-color:#fff;color:#fff}
@media (max-width:781px){
  .wp-block-buttons,.wp-block-button{width:100%}
  .wp-block-button__link{display:block;width:100%;box-sizing:border-box}
}

/* Link style: thick orange underline */
.is-style-thick-link a{font-weight:700;text-decoration:underline;text-decoration-thickness:3px;text-decoration-color:#FF5A3C}

/* Two-colour headings and lines */
.is-style-two-tone-break mark{display:block}
@media (max-width:781px){.is-style-two-tone-phone-break mark{display:block}}
.is-style-two-tone-break{text-wrap:balance}

/* Cards */
.is-style-card{background:#fff;border-radius:clamp(22px, calc(22px + 6 * (100vw - 390px) / 1050), 28px)}
.wp-block-column.is-style-step-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;box-sizing:border-box;background:#fff;border-radius:clamp(22px, calc(22px + 6 * (100vw - 390px) / 1050), 28px);padding:clamp(18px, calc(18px + 6 * (100vw - 390px) / 1050), 24px) clamp(20px, calc(20px + 8 * (100vw - 390px) / 1050), 28px) clamp(20px, calc(20px + 8 * (100vw - 390px) / 1050), 28px)}
@media (max-width:781px){.wp-block-column.is-style-step-card{flex-direction:row}}
p.is-style-number-badge{flex:0 0 auto;width:clamp(40px, calc(40px + 8 * (100vw - 390px) / 1050), 48px);height:clamp(40px, calc(40px + 8 * (100vw - 390px) / 1050), 48px);line-height:clamp(40px, calc(40px + 8 * (100vw - 390px) / 1050), 48px);border-radius:999px;background:#FF5A3C;color:#1E1422;font-weight:800;font-size:clamp(20px, calc(20px + 4 * (100vw - 390px) / 1050), 24px);text-align:center}

/* Lists */
ul.is-style-check-list,ul.is-style-dot-list{list-style:none;margin:0;padding:0}
ul.is-style-check-list li,ul.is-style-dot-list li{position:relative;padding-left:27px}
ul.is-style-check-list li + li,ul.is-style-dot-list li + li{margin-top:6px}
ul.is-style-check-list li::before{content:"";position:absolute;left:0;top:4px;width:17px;height:17px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1422' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center/contain}
ul.is-style-dot-list li::before{content:"";position:absolute;left:5px;top:calc(4px + 5px);width:7px;height:7px;border-radius:999px;background:#1E1422}

/* Legal pages: text styles for plain headings, paragraphs and lists */
.rk-legal{font-size:var(--wp--preset--font-size--legal);font-weight:400;line-height:1.65}
.rk-legal > *{margin-block:0}
.rk-legal > * + *{margin-top:var(--wp--preset--spacing--08010)}
.rk-legal > h2{font-size:var(--wp--preset--font-size--legal-title);line-height:1.2}
.rk-legal > * + h2{margin-top:var(--wp--preset--spacing--26040)}
.rk-legal ul{padding-left:1.2em}
.rk-legal li + li{margin-top:6px}

/* Checkout: the payment frame. Its height follows its own width.
   The form is as tall as its text wraps, so the heights step with the width (measured 20 Nov 2026,
   with the sentence under the Pay button switched on). Each step is the tallest form in its range plus about 30 px. */
.rk-pay-frame{container-type:inline-size;position:relative}
.rk-pay-frame iframe{display:block;position:relative;z-index:1;width:100%;border:0;height:1630px}
@container (min-width:270px){.rk-pay-frame iframe{height:1560px}}
@container (min-width:300px){.rk-pay-frame iframe{height:1450px}}
@container (min-width:330px){.rk-pay-frame iframe{height:1420px}}
@container (min-width:480px){.rk-pay-frame iframe{height:1360px}}
@container (min-width:640px){.rk-pay-frame iframe{height:1270px}}
@container (min-width:768px){.rk-pay-frame iframe{height:730px}}
.rk-icon-row{flex-wrap:nowrap}
.rk-icon-row > .wp-block-group{flex:1 1 auto;min-width:0}
.rk-icon-row > figure{flex:0 0 auto;margin:0}
.rk-icon-row > figure img{display:block;width:clamp(40px, calc(40px + 4 * (100vw - 390px) / 1050), 44px);height:auto}

/* Checkout: three orange dots while the form is on its way.
   They sit behind the frame, in the middle of the card, never lower than 320 px from the frame's top
   (so they are in view on a phone, where the frame is tall). They stop when the frame has loaded.
   No pulse for people who ask for reduced motion: the dots then stand still. */
.rk-pay-frame::before{content:"";position:absolute;z-index:0;left:50%;top:min(50%, 320px);width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:999px;background:#FF5A3C;box-shadow:-22px 0 0 #FF5A3C,22px 0 0 #FF5A3C;animation:rk-dots 1.2s ease-in-out infinite}
.rk-pay-frame.is-loaded::before{display:none}
@keyframes rk-dots{
  0%,100%{background-color:rgba(255,90,60,.25);box-shadow:-22px 0 0 rgba(255,90,60,1),22px 0 0 rgba(255,90,60,.25)}
  33%{background-color:rgba(255,90,60,1);box-shadow:-22px 0 0 rgba(255,90,60,.25),22px 0 0 rgba(255,90,60,.25)}
  66%{background-color:rgba(255,90,60,.25);box-shadow:-22px 0 0 rgba(255,90,60,.25),22px 0 0 rgba(255,90,60,1)}
}
@media (prefers-reduced-motion:reduce){.rk-pay-frame::before{animation:none}}

/* Checkout: two columns only while the frame can stay 768 px wide.
   The card needs 808 px, the gap 36 px, the right column 340 px: 1,184 px in all.
   With less room the page stacks: the white card first at full width, the five blocks under it. */
.wp-block-group:has(> .rk-checkout-cols){container:rk-checkout / inline-size}
@container rk-checkout (max-width:1183.98px){
  .wp-block-columns.rk-checkout-cols{flex-wrap:wrap!important}
  .wp-block-columns.rk-checkout-cols > .wp-block-column{flex-basis:100%!important;flex-grow:1}
}
