/* Svalbard Tours CRO layer - Arctic Rust (light) palette, matching styles.css tokens:
   paper #f6f8fa, ink #14181c, line #d3dce4, teal brand #2e6e7e, rust accent #c0492b,
   brass #9a6c1f. Squarer 8px radii per the design system. */

.cro { font-size: 16px; line-height: 1.6; box-sizing: border-box; color: var(--ink, #14181c); }
.cro [hidden], .cro[hidden] { display: none !important; }
.cro p { margin: 0 0 .7rem; }
.cro h2, .cro h3 { font-family: inherit; line-height: 1.25; letter-spacing: -.01em; color: var(--ink, #14181c); }
.cro-kicker { font-size: .74rem !important; line-height: 1.5 !important; letter-spacing: .08em; font-weight: 750; text-transform: uppercase; color: var(--brand, #2e6e7e); }

/* ---- Contextual section elements ---- */
.cro-context { margin: 2rem 0 2.4rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line, #d3dce4); border-left: 3px solid var(--brand, #2e6e7e); background: var(--paper-2, #e9eef3); border-radius: 0 8px 8px 0; }
.cro-text { background: transparent; padding: .7rem 1.1rem; }
.cro-image { display: grid; grid-template-columns: 200px 1fr; gap: 1.1rem; border: 1px solid var(--line, #d3dce4); border-left: 3px solid var(--brand, #2e6e7e); padding: 0; overflow: hidden; border-radius: 0 8px 8px 0; background: var(--surface, #fff); }
.cro-image > img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; margin: 0; }
.cro-image > div { padding: 1.1rem 1.2rem 1.1rem 0; }
.cro-image > div { padding-left: 1.2rem; }
.cro-context p { font-size: .95rem; }

/* ---- Buttons and links ---- */
.cro .cro-book { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: .7rem 1.05rem; border-radius: 8px; color: #fff !important; background: var(--accent, #c0492b); text-decoration: none !important; font-weight: 750; line-height: 1.35; text-align: center; border: 2px solid transparent; box-sizing: border-box; }
.cro .cro-book:hover { background: var(--accent-deep, #a33b21); }
.cro a:focus-visible, .cro button:focus-visible, .cro input:focus-visible, .cro select:focus-visible, .cro summary:focus-visible { outline: 3px solid var(--brand, #2e6e7e); outline-offset: 3px; }
.cro .cro-facts, .cro small { display: block; color: var(--ink-soft, #55606b); font-size: .78rem; line-height: 1.5; margin-top: .6rem; }
.cro button { cursor: pointer; font: inherit; }

/* ---- Opening booking-choice card (SKILL.md 2026-09-25 styling rule):
      complete compact card with site-matched background, border, padding, rounded
      corners and clear text hierarchy; the affiliate CTA and the end-module nav
      button sit in one row with an explicit gap, wrapping or stacking on mobile. ---- */
.cro-opening { margin: .4rem 0 2rem; padding: 1.15rem 1.25rem; background: var(--surface, #ffffff); border: 1px solid var(--line, #d3dce4); border-radius: 8px; box-shadow: 0 1px 0 rgba(20, 24, 28, .04); }
.cro-opening .cro-kicker { margin-bottom: .45rem; }
.cro-opening p { margin: 0 0 .35rem; font-size: .95rem; }
.cro-opening .cro-opening-proof { color: var(--ink-soft, #55606b); font-size: .8rem; margin-bottom: .85rem; }
.cro-opening .cro-opening-proof .gold { color: var(--gold, #9a6c1f); font-weight: 750; }
.cro-opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: .9rem; }
.cro-opening button[data-jump] { border: 1px solid var(--line, #d3dce4); border-radius: 8px; background: var(--paper-2, #e9eef3); padding: .7rem 1.05rem; color: var(--brand-deep, #24586a); font-weight: 700; min-height: 46px; }
.cro-opening button[data-jump]:hover { background: var(--line, #d3dce4); }
@media (max-width: 650px) {
  .cro-opening-actions { flex-direction: column; align-items: stretch; gap: .7rem; }
  .cro-opening-actions .cro-book, .cro-opening button[data-jump] { width: 100%; }
}

/* ---- End booking module: the single module after editorial + FAQ ---- */
.cro-end { border: 1px solid var(--line, #d3dce4); border-radius: 8px; background: var(--surface, #fff); padding: 1.6rem !important; margin: 2.6rem auto 3rem !important; scroll-margin-top: 100px; }
.cro-end h2 { font-size: 1.55rem; margin: 0 0 .8rem; }
.cro-end h2:focus { outline: none; }
.cro-end h3 { font-size: 1.12rem; margin: 1.1rem 0 .6rem; }
.cro-initial { font-size: .82rem; color: var(--ink-soft, #55606b); margin-bottom: 1rem; }
.cro-current { border: 1px solid var(--line, #d3dce4); border-radius: 8px; background: var(--paper, #f6f8fa); padding: 1.1rem 1.2rem; }
.cro-current-title { margin: 0 0 .5rem !important; }
.cro-current-pitch { font-weight: 500; }
.cro-current-details { font-size: .88rem; color: var(--ink-soft, #55606b); }
.cro-current-caution, .cro-screen-note { font-size: .82rem; color: var(--ink-soft, #55606b); }
.cro-support { border-top: 1px solid var(--line, #d3dce4); border-bottom: 1px solid var(--line, #d3dce4); margin: 1.1rem 0; padding: .9rem 0; }
.cro-support summary { font-weight: 750; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.cro-selector { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.cro label { display: flex; flex-direction: column; gap: .25rem; font-size: .83rem; font-weight: 650; min-width: 0; }
.cro select, .cro input { width: 100%; min-height: 44px; min-width: 0; font: inherit; font-size: 16px; border: 1px solid #b9c5cf; border-radius: 8px; padding: .5rem; background: var(--surface-2, #fff); color: var(--ink, #14181c); box-sizing: border-box; }
.cro-alternatives { padding-left: 1.2rem; font-size: .88rem; margin: .8rem 0; }
.cro-alternatives li { margin-bottom: .7rem; }
.cro-cost { padding-top: 1rem; border-top: 1px solid var(--line, #d3dce4); }
.cro-cost label { margin: .5rem 0; }
.cro-cost output { display: block; font-weight: 700; margin-top: .8rem; }
.cro-result { padding: .85rem; background: var(--paper-2, #e9eef3); border-radius: 8px; }

/* ---- Viator schedule widget ---- */
.cro-calendar { padding: .9rem 0 .4rem; }
.cro-calendar label { font-weight: 650; }
.cro-date-status { font-size: .82rem; margin: .5rem 0 !important; }

/* ---- GYG native widget placement ---- */
.cro-native { min-height: 160px; }
.cro-native iframe { max-width: 100%; }
.gyg-fallback-note { display: block; color: var(--ink-soft, #55606b); font-size: .78rem; margin-top: .4rem; }

/* ---- Floating prompt: desktop sticky card, mobile slide-in bar ---- */
.cro-float { position: fixed; right: 22px; bottom: 22px; width: 330px; max-width: calc(100vw - 32px); z-index: 80; background: var(--surface, #fff); border: 1px solid var(--line, #d3dce4); border-radius: 8px; padding: .95rem 1.15rem; box-shadow: 0 8px 40px rgba(20, 24, 28, .18); }
.cro-float p { font-size: .83rem; margin: 0 24px .45rem 0; }
.cro-float-title { font-weight: 750; }
.cro-float .cro-book { width: 100%; font-size: .88rem; }
.cro-dismiss, .cro-exit-close { position: absolute; right: 6px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 24px !important; color: var(--ink-soft, #55606b); }

/* ---- Exit dialog ---- */
.cro-exit { border: 1px solid var(--line, #d3dce4); border-radius: 8px; width: min(440px, calc(100vw - 32px)); padding: 1.8rem; box-shadow: 0 16px 90px rgba(20, 24, 28, .3); background: var(--surface, #fff); color: var(--ink, #14181c); }
.cro-exit::backdrop { background: rgba(20, 24, 28, .55); }
.cro-exit h2 { font-size: 1.45rem; margin: .3rem 0 .8rem; }
.cro-exit-product { font-weight: 700; }

/* ---- Page-level integration ---- */
body[data-cro-article] .prose table { display: block; max-width: 100%; overflow-x: auto; }
body[data-cro-article] .prose [data-editorial-heading] { scroll-margin-top: 100px; }

@media (max-width: 650px) {
  .cro-context { padding: .95rem; margin: 1.6rem 0 2rem; }
  .cro-image { display: block; padding: 0; }
  .cro-image > img { height: 190px; min-height: 0; }
  .cro-image > div { padding: .95rem 1rem 1rem; }
  .cro-end { padding: 1.05rem !important; margin: 2rem 16px 2.4rem !important; width: auto; }
  .cro-selector { grid-template-columns: 1fr; }
  .cro-float { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-width: none; padding: .75rem .95rem; border-radius: 8px; }
  .cro-float p:not(.cro-float-title) { display: none; }
  .cro-float .cro-book { min-height: 44px; }
  .cro .cro-book { width: 100%; }
  .cro-end h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
