/* =========================================================
   TCG — INFO PAGES
   Contact, Returns, Terms, Privacy on one shell
   (templates/info-page.php). The #tcg-info id keeps these
   above theme and page-builder rules.
========================================================= */

html body.tcg-info-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: #f6f4ef;
}

#tcg-info {
    --tcg-ink: #111111;
    --tcg-paper: #f6f4ef;
    --tcg-line: rgba(17, 17, 17, .13);
    --tcg-edge: #d9d6cf;
    --tcg-muted: #6f6d66;
    --tcg-sale: #7a1f2b;
    --tcg-gutter: clamp(12px, 1.3vw, 22px);
    --tcg-top: calc(104px + var(--wp-admin--admin-bar--height, 0px));

    position: relative;
    z-index: 1;
    min-height: 70vh;
    padding: 84px var(--tcg-gutter) clamp(64px, 7vw, 112px);
    background: var(--tcg-paper);
    color: var(--tcg-ink);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

#tcg-info *,
#tcg-info *::before,
#tcg-info *::after {
    box-sizing: border-box;
}

.tcg-info__head,
.tcg-info__layout {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}


/* ---------------------------------------------------------
   HEAD — the INFO row and the page's title
--------------------------------------------------------- */

.tcg-info__head {
    padding: 34px 2px 0;
}

.tcg-info__nav {
    display: flex;
    align-items: baseline;
    gap: 26px;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tcg-info__nav-label {
    flex: 0 0 auto;
    font-size: 9px;
    letter-spacing: .08em;
    opacity: .7;
}

#tcg-info .tcg-info__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tcg-info .tcg-info__nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#tcg-info .tcg-info__nav a {
    display: block;
    padding: 4px 0 6px;
    border-bottom: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease;
}

#tcg-info .tcg-info__nav a:hover {
    color: var(--tcg-ink);
}

#tcg-info .tcg-info__nav .is-current a {
    border-bottom-color: var(--tcg-ink);
    color: var(--tcg-ink);
    font-weight: 900;
}

.tcg-info__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 28px;
    margin-top: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--tcg-line);
}

#tcg-info .tcg-info__title {
    margin: 0;
    padding: 0;
    color: var(--tcg-ink);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(38px, 4vw, 65px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.tcg-info__updated {
    padding-bottom: 4px;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   LAYOUT — contents on the left, text on the right
--------------------------------------------------------- */

.tcg-info__layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 760px);
    gap: clamp(36px, 7vw, 132px);
    align-items: start;
    padding: 44px 2px 0;
}

.tcg-info__side {
    position: sticky;
    top: var(--tcg-top);
    min-width: 0;
    max-height: calc(100vh - var(--tcg-top) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
}

#tcg-info .tcg-info__contents-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--tcg-muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
    box-shadow: none;
    cursor: default;
}

.tcg-info__contents-count {
    display: none;
}

#tcg-info .tcg-info__contents ol {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tcg-line);
    list-style: none;
}

#tcg-info .tcg-info__contents li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--tcg-line);
    list-style: none;
}

#tcg-info .tcg-info__contents a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: baseline;
    padding: 9px 0;
    color: var(--tcg-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease;
}

#tcg-info .tcg-info__contents a:hover,
#tcg-info .tcg-info__contents a.is-current {
    color: var(--tcg-ink);
}

.tcg-info__number {
    color: var(--tcg-muted);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   TEXT — the policy itself
--------------------------------------------------------- */

.tcg-info__text {
    min-width: 0;
}

#tcg-info .tcg-info__text > :first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#tcg-info .tcg-info__heading,
#tcg-info .tcg-info__text h2 {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: baseline;
    margin: 34px 0 14px;
    padding: 30px 0 0;
    border-top: 1px solid var(--tcg-line);
    color: var(--tcg-ink);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-transform: uppercase;
    /* a heading reached from the contents stops below the site's header */
    scroll-margin-top: calc(var(--tcg-top) - 6px);
}

#tcg-info .tcg-info__text h3 {
    margin: 26px 0 10px 44px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#tcg-info .tcg-info__text p,
#tcg-info .tcg-info__text ul,
#tcg-info .tcg-info__text ol {
    margin: 0 0 14px 44px;
    padding: 0;
    color: #2b2a27;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

#tcg-info .tcg-info__text ul,
#tcg-info .tcg-info__text ol {
    list-style: none;
}

#tcg-info .tcg-info__text li {
    position: relative;
    margin: 0 0 6px;
    padding: 0 0 0 20px;
    list-style: none;
}

#tcg-info .tcg-info__text ul > li::before {
    content: "";
    position: absolute;
    top: .78em;
    left: 2px;
    width: 8px;
    height: 1px;
    background: var(--tcg-ink);
}

#tcg-info .tcg-info__text ol {
    counter-reset: tcg-info-item;
}

#tcg-info .tcg-info__text ol > li {
    counter-increment: tcg-info-item;
}

#tcg-info .tcg-info__text ol > li::before {
    content: counter(tcg-info-item) ".";
    position: absolute;
    left: 0;
    color: var(--tcg-muted);
    font-size: 12px;
    font-weight: 700;
}

#tcg-info .tcg-info__text a {
    color: var(--tcg-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

#tcg-info .tcg-info__text a:hover {
    color: var(--tcg-muted);
}

#tcg-info .tcg-info__text strong,
#tcg-info .tcg-info__text b {
    color: var(--tcg-ink);
    font-weight: 700;
}

/* a question that opens (the editor's "Details" block, used on the FAQ) */
#tcg-info .tcg-info__text details {
    margin: 0 0 0 44px;
    padding: 0;
    border-bottom: 1px solid var(--tcg-line);
}

#tcg-info .tcg-info__text h2 + details {
    border-top: 1px solid var(--tcg-line);
}

#tcg-info .tcg-info__text summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    color: var(--tcg-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

#tcg-info .tcg-info__text summary::-webkit-details-marker {
    display: none;
}

/* plus when closed, minus when open */
#tcg-info .tcg-info__text summary::after {
    content: "";
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    background:
        linear-gradient(var(--tcg-ink), var(--tcg-ink)) center / 11px 1.5px no-repeat,
        linear-gradient(var(--tcg-ink), var(--tcg-ink)) center / 1.5px 11px no-repeat;
}

#tcg-info .tcg-info__text details[open] > summary::after {
    background: linear-gradient(var(--tcg-ink), var(--tcg-ink)) center / 11px 1.5px no-repeat;
}

#tcg-info .tcg-info__text details > p,
#tcg-info .tcg-info__text details > ul,
#tcg-info .tcg-info__text details > ol {
    margin: 0 0 16px;
    padding-right: 30px;
}


/* ---------------------------------------------------------
   BUTTON
--------------------------------------------------------- */

#tcg-info .tcg-info__button,
#tcg-info .tcg-info__text a.tcg-info__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0;
    padding: 0 34px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: var(--tcg-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

#tcg-info .tcg-info__button:hover,
#tcg-info .tcg-info__text a.tcg-info__button:hover {
    border-color: #2b2a27;
    background: #2b2a27;
    color: #ffffff;
}

#tcg-info .tcg-info__button[disabled] {
    opacity: .55;
    cursor: default;
}


/* ---------------------------------------------------------
   "STILL HAVE A QUESTION?" under the text
--------------------------------------------------------- */

#tcg-info .tcg-info__help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin: 48px 0 0;
    padding: 26px 28px;
    border: 1px solid var(--tcg-edge);
    border-radius: 10px;
    background: #ffffff;
}

#tcg-info .tcg-info__help h2 {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 22px;
}

#tcg-info .tcg-info__help p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   CONTACT — details on the left, the form on the right
--------------------------------------------------------- */

.tcg-info__layout--contact {
    grid-template-columns: minmax(260px, 420px) minmax(0, 760px);
}

.tcg-info__layout--contact .tcg-info__side {
    max-height: none;
    overflow: visible;
}

#tcg-info .tcg-info__lead {
    margin: 0 0 30px;
    padding: 0;
    color: #2b2a27;
    font-size: 16px;
    line-height: 1.65;
}

#tcg-info .tcg-info__details {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tcg-line);
}

#tcg-info .tcg-info__details > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--tcg-line);
}

#tcg-info .tcg-info__details dt {
    margin: 0;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#tcg-info .tcg-info__details dd {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    color: var(--tcg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

#tcg-info .tcg-info__details a {
    color: var(--tcg-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

#tcg-info .tcg-info__details a:hover {
    color: var(--tcg-muted);
}

.tcg-info__form-wrap {
    min-width: 0;
    padding: 30px 30px 32px;
    border: 1px solid var(--tcg-edge);
    border-radius: 10px;
    background: #ffffff;
}

#tcg-info .tcg-info__form-title,
#tcg-info .tcg-info__sent h2 {
    margin: 0 0 22px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

#tcg-info .tcg-info__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    margin: 0;
    padding: 0;
}

#tcg-info .tcg-info__form[hidden],
#tcg-info .tcg-info__sent[hidden],
#tcg-info .tcg-info__status[hidden] {
    display: none;
}

.tcg-info__field {
    grid-column: 1 / -1;
    min-width: 0;
}

.tcg-info__field--half {
    grid-column: auto;
}

#tcg-info .tcg-info__field label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#tcg-info .tcg-info__field label span {
    margin-left: 6px;
    font-weight: 400;
    letter-spacing: .06em;
    opacity: .75;
}

#tcg-info .tcg-info__field input,
#tcg-info .tcg-info__field textarea {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .18s ease;
}

#tcg-info .tcg-info__field textarea {
    height: auto;
    min-height: 168px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

#tcg-info .tcg-info__field input:hover,
#tcg-info .tcg-info__field textarea:hover {
    border-color: #bdb9b0;
}

#tcg-info .tcg-info__field input:focus,
#tcg-info .tcg-info__field textarea:focus {
    border-color: var(--tcg-ink);
    outline: none;
    box-shadow: none;
}

#tcg-info .tcg-info__field.is-wrong input,
#tcg-info .tcg-info__field.is-wrong textarea {
    border-color: var(--tcg-sale);
}

/* a field people never see or fill */
.tcg-info__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tcg-info__send {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 4px;
}

#tcg-info .tcg-info__note {
    flex: 1 1 220px;
    margin: 0;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 12px;
    line-height: 1.5;
}

#tcg-info .tcg-info__note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#tcg-info .tcg-info__status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--tcg-sale);
    border-radius: 8px;
    color: var(--tcg-sale);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

#tcg-info .tcg-info__sent p {
    margin: 0;
    padding: 0;
    color: #2b2a27;
    font-size: 15px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   TABLETS AND PHONES
--------------------------------------------------------- */

@media (max-width: 1024px) {

    #tcg-info {
        padding-top: 76px;
    }

    .tcg-info__head {
        padding-top: 22px;
    }

    /* the row of pages scrolls sideways instead of stacking */
    .tcg-info__nav {
        gap: 18px;
        margin-right: calc(var(--tcg-gutter) * -1);
    }

    #tcg-info .tcg-info__nav ul {
        flex-wrap: nowrap;
        gap: 22px;
        padding-right: var(--tcg-gutter);
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    #tcg-info .tcg-info__nav ul::-webkit-scrollbar {
        display: none;
    }

    .tcg-info__headline {
        padding-bottom: 20px;
    }

    .tcg-info__layout,
    .tcg-info__layout--contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-top: 22px;
    }

    .tcg-info__side {
        position: static;
        max-height: none;
        overflow: visible;
    }

    /* the contents fold into one row that opens on a tap */
    .tcg-info__contents {
        border: 1px solid var(--tcg-edge);
        border-radius: 10px;
        background: #ffffff;
    }

    #tcg-info .tcg-info__contents-toggle {
        min-height: 50px;
        margin: 0;
        padding: 0 16px;
        color: var(--tcg-ink);
        cursor: pointer;
    }

    .tcg-info__contents-count {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--tcg-muted);
    }

    .tcg-info__contents-count::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-right: 1.5px solid var(--tcg-ink);
        border-bottom: 1.5px solid var(--tcg-ink);
        transform: rotate(45deg);
        transition: transform .2s ease, margin .2s ease;
    }

    .tcg-info__contents.is-open .tcg-info__contents-count::after {
        margin-top: 4px;
        transform: rotate(-135deg);
    }

    #tcg-info .tcg-info__contents ol {
        padding: 0 16px;
    }

    #tcg-info .tcg-info__contents li:last-child {
        border-bottom: 0;
    }

    #tcg-info .tcg-info__contents a {
        padding: 12px 0;
        font-size: 13px;
    }

    /* folded once the page's script is running; without it the list stays open */
    .tcg-info__contents.is-folding:not(.is-open) ol {
        display: none;
    }

    #tcg-info .tcg-info__heading,
    #tcg-info .tcg-info__text h2 {
        grid-template-columns: 34px minmax(0, 1fr);
        margin-top: 28px;
        padding-top: 24px;
        font-size: 22px;
        scroll-margin-top: 84px;
    }

    #tcg-info .tcg-info__text p,
    #tcg-info .tcg-info__text ul,
    #tcg-info .tcg-info__text ol,
    #tcg-info .tcg-info__text h3,
    #tcg-info .tcg-info__text details {
        margin-left: 0;
    }

    #tcg-info .tcg-info__help {
        margin-top: 36px;
        padding: 22px 18px;
    }

    #tcg-info .tcg-info__help .tcg-info__button {
        width: 100%;
    }

    .tcg-info__form-wrap {
        padding: 22px 16px 24px;
    }
}

@media (max-width: 600px) {

    #tcg-info .tcg-info__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-info__field--half {
        grid-column: 1 / -1;
    }

    /* 16px keeps a phone from zooming into the field */
    #tcg-info .tcg-info__field input,
    #tcg-info .tcg-info__field textarea {
        font-size: 16px;
    }

    #tcg-info .tcg-info__send .tcg-info__button {
        width: 100%;
    }

    #tcg-info .tcg-info__details > div {
        grid-template-columns: 78px minmax(0, 1fr);
    }
}


/* ---------------------------------------------------------
   TOUCH — phones and tablets
   Text links keep the size they are drawn at and get an
   area a fingertip can hit (a transparent ::after reaching
   past the text); the small controls grow to 40px.
--------------------------------------------------------- */

@media (max-width: 1024px) {

    #tcg-info .tcg-info__nav a {
        position: relative;
    }

    #tcg-info .tcg-info__nav a::after {
        content: "";
        position: absolute;
        inset: -12px -10px;
    }
}
