/* ==========================================================================
   RayliaSky Theme for Bagisto 2.5.1
   Brand palette: ink #202225 / blue #1A6BD8 / deep blue #0D4FA3 / mist #E8F2FF
   All classes are prefixed with `rk-` to avoid collisions with core styles.
   ========================================================================== */

:root {
    --rk-ink: #202225;
    --rk-ink-soft: #2c2f33;
    --rk-blue: #1a6bd8;
    --rk-blue-deep: #0d4fa3;
    --rk-mist: #e8f2ff;
    --rk-paper: #f4f5f6;
    --rk-text: #3a3f45;
    --rk-text-muted: #6b7078;

    /* Header chrome — solid brand ink.
     * A translucent bar (e.g. rgba(32,34,37,.7)) takes its apparent colour
     * from whatever scrolls behind it: over a light section it computes to a
     * washed-out grey, not black. Selling this as "30 % transparent" was a
     * mistake — the bar must stay opaque to read as the brand's near-black. */
    --rk-chrome: #202225;
}

/* --------------------------------------------------------------------------
   Horizontal overflow guard
   A phone user must never be able to drag the page sideways. `overflow: clip`
   on html/body would do the trick but it also kills the sticky header (the
   viewport stops being a scrollport), so instead the actual culprits are fixed
   at the source (see .rk-footer__newsletter-form below) and long unbroken
   strings are allowed to wrap.
   -------------------------------------------------------------------------- */
body {
    overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Header — dark shell, matching the brand mock
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Header — dark "chrome" shell, solid brand ink (#202225).

   It was briefly a 30 %-transparent bar; that reads as grey wherever a light
   section scrolls under it, so the shell is opaque again.

   Two rules were learned the hard way here:
   1. Never put `filter` / `backdrop-filter` on <header>: it becomes the
      containing block for `position: fixed` descendants, and the mobile nav
      drawer is rendered inside the header DOM — the drawer would then be
      pinned to the header box instead of the viewport.
   2. Skip the blur pseudo-layer as well. A `backdrop-filter` pseudo inside a
      sticky header made Chrome intermittently stop painting the whole header
      (white band, white text => invisible). A plain background is stable
      everywhere.
   -------------------------------------------------------------------------- */

body.rk-home #app > header,
body.rk-page #app > header {
    background: var(--rk-chrome);
    color: #f5f6f7;
}

/*
 * Dark header chrome — text colour is INHERITED from the header instead of
 * being forced onto every <a>/<span>. That way a white panel rendered inside
 * the header DOM (nav drawer, account menu, mini-cart) only has to reset its
 * own colour to become readable again, and Tailwind colour utilities
 * (`text-white`, `text-navyBlue`, …) still win over the inherited value.
 *
 * Note: do NOT exclude `.bg-white` descendants with `:not(.bg-white *)` —
 * the core <header> element itself carries the `bg-white` utility, so that
 * would knock out every link in the header.
 */
body.rk-home #app > header .bg-white,
body.rk-page #app > header .bg-white {
    color: var(--rk-text);
}

body.rk-home #app > header input,
body.rk-page #app > header input {
    background: var(--rk-ink-soft);
    border-color: #3a3e43;
    color: #f5f6f7;
}

body.rk-home #app > header input::placeholder,
body.rk-page #app > header input::placeholder {
    color: #9aa0a6;
}

body.rk-home #app > header .shimmer,
body.rk-page #app > header .shimmer {
    background: #3a3e43;
}

/* RayliaSky horizontal primary navigation — desktop only */
.rk-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: clamp(12px, 1.5vw, 28px);
}

.rk-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.rk-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--rk-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

/* White nav copy sits on the opaque ink bar — no shadow needed, and dropping
   it keeps the type crisp instead of slightly soft. */

.rk-nav__link:hover,
.rk-nav__link.is-active {
    opacity: 0.92;
}

.rk-nav__link:hover::after,
.rk-nav__link.is-active::after {
    transform: scaleX(1);
}

/* RayliaSky secondary navigation — hover/focus dropdown */
.rk-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.rk-nav__caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.rk-nav__item--has-children:hover .rk-nav__caret,
.rk-nav__item--has-children:focus-within .rk-nav__caret {
    transform: translateY(1px) rotate(225deg);
}

.rk-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.rk-nav__item--has-children:hover .rk-nav__submenu,
.rk-nav__item--has-children:focus-within .rk-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.rk-nav__submenu-panel {
    min-width: 286px;
    padding: 8px 0;
    background: #fff;
    border-top: 2px solid var(--rk-blue);
    box-shadow: 0 18px 36px rgb(13 20 30 / 18%);
}

body.rk-home #app > header .rk-nav__submenu-link,
body.rk-page #app > header .rk-nav__submenu-link {
    display: block;
    padding: 10px 20px;
    color: var(--rk-text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

body.rk-home #app > header .rk-nav__submenu-link:hover,
body.rk-home #app > header .rk-nav__submenu-link:focus,
body.rk-home #app > header .rk-nav__submenu-link.is-active,
body.rk-page #app > header .rk-nav__submenu-link:hover,
body.rk-page #app > header .rk-nav__submenu-link:focus,
body.rk-page #app > header .rk-nav__submenu-link.is-active {
    background: var(--rk-mist);
    color: var(--rk-blue-deep);
}

@media (max-width: 1279px) {
    .rk-nav {
        gap: 13px;
    }

    .rk-nav__link {
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .rk-nav__caret {
        margin-left: 5px;
    }

    .rk-nav__submenu-panel {
        min-width: 250px;
    }

    body.rk-home #app > header .rk-nav__submenu-link,
    body.rk-page #app > header .rk-nav__submenu-link {
        font-size: 12px;
    }
}

/* Locale / currency top strip when present — same solid ink as the header so
   the two dark bars read as one continuous chrome. */
body.rk-home #app > div.max-lg\:hidden,
body.rk-page #app > div.max-lg\:hidden {
    background: var(--rk-chrome);
    color: #f5f6f7;
}

/* --------------------------------------------------------------------------
   Currency & language switchers — desktop top-bar dropdowns
   (v-currency-switcher / v-locale-switcher inside .journal-scroll panels)
   NOTE: the switchers live in the top strip (`#app > div`), NOT inside
   `#app > header`, so selectors here must not be scoped to the header.
   -------------------------------------------------------------------------- */

#app .journal-scroll {
    min-width: 220px;
}

/* Subtle border polish shared by all header/topbar dropdown panels */
#app .z-20.bg-white {
    border: 1px solid #e4ecf6;
    border-radius: 14px;
}

/* Option rows */
#app .journal-scroll button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 4px 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rk-text) !important;
    background: #fff !important;
    opacity: 1 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

#app .journal-scroll button:hover {
    background: var(--rk-mist);
    color: var(--rk-blue-deep);
}

/* Currently active option */
#app .journal-scroll button.bg-gray-100 {
    background: var(--rk-mist);
    color: var(--rk-blue-deep);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--rk-blue);
}

#app .journal-scroll button.bg-gray-100::after {
    content: '✓';
    margin-left: auto;
    color: var(--rk-blue);
    font-weight: 700;
}

#app .journal-scroll button img {
    flex: none;
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

/* Arrow icon in the dark top bar turns blue on hover */
#app button:hover span[class*="icon-arrow-"] {
    color: #8db9f2;
}

/* --------------------------------------------------------------------------
   Currency & language switchers — mobile drawer footer toggles
   -------------------------------------------------------------------------- */

.rk-mswitch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 240px;
    padding: 11px 16px;
    border: 1px solid #d9e4f2;
    border-radius: 999px;
    background: #f7fafd;
    color: var(--rk-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rk-mswitch:hover {
    background: var(--rk-mist);
    border-color: var(--rk-blue);
    color: var(--rk-blue-deep);
}

.rk-mswitch img {
    flex: none;
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rk-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--rk-ink);
    overflow: hidden;
}

.rk-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
}

/* darken the left side so copy stays readable */
.rk-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 25, 27, 0.88) 0%, rgba(23, 25, 27, 0.55) 42%, rgba(23, 25, 27, 0.05) 75%);
}

.rk-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    margin-inline: auto;
    padding: 96px 40px;
    color: #f5f6f7;
}

.rk-hero__title {
    max-width: 560px;
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.rk-hero__title .rk-accent {
    color: var(--rk-blue);
}

.rk-hero__subline {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #d5d8db;
}

.rk-dash {
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 26px;
    background: var(--rk-blue);
    border-radius: 2px;
}

.rk-dash--light {
    background: #7db4ff;
}

.rk-watch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    font-size: 14px;
    font-weight: 500;
    color: #f5f6f7;
}

.rk-watch__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.rk-watch__play::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
}

.rk-watch:hover .rk-watch__play {
    background: rgba(255, 255, 255, 0.12);
}

/* The trigger is a <button> so it is keyboard/AT friendly — undo the UA reset */
button.rk-watch {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    color: #f5f6f7;
    cursor: pointer;
}

button.rk-watch:focus-visible {
    outline: 2px solid var(--rk-blue);
    outline-offset: 6px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Hero video lightbox
   -------------------------------------------------------------------------- */

.rk-video {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
}

.rk-video.is-open {
    display: flex;
}

.rk-video__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 13, 15, 0.88);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.rk-video__dialog {
    position: relative;
    width: min(1080px, 100%);
}

.rk-video__player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.rk-video__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rk-video__close::before,
.rk-video__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.6px;
    background: currentColor;
}

.rk-video__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.rk-video__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.rk-video__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

html.rk-video-open,
html.rk-video-open body {
    overflow: hidden;
}

@media (max-width: 620px) {
    .rk-video__close {
        top: -46px;
        width: 34px;
        height: 34px;
    }
}

/* --------------------------------------------------------------------------
   Feature strip
   -------------------------------------------------------------------------- */

.rk-features {
    background: var(--rk-paper);
    padding: 38px 20px;
}

.rk-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1240px;
    margin-inline: auto;
}

@media (max-width: 860px) {
    .rk-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 12px;
    }
}

.rk-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 0 8px;
}

/* thin separators between the four items on desktop */
@media (min-width: 861px) {
    .rk-feature + .rk-feature {
        border-left: 1px solid #dcdfe2;
    }
}

.rk-feature__icon {
    position: relative;
    width: 34px;
    height: 34px;
    flex: none;
}

.rk-feature__icon::before,
.rk-feature__icon::after {
    content: '';
    position: absolute;
    background: #565c63;
}

/* rays icon */
.rk-feature__icon--rays::before {
    inset: 8px 8px 6px;
    border: 1.5px solid #565c63;
    background: none;
    border-radius: 4px;
}

.rk-feature__icon--rays::after {
    left: 50%;
    top: -3px;
    width: 1.5px;
    height: 8px;
    transform: translateX(-50%);
    box-shadow: -9px 4px 0 0 #565c63, 9px 4px 0 0 #565c63, -11px 14px 0 0 #565c63, 11px 14px 0 0 #565c63, 0 26px 0 0 #565c63;
}

/* sun icon */
.rk-feature__icon--sun::before {
    inset: 10px;
    border: 1.5px solid #565c63;
    background: none;
    border-radius: 999px;
}

.rk-feature__icon--sun::after {
    left: 50%;
    top: -2px;
    width: 1.5px;
    height: 7px;
    transform: translateX(-50%);
    box-shadow: -8px 5px 0 0 #565c63, 8px 5px 0 0 #565c63, -11px 15px 0 0 #565c63, 11px 15px 0 0 #565c63, -8px 25px 0 0 #565c63, 8px 25px 0 0 #565c63, 0 29px 0 0 #565c63;
}

/* leaf icon */
.rk-feature__icon--leaf::before {
    left: 6px;
    top: 4px;
    width: 20px;
    height: 26px;
    background: none;
    border: 1.5px solid #565c63;
    border-radius: 2px 999px 2px 999px;
    transform: rotate(45deg);
}

.rk-feature__icon--leaf::after {
    left: 15px;
    top: 6px;
    width: 1.5px;
    height: 24px;
    transform: rotate(24deg);
}

/* estate icon */
.rk-feature__icon--estate::before {
    left: 4px;
    bottom: 0;
    width: 12px;
    height: 22px;
    border: 1.5px solid #565c63;
    background: none;
}

.rk-feature__icon--estate::after {
    right: 4px;
    bottom: 0;
    width: 14px;
    height: 28px;
    border: 1.5px solid #565c63;
    background: none;
}

.rk-feature__title {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--rk-text);
}

/* --------------------------------------------------------------------------
   Science split section
   -------------------------------------------------------------------------- */

.rk-science {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 460px;
}

@media (max-width: 860px) {
    .rk-science {
        grid-template-columns: 1fr;
    }
}

.rk-science__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rk-science__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--rk-mist);
    padding: clamp(32px, 6vw, 88px);
}

.rk-science__panel .rk-dash {
    margin: 0 0 22px;
}

.rk-h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    color: #22262a;
}

.rk-text {
    margin-top: 16px;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rk-text-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.rk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.rk-btn--outline {
    margin-top: 30px;
    border: 1px solid #b9cff0;
    color: #2c3e56;
    background: transparent;
}

.rk-btn--outline:hover {
    background: #fff;
    border-color: var(--rk-blue);
    color: var(--rk-blue-deep);
}

.rk-btn--ghost {
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #f5f6f7;
    background: rgba(255, 255, 255, 0.06);
}

.rk-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.rk-btn--light {
    padding: 10px 22px;
    background: var(--rk-blue);
    color: #fff;
}

.rk-btn--light:hover {
    background: var(--rk-blue-deep);
}

.rk-arrow {
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Products section
   -------------------------------------------------------------------------- */

.rk-products {
    background: var(--rk-paper);
    padding: clamp(56px, 7vw, 96px) 20px;
}

.rk-products__inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(28px, 5vw, 72px);
    max-width: 1240px;
    margin-inline: auto;
    align-items: start;
}

@media (max-width: 1000px) {
    .rk-products__inner {
        grid-template-columns: 1fr;
    }
}

.rk-products__intro .rk-dash {
    margin: 0 0 18px;
}

.rk-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 640px) {
    .rk-products__grid {
        grid-template-columns: 1fr;
    }
}

.rk-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rk-card__image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background: #dfe3e7;
}

.rk-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rk-card:hover .rk-card__image img {
    transform: scale(1.05);
}

.rk-card__title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #22262a;
}

.rk-card__subtitle {
    font-size: 13px;
    color: var(--rk-text-muted);
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.rk-cta {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: #10151c;
    overflow: hidden;
}

.rk-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/cta.png');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}

.rk-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 20, 0.82) 0%, rgba(10, 14, 20, 0.35) 55%, rgba(10, 14, 20, 0.05) 85%);
}

.rk-cta__inner {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    margin-inline: auto;
    padding: clamp(56px, 7vw, 96px) 40px;
    color: #f5f6f7;
}

.rk-cta__title {
    max-width: 480px;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 500;
    line-height: 1.2;
}

.rk-cta__text {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #d5d8db;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.rk-footer {
    margin-top: 0;
    background: var(--rk-ink);
    color: #e6e8ea;
}

.rk-footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin-inline: auto;
    padding: 36px 40px 0;
}

.rk-footer__links ul {
    display: grid;
    gap: 12px;
    font-size: 14px;
}

.rk-footer__links a:hover {
    color: #fff;
}

.rk-footer__newsletter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    margin-inline: auto;
    padding: 28px 40px 0;
}

.rk-footer__newsletter-title {
    max-width: 320px;
    font-size: 18px;
    font-weight: 500;
}

.rk-footer__newsletter-form {
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.rk-footer__newsletter-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid #3a3e43;
    border-radius: 8px;
    background: var(--rk-ink-soft);
    color: #f5f6f7;
}

.rk-footer__newsletter-form .rk-btn {
    flex: 0 0 auto;
}

/* Below ~480 px the input + button no longer fit side by side; stack them
   so the newsletter block can never push the page wider than the viewport. */
@media (max-width: 520px) {
    .rk-footer__newsletter {
        flex-direction: column;
        align-items: stretch;
    }

    .rk-footer__newsletter-title {
        max-width: none;
    }

    .rk-footer__newsletter-form {
        flex: 0 0 auto;
        flex-wrap: wrap;
        width: 100%;
    }

    .rk-footer__newsletter-input {
        flex: 1 1 100%;
    }

    .rk-footer__newsletter-form .rk-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.rk-footer__newsletter-input::placeholder {
    color: #9aa0a6;
}

.rk-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1240px;
    margin-inline: auto;
    padding: 30px 40px;
}

.rk-footer__bar,
.rk-footer__newsletter,
.rk-footer__links {
    padding-inline: clamp(20px, 4vw, 40px);
}

.rk-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 13.5px;
    color: #c9cdd1;
}

.rk-footer__nav a:hover {
    color: #fff;
}

.rk-footer__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rk-footer__socials {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c9cdd1;
}

.rk-footer__socials a:hover {
    color: #fff;
}

.rk-footer__divider {
    width: 1px;
    height: 18px;
    background: #43474c;
}

.rk-footer__tagline {
    font-size: 13px;
    color: #9aa0a6;
}

.rk-footer__legal {
    border-top: 1px solid #32363a;
    padding: 14px clamp(20px, 4vw, 40px);
    font-size: 12.5px;
    color: #9aa0a6;
    text-align: center;
}

@media (max-width: 720px) {
    .rk-footer__bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   RayliaSky · CMS Directories (NEWS / PROJECT CASES aggregation)
   ========================================================================== */

.rk-listing {
    background: #fff;
}

.rk-listing__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.rk-listing__eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #1a6bd8;
    font-weight: 700;
    margin: 0 0 12px;
}

.rk-listing__title {
    font-family: 'DM Serif Display', serif;
    font-size: 44px;
    line-height: 1.12;
    color: var(--rk-ink, #202225);
    margin: 0 0 12px;
}

.rk-listing__lede {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    max-width: 640px;
    margin: 0 0 40px;
}

.rk-listing__empty {
    font-size: 14px;
    line-height: 1.8;
    color: #6b7280;
    background: #e8f2ff;
    border-radius: 12px;
    padding: 24px 28px;
}

/* NEWS — stacked article cards */

.rk-listing__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* PROJECT CASES — media card grid */

.rk-listing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rk-list-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 26px 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rk-list-card:hover {
    border-color: #1a6bd8;
    box-shadow: 0 10px 28px rgba(13, 79, 163, .12);
    transform: translateY(-2px);
}

.rk-list-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rk-list-card__tag {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1a6bd8;
    font-weight: 700;
}

.rk-list-card__date {
    font-size: 12px;
    color: #9aa0a6;
}

.rk-list-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rk-ink, #202225);
    margin-bottom: 10px;
}

.rk-list-card__excerpt {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 18px;
}

.rk-list-card__more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #1a6bd8;
}

.rk-list-card__media {
    display: block;
    height: 150px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f2ff, #cfe3fb);
    margin-bottom: 18px;
}

.rk-list-card--media {
    padding: 20px 22px 24px;
}

.rk-list-card--media .rk-list-card__title {
    font-size: 18px;
}

@media (max-width: 720px) {
    .rk-listing__inner {
        padding: 40px 18px 60px;
    }

    .rk-listing__title {
        font-size: 34px;
    }

    .rk-list-card {
        padding: 20px 22px;
    }
}

/* ==========================================================================
   RayliaSky · Mobile / Tablet drawer shell

   The drawer deliberately occupies the full viewport width (100 %). An
   earlier revision forced `min(86vw, 380px)` here via `@layer utilities`
   (needed to beat Tailwind v4's layered `max-md:w-full!`); that override has
   been removed at the client's request. Do not re-add a width override —
   the drawer markup uses `width="100%"`.
   ========================================================================== */

/* Dark drawer masthead — matches the desktop bar so the white brand logo
   (and the close button) stay legible. */
.rk-mdrawer__head {
    background: var(--rk-ink);
    color: #f5f6f7;
    border-bottom: 0;
}

.rk-mdrawer__head img {
    display: block;
    width: auto;
    max-width: 131px;
    height: auto;
    max-height: 26px;
}

.rk-mdrawer__head .icon-cancel {
    color: #f5f6f7;
    transition: color .15s ease, opacity .15s ease;
}

.rk-mdrawer__head .icon-cancel:hover {
    color: #8db9f2;
}

/* Never let the drawer content scroll sideways */
.rk-mdrawer .overflow-auto {
    max-width: 100%;
}

/* ==========================================================================
   RayliaSky · Mobile / Tablet drawer navigation
   ========================================================================== */

.rk-mnav {
    padding: 6px 0 28px;
    max-width: 100%;
    overflow-x: hidden;
}

.rk-mnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--rk-ink, #202225);
    text-decoration: none;
    border-bottom: 1px solid #e6ebf2;
    transition: color .15s ease, background-color .15s ease;
}

.rk-mnav__link:hover,
.rk-mnav__link.is-active {
    color: var(--rk-blue, #1a6bd8);
    background: #f4f8fe;
    box-shadow: inset 3px 0 0 var(--rk-blue, #1a6bd8);
}

.rk-mnav__caret {
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .55;
}

.rk-mnav__group {
    padding: 4px 0 6px;
    background: #f7fbff;
}

.rk-mnav__sublink {
    display: block;
    position: relative;
    padding: 11px 24px 11px 40px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
    text-decoration: none;
    transition: color .15s ease;
}

.rk-mnav__sublink::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rk-blue, #1a6bd8);
    transform: translateY(-50%);
    opacity: .55;
}

.rk-mnav__sublink:hover,
.rk-mnav__sublink.is-active {
    color: var(--rk-blue, #1a6bd8);
    font-weight: 500;
}

.rk-mnav__sublink.is-active::before {
    opacity: 1;
}
/* ==========================================================================
   RayliaSky · Mobile / Tablet drawer navigation
   ========================================================================== */

.rk-mnav {
    padding: 10px 0 28px;
}

.rk-mnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--rk-ink, #202225);
    text-decoration: none;
    border-bottom: 1px solid #eef1f5;
    transition: color .15s ease, background-color .15s ease;
}

.rk-mnav__link:hover,
.rk-mnav__link.is-active {
    color: var(--rk-blue, #1a6bd8);
    background: #f4f8fe;
}

.rk-mnav__caret {
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .45;
}

.rk-mnav__group {
    padding: 4px 0 6px;
    background: #fafcff;
}

.rk-mnav__sublink {
    display: block;
    position: relative;
    padding: 10px 24px 10px 40px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #4b5563;
    text-decoration: none;
    transition: color .15s ease;
}

.rk-mnav__sublink::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rk-blue, #1a6bd8);
    transform: translateY(-50%);
    opacity: .4;
}

.rk-mnav__sublink:hover,
.rk-mnav__sublink.is-active {
    color: var(--rk-blue, #1a6bd8);
    font-weight: 500;
}

.rk-mnav__sublink.is-active::before {
    opacity: 1;
}

/* ==========================================================================
   Auth pages (sign-in / sign-up / forgot-password / reset-password)

   These vendor views render the white channel logo on a plain white `main`,
   so it was invisible. Rather than painting a dark plate behind it, swap the
   image for the dark Admin Logo configured in the back office. Its URL is
   exposed as `--rk-auth-logo` by components/layouts/index.blade.php (read
   from general.design.admin_logo.logo_image), so the storefront follows any
   logo change made in the admin panel automatically.

   The anchor `a.mx-auto.mb-5` only occurs on these four auth views (verified
   against home / CMS / contact), so no vendor template needs patching.
   ========================================================================== */
body.rk-page #main.bg-white a.mx-auto.mb-5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.rk-page #main.bg-white a.mx-auto.mb-5 img {
    content: var(--rk-auth-logo);
    width: 160px;
    height: 54px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
