/* Shared content edges for the header, page sections and footer. */
:root {
  --thl-frame-max: 1280px;
  --thl-frame-gutter: 24px;
}

@media (max-width: 767px) {
  :root { --thl-frame-gutter: 20px; }
}

[data-thl-frame],
main > [data-thl-frame-host] > [data-thl-frame] {
  box-sizing: border-box !important;
  inline-size: min(var(--thl-frame-max), calc(100% - 2 * var(--thl-frame-gutter))) !important;
  max-inline-size: none !important;
  margin-inline: auto !important;
}

[data-thl-frame]:not([data-thl-frame="surface"]) {
  padding-inline: 0 !important;
}

/* The inner frame supplies the viewport gutters for legacy section hosts. */
main > [data-thl-frame-host] {
  inline-size: 100% !important;
  max-inline-size: none !important;
  padding-inline: 0 !important;
}
