/* Base shell for new templates. Layout classes use the tcg- prefix. */
:root {
    --tcg-font-family-base: Arial, Helvetica, Verdana, Geneva, sans-serif;
    --tcg-font-size-base: 17px;
    --tcg-font-size-page-title: 32px;
    --tcg-font-size-top-title-new: 50px;
    --tcg-font-size-top-subtitle: 24px;
    --tcg-font-size-section-title: 30px;
    --tcg-font-size-heading-primary: 24px;
    --tcg-font-size-heading-secondary: 20px;
    --tcg-font-size-route-caption: 11px;
    --tcg-font-size-route-compact: 12px;
    --tcg-font-size-route-meta: 13px;
    --tcg-font-size-route-control: 14px;
    --tcg-font-size-route-emphasis: 16px;
    --tcg-font-size-route-title: 18px;
    --tcg-font-size-route-header: .17rem;
    --tcg-font-size-route-cell: .15rem;
    --tcg-font-size-small: 14px;
    --tcg-font-size-meta: 15px;
    --tcg-font-size-ui: 18px;
    --tcg-font-size-ui-large: 20px;
    --tcg-font-size-qa-body: 20px;
    --tcg-font-size-xxsmall: 10px;
    --tcg-font-size-xsmall: 11px;
    --tcg-font-size-compact: 12px;
    --tcg-font-size-label: 13px;
    --tcg-font-size-emphasis: 16px;
    --tcg-font-size-ui-plus: 19px;
    --tcg-font-size-large: 22px;
    --tcg-font-size-heading-large: 26px;
    --tcg-font-size-page-legacy: 27px;
    --tcg-font-size-display-small: 30px;
    --tcg-font-size-display: 48px;
    --tcg-font-size-display-large: 65px;
    --tcg-font-size-date: 85px;
    --tcg-font-size-zodiac: 100px;
    --tcg-font-size-rem-small: .14rem;
    --tcg-font-size-rem-compact: .15rem;
    --tcg-font-size-rem-medium: .17rem;
    --tcg-font-size-rem-large: .18rem;
    --tcg-font-size-rem-heading: .20rem;
    --tcg-font-size-rem-display: .22rem;
    --tcg-font-size-zero: 0;
    --tcg-font-size-one-em: 1em;
    --tcg-font-size-em-small: .75em;
    --tcg-font-size-em-medium: .85em;
    --tcg-font-size-em-large: 1.1em;
    --tcg-font-size-em-heading: 1.3em;
    --tcg-font-size-responsive: clamp(12px, 5vw, 17px);
    --tcg-font-size-root: 100%;
    --tcg-font-size-inherit: inherit;
    --tcg-font-size-relative-larger: larger;
    --tcg-font-size-relative-smaller: smaller;
    --tcg-line-height-base: 1.6;
    --tcg-font-weight-normal: 400;
    --tcg-font-weight-bold: 700;
    --tcg-font-weight-light: lighter;
    --tcg-font-weight-inherit: inherit;
    --tcg-font-shorthand-inherit: inherit;
    --tcg-color-text: #000;
    --tcg-color-link: #000;
    --tcg-color-link-hover: #d14900;
    --tcg-color-border: #d1d1d1;
    --tcg-color-surface-muted: #efefef;
    --tcg-page-width: 1300px;
    --tcg-page-gutter: 20px;
}

@media (max-width: 1200px) {
    :root {
        --tcg-font-size-base: 20px;
        --tcg-font-size-top-title-new: 32px;
        --tcg-font-size-section-title: 28px;
        --tcg-font-size-heading-secondary: 22px;
    }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: var(--tcg-font-size-root); }

body {
    margin: 0;
    background: #fff;
    color: var(--tcg-color-text);
    font-family:var(--tcg-font-family-base);
    font-size: var(--tcg-font-size-base);
    line-height: var(--tcg-line-height-base);
}

img,
video { max-width: 100%; }

img { height: auto; }

html,
body,
.tcg-site-header,
.tcg-page-layout,
.tcg-site-footer { max-width: 100%; }

a { color: var(--tcg-color-link); }

a:hover { color: var(--tcg-color-link-hover); }

.tcg-site-header { width: 100%; }

.tcg-site-header__inner,
.tcg-page-layout,
.tcg-site-footer__inner {
    width: min(var(--tcg-page-width), calc(100% - (var(--tcg-page-gutter) * 2)));
    margin-right: auto;
    margin-left: auto;
}

.tcg-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.tcg-site-header__brand a {
    display: block;
    width: 309px;
    height: 71px;
    background: url("https://data.travelchinaguide.com/images/logo/tcg-logo.gif") no-repeat;
}

.tcg-site-header__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.tcg-site-header__link { white-space: nowrap; }

.tcg-site-header__menu-toggle { display: none; }

.tcg-page-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    margin-top: 10px;
    padding: 0 40px;
}

.tcg-page-layout__aside,
.tcg-page-layout__content { min-width: 0; }

.tcg-page-layout__content:not(:only-child) { padding: 0 30px; }

.tcg-page-layout__content > *,
.tcg-page-layout__content .tcg-article > * { max-width: 100%; }

.tcg-page-layout__content:only-child { grid-column: 1 / -1; }

.tcg-breadcrumb {
    padding: 12px 0;
    border-bottom: 1px solid var(--tcg-color-border);
    overflow-wrap: anywhere;
}

.tcg-page-title {
    padding: 15px 0;
    font-size: var(--tcg-font-size-page-title);
    font-weight: var(--tcg-font-weight-normal);
}

.tcg-page-title h1 {
    margin: 0;
    font-family:var(--tcg-font-family-base);
    font-size: var(--tcg-font-size-page-title);
    font-weight: var(--tcg-font-weight-normal);
    line-height: 1;
}

.tcg-content { overflow: hidden; }

.tcg-article { text-align: justify; }

.tcg-article > p { margin: 10px 0; }

.tcg-site-footer {
    margin-top: 20px;
    background: var(--tcg-color-surface-muted);
}

.tcg-site-footer__inner { padding: 0; }

.tcg-clearfix,
.clear { clear: both; }

@media (max-width: 1280px) and (min-width: 901px) {
    .tcg-page-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        padding: 0 10px;
    }

    .tcg-page-layout__content:not(:only-child) { padding: 0 10px 0 20px; }
}

@media (max-width: 600px) {
    :root { --tcg-page-gutter: 12px; }

    .tcg-site-header__inner { min-height: 58px; }

    .tcg-page-layout__content > .tcg-content,
    body.trainDTH.train.page #main > .right > .content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .tcg-site-header__brand a {
        width: 206px;
        height: 48px;
        background-size: contain;
    }

    .tcg-page-layout { grid-template-columns: minmax(0, 1fr); }

    .tcg-page-layout__aside { display: none; }

    .tcg-site-header__link { display: none; }

    .tcg-site-header__menu-toggle { display: block; }

    .tcg-page-title h1 { font-size: var(--tcg-font-size-page-title); }
}

/* Minimal layout compatibility for legacy columns in new train templates. */
body.trainDTH.train.page #main {
    width: min(var(--tcg-page-width), calc(100% - (var(--tcg-page-gutter) * 2)));
    margin: 10px auto 0;
}

body.trainDTH.train.page #main::after {
    display: block;
    clear: both;
    content: "";
}

body.trainDTH.train.page #main > .left {
    width: 220px;
    float: left;
}

body.trainDTH.train.page #main > .right {
    width: calc(100% - 220px);
    float: right;
    padding: 0 30px;
}

body.trainDTH.train .content {
    overflow: hidden;
}

body.trainDTH.train .c_path {
    padding: 12px 0;
    border-bottom: 1px solid #dcdcdc;
}

body.trainDTH.train .c_title {
    width: 100%;
    padding: 15px 0;
    font-size: var(--tcg-font-size-page-title);
    font-weight: var(--tcg-font-weight-normal);
}

body.trainDTH.train .c_title h1 {
    margin: 0;
    font-family:var(--tcg-font-family-base);
    font-size: var(--tcg-font-size-page-title);
    font-weight: var(--tcg-font-weight-normal);
    line-height: 1.25;
}

body.trainDTH.train .content img {
    border: 0;
}

body.trainDTH.train .bottomInfo {
    clear: both;
    margin-top: 20px;
    background: #f2f2f2;
}

body.trainDTH.train .bottomInfo-up {
    width: min(var(--tcg-page-width), calc(100% - (var(--tcg-page-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
}

/* Dynamic content compatibility: LeftNavNew() still outputs l_* classes. */
.tcg-page-layout__aside .l_title,
.tcg-page-layout__aside .l_nav_title,
.tcg-page-layout__aside .l_nav_title2 {
    padding: 9px 0;
    border-right: 1px solid #e5e5e5;
    background: #e5e5e5;
    color: #000;
    font-size: var(--tcg-font-size-heading-secondary);
    text-align: center;
}

.tcg-page-layout__aside .l_title a,
.tcg-page-layout__aside .l_nav_title a,
.tcg-page-layout__aside .l_nav_title2 a {
    display: block;
    color: #000;
    text-decoration: underline;
}

.tcg-page-layout__aside .l_title a:hover,
.tcg-page-layout__aside .l_nav_title a:hover,
.tcg-page-layout__aside .l_nav_title2 a:hover { text-decoration: none; }

.tcg-page-layout__aside .l_nav {
    width: 100%;
    margin: 0 0 10px;
    color: #333;
}

.tcg-page-layout__aside .l_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcg-page-layout__aside .l_nav li { list-style: none; }

.tcg-page-layout__aside .l_nav li a {
    display: block;
    padding: 10px 4px 9px 25px;
    border-top: 1px solid #e4e4e4;
    background: #f7f7f7 url("https://data.travelchinaguide.com/images/background/icon/icon-list1.png") 10px 20px no-repeat;
    color: #000;
    text-decoration: none;
}

.tcg-page-layout__aside .l_nav li a:hover {
    border-right: 1px solid #e79100;
    background: #c75000 url("https://data.travelchinaguide.com/images/background/icon/icon-list1-white.png") 10px 20px no-repeat;
    color: #fff;
}

.tcg-page-layout__aside .l_nav .l_nav_nochild,
.tcg-page-layout__aside .l_nav .l_nav_arrowR2 {
    padding: 6px 0 6px 8px;
    background: #f7f7f7;
}

.tcg-page-layout__aside .l_nav .l_nav_nochild a,
.tcg-page-layout__aside .l_nav .l_nav_arrowR2 a {
    padding: 0 0 0 20px;
    border: 0;
    background: url("https://data.travelchinaguide.com/images/background/icon/icon-list2.png") 6px 3px no-repeat;
}

.tcg-page-layout__aside .l_nav .l_nav_arrowR2 a { padding-left: 30px; background-position: 17px 2px; }

.tcg-page-layout__aside .l_nav .l_nav_nochild a:hover,
.tcg-page-layout__aside .l_nav .l_nav_arrowR2 a:hover {
    border: 0;
    background: url("https://data.travelchinaguide.com/images/background/icon/icon-list2.png") 6px 3px no-repeat;
    color: #d14900;
}

.tcg-page-layout__aside .l_nav .l_nav_arrowR2 a:hover { background-position: 17px 2px; }

.tcg-page-layout__aside .l_nav_nolink {
    padding: 9px 4px 8px 25px;
    background: #fff url("https://data.travelchinaguide.com/images/background/icon/icon-list1.png") 10px 17px no-repeat;
    color: #d14900;
}

.mobile_menu_v2 {
    display: none;
    position: fixed;
    top: 93px;
    right: 16px;
    z-index: 999;
    width: 52px;
    height: 53px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dc6600;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
    cursor: pointer;
}

.mobile_menu_v2::before,
.mobile_menu_v2::after {
    position: absolute;
    top: 13px;
    background: #fff;
    content: "";
}

.mobile_menu_v2::before {
    left: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow: 0 9px #fff, 0 18px #fff;
}

.mobile_menu_v2::after {
    left: 20px;
    width: 21px;
    height: 4px;
    border-radius: 2px;
    box-shadow: 0 9px #fff, 0 18px #fff;
}

.mobile_menu_v2_list {
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: min(320px, calc(100vw - 48px));
    overflow-y: auto;
    background: #fff;
    box-shadow: 5px 0 14px rgba(0, 0, 0, .35);
    transform: translateX(-105%);
    transition: transform .25s ease, visibility 0s linear .25s;
}

.mobile_menu_v2_list.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

.mobile_menu_v2_close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile_menu_v2_close::before,
.mobile_menu_v2_close::after {
    position: absolute;
    top: 17px;
    left: 8px;
    width: 20px;
    height: 2px;
    background: #333;
    content: "";
}

.mobile_menu_v2_close::before { transform: rotate(45deg); }
.mobile_menu_v2_close::after { transform: rotate(-45deg); }

.mobile_menu_v2_content { padding: 48px 0 24px; }

.mobile_menu_v2_content .l_title,
.mobile_menu_v2_content .l_nav_title,
.mobile_menu_v2_content .l_nav_title2 {
    padding: 9px 25px;
    border-top: 1px solid #eaeaea;
    background: #e5e5e5;
    color: #000;
    font-size: var(--tcg-font-size-heading-secondary);
    text-align: left;
}

.mobile_menu_v2_content .l_title a,
.mobile_menu_v2_content .l_nav_title a,
.mobile_menu_v2_content .l_nav_title2 a {
    display: block;
    color: #000;
    text-decoration: none;
}

.mobile_menu_v2_content :is(.l_nav, .l_nav2) {
    width: 100%;
    margin: 0;
    color: #333;
}

.mobile_menu_v2_content :is(.l_nav, .l_nav2) ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile_menu_v2_content :is(.l_nav, .l_nav2) li { list-style: none; }

.mobile_menu_v2_content :is(.l_nav, .l_nav2) li a {
    display: block;
    padding: 10px 25px;
    border-top: 1px solid #e4e4e4;
    background: #f7f7f7;
    color: #000;
    text-decoration: none;
}

.mobile_menu_v2_content :is(.l_nav, .l_nav2) li a:hover,
.mobile_menu_v2_content :is(.l_nav, .l_nav2) li a:focus {
    background: #fff;
    color: #d14900;
}

.mobile_menu_v2_content :is(.l_nav, .l_nav2) :is(.l_nav_nochild, .l_nav_arrowR2) a {
    padding-left: 40px;
}

@media (max-width: 900px) {
    .mobile_menu_v2 { display: block; }
}

/* Preserve article spacing for legacy editor classes in new templates. */
.tcg-page-layout__content .tcg-article,
.trainDTH.train #zoom {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tcg-page-layout__content .tcg-article p,
.trainDTH.train #zoom p {
    margin: 10px 0;
}

.tcg-page-layout__content .tcg-article h2,
.tcg-page-layout__content .tcg-article h3,
.tcg-page-layout__content .tcg-article h4,
.trainDTH.train #zoom h2,
.trainDTH.train #zoom h3,
.trainDTH.train #zoom h4 {
    margin: 20px 0 10px;
    line-height: 1.3;
}

.tcg-page-layout__content .tcg-article h2,
.trainDTH.train #zoom h2 {
    font-size: var(--tcg-font-size-heading-primary);
}

.tcg-page-layout__content .tcg-article h3,
.trainDTH.train #zoom h3 {
    font-size: var(--tcg-font-size-heading-secondary);
}

.tcg-page-layout__content .tcg-article::after,
.trainDTH.train #zoom::after {
    display: block;
    clear: both;
    content: "";
}

.tcg-page-layout__content .tcg-article .picContent,
.trainDTH.train #zoom .picContent {
    margin: 8px 0;
    padding-bottom: 0;
}

.tcg-page-layout__content .tcg-article .picContent img,
.trainDTH.train #zoom .picContent img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.tcg-page-layout__content .lastUpdateTime,
body.trainDTH.train .lastUpdateTime {
    clear: both;
    margin-top: 8px;
    padding: 5px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: center;
}

/* Restore the existing site footer emitted after the new template footer shell. */
.tcg-site-footer + #footer,
body.trainDTH.train #footer {
    clear: both;
    width: 100%;
    margin: 0;
    background: #c75000;
    color: #fff;
    text-align: center;
}

.tcg-site-footer + #footer .footer-link,
body.trainDTH.train #footer .footer-link {
    padding: 10px 0;
    border-bottom: 1px solid #ffc592;
    color: #fff;
}

.tcg-site-footer + #footer .footer-link a,
body.trainDTH.train #footer .footer-link a {
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
}

.tcg-site-footer + #footer .footer-link a:hover,
body.trainDTH.train #footer .footer-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.tcg-site-footer + #footer .footer-info,
body.trainDTH.train #footer .footer-info {
    padding: 12px;
    font-size: var(--tcg-font-size-meta);
}

.tcg-site-footer + #footer .footer-sept,
body.trainDTH.train #footer .footer-sept {
    background: url("https://data.travelchinaguide.com/images/background/icon/icon-dot-white-4-4.png") no-repeat center center;
}

@media (max-width: 600px) {
    .tcg-site-footer + #footer .footer-link a,
    body.trainDTH.train #footer .footer-link a {
        padding: 0 5px;
    }

    body.trainDTH.train.page #main {
        width: 100%;
        margin-top: 0;
    }

    body.trainDTH.train.page #main > .left {
        display: none;
    }

    body.trainDTH.train.page #main > .right {
        width: 100%;
        float: none;
        padding: 0;
    }

    body.trainDTH.train .c_path {
        padding: 12px 5px;
    }

    body.trainDTH.train .c_title {
        padding: 15px 5px;
    }
}

@media (max-width: 900px) {
    .tcg-page-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .tcg-page-layout__content:not(:only-child) { padding: 0; }
    .tcg-page-layout__content > .tcg-content { padding: 0 16px; }

    .tcg-page-layout__aside {
        display: none;
    }

    body.trainDTH.train.page #main > .left {
        display: none;
    }

    body.trainDTH.train.page #main > .right {
        width: 100%;
        float: none;
        padding: 0;
    }

    body.trainDTH.train.page #main > .right > .content {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .display_none_770 { display: none; }
}

.tcg-page-shell--hero > .tcg-top-banner,
.tcg-page-shell--wide > .tcg-page-shell__article { grid-column: 1 / -1; }

@supports not (grid-template-rows: subgrid) {
    .tcg-page #main.tcg-page-shell--hero { display: grid; }
}

/* The single article heading shares the hero row without leaving the article. */
@supports (grid-template-rows: subgrid) {
    main.tcg-page-shell.tcg-page-shell--hero,
    #main.tcg-page-shell--hero,
    #main-content.tcg-page-shell--hero,
    body.trainDTH.train.page #main.tcg-page-shell--hero {
        --tcg-shell-edge: calc(max(var(--tcg-page-gutter), (100% - var(--tcg-page-width)) / 2) + 40px);
        --tcg-shell-aside: 250px;
        --tcg-shell-gap: 30px;
        --tcg-shell-end: calc(var(--tcg-shell-edge) + 30px);
        display: grid;
        grid-template-columns: var(--tcg-shell-edge) var(--tcg-shell-aside) var(--tcg-shell-gap) minmax(0, 1fr) max-content var(--tcg-shell-end);
        grid-template-rows: auto auto auto minmax(min-content, 1fr);
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    main.tcg-page-shell--hero.tcg-page-shell--wide,
    #main.tcg-page-shell--hero.tcg-page-shell--wide,
    #main-content.tcg-page-shell--hero.tcg-page-shell--wide {
        --tcg-shell-aside: 0px;
        --tcg-shell-gap: 0px;
        --tcg-shell-end: var(--tcg-shell-edge);
    }

    .tcg-page-shell--hero > .tcg-top-banner {
        grid-area: 1 / 1 / 2 / -1;
        grid-template-columns: subgrid;
        overflow: visible;
    }

    .tcg-page-shell--hero .tcg-top-banner__picture {
        grid-area: 1 / 1 / 2 / -1;
    }

    .tcg-page-shell--hero .tcg-top-banner__overlay,
    .tcg-page-shell--hero .tcg-top-banner__inner {
        display: contents;
    }

    .tcg-page-shell--hero .tcg-top-banner__actions {
        grid-area: 1 / 5 / 2 / 6;
        align-self: end;
        justify-self: end;
        margin: 18px 0 18px 18px;
        z-index: 2;
    }

    .tcg-page-shell--hero > .tcg-page-layout__aside,
    body.trainDTH.train.page #main.tcg-page-shell--hero > .left {
        grid-area: 2 / 2 / 5 / 3;
        align-self: start;
        width: auto;
        float: none;
        margin-top: 10px;
    }

    main.tcg-page-shell--hero > .tcg-page-shell__article,
    main.tcg-page-shell--hero .tcg-page-shell__content,
    body.trainDTH.train.page #main.tcg-page-shell--hero > .right,
    body.trainDTH.train.page #main.tcg-page-shell--hero > .right > .content {
        display: grid;
        grid-area: 1 / 1 / 5 / -1;
        grid-template-columns: subgrid;
        grid-template-rows: subgrid;
        min-width: 0;
        width: auto;
        max-width: none;
        float: none;
        margin: 0;
        padding: 0;
        overflow: visible;
        pointer-events: none;
    }

    .tcg-page-shell--hero .tcg-page-shell__preamble,
    .tcg-page-shell--hero .tcg-page-shell__heading,
    .tcg-page-shell--hero .tcg-page-shell__body {
        min-width: 0;
        pointer-events: auto;
    }

    .tcg-page-shell--hero .tcg-page-shell__preamble {
        grid-area: 2 / 4 / 3 / 6;
        padding-top: 10px;
    }

    .tcg-page-shell--hero .tcg-page-shell__body {
        grid-area: 4 / 4 / 5 / 6;
    }

    .tcg-page-shell--hero .tcg-page-shell__heading,
    body.trainDTH.train.page #main.tcg-page-shell--hero .tcg-page-shell__heading {
        grid-area: 1 / 2 / 2 / 5;
        align-self: end;
        margin: 18px 0;
        padding: 0;
        z-index: 1;
    }

    .tcg-page-shell--hero .tcg-page-shell__heading h1,
    body.trainDTH.train.page #main.tcg-page-shell--hero .tcg-page-shell__heading h1 {
        margin: 0;
        font-family: var(--tcg-font-family-base);
        font-size: var(--tcg-font-size-top-title-new);
        font-weight: var(--tcg-font-weight-normal);
        line-height: 1.2;
        color: #fff;
        text-shadow: 2px 2px 1px #000;
        overflow-wrap: anywhere;
    }

    .tcg-page-shell--hero > .tcg-clearfix,
    .tcg-page-shell--hero > .clear,
    .tcg-page-shell--hero > .tcg-page-shell__article > .tcg-clearfix,
    .tcg-page-shell--hero > .tcg-page-shell__article > .clear {
        position: absolute;
        margin: 0;
    }

    body.trainDTH.train.page #main.tcg-page-shell--hero::after { content: none; }

    @media (max-width: 1280px) and (min-width: 901px) {
        main.tcg-page-shell.tcg-page-shell--hero,
        #main.tcg-page-shell--hero,
        #main-content.tcg-page-shell--hero,
        body.trainDTH.train.page #main.tcg-page-shell--hero {
            --tcg-shell-edge: calc(var(--tcg-page-gutter) + 10px);
            --tcg-shell-aside: 220px;
            --tcg-shell-gap: 20px;
            --tcg-shell-end: calc(var(--tcg-page-gutter) + 20px);
        }
        main.tcg-page-shell--hero.tcg-page-shell--wide,
        #main.tcg-page-shell--hero.tcg-page-shell--wide,
        #main-content.tcg-page-shell--hero.tcg-page-shell--wide {
            --tcg-shell-aside: 0px;
            --tcg-shell-gap: 0px;
            --tcg-shell-end: var(--tcg-shell-edge);
        }
    }

    @media (max-width: 1200px) {
        .tcg-page-shell--hero .tcg-page-shell__heading,
        body.trainDTH.train.page #main.tcg-page-shell--hero .tcg-page-shell__heading {
            grid-area: 3 / 4 / 4 / 6;
            margin: 0;
            padding: 15px 0;
        }
        .tcg-page-shell--hero .tcg-page-shell__heading h1,
        body.trainDTH.train.page #main.tcg-page-shell--hero .tcg-page-shell__heading h1 {
            font-size: var(--tcg-font-size-page-title);
            color: var(--tcg-color-text);
            text-shadow: none;
        }
        .tcg-page-shell--hero .tcg-top-banner__actions {
            grid-area: 1 / 1 / 2 / -1;
            margin: 0 12px 12px 0;
        }
    }

    @media (max-width: 900px) {
        main.tcg-page-shell.tcg-page-shell--hero,
        #main.tcg-page-shell--hero,
        #main-content.tcg-page-shell--hero,
        body.trainDTH.train.page #main.tcg-page-shell--hero {
            --tcg-shell-edge: calc(var(--tcg-page-gutter) + 16px);
            --tcg-shell-aside: 0px;
            --tcg-shell-gap: 0px;
            --tcg-shell-end: var(--tcg-shell-edge);
        }
    }

    @media (min-width: 901px) {
        body.trainDTH.train.page #main.tcg-page-shell--hero {
            --tcg-shell-edge: max(var(--tcg-page-gutter), calc((100% - var(--tcg-page-width)) / 2));
            --tcg-shell-aside: 220px;
            --tcg-shell-gap: 30px;
            --tcg-shell-end: calc(var(--tcg-shell-edge) + 30px);
        }
    }
}
