/* =========================================================
   Sauter USA — site styles
   Palette & type follow the supplied brand guideline:
   Dark Blue #131C4E · Grey-Blue #7A97AB · Raspberry #863349
   Grey #D3D3D3 · White · slate tints #222E37 #3F5462 #D8E0E6
   Type: Noto Sans — Semi-Condensed Light for display, Regular/Medium for text
   ========================================================= */
:root {
  --dark-blue: #131C4E;
  --slate-900: #222E37;
  --slate-700: #3F5462;
  --slate-600: #4A6375;
  --grey-blue: #7A97AB;
  --grey-blue-200: #B9C8D2;
  --grey-blue-100: #D8E0E6;
  --grey-blue-50: #EEF2F5;
  --raspberry: #863349;
  --raspberry-bright: #AB415D;
  --raspberry-tint: #faf1f3;
  --grey: #D3D3D3;
  --white: #FFFFFF;

  --bg: var(--grey-blue-50);
  --surface: var(--white);
  --text: var(--slate-900);
  --muted: var(--slate-600);
  --accent: var(--raspberry);
  --accent-soft: var(--grey-blue-100);
  --border: var(--grey-blue-100);
  --danger-bg: var(--raspberry-tint);
  --danger-text: var(--raspberry);
  --radius: 6px;

  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: clip;
}

a { color: var(--slate-700); text-underline-offset: 3px; text-decoration-color: var(--raspberry-bright); }
a:hover { color: var(--raspberry); }

code {
  font-size: 0.9em;
  background: var(--grey-blue-100);
  padding: 1px 6px;
  border-radius: 4px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-blue-100);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

/* Sauter USA logo tile */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-900);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 11px;
  background: var(--dark-blue);
  color: var(--white);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* balance the trailing letter-space */
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 7px;
  height: 2px;
  background: var(--raspberry-bright);
}
.brand-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.brand:hover { color: var(--slate-900); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--slate-900); border-bottom-color: var(--raspberry-bright); }

/* ---------- Hero: full-width dark band ---------- */
/* The shadow paints the band edge to edge without making the page wider. */
.hero {
  color: var(--white);
  background: var(--slate-900);
  box-shadow: 0 0 0 100vmax var(--slate-900);
  clip-path: inset(0 -100vmax);
  padding: 88px 0 72px;
  margin-bottom: 56px;
}
.hero .eyebrow { color: var(--grey-blue); }
.hero h1 {
  font-stretch: 87.5%;
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
}
.hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 3px;
  background: var(--raspberry-bright);
  margin-top: 26px;
}
.hero p {
  font-size: 1.12rem;
  color: var(--grey-blue-200);
  max-width: 560px;
  margin: 0;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */
section { padding: 8px 0 56px; }
section > h2 {
  font-stretch: 87.5%;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.15;
  color: var(--slate-900);
  margin: 0 0 28px;
}
section > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--raspberry-bright);
  margin-top: 14px;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--grey-blue-100);
  border-top: 3px solid var(--grey-blue);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.card p { margin: 0; font-size: 1.05rem; }
.card p a { font-weight: 500; }
.card h2 {
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 6px;
}

/* Call-to-action band */
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-left: 4px solid var(--raspberry);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.cta h2 {
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 4px;
}
.cta p { margin: 0; color: var(--muted); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.button::after { content: "\2192"; letter-spacing: 0; font-size: 1rem; }
.button:hover { background: var(--dark-blue); color: var(--white); }
.button.ghost {
  background: transparent;
  color: var(--slate-900);
  box-shadow: inset 0 0 0 1px var(--slate-700);
}
.button.ghost:hover { background: var(--grey-blue-100); }
button.button { border: 0; cursor: pointer; }

/* ---------- Family page ---------- */
.banner {
  background: var(--white);
  border-left: 4px solid var(--raspberry);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 48px;
  box-shadow: 0 1px 0 var(--grey-blue-100);
}
.banner strong {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-right: 6px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-radius: var(--radius);
}
.list li {
  padding: 18px 24px;
  border-bottom: 1px solid var(--grey-blue-100);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}
.list li:last-child { border-bottom: 0; }
.list .when {
  color: var(--slate-600);
  font-weight: 400;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.gallery a { display: block; }
.gallery img, .gallery .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--grey-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  transition: opacity 0.15s ease;
}
.gallery a:hover img { opacity: 0.88; }

/* ---------- Footer ---------- */
footer {
  background: var(--slate-900);
  color: var(--grey-blue-200);
  padding: 30px 0;
  font-size: 0.85rem;
  margin-top: 24px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: var(--white); text-decoration-color: var(--raspberry-bright); }
footer a:hover { color: var(--grey-blue-200); }
.footer-mark {
  text-transform: uppercase;
  font-stretch: 87.5%;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--white);
  margin-right: 10px;
}

/* ---------- Forms & login ---------- */
.auth-card {
  max-width: 440px;
  margin: 72px auto;
  background: var(--surface);
  border: 1px solid var(--grey-blue-100);
  border-top: 4px solid var(--slate-900);
  border-radius: var(--radius);
  padding: 34px;
}
.auth-card h1 {
  font-stretch: 87.5%;
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0 0 8px;
}
.auth-card h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--raspberry-bright);
  margin-top: 14px;
}
.lead { color: var(--muted); margin: 0 0 24px; }

.field { display: block; margin-bottom: 18px; }
.field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-700);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: 4px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--slate-700);
  box-shadow: 0 0 0 3px var(--grey-blue-100);
}
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

.msg { padding: 13px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 0.95rem; }
.msg.error { background: var(--danger-bg); color: var(--danger-text); border-left: 3px solid var(--raspberry); }
.msg.ok { background: var(--white); border-left: 3px solid var(--grey-blue); }

.card form { margin-top: 16px; }
.card .lead { margin-bottom: 0; font-size: 0.95rem; }

.role-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--raspberry);
  color: var(--white);
  padding: 2px 9px;
  border-radius: 3px;
}

/* ---------- Admin content editor ---------- */
.editor-h {
  margin: 30px 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.edit-row {
  border: 1px solid var(--grey-blue-100);
  background: var(--grey-blue-50);
  border-radius: 4px;
  padding: 16px 16px 12px;
  margin-bottom: 12px;
}
.edit-row .field { margin-bottom: 12px; }
.edit-row.two { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.edit-row.two .remove-row { grid-column: 1 / -1; justify-self: start; }
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--raspberry);
  cursor: pointer;
}
.linklike:hover { text-decoration: underline; }
.editor-save {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-blue-100);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand-name { display: none; }
  .brand-mark { font-size: 0.8rem; height: 34px; padding: 0 8px; letter-spacing: 0.1em; text-indent: 0.1em; }
  .brand-mark::after { left: 8px; right: 8px; bottom: 6px; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.06em; white-space: nowrap; }
  .hero { padding: 56px 0 48px; margin-bottom: 40px; }
  .edit-row.two { grid-template-columns: 1fr; }
  .cta { padding: 22px; }
  .auth-card { margin: 40px auto; padding: 26px; }
}
.add-row { margin-bottom: 4px; }
.add-row::after { content: none; }

/* ---------- Profile: about, experience, education, skills ---------- */
.prose { max-width: 720px; font-size: 1.08rem; }
.prose p { margin: 0 0 14px; }
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-radius: var(--radius);
}
.entries li {
  padding: 22px 26px;
  border-bottom: 1px solid var(--grey-blue-100);
  border-left: 3px solid transparent;
}
.entries li:first-child { border-left-color: var(--raspberry-bright); }
.entries li:last-child { border-bottom: 0; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  flex-wrap: wrap;
}
.entries h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--slate-900);
}
.entry-org { color: var(--slate-600); font-size: 0.98rem; margin-top: 2px; }
.entry-dates {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
  white-space: nowrap;
}
.entry-body { margin-top: 10px; max-width: 760px; color: var(--slate-700); }
.entry-body p { margin: 0 0 8px; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: var(--grey-blue-100);
  color: var(--slate-900);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 3px;
}
.plain { list-style: none; padding: 0; margin: 4px 0 0; }
.plain li { padding: 3px 0; font-size: 1.02rem; }
.admin-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 40px; }
.edit-row.three { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 0 14px; }
.edit-row.three .wide, .edit-row.three .remove-row { grid-column: 1 / -1; }
.edit-row.three .remove-row { justify-self: start; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) {
  .edit-row.three, .field-grid { grid-template-columns: 1fr; }
  .entries li { padding: 18px; }
}

/* ---------- Invite links ---------- */
.field select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: 4px;
}
.invite-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0 16px; align-items: end; }
.invite-form .button { margin-bottom: 18px; height: 46px; }
.new-link {
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-left: 4px solid var(--raspberry);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.new-link h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }
.new-link p { margin: 0 0 14px; color: var(--muted); }
.copy-row { display: flex; gap: 10px; }
.copy-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--grey-blue-50);
  border: 1px solid var(--grey-blue-200);
  border-radius: 4px;
  color: var(--text);
}
.copy-row .button::after { content: none; }
.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-radius: var(--radius);
}
table.invites { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.invites th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
  padding: 14px 18px;
  border-bottom: 1px solid var(--grey-blue-100);
}
.invites td { padding: 14px 18px; border-bottom: 1px solid var(--grey-blue-100); vertical-align: middle; }
.invites tr:last-child td { border-bottom: 0; }
.inv-name { font-weight: 600; }
.inv-detail { color: var(--slate-600); font-size: 0.9rem; }
.inv-action { text-align: right; white-space: nowrap; }
.status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.status-active { background: var(--slate-900); color: var(--white); }
.status-waiting { background: var(--grey-blue-100); color: var(--slate-900); }
.status-expired, .status-cancelled { background: var(--grey-blue-50); color: var(--slate-600); box-shadow: inset 0 0 0 1px var(--grey-blue-200); }
.linklike.muted { color: var(--slate-600); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
@media (max-width: 760px) {
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .button { justify-self: start; }
  .copy-row { flex-direction: column; }
  .copy-row .button { align-self: flex-start; }
}

/* ---------- Mountain House calendar ---------- */
.cal {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-blue-100);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
}
.cal-top { position: absolute; top: 16px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav {
  pointer-events: auto;
  width: 38px; height: 38px;
  border: 1px solid var(--grey-blue-200);
  background: var(--white);
  border-radius: 50%;
  font-size: 1.4rem; line-height: 1;
  color: var(--slate-900);
  cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: var(--grey-blue-50); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px; }
.cal-title {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  height: 38px; line-height: 38px;
  margin-bottom: 8px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--slate-600); padding-bottom: 6px; }
.cal-day {
  position: relative;
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-900);
  cursor: default;
  padding: 0;
}
.cal-day span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  max-width: 100%;
  border-radius: 50%;
}
.cal-day.is-unavail { color: #9fb0bc; }
.cal-day.is-unavail span { text-decoration: line-through; }
.cal-day.is-today span { box-shadow: inset 0 0 0 1px var(--grey-blue); }
.cal-range .cal-day:not(:disabled), .cal-admin .cal-day:not(:disabled) { cursor: pointer; }
.cal-range .cal-day:not(:disabled):hover span, .cal-admin .cal-day:not(:disabled):hover span { box-shadow: inset 0 0 0 2px var(--slate-900); }
.cal-day.can-out.is-unavail { color: var(--slate-900); }
.cal-day.can-out.is-unavail span { text-decoration: none; }
.cal-day.too-short { color: #9fb0bc; }
.cal-day.in-range::before, .cal-day.is-end::before, .cal-day.is-start::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0;
  background: var(--grey-blue-100);
}
.cal-day.is-start::before { left: 50%; }
.cal-day.is-end::before { right: 50%; }
.cal-day.is-start:not(.has-end)::before { display: none; }
.cal-day.is-start span, .cal-day.is-end span { background: var(--slate-900); color: var(--white); text-decoration: none; }

/* admin colours */
.cal-day.st-approved span { background: var(--raspberry); color: var(--white); }
.cal-day.st-pending span { background: var(--raspberry-tint); color: var(--raspberry); box-shadow: inset 0 0 0 1px var(--raspberry-bright); }
.cal-day.st-blackout span { background: repeating-linear-gradient(135deg, var(--grey-blue-100) 0 4px, var(--grey-blue-200) 4px 8px); color: var(--slate-700); }
.cal-admin .cal-day.is-start span, .cal-admin .cal-day.is-end span { background: var(--slate-900); color: var(--white); box-shadow: none; }

.cal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--grey-blue-100);
  font-size: 0.9rem;
}
.cal-key { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-600); }
.cal-key i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.k-open { box-shadow: inset 0 0 0 1px var(--slate-700); }
.k-unavail { background: var(--grey-blue-100); }
.k-approved { background: var(--raspberry); }
.k-pending { background: var(--raspberry-tint); box-shadow: inset 0 0 0 1px var(--raspberry-bright); }
.k-blackout { background: repeating-linear-gradient(135deg, var(--grey-blue-100) 0 3px, var(--grey-blue-200) 3px 6px); }
.cal-sel { font-weight: 600; }
.cal-hint { color: var(--slate-600); }
.cal-msg { flex-basis: 100%; color: var(--raspberry); font-weight: 500; }
.cal-admin .cal-sel { margin-left: auto; }

/* ---------- Mountain House pages ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; color: var(--grey-blue-200); font-size: 0.95rem; }
.facts b { color: var(--white); font-weight: 600; }
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.book-panel { position: sticky; top: 92px; }
.book-panel .card { border-top-color: var(--slate-900); }
.stay-summary { background: var(--grey-blue-50); border-radius: 4px; padding: 12px 14px; margin-bottom: 18px; font-size: 0.95rem; }
.stay-summary strong { display: block; font-size: 1.02rem; }
.stay-summary.empty { color: var(--slate-600); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.summary-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.summary-table th { text-align: left; font-weight: 500; color: var(--slate-600); font-size: 0.85rem; padding: 9px 16px 9px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.summary-table td { padding: 9px 0; font-weight: 600; border-bottom: 1px solid var(--grey-blue-100); }
.summary-table tr:first-child td, .summary-table tr:first-child th { border-top: 1px solid var(--grey-blue-100); }
.summary-table th { border-bottom: 1px solid var(--grey-blue-100); }
.status-pending { background: var(--raspberry-tint); color: var(--raspberry); box-shadow: inset 0 0 0 1px var(--raspberry-bright); }
.status-approved { background: var(--raspberry); color: var(--white); }
.status-declined { background: var(--grey-blue-50); color: var(--slate-600); box-shadow: inset 0 0 0 1px var(--grey-blue-200); }
.status-unused { background: var(--grey-blue-100); color: var(--slate-900); }
.status-used { background: var(--slate-900); color: var(--white); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.request-card { border-top-color: var(--raspberry); margin-bottom: 16px; }
.request-card .entry-head h3 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--slate-900); margin: 0; }
.cal-day.is-out { color: #b5c2cc; }
.request-meta { color: var(--slate-600); font-size: 0.92rem; margin: 6px 0 14px; }
.request-meta span { margin-right: 16px; white-space: nowrap; }
.request-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.request-actions .field { margin: 0; }
.button.danger { background: transparent; color: var(--raspberry); box-shadow: inset 0 0 0 1px var(--raspberry); }
.button.danger:hover { background: var(--raspberry-tint); }
.button.danger::after, .button.plain::after { content: none; }
.block-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0 14px; margin-top: 18px; }
.block-form .inline-actions { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-panel { position: static; }
  .request-actions, .block-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cal { padding: 16px 12px 14px; }
  .cal-top { top: 10px; left: 8px; right: 8px; }
}

/* Phones: when the menu doesn't fit beside the logo, give it its own row */
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 10px; padding-bottom: 6px; }
  .site-header .nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; margin-left: auto; }
}
@media (max-width: 480px) {
  .site-header .brand:has(.role-pill) + .nav { width: 100%; justify-content: flex-start; padding-top: 4px; }
}

/* Shared house: spots-left labels under partly booked nights */
.cal-day[data-left] { height: 56px; }
.cal-day[data-left] span { width: 36px; height: 36px; transform: translateY(-9px); }
.cal-day[data-left]::after {
  content: attr(data-left);
  position: absolute; left: 0; right: 0; bottom: 1px;
  z-index: 2;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0;
  color: var(--raspberry);
  white-space: nowrap;
}
.cal-day.is-unavail[data-left]::after { color: #9fb0bc; }
.cal-admin .cal-day[data-left]::after { color: var(--slate-600); }
.cal-day.is-limited span { box-shadow: inset 0 0 0 1px var(--raspberry-bright); }
.k-limited { box-shadow: inset 0 0 0 1px var(--raspberry-bright); background: var(--raspberry-tint); }
.cal-grid { row-gap: 2px; }

/* ---------- Mountain House property page ---------- */
.hero-photo::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);  /* edge to edge, like the dark band */
  background: linear-gradient(90deg, rgba(34,46,55,.94) 0%, rgba(34,46,55,.82) 45%, rgba(34,46,55,.45) 100%), var(--hero-img) center / cover no-repeat;
}
.hero-photo { position: relative; }
.hero-photo > * { position: relative; z-index: 1; }
.page-jump { margin: -24px 0 36px; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
.photo-grid.count-1 { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.photo-grid.count-2 { grid-template-columns: 1.5fr 1fr; grid-auto-rows: 360px; }
.photo-grid .photo:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid.count-1 .photo:first-child, .photo-grid.count-2 .photo:first-child { grid-column: auto; grid-row: auto; }
.photo {
  position: relative; display: block; padding: 0; border: 0; margin: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--grey-blue-100);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photo:hover img { transform: scale(1.03); }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; text-align: left;
  font-size: 0.85rem; font-weight: 500; color: #fff;
  background: linear-gradient(transparent, rgba(19,28,78,.75));
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,20,23,.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6ecf0; margin-top: 12px; font-size: 0.95rem; white-space: pre; }
.lb-close, .lb-nav {
  position: fixed; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.map { height: 380px; border-radius: 4px; background: var(--grey-blue-100); z-index: 0; }
.map-card { padding: 14px; }
.card-prose p { margin: 0 0 10px; font-size: 0.98rem; color: var(--slate-700); }
.card-prose p:last-child { margin-bottom: 0; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.link-list a {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  background: var(--white); border: 1px solid var(--grey-blue-100); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--slate-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.link-list a:hover { border-color: var(--slate-700); box-shadow: 0 2px 10px rgba(34,46,55,.08); }
.link-label { font-weight: 600; }
.link-note { color: var(--slate-600); font-size: 0.92rem; }
.link-host { margin-top: auto; padding-top: 6px; font-size: 0.78rem; color: var(--raspberry); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 760px) {
  .photo-grid, .photo-grid.count-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .photo-grid .photo:first-child, .photo-grid.count-2 .photo:first-child { grid-column: span 2; grid-row: span 2; }
  .photo-grid.count-1 { grid-auto-rows: 260px; }
  .lightbox figure { padding: 60px 8px 20px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .map { height: 300px; }
}

/* Property editor */
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 10px; }
.upload-row input[type=file] { font: inherit; font-size: 0.92rem; }
.photo-edit { display: grid; gap: 10px; margin-bottom: 8px; }
.photo-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--grey-blue-100); border-radius: 4px; background: var(--grey-blue-50); }
.photo-row img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; display: block; }
.photo-row .field { margin: 0; }
.photo-tools { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.photo-tools .linklike { font-size: 1.1rem; }
.ph-remove { color: var(--raspberry); font-weight: 600; font-size: 0.85rem; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
@media (max-width: 640px) {
  .photo-row { grid-template-columns: 90px 1fr; }
  .photo-row img { width: 90px; height: 64px; }
  .photo-tools { grid-column: 1 / -1; }
}

/* Booking codes column & guest names */
.code-cell { min-width: 150px; }
.code-cell .hint { font-size: 0.85rem; }
.code-text { white-space: nowrap; }
#codes .inv-detail { min-width: 200px; }
.code-text { font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.code-text.muted { color: var(--slate-600); font-weight: 500; }
.code-copy { display: block; margin-top: 2px; }
.code-copy .linklike { font-size: 0.8rem; margin-right: 10px; }
.guest-list { white-space: normal !important; }
fieldset.guest-names { border: 1px solid var(--grey-blue-100); border-radius: 4px; padding: 12px 14px 4px; margin: 0 0 18px; }
fieldset.guest-names legend { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-700); padding: 0 6px; }
fieldset.guest-names .field { margin-bottom: 10px; }
fieldset.guest-names .field span { font-size: 0.7rem; letter-spacing: .08em; color: var(--slate-600); margin-bottom: 4px; }
fieldset.guest-names .hint { display: block; margin: -2px 0 10px; font-size: 0.82rem; }

/* Invitation form & code actions */
.code-form { display: grid; grid-template-columns: 1fr 1.3fr 1fr 0.8fr; gap: 0 14px; align-items: end; margin-top: 16px; }
.code-form .wide { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--slate-700); margin: 0 0 16px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--slate-900); }
.lock-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--grey-blue-100); color: var(--slate-700); padding: 0 6px; border-radius: 3px; }
.inv-action .linklike + .linklike { margin-left: 12px; }
.linklike.resend { color: var(--slate-900); }
.code-copy a.linklike { text-decoration: none; font-size: 0.8rem; }
.text-btn::after { content: none; }
@media (max-width: 860px) { .code-form { grid-template-columns: 1fr; } }
.field input.is-locked { background: var(--grey-blue-50); color: var(--slate-700); }

[hidden] { display: none !important; }

/* Outlook section */
.setup-steps { margin: 0 0 18px; padding-left: 20px; color: var(--slate-700); font-size: 0.95rem; }
.setup-steps li { margin-bottom: 8px; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.copy-line code { word-break: break-all; font-size: 0.82rem; }
.feed-line code { background: var(--grey-blue-50); padding: 8px 10px; border-radius: 4px; display: block; width: 100%; }
@media (max-width: 860px) { #outlook .grid { grid-template-columns: 1fr !important; } }
