/* =========================================================
HOMEPAGE v13 — CSS START
Stories template surfaces, comfortable reading sizes.
========================================================= */
/* Leave breathing room above the section when following #stories. */
#stories {
    scroll-margin-block-start: 16px;
}

#stories:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 12px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.5;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--brand);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: linear-gradient(135deg,var(--paper2),var(--paper));
    box-shadow: var(--shadow2);
    margin-bottom: 4px;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    font-size: clamp(36px,3.9vw,52px);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 0 0 9px;
    overflow-wrap: break-word;
}

.hero-line {
    font-size: clamp(25px,2.8vw,37px);
    line-height: 1.18;
    font-weight: 680;
    letter-spacing: -.035em;
    color: var(--brand);
    margin: 0 0 15px;
}

.hero-intro {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 23px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    padding: 11px 19px;
    border: 1px solid var(--line2);
    border-radius: 17px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 740;
    text-align: center;
}

.button.primary {
    background: var(--text);
    color: var(--bg);
    box-shadow: var(--shadow2);
}

.button.primary:hover {
    background: var(--brand);
    color: var(--bg);
}

.button>span {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 690;
    line-height: 1.45;
}

.text-link:hover {
    color: var(--brand);
}

.text-link>span {
    font-size: 21px;
    line-height: 1;
}

.clock-panel {
    min-width: 0;
    background: linear-gradient(150deg,#24212f,#11121b);
    color: #f7f3ea;
    padding: 22px;
    border: 1px solid #ffffff17;
    border-radius: 24px;
    box-shadow: 0 20px 45px #1b112421;
}

.clock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 35px;
    font-size: 15px;
    line-height: 1.5;
    color: #ede6f7;
}

.format-button {
    flex: none;
    background: #ffffff0b;
    border: 1px solid #ffffff33;
    border-radius: 10px;
    color: #f2ecfa;
    font-size: 13px;
    min-height: 33px;
    padding: 4px 10px;
}

.clock-display-link {
    display: block;
    padding: 18px 0 12px;
}

.clock-digits {
    display: grid;
    grid-template-columns: 1fr 1fr .18fr 1fr 1fr .18fr 1fr 1fr;
    gap: 4px;
    align-items: center;
    font-family: ui-sans-serif,system-ui,sans-serif;
    font-size: clamp(34px,4.3vw,57px);
    font-weight: 710;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    letter-spacing: -.035em;
    text-align: center;
    direction: ltr;
}

.digit {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(#363343 0 50%,#403b4c 50% 100%);
    border-radius: 8px;
    box-shadow: 0 3px 0 #0004;
    text-shadow: 0 1px 2px #0003;
}

.digit:after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1px;
    background: #121018cc;
    box-shadow: 0 1px #ffffff0c;
}

.colon {
    font-size: .4em;
    color: #c7bcd7;
    margin-top: -.08em;
}

.clock-date {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 23px;
    font-size: 14px;
    color: #dfd5e9;
    margin: 3px 0 17px;
    line-height: 1.6;
}

.clock-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #ffffff24;
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #c8bed3;
}

.clock-bottom>span:last-child {
    text-align: end;
    flex: none;
}

.clock-noscript {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 0;
    color: #ede5f5;
}

.section {
    padding-block: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

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

.section-heading .eyebrow {
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(28px,3vw,36px);
    font-weight: 770;
    line-height: 1.2;
    letter-spacing: -.04em;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.all-stories {
    flex: none;
    max-width: 34%;
    text-align: end;
}

.section-intro {
    font-size: 17px;
    line-height: 1.7;
    max-width: 860px;
    color: var(--muted);
    margin: 14px 0 23px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 17px;
}

.story-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg,var(--paper2),var(--paper));
    box-shadow: var(--shadow2);
}

.story-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-image-wrap {
    position: relative;
    aspect-ratio: 1.5;
    overflow: hidden;
    background: var(--line);
    isolation: isolate;
}

.story-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.story-card:hover img {
    transform: scale(1.025);
}

.story-year {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    border: 1px solid #ffffff85;
    border-radius: 10px;
    padding: 5px 9px;
    color: #221b2a;
    background: #fffaf0ed;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.5;
    direction: ltr;
}

.story-arrow {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #fffaf0ed;
    color: #221b2a;
    font-size: 20px;
    line-height: 1;
}

.story-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 19px 18px 16px;
}

.story-category {
    font-size: 12px;
    font-weight: 760;
    line-height: 1.6;
    letter-spacing: .025em;
    color: var(--muted);
    margin: 0 0 9px;
}

.story-content h3 {
    font-size: 23px;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 0 0 11px;
    overflow-wrap: break-word;
}

.story-card:hover h3 {
    color: var(--brand);
}

.story-summary {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 20px;
}

.story-read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 730;
    line-height: 1.5;
}

.story-read>span {
    font-size: 20px;
    font-weight: 400;
}

.more-stories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.6;
}

.more-stories>span {
    color: var(--muted);
    margin-inline-end: 5px;
}

.more-stories>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.more-stories>a>span {
    color: var(--muted);
    font-size: 13px;
}

.more-stories>a>b {
    font-size: 17px;
    font-weight: 400;
}

.more-stories>a:hover {
    background: var(--accent-soft);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    margin-top: 23px;
}

.tool-card {
    display: flex;
    gap: 17px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: linear-gradient(135deg,var(--paper2),var(--paper));
    box-shadow: var(--shadow2);
}

.tool-card>div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tool-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--accent-soft);
    color: var(--brand);
}

.tool-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.4;
}

.tool-focus .tool-icon {
    color: var(--brand2);
    background: color-mix(in srgb,var(--brand2) 12%,transparent);
}

.tool-diary .tool-icon {
    color: var(--green);
    background: color-mix(in srgb,var(--green) 12%,transparent);
}

.tool-card h3 {
    font-size: 25px;
    font-weight: 740;
    letter-spacing: -.04em;
    line-height: 1.25;
    margin: 0 0 11px;
    overflow-wrap: break-word;
}

.tool-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 18px;
}

.tool-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 740;
    margin-top: auto;
}

.tool-cta b {
    font-size: 21px;
    font-weight: 400;
}

.tool-card:hover {
    border-color: var(--brand);
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 45px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 32px;
    background: linear-gradient(130deg,var(--paper2),var(--paper));
    box-shadow: var(--shadow2);
    margin-top: 12px;
}

.about-section h2 {
    font-size: 34px;
    line-height: 1.24;
    margin-bottom: 23px;
}

.about-copy {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    min-width: 0;
}

.about-copy p {
    margin: 0 0 18px;
}

.about-copy .about-end {
    font-weight: 710;
    color: var(--text);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 19px;
    font-size: 15px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.6;
}

.about-links a {
    text-decoration: underline;
    text-decoration-color: var(--line2);
    text-underline-offset: 4px;
}

.about-links a:hover {
    color: var(--brand);
}

[dir=rtl] .eyebrow {
    letter-spacing: 0;
}

[dir=rtl] .hero h1,[dir=rtl] .hero-line,[dir=rtl] h2,[dir=rtl] .tool-card h3 {
    letter-spacing: 0;
    line-height: 1.35;
}

[dir=rtl] .story-category {
    letter-spacing: 0;
}

[dir=rtl] .story-read>span {
    transform: scaleX(-1);
}

.clock-banner {
    display: none;
}

:lang(ja) h1,:lang(zh-CN) h1,:lang(ko) h1 {
    line-height: 1.25;
    letter-spacing: -.025em;
}

:lang(th) h1,:lang(bn) h1,:lang(hi) h1 {
    line-height: 1.35;
    letter-spacing: 0;
}

:lang(th) .eyebrow,:lang(bn) .eyebrow,:lang(hi) .eyebrow {
    letter-spacing: 0;
}

@media(max-width:1080px) {
    .hero {
        padding: 25px;
        gap: 25px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-line {
        font-size: 30px;
    }

    .hero-intro {
        font-size: 17px;
    }

    .clock-panel {
        padding: 18px;
    }

    .clock-digits {
        font-size: 4.5vw;
    }

    .tool-card {
        display: block;
    }

    .tool-icon {
        margin-bottom: 18px;
    }

    .tool-card>div {
        height: calc(100% - 63px);
    }

    .story-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px;
    }

    .story-content {
        padding: 22px;
    }

    .story-content h3 {
        font-size: 25px;
    }

    .about-section {
        gap: 30px;
    }

}

@media(max-width:760px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 26px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-line {
        font-size: 30px;
    }

    .hero-intro {
        max-width: none;
        font-size: 17px;
    }

    .clock-digits {
        font-size: clamp(35px,8.5vw,65px);
        max-width: 520px;
        margin-inline: auto;
    }

    .clock-panel {
        padding: 18px 20px;
    }

    .clock-display-link {
        padding: 13px 0;
    }

    .clock-top {
        font-size: 15px;
    }

    .clock-bottom {
        font-size: 12px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .all-stories {
        max-width: 30%;
        font-size: 15px;
        gap: 7px;
        margin-top: 23px;
    }

    .section-intro {
        font-size: 17px;
    }

    .section {
        padding-block: 28px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-card {
        display: flex;
        padding: 24px;
    }

    .tool-card>div {
        height: auto;
    }

    .tool-icon {
        margin-bottom: 0;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 25px;
        margin-top: 9px;
    }

    .about-section h2 {
        font-size: 31px;
        margin-bottom: 12px;
    }

    .about-copy {
        font-size: 17px;
    }

    .footer-links {
        gap: 12px 17px;
    }

}

@media(max-width:540px) {
    .hero {
        padding: 21px;
        border-radius: 27px;
        gap: 24px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-line {
        font-size: 27px;
    }

    .hero-intro {
        font-size: 17px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .hero-actions {
        gap: 10px 16px;
    }

    .button {
        font-size: 16px;
        padding-inline: 16px;
        min-height: 48px;
    }

    .hero-actions .text-link {
        font-size: 15px;
    }

    .eyebrow {
        font-size: 12px;
        line-height: 1.6;
    }

    .clock-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .clock-top {
        font-size: 14px;
        gap: 8px;
    }

    .format-button {
        font-size: 12px;
        min-height: 30px;
        padding-inline: 8px;
    }

    .clock-digits {
        font-size: clamp(29px,8.2vw,43px);
        gap: 3px;
        line-height: 1.5;
    }

    .clock-date {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .clock-bottom {
        font-size: 11px;
        gap: 9px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .all-stories {
        font-size: 14px;
        gap: 6px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-image-wrap {
        aspect-ratio: 1.65;
    }

    .story-content {
        padding: 22px;
    }

    .story-content h3 {
        font-size: 27px;
    }

    .story-category {
        font-size: 13px;
    }

    .story-summary {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .story-read {
        font-size: 15px;
    }

    .story-year {
        font-size: 14px;
    }

    .more-stories {
        font-size: 14px;
        gap: 9px;
    }

    .tool-card {
        gap: 15px;
        padding: 22px;
    }

    .tool-card h3 {
        font-size: 26px;
    }

    .tool-card p {
        font-size: 16px;
    }

    .tool-cta {
        font-size: 15px;
    }

    .about-section {
        padding: 24px;
    }

    .about-section h2 {
        font-size: 30px;
    }

    .footer-mini,.footer-links,.footer-address {
        font-size: 15px;
    }

}

@media(max-width:360px) {
    .hero {
        padding: 17px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-line {
        font-size: 25px;
    }

    .hero-intro {
        font-size: 17px;
    }

    .clock-panel {
        padding: 12px;
    }

    .clock-digits {
        font-size: 28px;
    }

    .clock-top {
        font-size: 13px;
    }

    .section-heading {
        flex-wrap: wrap;
        gap: 5px;
    }

    .all-stories {
        margin-top: 0;
        max-width: none;
    }

    .story-content {
        padding: 20px;
    }

    .tool-card {
        display: block;
        padding: 22px;
    }

    .tool-icon {
        margin-bottom: 16px;
    }

    .about-section {
        padding: 20px;
    }

}

/* HOMEPAGE v13 — CSS END */

/* Clock copy: a useful clock description and a descriptive, localized link. */
.about-clock-title {
    color: var(--text);
    font-weight: 740;
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 16px;
}

.about-clock-title a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Featured story: car-red accents, a neutral frame, and an uncropped photo. */
.promo-card {
    --promo-accent: #f8062e;
    --promo-border: #ccc;
    --promo-paper: #fff;
    --promo-photo-paper: #fff;
    --promo-text: #51464c;
    --promo-kicker: #c90026;
    --promo-credit: #61564e;
    --promo-button: #da0028;
    --promo-button-hover: #bc0023;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    margin: 12px 0 6px;
    overflow: hidden;
    border: 1px solid var(--promo-border);
    border-radius: var(--r);
    background: var(--promo-paper);
    box-shadow: var(--shadow2);
}

html[data-theme=dark] .promo-card {
    --promo-accent: #ff526f;
    --promo-border: #53505a;
    --promo-paper: #18151b;
    --promo-photo-paper: #171920;
    --promo-text: #e5dce1;
    --promo-kicker: #ff8fa1;
    --promo-credit: #cfc6cb;
}

.promo-copy {
    padding: 36px;
    color: var(--text);
    background: linear-gradient(135deg, #f8062e0d, transparent 70%);
    min-width: 0;
}

.promo-kicker {
    color: var(--promo-kicker);
}

.promo-copy h2 {
    max-width: 560px;
    margin: 0 0 14px;
    color: var(--promo-accent);
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.promo-line {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.4;
}

.promo-text {
    margin: 0 0 25px;
    max-width: 530px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--promo-text);
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

/* A slightly deeper red keeps white button text clearly readable. */
.promo-button {
    background: var(--promo-button);
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.promo-button:hover {
    background: var(--promo-button-hover);
    color: #fff;
}

.promo-partner {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--promo-kicker);
}

.promo-partner:hover {
    color: var(--promo-kicker);
}

.promo-partner > span {
    flex: none;
}

.promo-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 24px;
    min-width: 0;
    background: var(--promo-photo-paper);
}

.promo-media a {
    display: block;
}

.promo-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 18px;
}

.promo-media figcaption {
    font-size: 14px;
    line-height: 1.6;
    color: var(--promo-credit);
}

[dir=rtl] .promo-copy h2 {
    letter-spacing: 0;
    line-height: 1.35;
}

/* New tools are live links; the homepage does not load their application code. */
.time-tools  {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-tools .tool-card  {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.time-tools .tool-card > div  {
    flex: 1;
    height: auto;
}

.time-tools .tool-icon  {
    margin: 0;
}

.time-tools .tool-card h3  {
    font-size: 24px;
}

.tool-pomodoro .tool-icon  {
    color: var(--brand2);
    background: color-mix(in srgb, var(--brand2) 12%, transparent);
}

.tool-world_clock .tool-icon  {
    color: var(--steel);
    background: color-mix(in srgb, var(--steel) 12%, transparent);
}

/* Optional ad area. Dimensions exist before any included provider code runs. */
.ad-placement  {
    margin: 12px 0 6px;
    padding: 18px 0 25px;
    border-block: 1px solid var(--line);
}

.ad-label  {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.ad-slot  {
    width: min(100%, var(--ad-width));
    height: var(--ad-height);
    margin-inline: auto;
    container-type: inline-size;
    overflow: hidden;
}

.ad-slot img, .ad-slot iframe  {
    max-width: 100%;
}

.house-ad  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 14px 22px;
    border: 1px solid var(--line2);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--text);
}

.house-ad-copy  {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.house-ad strong  {
    font-size: 23px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.house-ad-copy > span  {
    font-size: 14px;
    line-height: 1.5;
}

.house-ad-cta  {
    max-width: 38%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ad-slot[data-format=leaderboard] .house-ad-copy > span  {
    display: none;
}

.ad-slot[data-format=rectangle] .house-ad  {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px;
}

.ad-slot[data-format=rectangle] .house-ad-cta  {
    max-width: 100%;
}

@container (max-width: 650px)  {
    .house-ad  {
        gap: 10px;
        padding: 12px;
    }

    .house-ad strong  {
        font-size: 18px;
    }

    .house-ad-copy > span  {
        display: none;
    }

    .house-ad-cta  {
        max-width: 43%;
        font-size: 13px;
    }

    .ad-slot[data-format=rectangle] .house-ad-copy > span  {
        display: block;
    }

}

@media (max-width: 1080px)  {
    .time-tools  {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-copy  {
        padding: 28px;
    }

    .promo-media  {
        padding: 20px;
    }

}

@media (max-width: 800px)  {
    .ad-slot  {
        height: var(--ad-mobile-height);
    }

}

@media (max-width: 760px)  {
    .promo-card  {
        grid-template-columns: 1fr;
    }

    .promo-copy  {
        padding: 28px;
    }

    .promo-copy h2  {
        font-size: 36px;
    }

    .promo-media  {
        padding: 22px;
    }

    .promo-media img  {
        max-width: 600px;
        margin-inline: auto;
    }

    .time-tools  {
        grid-template-columns: 1fr;
    }

    .time-tools .tool-card  {
        flex-direction: row;
        gap: 17px;
    }

}

@media (max-width: 540px)  {
    .promo-card  {
        border-radius: 27px;
    }

    .promo-copy  {
        padding: 25px;
    }

    .promo-copy h2  {
        font-size: 34px;
    }

    .promo-line  {
        font-size: 20px;
    }

    .promo-text  {
        font-size: 17px;
    }

    .promo-media  {
        padding: 18px;
    }

}

@media (max-width: 360px)  {
    .promo-copy  {
        padding: 22px;
    }

    .promo-copy h2  {
        font-size: 30px;
    }

    .promo-media  {
        padding: 16px;
    }

    .time-tools .tool-card  {
        flex-direction: column;
    }

}

.keep-together {
    white-space: nowrap;
}

.promo-copy h2 {
    text-wrap: balance;
}

/* Keep long translated ad labels inside narrow mobile creatives. */
.house-ad-copy,
.house-ad-cta {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}
