/*
 * The teambuilding page (teambuilding-page.php). No Zebra has not drawn it: it is built from the
 * parts they have, after the "Teambuilding" draft in the Web 3.0 preview (SCRUM-817). The hero and
 * the stats band are the gift card page's (gift.css), with the draft's mosaic in place of the collage.
 *
 * On top of room-v2.css (tokens, reset, buttons, header, footer). Colour follows the design manual:
 * Spicy Paprika only on the buttons.
 */

.rh-tb-page :focus-visible {
    outline: 2px solid var(--rh-brass);
    outline-offset: 2px;
}

/* ---- Hero ------------------------------------------------------------------------------------- */

.rh-tb-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 160px var(--rh-edge) 120px;
    background: var(--rh-obsidian);
    color: var(--rh-pergament);
}

.rh-tb-hero-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 620px;
}

.rh-tb-trust {
    margin-top: 8px;
    font: 600 12px/19.2px var(--rh-sans);
    color: var(--rh-brass);
}

/* The draft's mosaic: three columns of a picture and a customer's words, the middle one turned
   upside down. The pictures take the height the words leave. */
.rh-tb-mosaic {
    display: grid;
    flex: 0 1 700px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    min-height: 520px;
}

.rh-tb-mosaic--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rh-tb-mosaic--1 {
    flex-basis: 360px;
    grid-template-columns: minmax(0, 1fr);
}

.rh-tb-mosaic-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.rh-tb-mosaic-col--quote-first {
    flex-direction: column-reverse;
}

.rh-tb-mosaic-img {
    display: block;
    flex: 1 1 200px;
    width: 100%;
    min-height: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rh-tb-quote {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 24px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

/* A column without a picture: the words fill it. */
.rh-tb-quote:only-child {
    flex: 1 1 auto;
    justify-content: center;
}

.rh-tb-quote::before {
    content: "\201C";
    height: 24px;
    font: 400 64px/1 var(--rh-serif);
}

.rh-tb-quote blockquote {
    font-style: italic;
}

.rh-tb-quote figcaption {
    font-weight: 700;
}

.rh-tb-quote--green {
    background: var(--rh-evergreen);
    color: var(--rh-pergament);
}

.rh-tb-quote--brass {
    background: var(--rh-brass);
    color: var(--rh-obsidian);
}

/* ---- Stats band: the gift card's and the front page's, brass on pergament ---------------------- */

.rh-tb-stats {
    padding: 80px var(--rh-edge);
    background: var(--rh-pergament);
}

.rh-tb-stats-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.rh-tb-stats-list div {
    display: flex;
    flex: 1 1 0;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    color: var(--rh-brass);
    text-align: center;
}

.rh-tb-stats-list dd {
    font: 700 25.2px/1.2 var(--rh-display);
    font-variation-settings: "SOFT" 0, "WONK" 1;
}

.rh-tb-stats-list dt {
    font: 600 12px/19.2px var(--rh-sans);
}

/* ---- Shared bits ------------------------------------------------------------------------------ */

/* A section's heading: the gift card page's (.rh-gift-title). */
.rh-tb-title {
    font: 400 64px/72px var(--rh-serif);
}

.rh-tb-lead {
    max-width: 640px;
    font-size: 20px;
    line-height: 1.25;
}

/* A heading under a section's own: the gift card's "Hvor meget skal vi give?". */
.rh-tb-sub {
    margin: 56px 0 16px;
    font: 400 32px/1.1 var(--rh-serif);
}

.rh-tb-sub--first {
    margin-top: 0;
}

/* A link to #priser or #tilbud lands below the header that lies over the page. */
.rh-tb-price,
.rh-tb-form,
.rh-tb-activities {
    scroll-margin-top: 64px;
}

/* ---- Campaign banner ---------------------------------------------------------------------------- */

.rh-tb-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 96px var(--rh-edge) 112px;
    background: var(--rh-evergreen);
    color: var(--rh-pergament);
}

.rh-tb-promo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.rh-tb-promo-text .rh-btn {
    margin-top: 16px;
}

.rh-tb-promo-img {
    flex: 0 0 360px;
    width: 360px;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ---- Customers --------------------------------------------------------------------------------- */

.rh-tb-customers {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-pergament-tint);
}

.rh-tb-customers-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.rh-tb-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font: 600 12px/19.2px var(--rh-sans);
}

.rh-tb-rating span {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 4px;
    color: var(--rh-brass);
}

.rh-tb-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.rh-tb-logos li {
    padding: 12px 20px;
    border: 1px solid rgba(15, 19, 24, .3);
    border-radius: 8px;
    font: 600 16px/1.2 var(--rh-sans);
}

/* ---- Intro ------------------------------------------------------------------------------------- */

.rh-tb-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 80px;
    align-items: start;
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-pergament);
}

.rh-tb-intro--text {
    grid-template-columns: minmax(0, 1fr);
}

.rh-tb-intro-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    line-height: 1.5;
}

.rh-tb-intro-text > p {
    max-width: 680px;
}

.rh-tb-intro-text .rh-tb-title {
    margin-bottom: 8px;
}

.rh-tb-intro-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rh-tb-usp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.4;
}

.rh-tb-usp li {
    padding-top: 16px;
    border-top: 1px solid rgba(15, 19, 24, .2);
}

.rh-tb-usp-title {
    margin-bottom: 4px;
    font: 700 16px/1.4 var(--rh-sans);
}

/* ---- Activities: the room card, three to a row ------------------------------------------------- */

.rh-tb-activities {
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-obsidian);
}

.rh-tb-activities .rh-section-title {
    margin-bottom: 56px;
}

.rh-tb-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* An activity says more than a room does — what it trains, four facts — so the picture gives way and
   the facts get a size that lets four stand on one line. */
.rh-tb-card {
    padding-top: 260px;
}

.rh-tb-card--plain {
    background: var(--rh-evergreen);
}

.rh-tb-card::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .85) 55%);
}

.rh-tb-card--plain::after {
    content: none;
}

.rh-tb-card-train {
    font-size: 14px;
    line-height: 1.4;
    color: var(--rh-peach);
}

.rh-tb-card .rh-card-facts {
    gap: 16px;
}

.rh-tb-card .rh-card-facts dd {
    font-size: 20px;
    white-space: nowrap;
}

.rh-tb-card .rh-card-facts dt {
    white-space: nowrap;
}

.rh-tb-card .rh-card-actions .rh-btn {
    flex: 1 1 0;
}

/* ---- Prices: the table, what is included and the add-ons beside the menu ------------------------ */

.rh-tb-price {
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-evergreen);
    color: var(--rh-pergament);
}

.rh-tb-price--dark {
    background: var(--rh-obsidian);
}

.rh-tb-price-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
    margin-top: 56px;
}

.rh-tb-table {
    width: 100%;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--rh-pergament);
    font-size: 16px;
    color: var(--rh-obsidian);
}

.rh-tb-table :is(th, td) {
    padding: 14px 24px;
    border-top: 1px solid rgba(15, 19, 24, .2);
    font-weight: 400;
    text-align: left;
    vertical-align: top;
}

.rh-tb-table thead :is(th, td) {
    border-top: 0;
    background: var(--rh-pergament-tint);
    font: 600 14px/1.3 var(--rh-sans);
}

.rh-tb-table tbody:first-child tr:first-child :is(th, td) {
    border-top: 0;
}

/* Fraunces for the price alone, as a price is everywhere else. */
.rh-tb-table tbody td {
    font: 700 20px/1.2 var(--rh-display);
    text-align: right;
    white-space: nowrap;
}

.rh-tb-table thead th:last-child {
    text-align: right;
}

.rh-tb-table--addons th {
    font-weight: 600;
}

.rh-tb-table small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.rh-tb-incl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-tb-incl li {
    position: relative;
    padding-left: 28px;
}

.rh-tb-incl li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--rh-brass);
}

.rh-tb-menu-note {
    margin-bottom: 24px;
    color: var(--rh-peach);
}

.rh-tb-menu {
    display: flex;
    flex-direction: column;
}

.rh-tb-menu div {
    padding: 16px 0;
    border-bottom: 1px solid rgba(236, 229, 214, .2);
}

.rh-tb-menu dt {
    margin-bottom: 4px;
    font: 700 16px/1.4 var(--rh-sans);
    color: var(--rh-brass);
}

.rh-tb-menu-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-top: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.rh-tb-price-col > p:last-child {
    margin-top: 40px;
}

/* ---- The day's plan: the front page's "Hvad er et escape room?" box ---------------------------- */

.rh-tb-plan {
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-obsidian);
}

.rh-tb-plan-box {
    border-radius: 8px;
    overflow: hidden;
    color: var(--rh-obsidian);
}

.rh-tb-plan-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 56px 160px;
    background: var(--rh-peach);
    text-align: center;
}

.rh-tb-plan-top .rh-tb-title {
    font: 400 80px/88px var(--rh-serif);
}

.rh-tb-plan-list {
    display: flex;
    margin: 0;
    padding: 32px;
    background: var(--rh-pergament);
    list-style: none;
}

.rh-tb-plan-list li {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-right: 1px solid var(--rh-peach);
    text-align: center;
}

.rh-tb-plan-list li:last-child {
    border-right: 0;
}

.rh-tb-plan-list :is(time, .rh-tb-plan-time) {
    font: 700 25.2px/1.2 var(--rh-display);
    font-variation-settings: "SOFT" 0, "WONK" 1;
    color: var(--rh-evergreen);
}

/* ---- Questions: the FAQ page's list (faq.css) -------------------------------------------------- */

.rh-tb-faq .rh-tb-title {
    margin-bottom: 32px;
}

.rh-tb-faq {
    padding-top: 120px;
}

/* ---- Enquiry: the text and the contact beside the form ----------------------------------------- */

.rh-tb-form {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 80px;
    align-items: start;
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-evergreen);
    color: var(--rh-pergament);
}

.rh-tb-form--contact {
    grid-template-columns: minmax(0, 1fr);
}

.rh-tb-form-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.rh-tb-promise {
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--rh-brass);
    font: 600 14px/1.3 var(--rh-sans);
    color: var(--rh-obsidian);
}

.rh-tb-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.rh-tb-contact-img {
    flex: none;
    width: 72px;
    height: 72px !important;
    border-radius: 50%;
    object-fit: cover;
}

.rh-tb-contact p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.rh-tb-contact a {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-position: from-font;
}

.rh-tb-contact a:hover {
    text-decoration-style: solid;
}

/* WPForms' own markup, in the gift card form's clothes (.rh-gift-form, .rh-gift-input). */
.rh-tb-form-card {
    padding: 32px;
    border-radius: 8px;
    background: var(--rh-pergament);
    color: var(--rh-obsidian);
}

.rh-tb-form-card div.wpforms-container,
.rh-tb-form-card div.wpforms-container-full {
    margin: 0;
}

.rh-tb-form-card .wpforms-field-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rh-tb-form-card .wpforms-field-container .wpforms-field {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.rh-tb-form-card .wpforms-field:is(.wpforms-field-textarea, .wpforms-field-name, .wpforms-field-checkbox, .wpforms-field-radio, .wpforms-field-html, .wpforms-field-gdpr-checkbox) {
    grid-column: 1 / -1;
}

.rh-tb-form-card .wpforms-field-label,
.rh-tb-form-card .wpforms-field-sublabel {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font: 600 14px/1.3 var(--rh-sans);
    color: var(--rh-obsidian);
}

.rh-tb-form-card .wpforms-field-sublabel {
    margin: 4px 0 0;
    font-weight: 400;
}

.rh-tb-form-card .wpforms-field-label .wpforms-required-label {
    color: var(--rh-paprika) !important;
}

.rh-tb-form-card .wpforms-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 12px 16px;
    border: 1px solid rgba(15, 19, 24, .3);
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--rh-pergament) 40%, #fff);
    box-shadow: none;
    font: 400 16px/1.4 var(--rh-sans);
    color: var(--rh-obsidian);
}

/* The browser's own arrow sits against the edge and ignores the padding: the list draws its own,
   as far from the edge as the text is on the other side. !important: the fields' own rule above
   and WPForms' both weigh more than this one. */
.rh-tb-form-card .wpforms-field select:not([multiple]) {
    padding-right: 44px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230f1318' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
}

.rh-tb-form-card .wpforms-field :is(input, select, textarea):focus {
    border-color: var(--rh-brass);
    box-shadow: none;
    outline: 2px solid var(--rh-brass);
    outline-offset: 0;
}

.rh-tb-form-card .wpforms-field textarea {
    min-height: 120px;
    resize: vertical;
}

.rh-tb-form-card :is(label.wpforms-error, em.wpforms-error) {
    margin-top: 4px;
    font: 400 14px/1.4 var(--rh-sans);
    color: var(--rh-paprika);
}

.rh-tb-form-card .wpforms-submit-container {
    margin: 0;
    padding: 24px 0 0;
}

/* WPForms styles its button through a long chain of :not(), so the site's button (.rh-btn) has to
   insist. */
.rh-tb-form-card button.wpforms-submit,
.rh-tb-form-card button.wpforms-submit:hover,
.rh-tb-form-card button.wpforms-submit:focus {
    height: auto !important;
    padding: 12px 24px !important;
    border: 1px solid var(--rh-paprika) !important;
    border-radius: 8px !important;
    background: var(--rh-paprika) !important;
    box-shadow: none !important;
    font: 600 16px/1.2 var(--rh-sans) !important;
    color: var(--rh-pergament) !important;
    cursor: pointer;
    transition: filter .15s;
}

.rh-tb-form-card button.wpforms-submit:hover {
    filter: brightness(1.08);
}

.rh-tb-form-card .wpforms-confirmation-container-full {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 18px;
    color: var(--rh-obsidian);
}

/* ---- More for companies ------------------------------------------------------------------------ */

.rh-tb-related {
    padding: 120px var(--rh-edge) 136px;
    background: var(--rh-obsidian);
    color: var(--rh-pergament);
}

.rh-tb-related .rh-section-title {
    margin-bottom: 56px;
}

.rh-tb-related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-tb-related-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: var(--rh-evergreen);
}

.rh-tb-related-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.rh-tb-related-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
}

.rh-tb-related-title {
    font: 400 40px/1.1 var(--rh-serif);
}

/* The front page's "more" link (.rh-more-link); the whole card answers the click. */
.rh-tb-more {
    margin-top: auto;
    font-size: 16px;
    line-height: 21px;
    text-decoration: underline dotted;
    text-underline-position: from-font;
}

.rh-tb-more:hover {
    text-decoration-style: solid;
}

.rh-tb-more::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* ---- A B2B product (b2b-page.php): the same parts, with a hero and facts of its own ------------- */

.rh-b2b-hero {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 160px var(--rh-edge) 120px;
    background: var(--rh-obsidian);
    color: var(--rh-pergament);
}

.rh-b2b-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 760px;
}

/* "Tilkøb", as the tag on the activity's card (.rh-card-tags li). */
.rh-b2b-tag {
    padding: 4px;
    border: 1px solid var(--rh-brass);
    font: 600 12px var(--rh-sans);
    color: var(--rh-brass);
}

.rh-b2b-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rh-b2b-gallery--1 {
    grid-template-columns: minmax(0, 1fr);
}

.rh-b2b-gallery-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rh-b2b-gallery--1 .rh-b2b-gallery-img {
    aspect-ratio: 21 / 9;
}

/* Tinted, so the band stands apart from the text on pergament right under it. */
.rh-b2b-facts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: var(--rh-pergament-tint);
}

/* The draft's evergreen under the tinted band; the text turns pergament with it. */
.rh-b2b-about {
    background: var(--rh-evergreen);
    color: var(--rh-pergament);
}

.rh-b2b-train {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 19, 24, .2);
    text-align: center;
}

.rh-b2b-train,
.rh-b2b-facts .rh-tb-stats-list {
    width: 100%;
}

/* The draft's customers: one light box, the quotes side by side with a line between them. */
.rh-b2b-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--rh-pergament);
    color: var(--rh-obsidian);
}

.rh-b2b-quotes .rh-tb-quote {
    padding: 32px;
    border-left: 1px solid rgba(15, 19, 24, .2);
    border-radius: 0;
    font-size: 16px;
}

.rh-b2b-quotes .rh-tb-quote:first-child {
    border-left: 0;
}

.rh-b2b-stars {
    margin-top: auto;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--rh-brass);
}

.rh-b2b-price-note {
    margin-top: 12px;
    font-size: 14px;
}

.rh-tb-price-col > p.rh-b2b-menu-link {
    margin-top: 24px;
}

/* The draft's add-ons: a plain list on the dark ground, the price to the right. */
.rh-b2b-addons {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-b2b-addons li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(236, 229, 214, .2);
}

.rh-b2b-addons li:first-child {
    padding-top: 0;
}

.rh-b2b-addons strong {
    display: block;
    font-weight: 600;
}

.rh-b2b-addons small {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    opacity: .7;
}

.rh-b2b-addons em {
    font: 700 20px/1.2 var(--rh-display);
    white-space: nowrap;
    color: var(--rh-peach);
}

/* The front page's "more" link (.rh-more-link). */
.rh-tb-link {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-position: from-font;
}

.rh-tb-link:hover {
    text-decoration-style: solid;
}

/* The slider's cards are the activities' (.rh-tb-card); the bar is the rooms' (.rh-related). */
.rh-b2b-related .rh-tb-card {
    flex: 0 0 calc((100% - 32px) / 3);
}

/* ---- Narrower screens ------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .rh-tb-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 56px;
    }

    .rh-tb-mosaic {
        flex: 0 0 auto;
    }

    .rh-tb-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rh-tb-plan-top {
        padding: 56px 64px;
    }

    .rh-tb-plan-list {
        flex-wrap: wrap;
    }

    .rh-tb-plan-list li {
        flex: 1 1 30%;
    }

    .rh-tb-plan-list li:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 1023px) {
    .rh-tb-intro,
    .rh-tb-price-cols,
    .rh-tb-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .rh-tb-related-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rh-b2b-quotes {
        grid-template-columns: minmax(0, 1fr);
    }

    .rh-b2b-quotes .rh-tb-quote {
        border-top: 1px solid rgba(15, 19, 24, .2);
        border-left: 0;
    }

    .rh-b2b-quotes .rh-tb-quote:first-child {
        border-top: 0;
    }

    .rh-b2b-related .rh-tb-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .rh-tb-promo {
        gap: 40px;
    }

    .rh-tb-promo-img {
        flex-basis: 240px;
        width: 240px;
    }
}

@media (max-width: 767px) {
    .rh-tb-hero {
        padding: 120px var(--rh-edge) 80px;
    }

    /* The draft's phone mosaic: two columns, and the third laid on its side under them. */
    .rh-tb-mosaic--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-height: 0;
    }

    .rh-tb-mosaic-col {
        gap: 8px;
    }

    .rh-tb-mosaic--3 .rh-tb-mosaic-col:last-child {
        flex-direction: row;
        grid-column: 1 / -1;
    }

    .rh-tb-mosaic--3 .rh-tb-mosaic-col:last-child > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .rh-tb-mosaic-img {
        min-height: 160px;
    }

    .rh-tb-quote {
        padding: 16px;
        font-size: 13px;
    }

    .rh-tb-stats-list {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .rh-tb-title,
    .rh-tb-plan-top .rh-tb-title {
        font: 400 48px/1.1 var(--rh-serif);
    }

    .rh-tb-promo,
    .rh-tb-customers,
    .rh-tb-intro,
    .rh-tb-activities,
    .rh-tb-price,
    .rh-tb-plan,
    .rh-tb-form,
    .rh-tb-related {
        padding: 72px var(--rh-edge) 88px;
    }

    .rh-tb-faq {
        padding-top: 72px;
    }

    .rh-b2b-hero {
        gap: 40px;
        padding: 120px var(--rh-edge) 80px;
    }

    .rh-b2b-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .rh-b2b-related .rh-tb-card {
        flex-basis: 90%;
    }

    .rh-tb-promo {
        flex-direction: column;
        align-items: stretch;
    }

    .rh-tb-promo-img {
        flex: 0 0 auto;
        width: 100%;
    }

    .rh-tb-logos li {
        padding: 8px 12px;
        font-size: 14px;
    }

    .rh-tb-usp,
    .rh-tb-incl,
    .rh-tb-cards,
    .rh-tb-form-card .wpforms-field-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .rh-tb-table :is(th, td) {
        padding: 12px 16px;
    }

    .rh-tb-plan-top {
        padding: 40px 24px;
    }

    .rh-tb-plan-list {
        padding: 16px;
    }

    .rh-tb-plan-list li,
    .rh-tb-plan-list li:nth-child(3n) {
        flex: 1 1 40%;
        border-right: 1px solid var(--rh-peach);
    }

    .rh-tb-plan-list li:nth-child(2n) {
        border-right: 0;
    }

    .rh-tb-form-card {
        padding: 24px 16px;
    }

    .rh-tb-related-title {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rh-tb-form-card button.wpforms-submit {
        transition: none;
    }
}

/* Google's reCAPTCHA badge. The site hides it in the Customizer's CSS, which the v2 shell leaves out;
   these are the first v2 pages with a form, so it is hidden here too. (Google allows it when the form
   says that it is protected by reCAPTCHA.) */
.rh-tb-page .grecaptcha-badge {
    visibility: hidden !important;
}
