* { box-sizing: border-box; }
:root {
  --green: #263d38;
  --green-dark: #1d302c;
  --ink: #171717;
  --muted: #5f6362;
  --line: #dedfdd;
  --soft: #f5f6f5;
  --white: #fff;
  --danger: #9b2929;
  --radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-header, .site-footer { background: var(--green); color: #fff; }
.header-inner, .footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 68px; }
.brand { color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.home-link { display: inline-flex; align-items: center; gap: 8px; color: #202522; background: #fff; border-radius: 7px; padding: 9px 15px; text-decoration: none; font-weight: 700; }
.home-link:hover { background: #edf0ee; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 140px); padding: 30px 0 54px; }
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; margin-bottom: 28px; }
.intro-copy { padding: 12px 0; }
.eyebrow { margin: 0 0 7px; color: #626967; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.8px; }
h2 { margin-bottom: 5px; font-size: 27px; line-height: 1.2; }
h3 { margin-bottom: 0; font-size: 21px; }
.intro-copy > p:last-child { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.intro-photo { min-height: 205px; border-radius: var(--radius); background: #d8e0dc url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=80") center 52% / cover no-repeat; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.setup-panel { padding: 26px; }
.section-heading, .planner-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section-heading > .muted { margin: 8px 0 0; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend, .nights-field > label { display: block; margin-bottom: 11px; font-weight: 700; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.season-option { min-height: 54px; border: 1px solid #cfd2d0; background: #fff; border-radius: 8px; font-weight: 700; color: var(--ink); }
.season-option:hover { border-color: var(--green); background: #f8faf9; }
.season-option[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.nights-field { margin-top: 24px; }
.nights-control { display: flex; align-items: center; gap: 12px; width: fit-content; }
.stepper { width: 42px; height: 42px; border: 1px solid #cfd2d0; border-radius: 8px; background: #fff; font-size: 24px; line-height: 1; }
.stepper:hover { background: var(--soft); }
#night-count-display { min-width: 82px; text-align: center; font-weight: 700; }
#night-count { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nights-field > .muted { margin: 8px 0 0; }
.setup-actions { display: flex; align-items: center; gap: 15px; margin-top: 24px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 8px; padding: 10px 19px; font-weight: 700; }
.primary-button { color: #fff; background: #171717; border: 1px solid #171717; }
.primary-button:hover:not(:disabled) { background: #333; }
.primary-button:disabled { opacity: .4; cursor: not-allowed; }
.secondary-button { background: #fff; border: 1px solid #aeb4b1; color: var(--ink); }
.secondary-button:hover { background: var(--soft); }
.hidden { display: none !important; }
.planner-section { margin-top: 42px; }
.planner-title-row { align-items: center; margin-bottom: 20px; }
#stay-summary { margin: 4px 0 0; }
.save-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 30px; color: #3f5149; font-size: 12px; white-space: nowrap; }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: #398052; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 22px; align-items: start; }
.day-list { display: grid; gap: 14px; }
.day-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.day-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.day-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fafbfa; border-bottom: 1px solid var(--line); }
.day-card-header h3 { font-size: 18px; }
.day-type { display: inline-block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.day-select { border: 1px solid #b9c0bc; background: #fff; border-radius: 7px; padding: 7px 10px; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.day-card.is-selected .day-select { background: var(--green); color: #fff; border-color: var(--green); }
.day-card-body { padding: 14px 18px 17px; }
.meal-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.meal-chip { background: #f0f2f0; border-radius: 20px; padding: 5px 10px; font-size: 12px; color: #343a37; }
.meal-chip span { color: #666; }
.day-activities { display: grid; gap: 8px; }
.empty-day { padding: 13px; background: #fafbfa; border: 1px dashed #cbd0cd; border-radius: 8px; color: #666; font-size: 13px; }
.activity-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e5e7e5; border-radius: 8px; }
.activity-entry strong { display: block; font-size: 14px; }
.activity-entry small { display: block; color: var(--muted); font-size: 12px; }
.duration-select { width: 95px; min-height: 36px; border: 1px solid #cfd2d0; border-radius: 6px; padding: 5px; background: #fff; font-size: 13px; }
.remove-activity { border: 0; background: transparent; color: var(--danger); font-size: 20px; padding: 3px 7px; }
.day-total { display: flex; justify-content: flex-end; margin-top: 11px; color: #4f5652; font-size: 12px; font-weight: 700; }
.activity-browser { padding: 20px; position: sticky; top: 15px; }
.activity-browser-heading { margin-bottom: 5px; }
#selected-day-label { margin: 7px 0 15px; }
.category { border-top: 1px solid var(--line); }
.category-toggle { width: 100%; border: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; text-align: left; font-weight: 700; color: var(--ink); }
.category-toggle:hover { color: var(--green); }
.category-toggle .category-count { margin-left: auto; margin-right: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.category-items { padding: 0 0 12px; display: grid; gap: 9px; }
.activity-option { border: 1px solid #e2e5e3; border-radius: 8px; padding: 11px; }
.activity-option-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.activity-option strong { font-size: 14px; }
.activity-option p { margin: 3px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.add-button { border: 1px solid #aeb8b2; background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.add-button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.add-button:disabled { color: #777; background: #f0f2f0; cursor: default; }
.planner-bottom-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.text-button { border: 0; background: transparent; padding: 8px 0; text-decoration: underline; }
.danger-text { color: var(--danger); }
.site-footer { padding: 18px 0; }
.footer-inner { gap: 15px; font-size: 12px; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #202522; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; transition: opacity .2s, transform .2s; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 20px; text-align: center; }
@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; gap: 15px; }
  .intro-copy { padding: 0; }
  .intro-photo { min-height: 190px; }
  .planner-layout { grid-template-columns: 1fr; }
  .activity-browser { position: static; }
}
@media (max-width: 560px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 60px; }
  .brand { font-size: 19px; }
  .home-link { padding: 8px 11px; }
  .page-shell { padding-top: 22px; }
  .intro-photo { min-height: 155px; }
  .setup-panel { padding: 19px 15px; }
  .section-heading { display: block; }
  .section-heading > .muted { margin-top: 5px; }
  .season-grid { gap: 7px; }
  .season-option { min-height: 48px; font-size: 14px; }
  .setup-actions { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .planner-title-row { align-items: flex-start; flex-direction: column; }
  .day-card-header { padding: 13px; }
  .day-card-body { padding: 12px; }
  .activity-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .activity-entry .remove-activity { grid-column: 2; grid-row: 1; }
  .duration-select { grid-column: 1; grid-row: 2; width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { flex-wrap: wrap; gap: 15px; }
  .planner-bottom-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Version 2: flexible daily schedule, optional times and reorder controls */
.schedule-hint { margin: 0 0 10px; color: #646b67; font-size: 12px; }
.day-activities { display: grid; gap: 8px; }
.schedule-item { display: grid; grid-template-columns: 20px minmax(120px,1fr) 105px 105px auto; gap: 9px; align-items: center; border: 1px solid #e1e4e2; border-radius: 8px; padding: 10px; background: #fff; }
.meal-item { background: #f7f8f7; border-color: #cbd4cf; }
.drag-handle { color: #7a817d; font-size: 20px; cursor: grab; text-align: center; user-select: none; }
.meal-item .drag-handle { visibility: hidden; }
.schedule-item.dragging { opacity: .45; border: 1px dashed var(--green); }
.schedule-item-main { min-width: 0; }
.schedule-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.schedule-item-title strong { font-size: 14px; }
.schedule-item-main small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; }
.meal-label { color: #43584c; background: #e7eee9; border-radius: 20px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
.item-time-label { color: #222; font-size: 12px; font-weight: 700; }
.time-control, .duration-control { display: grid; gap: 3px; color: #626965; font-size: 10px; }
.time-control input, .time-control select, .duration-control select { width: 100%; min-width: 0; min-height: 34px; border: 1px solid #cfd2d0; border-radius: 6px; padding: 4px; background: #fff; color: #171717; font-size: 12px; }
.duration-control select:disabled { background: #eceeec; color: #606662; }
.item-actions { display: flex; align-items: center; gap: 2px; }
.move-item { border: 1px solid #d4d8d5; background: #fff; border-radius: 5px; width: 27px; height: 29px; color: #343a37; }
.move-item:hover { background: #eef1ef; }
.add-lunch-button { margin-top: 10px; border: 0; background: transparent; color: #364b40; text-decoration: underline; padding: 5px 0; font-size: 12px; cursor: pointer; }
.day-total { margin-top: 8px; }
@media (max-width: 760px) {
  .schedule-item { grid-template-columns: 18px minmax(0,1fr) 82px; gap: 7px; }
  .schedule-item-main { grid-column: 2 / 4; grid-row: 1; }
  .drag-handle { grid-column: 1; grid-row: 1; }
  .time-control { grid-column: 2; grid-row: 2; }
  .duration-control { grid-column: 3; grid-row: 2; }
  .item-actions { grid-column: 2 / 4; grid-row: 3; justify-content: flex-end; }
}


/* Version 2.2: planning note and independently collapsible itinerary days */
.planning-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #d9e0dc;
  border-radius: 10px;
  background: #f7f9f7;
}
.planning-note-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #819188;
  border-radius: 50%;
  color: var(--green);
  font-weight: 700;
  font-family: Georgia, serif;
}
.planning-note h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.planning-note p { margin: 0; color: #4f5853; font-size: 14px; line-height: 1.5; }
.day-list-column { min-width: 0; }
.day-list-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 10px; }
.day-list-controls > div { display: flex; align-items: center; gap: 9px; }
.day-list-controls .text-button { font-size: 13px; }
.control-separator { color: #9aa19d; }
.day-card-header { align-items: center; }
.day-heading-copy { min-width: 0; }
.day-header-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.day-collapse-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd1cd;
  border-radius: 7px;
  background: #fff;
  color: var(--green);
  font-size: 19px;
  line-height: 1;
}
.day-collapse-toggle:hover { background: #f0f3f1; }
.day-collapsed-summary { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.day-card.is-collapsed .day-card-header { border-bottom: 0; }
.day-card.is-collapsed .day-card-header { background: #fff; }
.schedule-item.meal-item:has(.remove-activity) .item-actions { grid-column: auto; }
@media (max-width: 560px) {
  .planning-note { padding: 13px; gap: 10px; }
  .planning-note p { font-size: 13px; }
  .day-list-controls { align-items: flex-start; }
  .day-list-controls > div { gap: 6px; }
  .day-list-controls .text-button { font-size: 12px; }
  .day-card-header { align-items: flex-start; }
  .day-header-actions { gap: 5px; }
  .day-select { padding: 7px 8px; font-size: 12px; }
  .day-collapse-toggle { width: 32px; height: 32px; }
}


/* Version 2.3: true single-open activity accordion with a smooth expand/collapse */
.category { border-top: 1px solid var(--line); }
.category-toggle { gap: 10px; min-height: 50px; cursor: pointer; }
.category-toggle > span:first-child { flex: 1 1 auto; }
.category-chevron {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dad6;
  border-radius: 50%;
  color: var(--green);
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.category.is-open .category-chevron { background: #f1f4f2; }
.category-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .25s ease, opacity .2s ease;
}
.category.is-open .category-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.category-panel-inner { min-height: 0; overflow: hidden; }
.category-items { padding: 0 0 12px; }
@media (prefers-reduced-motion: reduce) {
  .category-panel, .category-chevron { transition: none; }
}


/* Version 2.4: Algonquin Park trail browser */
.algonquin-browser { padding: 4px 0 14px; }
.algonquin-intro { padding: 3px 0 12px; }
.algonquin-intro strong { display: block; font-size: 15px; }
.algonquin-intro p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.trail-difficulty-group { margin: 7px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.difficulty-toggle {
  display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px;
  padding: 9px 11px; border: 0; background: #f7f8f7; text-align: left;
  color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.difficulty-toggle > span:first-child { flex: 1 1 auto; }
.difficulty-toggle:hover { background: #f0f3f0; }
.difficulty-toggle .category-chevron { color: var(--muted); font-size: 18px; line-height: 1; }
.difficulty-panel { padding: 10px; border-top: 1px solid var(--line); }
.trail-option {
  margin: 0 0 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.trail-option-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trail-option-heading strong { font-size: 14px; line-height: 1.35; }
.difficulty-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em;
}
.difficulty-easy { color: #17633c; background: #e5f3e9; border: 1px solid #b8ddc3; }
.difficulty-moderate { color: #855000; background: #fff2d6; border: 1px solid #f0d59a; }
.difficulty-experienced { color: #9b2525; background: #fde8e7; border: 1px solid #efb9b6; }
.trail-meta { margin-top: 5px; color: #56615b; font-size: 12px; font-weight: 600; }
.trail-option p { margin: 7px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.trail-option .add-button { margin-top: 10px; }
.trail-empty { margin: 0; padding: 9px 10px; color: var(--muted); background: #fafbfa; border: 1px dashed #d7ddd9; border-radius: 6px; font-size: 12px; line-height: 1.45; }
.winter-activity-group { border-top: 1px solid var(--line); }
.winter-activity-toggle {
  display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 2px; border: 0; background: transparent; text-align: left;
  color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.winter-activity-panel { padding: 0 0 12px 10px; }
.winter-activity-description { padding: 0 0 8px; }
.winter-activity-description p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.winter-activity-description .add-button { margin-bottom: 5px; }
.winter-activity-panel .trail-difficulty-group { margin: 8px 0 12px; }\n.winter-activity-panel .difficulty-panel { padding: 9px; }
@media (max-width: 560px) {
  .trail-option { padding: 10px; }
  .trail-option-heading { gap: 7px; }
  .difficulty-badge { font-size: 9px; padding: 4px 6px; }
}

/* Version 3.0: date-led setup and workbook-based availability */
.stay-input-grid { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(280px,1fr); gap:28px; align-items:start; margin-top:22px; }
.arrival-field label,.nights-field > label { display:block; margin-bottom:11px; font-weight:700; }
.arrival-field input { width:100%; max-width:320px; min-height:46px; border:1px solid #cfd2d0; border-radius:8px; padding:9px 12px; background:#fff; color:var(--ink); }
.main-links { display:flex; flex-wrap:wrap; gap:10px 22px; border-top:1px solid var(--line); margin-top:22px; padding-top:17px; }
.main-links a,.activity-link a { color:#31594c; font-size:13px; font-weight:700; text-decoration:underline; }
.activity-note { margin:7px 0 8px; color:#4f5652; font-size:13px; line-height:1.45; }
.activity-link { margin:0 0 9px; }
.trail-meta { color:#515b56; font-size:12px; font-weight:700; margin:6px 0; }
.ice-cleats-note { padding:10px 12px; margin:8px 0 12px; background:#f5f6f5; border-left:3px solid var(--green); font-size:13px; }
.no-activities { padding:16px; background:#f7f8f7; border-radius:8px; color:#4d5551; font-size:14px; }
.no-activities p { margin:5px 0 0; }
.day-heading-copy { min-width:0; }
.day-type { line-height:1.45; }
.difficulty-toggle { width:100%; display:flex; align-items:center; gap:10px; padding:11px 4px; border:0; border-top:1px solid var(--line); background:#fff; text-align:left; font-weight:700; }
.difficulty-toggle .category-count { margin-left:auto; color:var(--muted); font-size:12px; font-weight:400; }
.difficulty-panel { display:grid; gap:8px; padding:4px 0 12px; }
.trail-option { padding:10px; }
.trail-option .activity-option-top { align-items:center; }
.schedule-hint { margin:0 0 10px; color:var(--muted); font-size:12px; }
.schedule-item { display:grid; grid-template-columns:20px minmax(0,1fr) minmax(130px,auto) minmax(110px,auto) auto; align-items:center; gap:9px; padding:10px; border:1px solid #e2e5e3; border-radius:8px; }
.schedule-item-main strong { font-size:14px; }
.schedule-item-main small { display:block; color:var(--muted); font-size:12px; }
.time-control,.duration-control { display:grid; gap:3px; color:var(--muted); font-size:11px; }
.time-control select,.duration-control select { min-height:34px; max-width:150px; border:1px solid #cfd2d0; border-radius:6px; padding:4px; background:#fff; font-size:12px; color:var(--ink); }
.duration-control select { max-width:115px; }
.meal-label { display:inline-block; margin-left:7px; color:#53645b; font-size:10px; }
.item-actions { display:flex; gap:2px; }
.move-item { border:0; background:transparent; padding:3px 5px; font-weight:700; }
.add-lunch-button { margin-top:12px; border:0; background:transparent; color:#31594c; text-decoration:underline; font-size:13px; font-weight:700; }
.day-header-actions { display:flex; align-items:center; gap:7px; }
.day-collapse-toggle { width:34px; height:34px; border:1px solid #cfd2d0; border-radius:7px; background:#fff; }
.day-collapsed-summary { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.category-panel[hidden],.difficulty-panel[hidden],.day-card-body[hidden] { display:none; }
@media(max-width:800px){.stay-input-grid{grid-template-columns:1fr;gap:14px}.schedule-item{grid-template-columns:16px minmax(0,1fr) auto;}.schedule-item-main{grid-column:2 / 4}.time-control{grid-column:2;}.duration-control{grid-column:3;}.item-actions{grid-column:3;grid-row:1;}}
@media(max-width:560px){.stay-input-grid{gap:12px}.main-links{display:grid;gap:9px}.schedule-item{gap:7px;padding:8px}.time-control select,.duration-control select{max-width:100%;width:100%}.time-control,.duration-control{min-width:0}.day-header-actions{gap:4px}.day-select{font-size:12px;padding:7px 8px}}
.availability-note { margin:18px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }


/* Itinerary disclaimer dialog */
body.disclaimer-open { overflow: hidden; }
.disclaimer-overlay[hidden] { display: none !important; }
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 20, .78);
  overflow-y: auto;
}
.disclaimer-panel {
  width: min(100%, 590px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
.disclaimer-panel h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(25px, 4vw, 32px);
}
.disclaimer-copy p {
  margin: 0 0 12px;
  color: #4e5551;
  font-size: 15px;
  line-height: 1.6;
}
.disclaimer-actions {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}
.disclaimer-button {
  width: 100%;
  min-height: 47px;
  padding: 11px 16px;
  border: 1px solid #aeb8b2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.disclaimer-button:focus-visible {
  outline: 3px solid #8ba99a;
  outline-offset: 2px;
}
.disclaimer-accept {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.disclaimer-accept:hover { background: var(--green-dark); }
.disclaimer-decline:hover,
.disclaimer-visit:hover { background: var(--soft); }
@media (max-width: 560px) {
  .disclaimer-overlay { align-items: flex-end; padding: 10px; }
  .disclaimer-panel {
    max-height: calc(100vh - 20px);
    padding: 23px 18px;
    border-radius: 13px;
  }
  .disclaimer-copy p { font-size: 14px; }
}
