.tg-editorial .editorial-main {
  max-inline-size: 1000px;
  min-block-size: 42vh;
  padding-block: clamp(24px, 5vw, 60px) clamp(44px, 7vw, 86px);
  overflow-wrap: anywhere;
}

.tg-editorial .menu-trigger { display: inline-flex; }
.tg-editorial .header-inner { flex-wrap: nowrap; }
.tg-editorial .site-header .nav a[aria-current],
.tg-editorial .dialog-nav a[aria-current] { color: var(--green); }
.tg-editorial .dialog-nav a {
  padding-inline: 10px;
  font-weight: 700;
}
.tg-editorial .dialog-nav a[aria-current] { background: #202c25; }
.tg-editorial #tg-design-menu {
  max-block-size: min(calc(100% - 32px), calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overscroll-behavior: contain;
}
.tg-editorial #tg-design-menu .close { margin-block-end: 6px; }
.tg-editorial .design-search input { padding-inline: 12px; font-size: 1rem; }

.editorial-main .tg-recovery-content {
  display: flow-root;
  min-inline-size: 0;
}
.editorial-main :is(h1, .first-screen > h2) {
  font-size: clamp(2.15rem, 5.4vw, 4.25rem);
  text-wrap: balance;
  margin-block-end: clamp(16px, 3vw, 28px);
}
.editorial-main h2:not(.first-screen > h2) {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  text-wrap: balance;
  margin-block: 28px 12px;
}
.editorial-main :is(p, ol, ul) {
  max-inline-size: 66ch;
  margin-block: 0 14px;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.65;
}
.editorial-main :is(h2, h3, p, ol, ul):last-child { margin-block-end: 0; }
.editorial-main :is(ol, ul) { padding-inline-start: 1.35em; }
.editorial-main .tg-recovery-content a { color: var(--green); }
.editorial-main .tg-recovery-content img {
  block-size: auto;
  border-radius: 12px;
}
.editorial-main figure { margin: 0 0 20px; }
.editorial-main figure img { inline-size: 100%; }
.editorial-main figcaption { color: var(--muted); margin-block-start: 8px; }
.editorial-main .tg-recovery-gallery { margin-block-end: 16px; }
.editorial-main .tg-news-hero { margin-block-end: 24px; }
.editorial-main .tg-news-hero img { inline-size: 100%; margin-block-end: 16px; }
.editorial-main time { color: var(--muted); font-size: .875rem; }
.editorial-main .tg-news-hero h1 { margin-block: 7px 0; }
.editorial-main .tg-recovery-note { font-size: .95rem; }

.editorial-main .tg-recovery-list {
  max-inline-size: none;
  padding-inline-start: 0;
  list-style: none;
  border-block-start: 1px solid var(--border);
}
.editorial-main .tg-recovery-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 14px;
  min-block-size: 48px;
  padding-block: 9px;
  border-block-end: 1px solid var(--border);
}
.editorial-main .tg-recovery-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  font-weight: 700;
}
.editorial-main .tg-recovery-list li:not(:has(a)) { display: block; }
.editorial-activity .tg-recovery-content > .tg-recovery-list {
  max-inline-size: 66ch;
  margin-block-start: 20px;
  border: 0;
}
.editorial-activity .tg-recovery-content > .tg-recovery-list li:first-child {
  border-block-end: 0;
  padding-block: 0 10px;
}
.editorial-activity .tg-recovery-content > .tg-recovery-list li:first-child a {
  display: inline-flex;
  align-items: center;
  min-block-size: 48px;
  padding: 10px 17px;
  border-radius: 7px;
  background: var(--green);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.editorial-activity .tg-recovery-content > .tg-recovery-list li:first-child a:hover { background: #9dffaa; }

.editorial-main .first-screen-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.editorial-main .first-screen__block {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-block-size: 300px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--panel);
  background-position: center;
  background-size: cover;
}
.editorial-main .first-screen__block::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(0deg, #0d1010 0%, #0d1010ed 47%, #0d101063 100%);
}
.editorial-main .first-screen__block .first-screen__block__title {
  margin: 0 0 9px;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}
.editorial-main .first-screen__block .mobile-logo { margin-block: 8px; max-inline-size: 85px; }
.editorial-main .first-screen__block__text { line-height: 1.55; color: #e0e9e4; }
.editorial-main .first-screen__block__text br { display: none; }
.editorial-main .first-screen-btn {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: 12px;
  color: var(--green);
  font-weight: 700;
}
.editorial-main .first-screen-btn svg { inline-size: 18px; block-size: 18px; }

.editorial-main .tg-lead-section {
  margin-block-start: 30px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.editorial-main .tg-lead-section h2 { margin-block-start: 0; }
.editorial-main .tg-lead-form p { margin: 0; font-size: .95rem; }
.editorial-main .tg-lead-form { position: relative; }
.editorial-main .tg-lead-field :is(input, select) { font-size: 1rem; }
.editorial-main .tg-lead-section:has(input[name="kind"][value="discount"]) {
  border-color: #3e5749;
  background: linear-gradient(180deg, #1d2a23, var(--panel) 185px);
}
.editorial-main .tg-lead-form button[type="submit"]:enabled:is(:active, .tg-pointer-press) { background: #aaffb5; }

.tg-editorial .footer-inner { grid-template-columns: 1.25fr 1fr 1fr auto; }
.tg-editorial .footer-title { color: var(--text); }
.tg-editorial .footer-links { flex-direction: column; align-items: flex-start; }
.tg-editorial .footer-links a {
  text-decoration: none;
  color: var(--muted);
  line-height: 1.3;
}
.tg-editorial .footer-links a:hover,
.tg-editorial .footer-social a,
.tg-editorial .tg-footer-contact a { color: var(--green); }
.tg-editorial .footer-brand .tg-footer-contact { margin-block-start: 6px; }
.tg-editorial .tg-footer-contact a { display: inline-flex; align-items: center; min-block-size: 44px; }
.tg-editorial .footer-brand .meta { max-inline-size: 29ch; }

@media (max-width: 1020px) {
  .tg-editorial .header-inner { gap: 10px; }
  .tg-editorial .header-inner .nav { gap: 16px; }
  .tg-editorial .header-actions { gap: 6px; }
}
@media (max-width: 900px) {
  .tg-editorial .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .tg-editorial .footer-brand, .tg-editorial .footer-community { grid-column: 1 / -1; }
  .tg-editorial .footer-social { flex-direction: row; flex-wrap: wrap; column-gap: 18px; }
}
@media (max-width: 620px) {
  .editorial-main .first-screen-slider { grid-template-columns: 1fr; }
  .editorial-main .first-screen__block { min-block-size: 245px; }
  .editorial-main .tg-recovery-list :has(time) > a { flex-basis: 100%; }
  .editorial-main .tg-recovery-list time { padding-block-end: 2px; }
}
@media (max-width: 340px) {
  .tg-editorial .header-actions { gap: 2px; }
}

/* Booking guide and the existing enquiry form. */
.tg-editorial .editorial-main.booking-layout {
  max-inline-size: 1160px;
  display: grid;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.booking-layout .booking-guide h1 { margin-block-end: 12px; }
.booking-layout .booking-intro { max-inline-size: 37ch; margin-block-end: 16px; }
.booking-layout .booking-app {
  border-block-start: 1px solid var(--border);
  padding-block-start: 14px;
}
.editorial-main.booking-layout .booking-app h2,
.booking-layout #tg-request h2 {
  margin-block: 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}
.booking-layout .booking-app > p,
.booking-layout #tg-request > p {
  font-size: 1rem;
  margin-block-end: 14px;
}
.booking-layout .booking-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.booking-layout .booking-store-links a {
  min-block-size: 44px;
  flex: 1 0 max-content;
  color: var(--text);
}
.booking-layout .booking-steps { display: flow-root; margin-block-start: 8px; }
.booking-layout .booking-steps[data-tg-resizing] { overflow: clip; }
.booking-layout .booking-steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 44px;
  padding: 10px 14px;
  list-style: none;
  border: 1px solid #344b3c;
  border-radius: 8px;
  background: #16211b;
  color: var(--green);
  cursor: pointer;
}
.booking-layout .booking-steps summary::-webkit-details-marker { display: none; }
.booking-layout .booking-steps summary::after {
  content: "";
  flex: none;
  inline-size: 8px;
  block-size: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.booking-layout .booking-steps[open]:not([data-tg-resizing="closing"]) summary { background: #1c3226; }
.booking-layout .booking-steps[open]:not([data-tg-resizing="closing"]) summary::after {
  transform: translateY(2px) rotate(225deg);
}
.booking-layout .booking-steps summary:focus-visible { outline-offset: -2px; }
.booking-layout .booking-steps > ol { margin-block-start: 10px; }
.booking-layout .booking-steps :is(ol, p) {
  font-size: .9375rem;
  margin-block-end: 8px;
}
.booking-layout .booking-steps > :last-child { margin-block-end: 0; }
.booking-layout #tg-request {
  margin: 0;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #1d2a23, var(--panel) 185px);
}
.booking-layout .tg-lead-form { max-inline-size: none; gap: 12px; }
.booking-layout .tg-lead-form label { font-weight: 700; }
.booking-layout .tg-lead-form :is(input[type="tel"], select, button) { min-block-size: 48px; }
.booking-layout .tg-lead-form button[type="submit"] { inline-size: 100%; }
.booking-layout .tg-lead-form p {
  margin-block: 0;
  font-size: .875rem;
  line-height: 1.45;
}
.booking-layout .tg-lead-status {
  border-inline-start: 2px solid currentColor;
  padding-inline-start: 10px;
}
@media (max-width: 599px) {
  .tg-editorial .editorial-main.booking-layout { padding-block-start: 20px; }
  .booking-layout .tg-lead-form { gap: 10px; }
}
@media (min-width: 780px) {
  .tg-editorial .editorial-main.booking-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  }
  .booking-layout .tg-stage-recovery-notice { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes tg-discount-form-appear {
    from { opacity: .84; }
    to { opacity: 1; }
  }
  .editorial-main .tg-lead-section:has(input[name="kind"][value="discount"]):not(:target, :has(.tg-lead-status)) {
    animation: tg-discount-form-appear 440ms cubic-bezier(.2, .55, .35, 1);
  }
  .booking-layout .booking-steps[data-tg-resizing] summary::after { transition: transform 200ms var(--tg-ease-out); }
  .editorial-main .tg-lead-form button[type="submit"] { transition: transform 150ms var(--tg-ease-out); }
  .editorial-main .tg-lead-form button[type="submit"]:enabled.tg-pointer-press {
    transform: scale(.97);
    transition-duration: 75ms;
  }
}
