/* Skyterra Retreat Planner. Light by default to match the site. Mobile first, 16px gutter, no horizontal scroll. */
#skyterra-rp {
  --rp-ink: #333333;
  --rp-heading: #332c2a;
  --rp-muted: #6b6661;
  --rp-bg: #ffffff;
  --rp-cream: #f6f3ef;
  --rp-olive: #495338;
  --rp-olive-ink: #ffffff;
  --rp-lime: #e1e400;
  --rp-line: #e6e1d9;
  --rp-tile: #e9ece2;
  color: var(--rp-ink);
  background: var(--rp-bg);
  padding: 24px 16px 48px;
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  font-family: Hind, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
#skyterra-rp * { box-sizing: border-box; }
#skyterra-rp h2, #skyterra-rp h3, #skyterra-rp h4, .rp-title, .rp-report-title {
  font-family: Skyterra, Georgia, 'Times New Roman', serif;
  color: var(--rp-heading);
  font-weight: 700;
  line-height: 1.2;
}
#skyterra-rp p { margin: 0.45rem 0; }
.rp-muted, .rp-fine, .rp-help { color: var(--rp-muted); }
.rp-fine { font-size: 0.9rem; }

/* Progress */
.rp-progress { margin-bottom: 28px; }
.rp-bar { height: 3px; background: var(--rp-line); border-radius: 2px; overflow: hidden; }
.rp-bar span { display: block; height: 100%; background: var(--rp-olive); transition: width 0.35s ease; }
.rp-count { font-size: 0.85rem; color: var(--rp-muted); margin-top: 10px; letter-spacing: 0.02em; }

/* Question */
.rp-title { font-size: 2rem; margin: 0 0 6px; }
.rp-help { margin: 0 0 24px; }

/* Options */
.rp-options { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 8px 0 8px; }
.rp-option {
  font: inherit; text-align: left; padding: 16px 18px; min-height: 56px;
  border: 1px solid var(--rp-line); border-radius: 10px; background: var(--rp-bg);
  color: var(--rp-ink); cursor: pointer; transition: border-color 0.2s, background 0.2s;
  overflow-wrap: anywhere; word-break: break-word;
}
.rp-option:hover { border-color: var(--rp-olive); }
.rp-option.is-on { border-color: var(--rp-olive); background: var(--rp-cream); box-shadow: inset 0 0 0 1px var(--rp-olive); }
.rp-option:focus-visible, .rp-btn:focus-visible, .rp-tab:focus-visible, .rp-link:focus-visible {
  outline: 3px solid var(--rp-lime); outline-offset: 2px;
}

/* Photo cards (goals and movement) */
/* Stacked rows: photo on the left, name and description on the right. */
.rp-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rp-cards > * { min-width: 0; }
.rp-photo { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 12px; text-align: left; }
.rp-media { position: relative; display: block; flex: 0 0 128px; width: 128px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--rp-tile); }
.rp-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-desc { font-size: 0.95rem; line-height: 1.45; color: var(--rp-muted); }
.rp-photo .rp-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-photo .rp-thumb-tile { display: flex; align-items: center; justify-content: center; height: 100%; }
.rp-photo .rp-thumb-tile svg { width: 44px; height: 44px; stroke: var(--rp-olive); fill: none; stroke-width: 1.4; }
.rp-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(73, 83, 56, 0.55); opacity: 0; transition: opacity 0.2s ease;
}
.rp-check-dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--rp-lime); color: var(--rp-heading);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
  transform: scale(0.8); transition: transform 0.2s ease;
}
.rp-photo.is-on .rp-overlay { opacity: 1; }
.rp-photo.is-on .rp-check-dot { transform: scale(1); }
.rp-photo .rp-label {
  display: block; min-width: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--rp-heading);
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}
/* Overrides for site theme button styles: keep text and colors readable on hover and when selected. */
#skyterra-rp .rp-option, #skyterra-rp .rp-option:hover, #skyterra-rp .rp-option:focus {
  color: var(--rp-ink) !important; background: var(--rp-bg) !important;
}
#skyterra-rp .rp-option .rp-label { color: var(--rp-heading) !important; }
#skyterra-rp .rp-option.is-on, #skyterra-rp .rp-option.is-on:hover {
  background: var(--rp-cream) !important; color: var(--rp-ink) !important;
}
#skyterra-rp .rp-overlay {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 !important; padding: 0 !important;
}
#skyterra-rp .rp-check-dot { margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
#skyterra-rp .rp-btn, #skyterra-rp .rp-btn:hover {
  background: var(--rp-lime) !important; color: var(--rp-heading) !important; border-radius: 6px !important;
}
#skyterra-rp .rp-btn.rp-ghost, #skyterra-rp .rp-btn.rp-ghost:hover {
  background: transparent !important; color: var(--rp-olive) !important; border: 1px solid var(--rp-olive) !important;
}
@media (min-width: 640px) {
  .rp-media { flex-basis: 200px; width: 200px; }
}
/* Site theme buttons can force single-line text; labels must wrap inside the card. */
#skyterra-rp .rp-option, #skyterra-rp .rp-label { white-space: normal !important; }

/* Photo strip (food question) */
.rp-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.rp-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }

/* Buttons */
.rp-btn {
  font: inherit; font-weight: 700; padding: 13px 26px; min-height: 48px;
  border: 0; border-radius: 6px; background: var(--rp-lime); color: var(--rp-heading); cursor: pointer;
  letter-spacing: 0.02em;
}
.rp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rp-ghost { background: transparent; color: var(--rp-olive); border: 1px solid var(--rp-olive); }
.rp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--rp-olive); text-decoration: underline; cursor: pointer; }
.rp-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 32px; }

/* Form */
.rp-field { display: grid; gap: 6px; margin: 14px 0; font-weight: 600; color: var(--rp-heading); }
.rp-field input {
  font: inherit; padding: 12px 14px; min-height: 48px; border-radius: 6px;
  border: 1px solid var(--rp-line); background: var(--rp-bg); color: var(--rp-ink);
}
.rp-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.rp-error { color: #9b2c1f; }

/* Report */
.rp-report { max-width: 760px; margin: 0 auto; }
.rp-report-head { padding: 8px 0 32px; }
.rp-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rp-olive); margin: 0; }
.rp-report-title { font-size: 2.4rem; margin: 10px 0 14px; }
.rp-lede { font-size: 1.1rem; color: var(--rp-ink); margin: 0 0 28px; max-width: 62ch; }
.rp-glance {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line);
}
.rp-glance-item { padding: 16px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--rp-line); }
.rp-glance-item:nth-child(odd) { padding-right: 12px; }
.rp-glance-item:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rp-line); }
.rp-glance-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rp-muted); }
.rp-glance-value { font-weight: 600; color: var(--rp-heading); }

.rp-section { padding: 40px 0; border-bottom: 1px solid var(--rp-line); }
.rp-section:last-of-type { border-bottom: 0; }
.rp-section h3 { font-size: 1.6rem; margin: 0 0 6px; }
.rp-general { font-size: 1.1rem; margin: 16px 0 20px; color: var(--rp-heading); }

.rp-focus { padding: 24px 0; border-top: 1px solid var(--rp-line); display: grid; grid-template-columns: 1fr; gap: 16px; }
.rp-focus:first-of-type { border-top: 0; }
.rp-focus-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.rp-focus h4 { font-size: 1.25rem; margin: 0 0 4px; }
.rp-focus > div > p { margin: 0 0 10px; }
.rp-note { font-size: 0.95rem; color: var(--rp-olive); }

.rp-class { padding: 14px 0; border-top: 1px solid var(--rp-line); }
.rp-class:first-of-type { border-top: 0; }
.rp-class p { margin: 0.25rem 0 0; color: var(--rp-muted); }
.rp-tag { font-size: 0.78rem; color: var(--rp-muted); margin-left: 6px; letter-spacing: 0.02em; }
.rp-tag-accent { color: var(--rp-olive); font-weight: 700; }

.rp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.rp-tab {
  font: inherit; padding: 9px 18px; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--rp-line); background: var(--rp-bg); color: var(--rp-heading); cursor: pointer;
}
.rp-tab.is-on { background: var(--rp-olive); color: var(--rp-olive-ink); border-color: var(--rp-olive); }

.rp-unlock { padding: 40px 0 8px; }
.rp-unlock .rp-form { max-width: 520px; }
.rp-code { font-family: Skyterra, Georgia, serif; font-size: 2.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--rp-olive); margin: 6px 0 10px; }
.rp-meet { width: 100%; min-height: 680px; border: 0; border-radius: 12px; margin-top: 12px; background: var(--rp-cream); }
.rp-foot { display: flex; justify-content: space-between; gap: 12px; padding: 32px 0 8px; border-top: 1px solid var(--rp-line); }

/* Transitions: each question fades in; leaving fades out before the next one appears. */
/* Fade only when moving between questions (is-entering), never on answer clicks. Opacity only, no transform. */
.rp-quiz.is-entering, .rp-report.is-entering { animation: rpFadeIn 0.35s ease both; }
.rp-quiz.is-leaving { opacity: 0; transition: opacity 0.18s ease; }
@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-quiz.is-entering, .rp-report.is-entering { animation: none; }
  .rp-quiz.is-leaving { transition: none; }
}
/* Keep a focused field clear of the site header. */
#skyterra-rp input, #skyterra-rp .rp-form { scroll-margin-top: 120px; }
#skyterra-rp .rp-status { color: inherit; }
#skyterra-rp .rp-review .rp-status { color: #F4F6D0; font-weight: 700; }

/* Target month: a compact control, not a full-width field. */
.rp-field-month { justify-items: start; }
.rp-field-month input { width: 14rem; max-width: 100%; }

.rp-startover-row { text-align: center; margin: 28px 0 0; }

/* Brochure chapters for each focus area: a large photo, then paragraphs. */
.rp-mix { font-family: Skyterra, Georgia, serif; font-size: 1.25rem; line-height: 1.5; color: var(--rp-heading); margin: 8px 0 24px; }
.rp-chapter { padding: 32px 0; border-top: 1px solid var(--rp-line); }
.rp-chapter:first-of-type { border-top: 0; }
.rp-chapter-photo { margin: 0 0 24px; }
.rp-chapter-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.rp-chapter-tile { width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--rp-tile); display: flex; align-items: center; justify-content: center; }
.rp-chapter-tile svg { width: 56px; height: 56px; stroke: var(--rp-olive); fill: none; stroke-width: 1.4; }
.rp-chapter-body h3 { font-size: 1.9rem; margin: 4px 0 12px; }
.rp-chapter-intro { font-size: 1.08rem; line-height: 1.7; color: var(--rp-ink); margin: 0 0 16px; }
.rp-outcome { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--rp-olive); font-family: Skyterra, Georgia, serif; font-size: 1.15rem; color: var(--rp-heading); }
.rp-chapter-class { margin: 14px 0 0; line-height: 1.65; }
.rp-chapter-body .rp-note { margin-top: 16px; }
@media (min-width: 640px) {
  .rp-chapter-photo img, .rp-chapter-tile { aspect-ratio: 21 / 9; }
  .rp-chapter-body h3 { font-size: 2.2rem; }
}

@media (min-width: 640px) {
  #skyterra-rp { padding: 48px 32px 64px; }
  .rp-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-title { font-size: 2.5rem; }
  .rp-report-title { font-size: 3rem; }
  .rp-focus { grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
  .rp-focus-photo { aspect-ratio: 4 / 3; }
}

@media print {
  #skyterra-rp { background: #fff; color: #000; padding: 0; }
  #skyterra-rp * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .rp-no-print, .rp-tabs, .rp-btn, .rp-form, .rp-meet, .rp-foot { display: none !important; }
  .rp-section, .rp-focus, .rp-class { break-inside: avoid; }
}

/* ---------- Retreat Profile results (v0.5.0) ---------- */
/* Brand: primary #495338, dark #3F4A2E, accent #E1E400, text #332C2A, muted #6F6461, cream #F6F3EF, sand #E8E2DC, pale yellow #F4F6D0. Secondary type: Lora italic. */
#skyterra-rp .rp-ico { display: inline-flex; flex: 0 0 auto; width: 40px; height: 40px; align-items: center; justify-content: center; }
#skyterra-rp .rp-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#skyterra-rp .rp-inline-link { color: var(--rp-olive); font-weight: 700; text-decoration: underline; }
#skyterra-rp .rp-eyebrow-accent { color: var(--rp-lime); }
#skyterra-rp .rp-field-optional .rp-hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--rp-muted); margin-top: 2px; }

/* Credit strip */
#skyterra-rp .rp-strip-credit { display: flex; gap: 12px; align-items: center; background: #F4F6D0; border-radius: 6px; padding: 14px 18px; margin-bottom: 28px; }
#skyterra-rp .rp-strip-credit .rp-ico { width: 32px; height: 32px; color: var(--rp-olive); }
#skyterra-rp .rp-strip-credit p { margin: 0; }

/* Hero */
#skyterra-rp .rp-hero-profile { display: grid; gap: 28px; align-items: center; margin-bottom: 48px; }
#skyterra-rp .rp-read { font-family: Lora, Georgia, serif; font-style: italic; color: var(--rp-olive); font-size: 1.2rem; margin: 10px 0; }
#skyterra-rp .rp-lede { color: var(--rp-ink); font-size: 1.05rem; }
#skyterra-rp .rp-tiles { display: grid; gap: 10px; margin: 20px 0; }
#skyterra-rp .rp-tile { background: #fff; border: 1px solid var(--rp-line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
#skyterra-rp .rp-cta { display: inline-block; text-decoration: none; background: #E1E400 !important; color: #332C2A !important; border-radius: 4px !important; }
#skyterra-rp .rp-hero-image { margin: 0; }
#skyterra-rp .rp-hero-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* Blocks */
#skyterra-rp .rp-block { padding: 40px 0; border-top: 1px solid var(--rp-line); }
#skyterra-rp .rp-block-cream { background: var(--rp-cream); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
#skyterra-rp .rp-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#skyterra-rp .rp-block h2 { font-size: 1.7rem; margin: 0 0 12px; }

/* What we heard */
#skyterra-rp .rp-heard { display: grid; gap: 14px; margin-top: 16px; }
#skyterra-rp .rp-heard-card { background: #fff; border: 1px solid var(--rp-line); border-radius: 8px; padding: 18px; }
#skyterra-rp .rp-heard-text { font-size: 1.05rem; margin: 6px 0 0; color: var(--rp-heading); }

/* Principles */
#skyterra-rp .rp-principles { display: grid; gap: 18px; margin-top: 18px; }
#skyterra-rp .rp-principle .rp-num { font-family: Lora, Georgia, serif; font-style: italic; color: var(--rp-olive); font-size: 1.4rem; }
#skyterra-rp .rp-principle h3 { font-size: 1.2rem; margin: 4px 0; }

/* Stay cards */
#skyterra-rp .rp-stay-cards { display: grid; gap: 14px; margin: 18px 0; }
#skyterra-rp .rp-stay-card { background: #fff; border: 1px solid var(--rp-line); border-radius: 8px; padding: 18px; }
#skyterra-rp .rp-stay-card.is-rec { border: 2px solid var(--rp-olive); }
#skyterra-rp .rp-stay-card h3 { font-size: 1.3rem; margin: 8px 0 6px; }
#skyterra-rp .rp-stay-tags { min-height: 4px; }
#skyterra-rp .rp-pill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #E8E2DC; color: #332C2A; }
#skyterra-rp .rp-pill-rec { background: var(--rp-olive); color: #fff; }
#skyterra-rp .rp-gap { display: flex; gap: 12px; align-items: flex-start; background: #F4F6D0; border-radius: 8px; padding: 16px 18px; margin-top: 8px; }
#skyterra-rp .rp-gap .rp-ico { width: 32px; height: 32px; color: var(--rp-olive); }
#skyterra-rp .rp-gap p { margin: 0; }

/* Taste of your week */
#skyterra-rp .rp-class-cards { display: grid; gap: 14px; margin-top: 16px; }
#skyterra-rp .rp-class-card { background: #fff; border-radius: 8px; padding: 18px; border: 1px solid var(--rp-line); }
#skyterra-rp .rp-class-card h3 { font-size: 1.25rem; margin: 4px 0 6px; }
#skyterra-rp .rp-class-card .rp-pill { margin-top: 8px; }

/* Program and story */
#skyterra-rp .rp-two-up { display: grid; gap: 14px; }
#skyterra-rp .rp-program-card { border: 1px solid var(--rp-line); border-radius: 8px; padding: 22px; background: #fff; }
#skyterra-rp .rp-program-card h3 { font-size: 1.3rem; margin: 4px 0 8px; }
#skyterra-rp .rp-story-card { background: #495338; color: #fff; border-radius: 8px; padding: 22px; }
#skyterra-rp .rp-story-card .rp-eyebrow { color: #E1E400; }
#skyterra-rp .rp-quote { font-family: Lora, Georgia, serif; font-style: italic; font-size: 1.15rem; margin: 10px 0; color: #fff; }
#skyterra-rp .rp-attrib { color: #E8E2DC; margin: 0; }

/* Results review band */
#skyterra-rp .rp-review { background: #3F4A2E; color: #fff; border-radius: 10px; padding: 36px 22px; margin: 40px 0 28px; }
#skyterra-rp .rp-review h2 { color: #fff; font-size: 1.9rem; margin: 4px 0 12px; }
#skyterra-rp .rp-review p { color: #F4F6D0; }
#skyterra-rp .rp-review-grid { display: grid; gap: 28px; }
#skyterra-rp .rp-items { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
#skyterra-rp .rp-items li { display: flex; gap: 12px; align-items: flex-start; }
#skyterra-rp .rp-items strong { color: #fff; }
#skyterra-rp .rp-items .rp-ico { color: #E1E400; }
#skyterra-rp .rp-items p { margin: 2px 0 0; font-size: 0.97rem; }
#skyterra-rp .rp-subhead { font-weight: 700; color: #fff !important; margin-top: 18px; }
#skyterra-rp .rp-meet-card { background: #fff; color: #333; border-radius: 10px; padding: 14px; max-width: 540px; width: 100%; margin: 0 auto; min-height: 720px; }
#skyterra-rp .rp-review-under { display: grid; gap: 14px; margin-top: 28px; }
#skyterra-rp .rp-credit-panel, #skyterra-rp .rp-phone-card { background: #fff; color: #333; border-radius: 8px; padding: 18px; }
#skyterra-rp .rp-credit-panel .rp-eyebrow, #skyterra-rp .rp-phone-card .rp-eyebrow { color: #495338; }
#skyterra-rp .rp-credit-panel .rp-code { color: #495338; }
#skyterra-rp .rp-phone-card { display: flex; gap: 12px; align-items: center; }
#skyterra-rp .rp-phone-card .rp-ico { color: #495338; }
#skyterra-rp .rp-phone-card a { color: #332C2A; font-weight: 700; font-size: 1.1rem; }
#skyterra-rp .rp-phone-card p { margin: 0; }

@media (min-width: 640px) {
  #skyterra-rp .rp-hero-profile { grid-template-columns: 1.1fr 1fr; }
  #skyterra-rp .rp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyterra-rp .rp-heard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyterra-rp .rp-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyterra-rp .rp-stay-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyterra-rp .rp-class-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyterra-rp .rp-two-up { grid-template-columns: 1fr 1fr; }
  #skyterra-rp .rp-program-card.is-full { grid-column: 1 / -1; }
  #skyterra-rp .rp-review-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  #skyterra-rp .rp-review-under { grid-template-columns: 1fr 1fr; }
  #skyterra-rp .rp-review { padding: 48px 40px; }
}
