/* Stable-only scoped float repair: retain native hide rules and all slider markup. */
#td-modular-slider > .small-posts-slider { box-sizing: border-box; }
/* Two native menu renderings, one archive icon. Search occupies its original region. */
#header #topbar .container #top-navigation .navigation .menu { align-items: stretch; padding-right: 64px; box-sizing: border-box; }
#header #topbar .container #top-navigation .navigation .menu .menu-item.qtg-ed-archive { margin-left: auto; display: flex; align-self: stretch; align-items: stretch; }
#header #topbar .container #top-navigation .navigation .menu .menu-item.qtg-ed-nav > a { padding-left: 14px; padding-right: 14px; }
#header #topbar .container #top-navigation .navigation .menu .menu-item.qtg-ed-archive > a { display: flex; align-items: center; justify-content: center; align-self: stretch; flex: 1; min-width: 48px; min-height: 0; height: auto; padding: 0 12px; line-height: 1; box-sizing: border-box; }
#mobile-menu #mobile-navigation .navigation .menu .menu-item.qtg-ed-archive > a { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; box-sizing: border-box; }
.qtg-ed-archive svg { display: block; margin: 0; width: 24px; height: 24px; flex: 0 0 24px; }
#mobile-menu #mobile-navigation .navigation .menu .menu-item.qtg-ed-archive > a { justify-content: flex-start; min-height: 48px; }
#mobile-navigation .qtg-ed-archive svg { width: 28px; height: 28px; flex-basis: 28px; }
.qtg-ed-nav > a:focus-visible, .qtg-ed-archive > a:focus-visible,
.qtg-ed-page a:focus-visible, .qtg-ed-small-list a:focus-visible,
.colophon-module .call-to-action a:focus-visible { outline: 3px solid #0960ed; outline-offset: -3px; }
/* Exclusive card classes avoid Gameleon's generic article 100px rule. */
#main-wrapper.qtg-ed-page { display: block; width: 100%; max-width: 1060px; box-sizing: border-box; float: none; clear: both; margin: 0 auto 32px; padding: 28px; background: #fff; color: #191919; }
.qtg-ed-heading { margin-bottom: 28px; border-bottom: 1px solid #ddd; padding-bottom: 18px; }
.qtg-ed-heading h1 { font-size: 36px; line-height: 1.15; margin: 0 0 16px; }
.qtg-ed-heading p { line-height: 1.5; margin: 8px 0; }
.qtg-ed-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.qtg-ed-card { min-width: 0; height: auto; border: 1px solid #ddd; background: #fff; }
.qtg-ed-cover { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.qtg-ed-cover img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.qtg-ed-cover figure { height: 100%; margin: 0; }
.qtg-ed-card-copy { padding: 18px; }
.qtg-ed-card-copy h2 { font-size: 24px; line-height: 1.2; margin: 12px 0; }
.qtg-ed-card-copy p { line-height: 1.5; margin: 10px 0; }
.qtg-ed-meta, .qtg-ed-categories { color: #595959; font-size: 13px; }
.qtg-ed-pagination { display: flex; gap: 20px; margin-top: 28px; }
.qtg-ed-pagination a { padding: 12px; border: 1px solid #ccc; }
.qtg-ed-contact-panel { max-width: 760px; padding: 24px; border: 1px solid #ddd; margin-bottom: 24px; }
.qtg-ed-contact-panel h2 { font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.qtg-ed-contact-panel p, .qtg-ed-contact-panel li { font-size: 18px; line-height: 1.6; }
.qtg-ed-contact-panel a { overflow-wrap: anywhere; text-decoration: underline; }
.qtg-ed-contact-mark { float: right; font-size: 28px; width: 36px; height: 36px; }
.qtg-ed-small-list { list-style: none; margin: 0; padding: 0; }
.qtg-ed-small-list .qtg-ed-small-card { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #ddd; margin: 0; }
.qtg-ed-small-cover img { display: block; width: 76px; height: 66px; object-fit: cover; margin: 0; }
.qtg-ed-small-cover figure { margin: 0; }
.qtg-ed-small-card h3 { font-size: 17px; line-height: 1.3; margin: 0 0 7px; }
.qtg-ed-small-card p { font-size: 12px; line-height: 1.4; margin: 4px 0; }
.qtg-ed-small-card .qtg-ed-score { font-size: 22px; font-weight: 700; }
.qtg-ed-score span { font-size: 13px; }
/* Keep the original two-part Gameleon CTA: title left, outlined action right.
 * Its old fixed 4em height and baseline spacer do not belong in a flex layout. */
#footer .colophon-module { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 28px; height: auto; min-height: 4em; padding: 2em 3.63%; box-sizing: border-box; background: #000; color: #fff; text-align: left; border: 0; }
#footer .colophon-module::before, #footer .colophon-module::after, #footer .colophon-module h3::before { content: none; display: none; }
#footer .colophon-module > .grid { float: none; width: auto; height: auto; margin: 0; }
#footer .colophon-module > .col-700 { flex: 1 1 240px; }
#footer .colophon-module > .col-250 { flex: 0 1 auto; max-width: 100%; }
#footer .colophon-module h3 { display: block; height: auto; margin: 0; color: #fff; font-size: 24px; line-height: 1.3; }
#footer .colophon-module .call-to-action { margin: 0; text-align: right; }
#footer .colophon-module .call-to-action a.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; max-width: 100%; box-sizing: border-box; padding: 16px 24px; border: 1px solid #fff; border-radius: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1.2; white-space: normal; text-align: center; }
#footer .colophon-module .call-to-action a.button::before { content: ''; display: block; flex: 0 0 22px; width: 22px; height: 22px; background-color: currentColor; -webkit-mask: url('x-mark.svg') center/contain no-repeat; mask: url('x-mark.svg') center/contain no-repeat; }
#footer .colophon-module .call-to-action a.button:hover, #footer .colophon-module .call-to-action a.button:focus-visible { background: #fff; color: #000; box-shadow: none; }
@media (max-width: 800px) {
 .qtg-ed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #footer .colophon-module { justify-content: center; padding: 24px; }
 #footer .colophon-module > .col-700 { flex-basis: 100%; text-align: center; }
 #footer .colophon-module h3, #footer .colophon-module .call-to-action { text-align: center; }
}
@media (max-width: 520px) {
 #main-wrapper.qtg-ed-page { padding: 18px; }
 .qtg-ed-grid { grid-template-columns: minmax(0,1fr); }
 .qtg-ed-contact-panel { padding: 18px; }
}
