.canada-time-content,
.canada-time-content * {
    box-sizing: border-box;
}

.canada-time-content {
    width: calc(100% - 215px) !important;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #01040a;
}

.canada-time-content > .side-content-inner {
    width: 100%;
    min-width: 0;
}

.ct-page {
    --ct-bg: #01040a;
    --ct-panel: rgba(7, 20, 42, 0.88);
    --ct-panel-strong: rgba(6, 17, 36, 0.96);
    --ct-panel-soft: rgba(13, 31, 60, 0.82);
    --ct-line: rgba(161, 190, 224, 0.2);
    --ct-line-strong: rgba(175, 203, 235, 0.34);
    --ct-text: #f7f9fd;
    --ct-muted: #aab7ca;
    --ct-gold: #e6bd32;
    --ct-cyan: #30a9ea;
    --ct-green: #26c78a;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    direction: rtl;
    color: var(--ct-text);
    background: var(--ct-bg);
    font-family: "Noto Kufi Arabic", "Tahoma", sans-serif !important;
}

.ct-page button,
.ct-page input,
.ct-page select {
    font: inherit;
    letter-spacing: 0;
}

.ct-page button {
    color: inherit;
}

.ct-page a {
    color: inherit;
    text-decoration: none;
}

.ct-background {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 760px;
    background-color: #020918;
    background-image:
        url("generated/canada-time-layer-maple.webp"),
        radial-gradient(circle at 78% 24%, rgba(8, 47, 101, 0.42), transparent 42%),
        linear-gradient(180deg, #020918 0%, #031127 54%, #020918 100%);
    background-position:
        left clamp(20px, 4vw, 82px) top clamp(42px, 5vw, 90px),
        center,
        center;
    background-repeat: no-repeat;
    background-size:
        clamp(280px, 24vw, 460px) auto,
        100% 100%,
        100% 100%;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
}

.ct-background::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: url("generated/canada-time-layer-city.webp");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: clamp(680px, 62vw, 1050px) auto;
}

.ct-background::after {
    position: absolute;
    inset: auto 0 0;
    height: clamp(250px, 29vh, 340px);
    content: "";
    background: url("generated/canada-time-layer-mountains.webp") center bottom / 100% 100% no-repeat;
    opacity: 0.92;
}

.ct-page::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 100vh;
    height: 100dvh;
    min-height: 760px;
    content: "";
    background:
        linear-gradient(90deg, rgba(1, 8, 22, 0.3) 0%, rgba(1, 8, 22, 0.04) 48%, rgba(1, 8, 22, 0.12) 100%),
        linear-gradient(180deg, rgba(2, 9, 24, 0.02) 0%, rgba(2, 9, 24, 0.05) 48%, rgba(1, 4, 10, 0.12) 76%, rgba(1, 4, 10, 0.34) 100%);
    pointer-events: none;
}

@media (max-width: 1200px) {
    .ct-background::before {
        background-position: right -60px top;
        background-size: clamp(560px, 64vw, 720px) auto;
    }
}

.ct-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 72px;
}

.ct-icon {
    display: inline-block;
    width: var(--ct-icon-size, 20px);
    height: var(--ct-icon-size, 20px);
    flex: 0 0 var(--ct-icon-size, 20px);
    background: currentColor;
    -webkit-mask: var(--ct-icon-url) no-repeat center / contain;
    mask: var(--ct-icon-url) no-repeat center / contain;
}

.ct-hero {
    width: min(760px, 100%);
    margin: 0 auto 24px;
    text-align: center;
}

.ct-hero h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.ct-hero h1.ct-page-title--long {
    font-size: 36px;
    line-height: 1.5;
}

.ct-title-icon {
    --ct-icon-size: 38px;
    color: var(--ct-gold);
}

.ct-hero > p {
    margin: 5px 0 22px;
    color: #b7c1d0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

.ct-search-wrap {
    position: relative;
    width: min(510px, 100%);
    margin: 0 auto;
}

.ct-search {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 18px;
    border: 1px solid rgba(181, 205, 234, 0.28);
    border-radius: 8px;
    outline: none;
    color: #f7f9fd;
    background: rgba(4, 15, 34, 0.76);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ct-search::placeholder {
    color: #93a1b5;
}

.ct-search:focus {
    border-color: rgba(230, 189, 50, 0.72);
    background: rgba(4, 15, 34, 0.94);
    box-shadow: 0 0 0 3px rgba(230, 189, 50, 0.12), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.ct-search-icon {
    --ct-icon-size: 20px;
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 17px;
    color: #cbd6e5;
    pointer-events: none;
}

.ct-search-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--ct-line-strong);
    border-radius: 8px;
    background: #07162e;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
    text-align: right;
}

.ct-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid rgba(175, 203, 235, 0.12);
    background: transparent;
    text-align: right;
    cursor: pointer;
}

.ct-suggestion:last-child {
    border-bottom: 0;
}

.ct-suggestion:hover,
.ct-suggestion:focus-visible {
    outline: none;
    background: rgba(48, 169, 234, 0.12);
}

.ct-suggestion strong {
    display: block;
    overflow: hidden;
    color: #f6f8fc;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-suggestion small {
    display: block;
    margin-top: 2px;
    color: var(--ct-muted);
    font-size: 10px;
}

.ct-suggestion time {
    direction: ltr;
    color: var(--ct-cyan);
    font-size: 15px;
    font-weight: 800;
}

.ct-quick-cities {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ct-city-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 93px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(181, 205, 234, 0.25);
    border-radius: 999px;
    background: rgba(4, 15, 34, 0.66);
    color: #e8edf5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ct-city-chip:hover,
.ct-city-chip:focus-visible {
    border-color: rgba(230, 189, 50, 0.66);
    outline: none;
    color: #fff3bd;
    transform: translateY(-1px);
}

.ct-city-chip.is-active {
    border-color: var(--ct-gold);
    color: #ffe675;
    background: rgba(81, 65, 12, 0.42);
    box-shadow: 0 0 0 3px rgba(230, 189, 50, 0.09), inset 0 0 18px rgba(230, 189, 50, 0.1);
}

.ct-group-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 3px 0 14px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(175, 203, 235, 0.2);
}

.ct-group-heading > div {
    min-width: 0;
}

.ct-group-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--ct-gold);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.5;
}

.ct-group-heading h2 {
    margin: 0;
    color: #f7f9fd;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
}

.ct-group-count {
    flex: 0 0 auto;
    padding-bottom: 2px;
    color: var(--ct-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}

.ct-group-heading--cities .ct-group-kicker {
    color: var(--ct-cyan);
}

.ct-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 276px;
    align-items: start;
    gap: 14px;
    direction: ltr;
}

.ct-main-column,
.ct-sidebar {
    min-width: 0;
    direction: rtl;
}

.ct-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.92fr);
    gap: 10px;
    direction: ltr;
}

.ct-featured-layout > * {
    direction: rtl;
}

.ct-primary-card,
.ct-city-card,
.ct-panel {
    border: 1px solid var(--ct-line);
    border-radius: 8px;
    background: var(--ct-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ct-primary-card {
    position: relative;
    display: flex;
    min-height: 326px;
    padding: 22px 24px 18px;
    overflow: hidden;
    flex-direction: column;
    border-color: rgba(230, 189, 50, 0.8);
    background:
        linear-gradient(90deg, rgba(3, 13, 30, 0.88), rgba(3, 13, 30, 0.52)),
        linear-gradient(180deg, rgba(3, 13, 30, 0.08), rgba(3, 13, 30, 0.88)),
        url("generated/canada-time-toronto-night.webp") 61% center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(230, 189, 50, 0.12), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.ct-primary-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(4, 15, 34, 0.04), rgba(4, 15, 34, 0.2) 50%, rgba(4, 15, 34, 0.86));
    pointer-events: none;
}

.ct-primary-card > * {
    position: relative;
    z-index: 1;
}

.ct-primary-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border: 1px solid rgba(230, 189, 50, 0.28);
    border-radius: 5px;
    color: #ffe16b;
    background: rgba(3, 14, 31, 0.8);
    font-size: 9px;
    font-weight: 800;
}

.ct-primary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 18px;
}

.ct-primary-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0;
}

.ct-primary-heading span:not(.ct-icon) {
    display: block;
    margin-top: 1px;
    color: #bcc8d8;
    font-size: 10px;
}

.ct-location-icon {
    --ct-icon-size: 22px;
    margin-top: 6px;
    color: #9cabc0;
}

.ct-primary-time-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 4px;
    direction: ltr;
}

.ct-primary-time {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.ct-primary-period {
    margin-bottom: 8px;
    color: #eef3fb;
    font-size: 12px;
    font-weight: 700;
}

.ct-primary-date {
    min-height: 23px;
    color: #f4ce43;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.ct-primary-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-weather {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
}

.ct-weather-symbol {
    color: #ffd94d;
    font-size: 18px;
    line-height: 1;
}

.ct-weather strong {
    color: #ffe268;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
}

.ct-primary-zone {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.ct-primary-zone strong {
    overflow: hidden;
    color: #eef4fb;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-primary-zone span {
    color: var(--ct-cyan);
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.ct-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ct-city-card {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 158px;
    padding: 17px 14px 13px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

button.ct-city-card {
    width: 100%;
    cursor: pointer;
}

.ct-city-card:hover,
.ct-city-card:focus-visible {
    border-color: rgba(48, 169, 234, 0.54);
    outline: none;
    background: rgba(12, 33, 65, 0.94);
    transform: translateY(-2px);
}

.ct-city-card.is-selected {
    border-color: rgba(230, 189, 50, 0.74);
    background: rgba(37, 37, 35, 0.72);
}

.ct-city-name {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #f5f7fb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-city-province {
    display: block;
    overflow: hidden;
    max-width: 100%;
    margin-top: 1px;
    color: var(--ct-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-card-time-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 7px;
    direction: ltr;
}

.ct-card-time {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.ct-card-period {
    margin-bottom: 3px;
    color: #d9e2ef;
    font-size: 9px;
    font-weight: 700;
}

.ct-card-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    margin-top: 8px;
    color: var(--ct-muted);
    font-size: 9px;
}

.ct-card-zone b {
    color: var(--ct-cyan);
    font-family: "Tahoma", sans-serif;
    font-size: 9px;
}

.ct-city-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.ct-city-grid .ct-city-card {
    min-height: 124px;
    padding-top: 13px;
    padding-bottom: 11px;
}

.ct-city-grid .ct-card-time {
    font-size: 27px;
}

.ct-metro-section {
    position: relative;
    margin-top: 36px;
    padding-top: 27px;
    border-top: 1px solid rgba(175, 203, 235, 0.2);
}

.ct-metro-section::before {
    position: absolute;
    top: -1px;
    right: 0;
    width: 92px;
    height: 2px;
    content: "";
    background: var(--ct-cyan);
}

.ct-metro-section .ct-group-heading {
    margin-top: 0;
    margin-bottom: 16px;
}

.ct-metro-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.ct-metro-card {
    display: flex;
    min-width: 0;
    min-height: 146px;
    padding: 14px 14px 12px;
    flex-direction: column;
    border: 1px solid rgba(126, 163, 205, 0.24);
    border-top-color: rgba(48, 169, 234, 0.58);
    border-radius: 8px;
    background: rgba(5, 18, 39, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 12px 28px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ct-metro-card:hover,
.ct-metro-card:focus-visible {
    border-color: rgba(48, 169, 234, 0.72);
    outline: none;
    background: rgba(10, 29, 58, 0.94);
    transform: translateY(-2px);
}

.ct-metro-card.is-selected {
    border-color: rgba(230, 189, 50, 0.82);
    background: rgba(37, 37, 35, 0.78);
    box-shadow: inset 0 0 0 1px rgba(230, 189, 50, 0.1), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.ct-metro-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    min-height: 43px;
}

.ct-metro-card__header > div {
    min-width: 0;
}

.ct-metro-card__header h3 {
    overflow: hidden;
    margin: 0;
    color: #f7f9fd;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-metro-card__header span:not(.ct-icon) {
    display: -webkit-box;
    min-height: 27px;
    margin-top: 1px;
    overflow: hidden;
    color: var(--ct-muted);
    font-size: 9px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ct-metro-pin {
    --ct-icon-size: 17px;
    margin-top: 2px;
    color: #7f98b6;
}

.ct-metro-time-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin: 7px 0 9px;
    direction: ltr;
}

.ct-metro-time-row time {
    color: #ffffff;
    font-family: "Tahoma", sans-serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.ct-metro-time-row span {
    margin-bottom: 2px;
    color: #d9e2ef;
    font-size: 9px;
    font-weight: 700;
}

.ct-metro-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(175, 203, 235, 0.12);
}

.ct-metro-card__footer span {
    overflow: hidden;
    color: var(--ct-muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-metro-card__footer b {
    flex: 0 0 auto;
    color: var(--ct-cyan);
    font-family: "Tahoma", sans-serif;
    font-size: 9px;
    font-weight: 800;
}

.ct-sidebar {
    display: grid;
    gap: 10px;
}

.ct-panel {
    padding: 14px;
}

.ct-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #f4f7fb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0;
}

.ct-panel-icon {
    --ct-icon-size: 18px;
    color: var(--ct-gold);
}

.ct-zone-list {
    display: grid;
    margin-top: 9px;
}

.ct-zone-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 0;
    border-top: 1px solid rgba(175, 203, 235, 0.12);
    direction: ltr;
}

.ct-zone-item > * {
    direction: rtl;
}

.ct-zone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 22px;
    border-radius: 4px;
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 9px;
    font-weight: 800;
    direction: ltr;
}

.ct-zone-pacific {
    background: #2e9ed1;
}

.ct-zone-mountain {
    background: #20a46f;
}

.ct-zone-central {
    color: #17201f;
    background: #e1b537;
}

.ct-zone-eastern {
    background: #277ed1;
}

.ct-zone-atlantic {
    background: #8656d8;
}

.ct-zone-newfoundland {
    background: #db3e75;
}

.ct-zone-item div {
    min-width: 0;
    text-align: right;
}

.ct-zone-item strong {
    display: block;
    overflow: hidden;
    color: #eef3fa;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-zone-item div span {
    display: block;
    margin-top: 2px;
    color: #8f9eb3;
    font-size: 8px;
    line-height: 1.6;
}

.ct-zone-item time {
    color: #c7d3e3;
    font-family: "Tahoma", sans-serif;
    font-size: 10px;
    font-weight: 700;
    direction: ltr;
}

.ct-info-panel p,
.ct-precision-panel p {
    margin: 7px 0 0;
    color: #aab7ca;
    font-size: 9px;
    line-height: 1.9;
}

.ct-precision-panel .ct-weather-credit {
    margin-top: 5px;
    color: #77879e;
    font-size: 8px;
}

.ct-precision-panel .ct-weather-credit a {
    color: #9fcde8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-precision-panel {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-color: rgba(230, 189, 50, 0.44);
    background: rgba(39, 35, 20, 0.58);
}

.ct-precision-panel h2 {
    color: #f5d859;
}

.ct-pulse {
    position: relative;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.ct-pulse::before,
.ct-pulse::after {
    position: absolute;
    content: "";
}

.ct-pulse::before {
    top: 12px;
    right: 0;
    width: 26px;
    height: 2px;
    background: var(--ct-gold);
}

.ct-pulse::after {
    top: 7px;
    right: 9px;
    width: 8px;
    height: 12px;
    border-right: 2px solid var(--ct-gold);
    border-left: 2px solid var(--ct-gold);
    transform: skewX(-22deg);
    animation: ct-heartbeat 1s ease-in-out infinite;
}

@keyframes ct-heartbeat {
    0%,
    100% {
        opacity: 0.55;
        transform: skewX(-22deg) scaleY(0.72);
    }

    50% {
        opacity: 1;
        transform: skewX(-22deg) scaleY(1);
    }
}

.ct-noscript {
    margin: 20px;
    padding: 15px;
    border: 1px solid #e6bd32;
    border-radius: 8px;
    color: #fff;
    background: #07162e;
    text-align: center;
}

body.test-theme-canada-time-page #footer {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
}

@media (max-width: 1240px) {
    .ct-shell {
        width: min(1080px, calc(100% - 36px));
    }

    .ct-content-grid {
        grid-template-columns: minmax(0, 1fr) 252px;
    }

    .ct-featured-layout {
        grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    }

    .ct-primary-time {
        font-size: 62px;
    }

    .ct-city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 1100px) and (min-width: 992px) {
    .ct-shell {
        width: calc(100% - 24px);
        padding-top: 46px;
    }

    .ct-hero h1 {
        font-size: 38px;
    }

    .ct-hero h1.ct-page-title--long {
        font-size: 32px;
    }

    .ct-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ct-sidebar {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
    }

    .ct-zone-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
    }

    .ct-metro-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .canada-time-content {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .ct-background,
    .ct-page::before {
        min-height: 720px;
    }

    .ct-shell {
        width: min(760px, calc(100% - 28px));
        padding: 38px 0 56px;
    }

    .ct-hero {
        margin-bottom: 20px;
    }

    .ct-hero h1 {
        gap: 10px;
        font-size: 36px;
    }

    .ct-hero h1.ct-page-title--long {
        font-size: 30px;
    }

    .ct-title-icon {
        --ct-icon-size: 30px;
    }

    .ct-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ct-sidebar {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 0.72fr));
        margin-top: 2px;
    }

    .ct-zones-panel {
        grid-row: span 2;
    }

    .ct-metro-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 720px) {
    .ct-shell {
        width: min(100% - 20px, 600px);
        padding-top: 30px;
    }

    .ct-background,
    .ct-page::before {
        min-height: 680px;
    }

    .ct-background {
        background-size:
            0 0,
            100% 100%,
            100% 100%;
    }

    .ct-background::before {
        background-position: right -160px top;
        background-size: clamp(560px, 95vw, 680px) auto;
    }

    .ct-background::after {
        height: clamp(190px, 27vh, 240px);
        background-size: auto 100%;
    }

    .ct-page::before {
        background:
            linear-gradient(90deg, rgba(1, 8, 22, 0.24), rgba(1, 8, 22, 0.12)),
            linear-gradient(180deg, rgba(2, 9, 24, 0.02), rgba(2, 9, 24, 0.52) 620px, #020918 860px);
    }

    .ct-hero h1 {
        font-size: 30px;
    }

    .ct-hero h1.ct-page-title--long {
        font-size: 25px;
    }

    .ct-hero > p {
        margin-bottom: 17px;
        font-size: 12px;
    }

    .ct-quick-cities {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 0 7px;
        scrollbar-width: none;
    }

    .ct-quick-cities::-webkit-scrollbar {
        display: none;
    }

    .ct-city-chip {
        min-width: 88px;
        flex: 0 0 auto;
    }

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

    .ct-primary-card {
        min-height: 316px;
    }

    .ct-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-group-heading {
        align-items: flex-start;
    }

    .ct-group-heading h2 {
        font-size: 18px;
    }

    .ct-metro-section {
        margin-top: 30px;
        padding-top: 23px;
    }

    .ct-metro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .ct-zones-panel {
        grid-row: auto;
    }

}

@media (max-width: 430px) {
    .ct-shell {
        width: calc(100% - 16px);
        padding-top: 24px;
    }

    .ct-hero h1 {
        gap: 8px;
        font-size: 25px;
    }

    .ct-hero h1.ct-page-title--long {
        font-size: 22px;
    }

    .ct-title-icon {
        --ct-icon-size: 24px;
    }

    .ct-hero > p {
        font-size: 10px;
    }

    .ct-search {
        height: 47px;
        font-size: 12px;
    }

    .ct-secondary-grid,
    .ct-city-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ct-primary-card {
        min-height: 300px;
        padding: 20px 16px 16px;
    }

    .ct-primary-heading h2 {
        font-size: 21px;
    }

    .ct-primary-time {
        font-size: 54px;
    }

    .ct-primary-date {
        font-size: 11px;
    }

    .ct-primary-zone strong {
        max-width: 126px;
    }

    .ct-city-card,
    .ct-city-grid .ct-city-card {
        min-height: 122px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .ct-card-time,
    .ct-city-grid .ct-card-time {
        font-size: 24px;
    }

    .ct-group-heading {
        gap: 10px;
    }

    .ct-group-heading h2 {
        font-size: 16px;
    }

    .ct-group-count {
        font-size: 9px;
    }

    .ct-metro-card {
        min-height: 136px;
        padding: 12px 10px 10px;
    }

    .ct-metro-time-row time {
        font-size: 27px;
    }

    .ct-zone-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .ct-zone-item time {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-page *,
    .ct-page *::before,
    .ct-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
