/*
 * Camperhosts: the one stylesheet.
 *
 * Rules (specification section 3 and 16):
 * - Sizes are in rem, so every page follows the text size set on the phone (U6).
 *   Never set a pixel size on the page root.
 * - Colours come from the logo. Hand-drawn lettering is for the logo and an occasional heading;
 *   everything people must read uses the system font.
 * - One main button per screen (U1).
 */

:root {
  --ink: #2B2A28;
  --green: #4E8C4A;
  --sun: #F2B33D;
  --sage: #DCE5C8;
  --window-blue: #D9E8EF;
  --sand: #F0D9B5;
  --terracotta: #C9684A;
  --fence-brown: #8C5A3C;
  --text-grey: #5F5E5A;
  --text-grey-light: #7A7974;
  --cream: #FBF3E4;

  --page-width: 40rem;
  /* The space at the sides. It stops growing with the text on a narrow screen,
     so very large text keeps as much width as possible. */
  --gap: min(1rem, 4vw);
}

/* Patrick Hand: the handwriting of the taglines in the logo. Used for a few large headings on
   public pages only (specification 16). Served from our own server; the licence is next to the
   file. Until it has loaded, the heading shows in the system font. */
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/patrick-hand-latin-5c718c609b6731c2eb13e9792f675cef.woff2") format("woff2");
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On iPhones this makes the page follow the text size chosen in Settings.
   To be confirmed on a real iPhone at the end of each slice (U6). */
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  /* A long word (Dutch has many, such as "mobilhomereizigers") breaks onto the next line
     when it is wider than the screen at a large text size, instead of running off the side.
     No automatic hyphens: they split Dutch compounds in the wrong place. */
  overflow-wrap: break-word;
}

a {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 0.2rem solid var(--ink);
  outline-offset: 0.15rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header: the round icon with the name in text, and the language switch. */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--gap);
}

/* With very large text the name moves under the icon instead of running off the screen. */
.brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand img {
  width: min(3rem, 18vw);
  height: auto;
}

/* The menu in the header: a few links, the languages under one item that folds open. */
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.menu > a,
.menu .sign-out button,
.languages summary {
  display: inline-block;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.menu > a:hover,
.menu > a:focus-visible,
.languages summary:hover {
  background: var(--sage);
}

.menu .sign-out {
  margin: 0;
}

.menu .sign-out button {
  border: 0;
  background: none;
  cursor: pointer;
}

.languages {
  position: relative;
}

.languages summary {
  list-style: none;
  cursor: pointer;
  border: 0.125rem solid var(--sage);
}

.languages summary::-webkit-details-marker {
  display: none;
}

.languages summary::after {
  content: " \25BE";
  font-size: 0.8em;
}

.languages ul {
  position: absolute;
  right: 0;
  z-index: 2;
  min-width: 10rem;
  margin: 0.25rem 0 0;
  padding: 0.25rem;
  border: 1px solid var(--sage);
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem rgb(43 42 40 / 0.15);
  list-style: none;
}

.languages li a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.languages li a[aria-current="true"] {
  background: var(--sage);
  font-weight: 700;
}

/* Page content */

main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gap) 3rem;
}

/*
 * The home page: bands across the full width, each with its content in the middle. From the top:
 * the banner photo, the introduction, a band for hosts, the three steps, a band for motorhome
 * owners, and the drawing with the slogan. All on the cream page colour, separated by thin lines.
 */

/*
 * The banner photo across the full width, at the very top, with the header lying in its sky.
 *
 * The photo is four times as wide as it is high. On a wide screen it shows whole; on a narrower
 * one only its sides are cut, never its top, so the header stays in the sky at every width
 * (the 380px minimum keeps enough sky for it). Beyond 2420px wide the bottom is cut instead.
 * The height is in pixels, not rem: a photo need not grow with the text size.
 */
.banner {
  position: relative;
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: clamp(380px, 24.8vw, 600px);
  object-fit: cover;
  object-position: 57% 0%;
}

/* A soft veil of the page colour along the top of the photo keeps the header readable where it
   touches trees or roofs, and at large text sizes. It grows with the text, in rem. */
.banner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7rem;
  background: linear-gradient(rgb(251 243 228 / 0.6), rgb(251 243 228 / 0));
  pointer-events: none;
}

/* The page title in white over the lower part of the photo, on a soft dark fade so it stays
   readable on the bright vines. */
.banner-title {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 5rem 0 1.75rem;
  background: linear-gradient(rgb(43 42 40 / 0), rgb(43 42 40 / 0.55));
}

.banner-title .inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.banner-title h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Patrick Hand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
  line-height: 1.1;
  text-shadow: 0 1px 6px rgb(43 42 40 / 0.5);
}

/* On a page that opens with the banner, the header lies over the top of the photo, in its sky. */
.with-banner .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
}

/* On the home page the header spans the same width as the bands below it. */
body:has(main.home) .site-header {
  max-width: 58rem;
}

/* On a phone the header takes two short rows on every page; under the banner that keeps both
   in the sky, and the menu items get a pale pill so they stay readable on the photo, also with
   large text. */
@media (max-width: 47.99em) {
  .site-header {
    row-gap: 0.25rem;
    padding-top: 0.75rem;
  }

  .brand img {
    width: min(2.5rem, 15vw);
  }

  .menu > a,
  .menu .sign-out button,
  .languages summary {
    padding: 0.45rem 0.6rem;
  }

  .with-banner .menu > a,
  .with-banner .menu .sign-out button,
  .with-banner .languages summary {
    background: rgb(251 243 228 / 0.85);
  }
}

/* The page you are on, in the menu. */
.menu > a[aria-current="page"] {
  background: var(--sage);
}

main.home {
  max-width: none;
  padding: 0;
}

.home .inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Every heading on the home page: the same handwriting, the same size, the same left edge. */
.home h1,
.home h2 {
  margin: 0 0 0.75rem;
  font-family: "Patrick Hand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  text-align: left;
}

/* The top of the home page: a heading, one paragraph, the drawing of the logo with the slogan
   in the visitor's language, and a short note that the service starts soon. One narrow,
   centred column with calm, even spacing. */
.hero {
  padding: 2.5rem 0 3rem;
}

/* On a wide screen the title stays on one line; on a phone its lines are balanced. */
.hero h1 {
  text-wrap: balance;
}

.hero .lead {
  margin: 0;
}

/* The drawing keeps its size; the slogan under it may be wider, so it fits on one line. */
.drawing {
  margin: 0 auto;
}

/* The end of the home page: the drawing and the slogan on the page colour. */
.sign-off {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--sage);
  text-align: center;
}

.sign-off .drawing img {
  max-width: 20rem;
}

.drawing img {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 0 auto;
}

/* The slogan in the handwriting and the grey of the logo's own taglines. */
.slogan {
  margin-top: 0.6rem;
  color: var(--text-grey);
  font-family: "Patrick Hand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  line-height: 1.2;
  text-wrap: balance;
}


.how {
  padding: 3rem 0;
  border-top: 1px solid var(--sage);
}

.how h2 {
  margin-bottom: 1.25rem;
}

/* The three steps: side by side on a wide screen, under each other on a phone. */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  padding: 1.4rem 1.25rem 1.5rem;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--sun);
  font-size: 1.15rem;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

.steps p {
  margin: 0;
}

/*
 * Two bands with one action each: the band for hosts and the band for motorhome owners.
 * They share one layout and one button width, so the two buttons always stand exactly above
 * each other and are the same size, at every screen width.
 */
.cta {
  padding: 3rem 0;
}

/* Both bands white, each with a thin line above; the buttons carry the colour. */
.cta {
  border-top: 1px solid var(--sage);
}

.cta .inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta h2 {
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.cta p {
  margin: 0;
  font-size: 1.2rem;
}

/* Each sentence on its own line. */
.cta p + p {
  margin-top: 0.3rem;
}

.cta .button {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

@media (min-width: 48em) {
  .cta .inner {
    grid-template-columns: 1fr 17rem;
    gap: 2.5rem;
  }

  .cta .button {
    max-width: none;
  }
}

/* The second button of the page, for the less urgent action: sun yellow with dark text.
   Written as ".button.button-yellow" so it wins over the general button style further down. */
.button.button-yellow {
  background: var(--sun);
  color: var(--ink);
}

.lead {
  font-size: 1.25rem;
}

h1 {
  margin: 1rem 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.points {
  margin: 0;
  padding-left: 1.4rem;
}

.points li {
  margin-bottom: 0.6rem;
}

.note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: var(--sage);
}

/* Forms: a label above each field, large fields, and an error next to the field it is about (U8).
   An error is marked by a bar and bold text, never by colour alone (U6). */

.field {
  margin: 0 0 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input[aria-invalid="true"] {
  border-color: var(--terracotta);
  border-width: 0.2rem;
}

.hint {
  margin: 0.35rem 0 0;
  color: var(--text-grey);
}

.error {
  margin: 0.4rem 0 0;
  padding-left: 0.7rem;
  border-left: 0.3rem solid var(--terracotta);
  font-weight: 700;
}

form > .error {
  margin-bottom: 1.25rem;
}

/* The main form of a page in a white card, so it reads as the thing to do. */
.form-card {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem min(1.25rem, 4vw) 1.5rem;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
  /* When the page returns at "#form", keep a little space above the card. */
  scroll-margin-top: 1rem;
}

.form-card h2 {
  margin-top: 0;
}

/* What a form's answers are used for, right above its button. */
.consent {
  margin: 0 0 1.25rem;
  color: var(--text-grey);
}

/* A field that only programs fill in. Kept out of sight without "display: none",
   which some of those programs skip. */
.not-for-people {
  position: absolute;
  left: -100rem;
  width: 1rem;
  height: 1rem;
  overflow: hidden;
}

/* The one main button of a screen (U1). The label is large and bold: white on this green
   needs that size to stay readable. */

.button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/*
 * Long texts: the host rules, the code of conduct and the one-pager. Numbered rules with a bold
 * first sentence, a small line above the title with version and date, and a print layout that
 * fits the one-pager on one A4 page.
 */

.document .eyebrow {
  margin: 1.5rem 0 0.25rem;
  color: var(--text-grey);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.document h1 {
  margin-top: 0;
}

.document h2 {
  margin-top: 2rem;
}

.rules {
  margin: 0;
  padding-left: 1.6rem;
}

.rules li {
  margin-bottom: 0.9rem;
  padding-left: 0.2rem;
}

.rules li::marker {
  font-weight: 700;
  color: var(--green);
}

.one-pager .columns {
  display: grid;
  gap: 0 2rem;
}

@media (min-width: 48em) {
  .one-pager .columns {
    grid-template-columns: 1fr 1fr;
  }
}

.one-pager h2 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.steps-inline {
  margin: 0;
  padding-left: 1.6rem;
}

.steps-inline li {
  margin-bottom: 0.4rem;
}

.steps-inline li::marker {
  font-weight: 700;
  color: var(--green);
}

/* Addresses and domain names may break anywhere at large text sizes. */
.one-pager p,
.one-pager li {
  overflow-wrap: anywhere;
}

.one-pager .contact {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 0.6rem;
}

@media print {
  .site-header,
  .banner,
  .no-print {
    display: none;
  }

  body {
    background: #fff;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .document .eyebrow {
    margin-top: 0;
  }

  .document h1 {
    font-size: 18pt;
  }

  .document .lead {
    font-size: 11pt;
  }

  .one-pager h2 {
    margin: 0.9rem 0 0.3rem;
  }

  .one-pager .columns {
    grid-template-columns: 1fr 1fr;
  }

  .points li,
  .steps-inline li {
    margin-bottom: 0.25rem;
  }

  .one-pager .contact {
    margin-top: 0.5rem;
    padding: 0.4rem 0.7rem;
  }

  .one-pager .note {
    margin-top: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  a {
    text-decoration: none;
  }
}

/* A row of secondary buttons: outlined, so the one filled button of the page keeps its weight.
   Side by side on a wide screen, under each other on a phone. */
.button-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 40em) {
  .button-row {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

.button.button-outline {
  border: 0.125rem solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
}

/* An outlined button that keeps its natural width, for one action inside a text page. */
.button.button-inline {
  display: inline-block;
  width: auto;
  padding: 0.7rem 1.4rem;
}

.button.button-outline:hover,
.button.button-outline:focus-visible {
  background: var(--sage);
}

/*
 * The closed areas: the host's own pages (7.2 to 7.4) and the back office (section 8).
 * Same rules as the public pages; a few more kinds of field, a calendar and a map.
 */

main.app h1 {
  margin-top: 0.5rem;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.sign-out {
  margin: 0;
}

/* A button that looks like a link, for small actions that must be a POST. */
button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.status {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  background: var(--sage);
  font-size: 0.95rem;
  font-weight: 700;
}

.status-live {
  background: var(--green);
  color: #fff;
}

.status-submitted,
.status-changes-requested {
  background: var(--sun);
}

.status-suspended,
.status-closed {
  background: var(--sand);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1rem;
}

/* The steps of the listing, each with a mark once it holds what is needed. */
.checklist {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0 0.75rem 2.4rem;
  border-top: 1px solid var(--sage);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--sage);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  width: 1.3rem;
  height: 1.3rem;
  border: 0.125rem solid var(--text-grey-light);
  border-radius: 50%;
  box-sizing: border-box;
}

.checklist li.done::before {
  content: "\2713";
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.checklist a {
  color: var(--ink);
  font-weight: 700;
}

.small {
  color: var(--text-grey);
  font-size: 0.95rem;
}

.muted {
  color: var(--text-grey);
}

/* More kinds of field. */
.field select,
.field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input.short {
  width: 9rem;
}

.field input[type="time"],
.field input[type="date"],
.field input[type="number"] {
  width: auto;
  min-width: 8rem;
}

.field input[type="file"] {
  padding: 0.6rem;
}

fieldset.field {
  padding: 0;
  border: 0;
  margin: 0 0 1.25rem;
}

fieldset.field legend {
  margin-bottom: 0.35rem;
  padding: 0;
  font-weight: 700;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.field-row .field {
  flex: 1 1 8rem;
}

/* A checkbox or radio with its text, large enough to tap. Named twice so that it wins from
   ".field label", which puts a label on its own line. */
.check,
.field .check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 0.6rem;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--green);
}

.check.accept {
  margin: 1.25rem 0;
  font-weight: 700;
}

/* 1, 2 or 3 motorhomes: three large boxes. */
.choices {
  display: flex;
  gap: 0.75rem;
}

.choice {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.25rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.6rem;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.choice input {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--green);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: var(--sage);
}

details.more {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
}

details.more summary {
  font-weight: 700;
  cursor: pointer;
}

details.more[open] summary {
  margin-bottom: 1rem;
}

/* The map: as high as it can be on a phone without hiding the button under it. */
.map {
  height: min(60vh, 28rem);
  margin: 1rem 0 0.5rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.75rem;
  background: var(--window-blue);
}

.map-tall {
  height: min(70vh, 36rem);
}

.map-marker {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  cursor: grab;
}

.maplibregl-ctrl-attrib {
  font-size: 0.75rem;
}

/* Photos: a grid of thumbnails with their actions beneath. */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.photos li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--sage);
}

.photo-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.photo-actions {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.photo-actions form {
  margin: 0;
}

.small-photos {
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
}

/* The pause switch above the availability form. */
.pause {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--sage);
}

.pause p {
  margin: 0 0 0.75rem;
}

/* The calendar (H5): each day a button, large enough for a thumb. */
.calendar {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.days {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.25rem;
  table-layout: fixed;
}

.days th {
  padding: 0.25rem 0;
  color: var(--text-grey);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.days td {
  padding: 0;
}

.days button {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0;
  border: 0.125rem solid var(--sage);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.days td.open button {
  border-color: var(--green);
  background: var(--sage);
}

.days td.closed button {
  background: var(--sand);
  text-decoration: line-through;
}

.days td.off button,
.days td.past button {
  border-color: transparent;
  color: var(--text-grey-light);
  background: transparent;
  cursor: default;
}

.days td.outside button {
  visibility: hidden;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
  margin: 0.75rem 0 0;
  color: var(--text-grey);
  font-size: 0.95rem;
}

.swatch {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 0.125rem solid var(--sage);
  border-radius: 0.3rem;
  vertical-align: middle;
}

.swatch.open {
  border-color: var(--green);
  background: var(--sage);
}

.swatch.closed {
  background: var(--sand);
}

.short-rules li {
  margin-bottom: 0.5rem;
}

/* The back office: lists, a table and filters. Admins use a desktop more often, but it works
   on a phone too. */
.list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 0.5rem;
}

form.inline {
  display: inline;
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters a {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--sage);
  border-radius: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.filters a.current {
  background: var(--sage);
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.table th,
.table td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--sage);
  text-align: left;
  vertical-align: top;
}

.summary {
  margin: 1rem 0;
}

.summary dt {
  color: var(--text-grey);
  font-size: 0.95rem;
}

.summary dd {
  margin: 0 0 0.75rem;
  white-space: pre-line;
}

.actions {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
}

.actions .button-row {
  margin-top: 0.5rem;
}

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* On the page for hosts: the way to register yourself, under the "Call me" form. */
.register-yourself {
  margin: 2rem 0 0;
  padding: 1.25rem min(1.25rem, 4vw);
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
}

.register-yourself h2 {
  margin-top: 0;
}

.register-yourself .small {
  margin: 0.75rem 0 0;
}

/* A wide table scrolls sideways on a phone instead of pushing the page out. */
.table-wrap {
  overflow-x: auto;
}

/* "needed": the few fields a listing needs before it can go live (U2). */
.needed {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 0.6rem;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

/* The note of the background save, under the form. */
.autosave-note {
  min-height: 1.4rem;
  margin: 0.5rem 0 0;
  color: var(--text-grey);
  font-size: 0.95rem;
  text-align: center;
}

/* The way to reach Camperhosts at the bottom of every page of the host area (U12). */
.help {
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sage);
  color: var(--text-grey);
  font-size: 0.95rem;
}

/* "Mijn bedrijf": sections with a small "Change" link next to each heading, and the type icon. */
.business h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.business h2 .edit {
  font-size: 1rem;
  font-weight: 400;
}

.business section {
  margin-bottom: 1.75rem;
}

.type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.type img {
  width: 1.75rem;
  height: 1.75rem;
}

/* The links under the sign-in form, each on its own line. */
.links a {
  display: block;
  margin-top: 0.5rem;
}

/* The way back above a page of the host area: a small chevron and the name of the overview. */
.topline .back {
  color: var(--text-grey);
  text-decoration: none;
}

.topline .back::before {
  content: "\2039\00a0";
}

.topline .back:hover,
.topline .back:focus-visible {
  text-decoration: underline;
}

/* "Step 2 of 5": a dot per step, the ones done in green, the current one outlined. */
.steps-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.steps-dots > span:not(.steps-text) {
  width: 0.7rem;
  height: 0.7rem;
  border: 0.125rem solid var(--sage);
  border-radius: 50%;
  box-sizing: border-box;
}

.steps-dots > span.done {
  border-color: var(--green);
  background: var(--green);
}

.steps-dots > span.current {
  border-color: var(--green);
}

.steps-text {
  margin-left: 0.4rem;
  color: var(--text-grey);
  font-size: 0.95rem;
}

/* The part of the back office that removes things: set apart, never the main button. */
.danger {
  margin-top: 2rem;
  padding: 1rem;
  border: 0.125rem solid var(--terracotta);
  border-radius: 0.75rem;
}

.danger h2 {
  margin-top: 0;
}

/* The requests to be called: one card per business, the status form beside it on a wide screen. */
.calls {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.calls li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-top: 1px solid var(--sage);
}

.calls li:last-child {
  border-bottom: 1px solid var(--sage);
}

.calls li.call-registered .call-who,
.calls li.call-not-interested .call-who {
  color: var(--text-grey);
}

.call-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.call-status select {
  padding: 0.5rem 0.6rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
}

/* Two buttons under each other in a band: the filled one first, the outlined one below. */
.cta-buttons {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.cta-buttons .button {
  max-width: none;
}

@media (min-width: 48em) {
  .cta-buttons {
    max-width: none;
  }
}

/* The link to the explanation on the hosts page and the registration page. */
.more-info {
  margin: -0.5rem 0 1.5rem;
}

/* The "how it works" page: the sections share the width of the home page bands. */
.info .travellers,
.info .example {
  padding: 3rem 0;
  border-top: 1px solid var(--sage);
}

.info .how .cta-buttons {
  margin-top: 2rem;
}

.example-map {
  margin: 1.5rem 0 1rem;
}

.example-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
}

.example-map figcaption {
  margin-top: 0.4rem;
  color: var(--text-grey);
  font-size: 0.9rem;
}

/* The search as members use it: a row of filled-in choices. */
.example-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.chip {
  padding: 0.45rem 0.85rem;
  border: 0.125rem solid var(--green);
  border-radius: 2rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

/* The example host: a card with its photo on top. */
.example-host {
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--sage);
  border-radius: 0.75rem;
  background: #fff;
}

.example-host > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 248;
  object-fit: cover;
}

.example-body {
  padding: 1rem 1.25rem 1.25rem;
}

.example-body h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.4rem;
}

.example-type {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--text-grey);
}

.example-type img {
  width: 1.75rem;
  height: 1.75rem;
}

.example-body .summary {
  margin-bottom: 0;
}

/* On the "how it works" page the steps come in fours: two by two on a wide screen. */
@media (min-width: 48em) {
  .info .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "hidden" wins over the display of a button (the photo button once a chosen photo sends itself). */
.button[hidden] {
  display: none;
}

/* Picking a photo: a large button; the native field stays for the keyboard and for no-script,
   out of sight. */
.photo-field .pick-photo {
  cursor: pointer;
}

.photo-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.photo-field input[type="file"]:focus-visible + .hint {
  text-decoration: underline;
}

/* "Show password" under a password field. */
.show-password {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

.swatch.off {
  border-color: transparent;
  background: transparent;
}

/* The foot of every page. */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--sage);
  color: var(--text-grey);
  font-size: 0.95rem;
}

.site-footer .inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

body:has(main.home) .site-footer .inner {
  max-width: 58rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}

.site-footer a {
  color: var(--text-grey);
}

/* The hosts page shares the handwriting headings of the home page. */
.hosts h1,
.hosts h2 {
  font-family: "Patrick Hand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hosts h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.2rem);
  line-height: 1.1;
}

.hosts h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem);
}

/* The questions hosts ask, as question and answer. */
.faq {
  margin: 1rem 0 2rem;
}

.faq dt {
  margin: 1rem 0 0.25rem;
  font-weight: 700;
}

.faq dd {
  margin: 0;
}

/* On the "how it works" page the buttons under the steps keep the width of one column. */
.info .how .cta-buttons {
  max-width: 24rem;
  margin-left: 0;
}

/* The example host shows another part of the picture than the top of the page. */
.example-photo {
  object-position: 15% 85%;
}

/* With very large text the step line and the month line wrap instead of running off the side. */
.topline,
.steps-dots,
.month-nav {
  flex-wrap: wrap;
}
