.oc-main {
  --oc-ink: #203a32;
  --oc-text: #35463e;
  --oc-muted: #4d6258;
  --oc-brand: #255743;
  --oc-line: #cbd9cf;
  --oc-wash: #eef5ee;
  width: min(100% - 2rem, 73rem);
  margin-inline: auto;
  padding: 1.5rem 0 4rem;
  color: var(--oc-text);
}

.oc-main h1,
.oc-main h2,
.oc-main h3 { color: var(--oc-ink); line-height: 1.17; }
.oc-main h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4.2vw, 3.75rem); letter-spacing: -0.035em; }
.oc-main h2 { margin: 0 0 0.7rem; font-size: clamp(1.45rem, 2.6vw, 2.25rem); }
.oc-main h3 { margin: 0 0 0.6rem; font-size: clamp(1.13rem, 2vw, 1.4rem); }
.oc-main p { margin: 0 0 0.75rem; line-height: 1.65; }
.oc-main a { color: var(--oc-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.oc-main a:hover { color: #123b2b; }
.oc-main button,
.oc-main input,
.oc-main select,
.oc-main textarea { font: inherit; }
.oc-main :focus-visible { outline: 3px solid #146f60; outline-offset: 3px; }
.oc-main [hidden] { display: none !important; }

.oc-breadcrumb,
.oc-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.oc-breadcrumb { font-size: 0.94rem; }
.oc-breadcrumb a { font-weight: 650; }
.oc-breadcrumb [aria-current] { color: var(--oc-muted); }

.oc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  border-radius: 1.3rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--oc-wash);
  border: 1px solid var(--oc-line);
}

.oc-hero figure { min-width: 0; margin: 0; }
.oc-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #dfe9df;
}

.oc-hero figcaption { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--oc-muted); }
.oc-hero p:not(.oc-kicker) { max-width: 40rem; }
.oc-hero--compact { display: block; }
.oc-kicker { font-size: 0.85rem; font-weight: 720; color: var(--oc-brand); }
.oc-section { margin-block: clamp(1.7rem, 4vw, 3rem); }
.oc-section > p { max-width: 68ch; }
.oc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem; margin-top: 1rem; }

.oc-main .oc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--oc-brand);
  border-radius: 0.55rem;
  background: var(--oc-brand);
  color: #fff;
  font-weight: 680;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.oc-main .oc-button:hover { background: #173f30; color: #fff; }
.oc-main .oc-button--secondary,
.oc-main .oc-button--quiet { background: #fff; color: var(--oc-brand); }
.oc-main .oc-button--secondary:hover,
.oc-main .oc-button--quiet:hover { background: var(--oc-wash); color: var(--oc-ink); }
.oc-main .oc-button--quiet { border-color: var(--oc-line); }
.oc-main .oc-button[aria-current] { color: #fff; background: var(--oc-brand); }

.oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 1rem;
}

.oc-guide-overview .oc-section h2 { scroll-margin-top: 5.25rem; }

@media (min-width: 60rem) {
  .oc-guide-overview .oc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.oc-card {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--oc-line);
  border-radius: 0.85rem;
  padding: 1.05rem;
  background: #fff;
}

.oc-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.55rem;
  margin-bottom: 0.8rem;
}

.oc-image-camp { object-position: 61% 58%; }
.oc-image-budget { object-position: 20% 50%; }
.oc-image-arrival { object-position: 70% 50%; }
.oc-card p:last-child,
.oc-note p:last-child { margin-bottom: 0; }
.oc-note {
  max-width: 70ch;
  padding: 1rem 1.15rem;
  background: var(--oc-wash);
  border-left: 3px solid var(--oc-brand);
  border-radius: 0.4rem;
}
.oc-prose { width: min(100%, 75ch); margin: 0 auto; }
.oc-prose section { margin-block: 1.7rem; }
.oc-prose li { margin-block: 0.45rem; line-height: 1.55; }

.oc-create {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.65rem 1rem;
}
.oc-create p,
.oc-create .oc-actions { grid-column: 1 / -1; margin: 0; }
.oc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.oc-field { display: grid; gap: 0.3rem; min-width: 0; font-weight: 650; }
.oc-field input,
.oc-field select,
.oc-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  border-radius: 0.45rem;
  border: 1px solid #8da498;
  padding: 0.45rem 0.55rem;
  color: var(--oc-ink);
  background: #fff;
  box-sizing: border-box;
  font-weight: 450;
}
.oc-field textarea { resize: vertical; }
.oc-wide { grid-column: 1 / -1; }
.oc-field input[type="date"] { max-width: 100%; }
.oc-check { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; cursor: pointer; }
.oc-check input { width: 1.12rem; height: 1.12rem; accent-color: var(--oc-brand); flex: none; }

.oc-project-list { display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.oc-project-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.7rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--oc-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--oc-ink);
  text-align: left;
  cursor: pointer;
}
.oc-project-choice strong { overflow-wrap: anywhere; }
.oc-project-choice span { font-size: 0.9rem; }
.oc-project-choice[aria-current],
.oc-project-choice:hover { background: var(--oc-wash); border-color: var(--oc-brand); }
.oc-status-bar {
  position: sticky;
  z-index: 2;
  bottom: 0;
  margin: 1.2rem 0 0;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: #fff;
}
.oc-status-bar p { margin: 0; }
.oc-status-bar [role="alert"]:not(:empty) {
  color: #7c241e;
  background: #fff1ef;
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
}

.oc-editor { min-width: 0; }
.oc-editor h2 { overflow-wrap: anywhere; }
.oc-tabs { padding: 0.8rem 0; border-block: 1px solid var(--oc-line); }
.oc-row {
  --oc-row-columns: minmax(7.5rem, 1fr) auto auto;
  display: grid;
  grid-template-columns: var(--oc-row-columns);
  gap: 0.45rem 0.75rem;
  align-items: end;
  min-width: 0;
  margin: 0 0 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--oc-line);
  border-radius: 0.55rem;
  background: #fff;
}
#gear .oc-row {
  --oc-row-columns: minmax(7.5rem, 1fr) minmax(4.5rem, 5.5rem) auto auto auto;
}
#budget .oc-row {
  --oc-row-columns: minmax(8rem, 1fr) minmax(5rem, 0.5fr) minmax(5rem, 0.5fr) auto;
}
.oc-budget-totals { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin-block: 1rem; }
.oc-budget-totals p { display: grid; margin: 0.15rem 0; }
.oc-budget-totals strong { font-size: 1.2rem; color: var(--oc-ink); }

.oc-offer {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
  max-width: 70ch;
  margin-block: 1.35rem;
}
.oc-offer img { aspect-ratio: 1; object-fit: contain; margin: 0; }
.oc-offer .oc-kicker { margin-bottom: 0.4rem; }
.oc-offer .oc-actions { margin-top: 0.65rem; }
.oc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.oc-print { display: none; }

@media (max-width: 49rem) {
  .oc-hero { grid-template-columns: minmax(0, 1fr); }
  .oc-hero img { aspect-ratio: 16 / 10; }
  #gear .oc-row { --oc-row-columns: repeat(3, minmax(0, 1fr)); }
  #gear .oc-row .oc-field:first-of-type { grid-column: 1 / -1; }
  #budget .oc-row { --oc-row-columns: repeat(2, minmax(0, 1fr)); }
  #budget .oc-row .oc-field:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 32rem) {
  .oc-main { width: min(100% - 1.15rem, 73rem); }
  .oc-create, .oc-fields { grid-template-columns: minmax(0, 1fr); }
  .oc-row { --oc-row-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .oc-row .oc-field:first-of-type { grid-column: 1 / -1; }
  #gear .oc-row { --oc-row-columns: repeat(2, minmax(0, 1fr)); }
  .oc-offer { grid-template-columns: minmax(0, 1fr); }
  .oc-offer img { width: min(100%, 6.5rem); }
  .oc-status-bar { padding-inline: 0; }
}

@media print {
  body.oc-planner-page > :not(.oc-print) { display: none !important; }
  body.oc-planner-page > .oc-print {
    display: block !important;
    color: #111;
    background: #fff;
    font: 11pt/1.4 system-ui, sans-serif;
    margin: 12mm;
    overflow-wrap: anywhere;
  }
  .oc-print h1 { font-size: 18pt; margin: 0.3rem 0 0.6rem; }
  .oc-print h2 { font-size: 13pt; margin: 0.65rem 0 0.15rem; break-after: avoid; }
  .oc-print p { margin: 0.35rem 0; }
  .oc-print dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.25rem 0.7rem;
    margin-block: 0.35rem;
  }
  .oc-print dd { margin: 0; white-space: pre-wrap; }
  .oc-print dt { font-weight: 700; }
  .oc-print ul { margin: 0 0 0.45rem; padding-inline-start: 1.25rem; }
  .oc-print li { break-inside: avoid; }
}
