/* Public terms: calm reading layout aligned with the STT rates page. */
.sttb-terms{
  --sttb-green:var(--stt-accent,#65794f);
  --sttb-ink:#29372e;
  --sttb-muted:#727b74;
  --sttb-line:#dfe5da;
  max-width:none;
  margin:1rem 0 2.75rem;
  color:var(--sttb-ink);
  font:inherit
}

/* WordPress owns the page title. This is only compact document metadata. */
.sttb-terms__header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem 2rem;
  margin:0 0 1.15rem;
  padding:0 0 .75rem;
  border-bottom:1px solid var(--sttb-line)
}
.sttb-terms__accommodation{
  color:var(--sttb-ink);
  font-size:.98rem;
  font-weight:750;
  line-height:1.3
}
.sttb-terms__meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:.2rem .85rem;
  color:var(--sttb-muted);
  font-size:.78rem;
  line-height:1.35;
  white-space:nowrap
}
.sttb-terms__meta span+span{position:relative;padding-left:.85rem}
.sttb-terms__meta span+span:before{
  content:'·';
  position:absolute;
  left:.18rem;
  color:var(--sttb-muted)
}

/* No document card: the legal text reads as part of the page. */
.sttb-terms__content{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
  color:var(--sttb-ink);
  font-size:.96rem;
  line-height:1.56
}
.sttb-terms__content> :first-child{margin-top:0}
.sttb-terms__content> :last-child{margin-bottom:0}
.sttb-terms__content p{margin:0 0 .72rem;line-height:1.56}
.sttb-terms__content p+p{margin-top:.08rem}

/* Imported legal clauses can be stored in one paragraph. The shortcode adds
   display-only breaks between numbered clauses; stored/published text is untouched. */
.sttb-terms__content br.sttb-terms__clause-break{
  display:block;
  content:'';
  margin-top:.22rem
}
.sttb-terms__content>div{margin:0 0 .72rem;line-height:1.56}
.sttb-terms__content ul,
.sttb-terms__content ol{margin:.45rem 0 .78rem;padding-left:1.25rem}
.sttb-terms__content li{margin:.24rem 0;line-height:1.54}

/* One clear document title, then calm numbered sections. */
.sttb-terms__content h1{
  margin:.05rem 0 1.05rem;
  color:var(--sttb-ink);
  font:inherit;
  font-size:1.18rem;
  font-weight:750;
  line-height:1.25
}
.sttb-terms__content h2,
.sttb-terms__content h3,
.sttb-terms__content h4{
  color:var(--sttb-ink);
  font:inherit;
  font-weight:750;
  line-height:1.3
}
.sttb-terms__content h2{
  margin:1.12rem 0 .42rem;
  padding-top:.82rem;
  border-top:1px solid var(--sttb-line);
  font-size:1.08rem
}
.sttb-terms__content h3{
  margin:.98rem 0 .36rem;
  padding-top:.7rem;
  border-top:1px solid var(--sttb-line);
  font-size:1rem
}
.sttb-terms__content h4{margin:.8rem 0 .32rem;font-size:.96rem}
.sttb-terms__content h1+h2,
.sttb-terms__content h1+h3{margin-top:.62rem}

.sttb-terms__content a{
  color:var(--sttb-green);
  font-weight:650;
  text-decoration-thickness:1px;
  text-underline-offset:2px
}
.sttb-terms__content strong{font-weight:700}
.sttb-terms__content blockquote{
  margin:1rem 0;
  padding:.15rem 0 .15rem 1rem;
  border-left:2px solid var(--sttb-green);
  color:var(--sttb-muted)
}
.sttb-terms__content hr{display:block;box-sizing:border-box;height:0!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;border-top:1px solid var(--sttb-line)!important;margin:1.25rem 0!important}
.sttb-terms__content table{width:100%;border-collapse:collapse;margin:.8rem 0 1rem}
.sttb-terms__content th,
.sttb-terms__content td{border-bottom:1px solid var(--sttb-line);padding:.58rem .35rem;text-align:left;vertical-align:top}
.sttb-terms__content th{font-weight:700;color:var(--sttb-ink)}
.sttb-terms-notice{padding:.8rem 0;border-top:1px solid var(--sttb-line);border-bottom:1px solid var(--sttb-line);color:var(--sttb-muted)}

@media(max-width:720px){
  .sttb-terms{margin:.75rem 0 2rem;max-width:none}
  .sttb-terms__header{display:block;margin-bottom:.85rem;padding-bottom:.6rem}
  .sttb-terms__accommodation{font-size:.94rem}
  .sttb-terms__meta{justify-content:flex-start;margin-top:.2rem;font-size:.73rem;white-space:normal}
  .sttb-terms__content{font-size:.91rem;line-height:1.52}
  .sttb-terms__content p{margin:0 0 .62rem;line-height:1.52}
  .sttb-terms__content>div{margin-bottom:.62rem;line-height:1.52}
  .sttb-terms__content li{margin:.22rem 0;line-height:1.5}
  .sttb-terms__content h1{font-size:1.08rem;margin-bottom:.8rem}
  .sttb-terms__content h2{font-size:1rem;margin-top:.92rem;padding-top:.62rem}
  .sttb-terms__content h3{font-size:.96rem;margin-top:.82rem;padding-top:.56rem}
  .sttb-terms__content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
