/*
 * Public application stylesheet.
 *
 * Keep this file as plain CSS so Sprockets does not invoke the legacy SassC
 * processor. Tailwind is built separately via app/assets/tailwind/application.css.
 */

trix-toolbar {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

trix-editor {
  display: block;
  width: 100%;
  min-height: 12rem;
  max-height: 32rem;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #fff;
}

trix-editor.camp-rich-text--large {
  min-height: 16rem;
}

/* Public pages: shared brand, quiet typography and a consistent section rhythm. */
.marketing { color: #24313a; }
.marketing-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.marketing-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.marketing-hero { display: grid; align-items: center; gap: 3rem; padding-block: clamp(4rem, 8vw, 7rem); }
.marketing-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1f3f46; }
.marketing-title { margin-top: 1rem; font-size: clamp(2.8rem, 5.4vw, 4.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.marketing-heading { margin-top: .65rem; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.marketing-lead { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.7; color: #4b5563; }
.marketing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.marketing-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: .3rem; background: #2f6f73; color: #fff; font-weight: 700; line-height: 1.4; text-align: center; }
.marketing-button:hover { background: #1f3f46; }
.marketing-button-secondary { border-color: #bacccb; background: transparent; color: #1f3f46; }
.marketing-button-secondary:hover { background: #eaf3f2; }
.marketing-button-light { background: #fff; color: #1f3f46; }
.marketing-button-light:hover { background: #eaf3f2; }
.marketing-button-outline { border-color: #a4b6b8; background: transparent; }
.marketing a:focus-visible, .marketing [tabindex]:focus-visible { outline: 3px solid #f3a712; outline-offset: 4px; }
.marketing-dashboard { min-width: 0; overflow: hidden; border: 1px solid #d1dedc; border-radius: .6rem; background: white; box-shadow: 0 18px 50px -25px #1f3f4655; }
.marketing-comparison { width: 100%; border-collapse: collapse; font-size: .95rem; text-align: left; }
.marketing-comparison th, .marketing-comparison td { padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; }
.marketing-comparison thead { background: #eaf3f2; }
.marketing-comparison tbody th { font-weight: 600; width: 50%; }
.marketing-comparison tbody td { color: #4b5563; }
.marketing-comparison thead th:not(:first-child), .marketing-comparison td { text-align: center; }
.marketing-availability { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; vertical-align: middle; }
.marketing-availability-included { background: #eaf3f2; color: #1f3f46; }
.marketing-availability-excluded { background: #f3f4f6; color: #6b7280; }
.marketing-comparison tr:last-child th, .marketing-comparison tr:last-child td { border-bottom: 0; }
.marketing-feature-visual { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-height: 20rem; padding: 3rem 2rem; background: #eaf3f2; border: 1px solid #d4e4e1; border-radius: .5rem; }
.marketing-feature-number { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.5rem; line-height: 1; font-weight: 700; color: #819e9d; }
.marketing-feature-step { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #d4e4e1; border-radius: .3rem; background: white; font-size: 1.1rem; font-weight: 600; }
.marketing-feature-step-last { background: #1f3f46; color: white; border-color: #1f3f46; }
.marketing-feature-dot { width: .5rem; height: .5rem; flex-shrink: 0; border-radius: 50%; background: #f3a712; }
@media (min-width: 1024px) {
  .marketing-shell { padding-inline: 2rem; }
  .marketing-hero { grid-template-columns: 1.2fr 1fr; }
  .marketing-dashboard-compact .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .marketing-shell { padding-inline: 1rem; }
  .marketing-actions { flex-direction: column; }
  .marketing-comparison th, .marketing-comparison td { padding: .8rem .6rem; font-size: .8rem; overflow-wrap: anywhere; }
  .marketing-feature-visual { min-height: 17rem; padding: 3rem 1rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  body:has(.velisto-terms) header,
  body:has(.velisto-terms) footer,
  .velisto-terms aside,
  .velisto-terms a[href*=".txt"] {
    display: none;
  }

  .velisto-terms > div {
    display: block;
  }

  .velisto-terms h2 {
    break-after: avoid;
  }
}

/* Public camp details and booking */
.camp-availability { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.camp-availability-dot { width: .625rem; height: .625rem; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.camp-availability--available { color: #166534; background: #dcfce7; }
.camp-availability--limited { color: #854d0e; background: #fef9c3; }
.camp-availability--full { color: #991b1b; background: #fee2e2; }
.public-camp .camp-panel { border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 20px rgb(15 23 42 / .04); }
.public-camp .camp-panel > dl > div { padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; }
.public-camp .camp-panel > dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.public-camp .grid > *, .public-camp .trix-content { min-width: 0; overflow-wrap: anywhere; }
.public-camp input:not([type=checkbox]):not([type=radio]), .public-camp select { min-height: 44px; max-width: 100%; }
.public-camp .trix-content img { max-width: 100%; height: auto; }
@media (max-width: 639px) {
  .public-camp .camp-panel { padding: 1.25rem; }
  .public-camp input, .public-camp select, .public-camp textarea { font-size: 16px; }
}
