* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #173b37;
  background: #f6f7f1;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header,
footer,
main {
  max-width: 54rem;
  margin: auto;
  padding: 1.2rem clamp(1rem, 4vw, 2rem);
}
header,
footer {
  border-bottom: 1px solid #cddad2;
}
header a {
  font-size: 1.3rem;
  font-weight: 750;
}
a {
  color: #086857;
}
h1,
h2 {
  font-family: Georgia, serif;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin: 0.2rem 0;
}
h2 {
  font-size: 1.7rem;
}
small {
  letter-spacing: 0.12em;
  font-weight: bold;
  color: #44645e;
}
.intro {
  font-size: 1.15rem;
}
aside,
#msg:not(:empty) {
  padding: 0.8rem 1rem;
  background: #fff2cb;
  border-left: 4px solid #b58523;
}
#msg {
  /* Long payment/refund notices must not cover navigational controls. */
  position: static;
}
section.card,
details,
#keys:not([hidden]) {
  background: #fff;
  border: 1px solid #cbd9d1;
  border-radius: 0.75rem;
  padding: 1.1rem;
  margin: 1rem 0;
}
button,
.button {
  display: inline-block;
  font: inherit;
  color: white;
  background: #0a6456;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  margin: 0.2rem 0.15rem 0.2rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
button.alt,
.button.alt {
  color: #174e46;
  background: #e5eee8;
}
button:disabled {
  opacity: 0.6;
}
input,
select {
  font: inherit;
  width: 100%;
  padding: 0.55rem 0.45rem;
  border: 1px solid #82978f;
  border-radius: 0.3rem;
  background: white;
  color: #173b37;
  min-width: 0;
}
label {
  display: block;
  font-weight: 550;
  margin: 0.55rem 0;
}
input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
}
fieldset {
  border: 1px solid #ced9d2;
  margin: 1rem 0;
  padding: 0.8rem;
}
summary {
  cursor: pointer;
  font-weight: bold;
  /* A disclosure is a control: give it a real tap target instead of a bare line of text. */
  padding: 0.55rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.1rem 0.8rem;
}
.day {
  display: grid;
  grid-template-columns: minmax(4rem, 1fr) minmax(6rem, 1.4fr) minmax(3rem, 0.7fr);
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #e3e8e2;
  padding: 0.35rem 0;
}
.day label {
  margin: 0;
}
.day input,
.day select {
  padding: 0.5rem 0.2rem;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #dfe6df;
}
.line b {
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
code {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
  padding: 0.4rem;
  background: #f0f4f0;
}
nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}
footer {
  margin-block: 2rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #af7524;
  outline-offset: 2px;
}
#desk[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}
[hidden] {
  display: none !important;
}

/* Only the fixed-fictional-data walkthrough uses these rules. */
.review-walkthrough {
  overflow-wrap: anywhere;
  min-width: 0;
}
.review-walkthrough h1 {
  overflow-wrap: anywhere;
}
.review-walkthrough nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.review-walkthrough table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.review-walkthrough th,
.review-walkthrough td {
  overflow-wrap: anywhere;
  text-align: left;
  padding: 0.35rem;
  border-bottom: 1px solid #cbd9d1;
}
.review-walkthrough dd {
  margin: 0.2rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 650;
}

/* The sample prospetto on the sales page. Styling lives here because the site's CSP refuses
   inline style attributes: an inline rule would be silently dropped. */
.intro.tight { margin-bottom: .6rem }
/* Who takes the money belongs next to the price, not only in the footer. Same dark green as
   .button.alt, so the contrast stays well above AA on the white card. */
.sale-note { border-left: 4px solid #0a6456; padding: .1rem 0 .1rem .7rem; margin: .7rem 0 .2rem; color: #174e46 }
.prospetto { display: block; width: 100%; max-width: 640px; height: auto; border: 1px solid #cbd9d1; border-radius: .4rem }

/* The explanation pages. Styling lives here because the site's CSP refuses inline style
   attributes; the .guide wrapper keeps these rules away from the walkthrough attendance grid,
   whose row heights the phone walk asserts. */
.guide table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: .8rem 0 }
.guide th,
.guide td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #cbd9d1; vertical-align: top; white-space: nowrap }
/* Only the label column may wrap: a money figure broken across two lines ("314,8 8 €") is worse
   than a table that scrolls. */
.guide th:first-child,
.guide td:first-child { white-space: normal; overflow-wrap: anywhere; min-width: 7rem }
.guide th { background: #f0f4f0; font-weight: 650; white-space: normal }
.guide td { font-variant-numeric: tabular-nums }
/* Narrow screens: a four-column money table has to fit without the reader swiping to the column
   that answers the question. */
@media (max-width: 30rem) {
  .guide table { font-size: .8rem }
  .guide th,
  .guide td { padding: .28rem .3rem }
  .guide th:first-child,
  .guide td:first-child { min-width: 4.5rem }
}
.guide-note { font-size: .88rem; color: #44645e; border-top: 1px solid #cbd9d1; padding-top: .6rem; margin-top: .9rem }
.guide ol,
.guide ul { padding-left: 1.2rem }
.guide li { margin: .25rem 0 }
