/*
|--------------------------------------------------------------------------
| ToolVerse - Age Calculator
|--------------------------------------------------------------------------
| Page-specific CSS only
| Fully responsive
|--------------------------------------------------------------------------
*/

.tv-age-page {
    width: 100%;
    color: var(--tv-color-text);
    background: #ffffff;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.tv-age-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 58px;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(99, 91, 255, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0%,
            #f7f9fc 100%
        );
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.tv-age-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 26px;

    color: #7b8798;

    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.tv-age-breadcrumb a {
    color: var(--tv-color-primary);
    text-decoration: none;
    transition: color 160ms ease;
}

.tv-age-breadcrumb a:hover {
    color: var(--tv-color-primary-dark);
}

.tv-age-breadcrumb span[aria-current="page"] {
    color: #596579;
}


/* ==========================================================================
   HERO LAYOUT
   ========================================================================== */

.tv-age-hero__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.55fr);

    align-items: center;
    gap: 48px;
}


/* ==========================================================================
   LABELS
   ========================================================================== */

.tv-age-eyebrow,
.tv-age-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;
    padding: 0 10px;

    border: 1px solid rgba(99, 91, 255, 0.13);
    border-radius: 999px;

    background: var(--tv-color-primary-soft);

    color: var(--tv-color-primary-dark);

    font-size: 9px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.2px;
}


/* ==========================================================================
   HERO CONTENT
   ========================================================================== */

.tv-age-hero__content h1 {
    max-width: 700px;

    margin: 14px 0 0;

    color: var(--tv-color-heading);

    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 830;
    line-height: 1.04;
    letter-spacing: -1.9px;
}

.tv-age-hero__content > p {
    max-width: 690px;

    margin: 18px 0 0;

    color: var(--tv-color-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* ==========================================================================
   HERO POINTS
   ========================================================================== */

.tv-age-hero__points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px 14px;

    margin-top: 22px;
}

.tv-age-hero__points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #536173;

    font-size: 10px;
    font-weight: 650;
}

.tv-age-hero__points svg {
    width: 17px;
    height: 17px;
    padding: 3px;

    border-radius: 50%;

    background: var(--tv-color-accent-soft);

    fill: none;
    stroke: var(--tv-color-success);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   HERO NOTE
   ========================================================================== */

.tv-age-hero__note {
    padding: 22px;

    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 14px 34px
        rgba(16, 24, 40, 0.055);
}

.tv-age-hero__note-label {
    display: inline-flex;

    color: var(--tv-color-primary);

    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-age-hero__note strong {
    display: block;

    margin-top: 8px;

    color: var(--tv-color-heading);

    font-size: 15px;
    font-weight: 780;
    line-height: 1.45;
}

.tv-age-hero__note p {
    margin: 7px 0 0;

    color: var(--tv-color-muted);

    font-size: 10px;
    line-height: 1.65;
}


/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */

.tv-age-calculator-section {
    padding: 64px 0 74px;
    background: #ffffff;
}


/* ==========================================================================
   CALCULATOR SHELL
   ========================================================================== */

.tv-age-calculator {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(380px, 0.95fr);

    overflow: hidden;

    border: 1px solid rgba(220, 225, 234, 0.96);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 24px 60px
        rgba(16, 24, 40, 0.075);
}


/* ==========================================================================
   FORM SIDE
   ========================================================================== */

.tv-age-calculator__form {
    padding: 34px;
}

.tv-age-calculator__heading > span {
    color: var(--tv-color-primary);

    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-age-calculator__heading h2 {
    margin: 7px 0 0;

    color: var(--tv-color-heading);

    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.tv-age-calculator__heading p {
    max-width: 560px;

    margin: 7px 0 0;

    color: var(--tv-color-muted);

    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================================
   FIELDS
   ========================================================================== */

.tv-age-field {
    margin-top: 25px;
}

.tv-age-field + .tv-age-field {
    margin-top: 18px;
}

.tv-age-field > label,
.tv-age-field__label-row label {
    display: block;

    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 720;
}

.tv-age-field > label {
    margin-bottom: 8px;
}

.tv-age-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 8px;
}


/* ==========================================================================
   TODAY BUTTON
   ========================================================================== */

.tv-age-today-button {
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--tv-color-primary);

    font: inherit;
    font-size: 9px;
    font-weight: 720;

    cursor: pointer;

    transition: color 160ms ease;
}

.tv-age-today-button:hover {
    color: var(--tv-color-primary-dark);
}


/* ==========================================================================
   DATE INPUT
   ========================================================================== */

.tv-age-field__input-wrap {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 50px;

    padding: 0 14px;

    border: 1px solid var(--tv-color-border);
    border-radius: 13px;

    background: #fafbfc;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.tv-age-field__input-wrap:focus-within {
    border-color: rgba(99, 91, 255, 0.45);

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(99, 91, 255, 0.07);
}

.tv-age-field__input-wrap > svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin-right: 10px;

    fill: none;
    stroke: #7b8798;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-age-field__input-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--tv-color-heading);

    font-family: inherit;
    font-size: 12px;
    font-weight: 680;

    cursor: pointer;
}

.tv-age-field__input-wrap input::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}


/* ==========================================================================
   QUICK INFO
   ========================================================================== */

.tv-age-quick-info {
    margin-top: 18px;
    padding: 12px 14px;

    border: 1px solid rgba(99, 91, 255, 0.1);
    border-radius: 12px;

    background: rgba(99, 91, 255, 0.045);
}

.tv-age-quick-info span {
    color: #667085;

    font-size: 9px;
    line-height: 1.6;
}

.tv-age-quick-info strong {
    color: var(--tv-color-primary-dark);
    font-weight: 760;
}


/* ==========================================================================
   ERROR
   ========================================================================== */

.tv-age-error {
    margin-top: 16px;

    padding: 11px 13px;

    border: 1px solid rgba(217, 45, 32, 0.14);
    border-radius: 11px;

    background: #fff6f5;

    color: var(--tv-color-danger);

    font-size: 9px;
    font-weight: 650;
    line-height: 1.5;
}

.tv-age-error[hidden] {
    display: none;
}


/* ==========================================================================
   RESULT SIDE
   ========================================================================== */

.tv-age-results {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    min-height: 430px;

    padding: 34px;

    background:
        linear-gradient(
            150deg,
            #111827 0%,
            #171d2d 58%,
            #242047 100%
        );

    color: #ffffff;
}


/* ==========================================================================
   EMPTY RESULT
   ========================================================================== */

.tv-age-results__empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 320px;

    margin: auto;

    text-align: center;
}

.tv-age-results__empty[hidden] {
    display: none;
}

.tv-age-results__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.055);
}

.tv-age-results__empty-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: #aeb8c7;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-age-results__empty strong {
    margin-top: 16px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 770;
}

.tv-age-results__empty p {
    margin: 7px 0 0;

    color: #8d9aab;

    font-size: 9px;
    line-height: 1.7;
}


/* ==========================================================================
   RESULT CONTENT
   ========================================================================== */

.tv-age-results__content {
    width: 100%;
}

.tv-age-results__content[hidden] {
    display: none;
}


/* ==========================================================================
   EXACT AGE
   ========================================================================== */

.tv-age-results__top {
    padding-bottom: 23px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.tv-age-results__top > span {
    display: block;

    color: #aeb8c7;

    font-size: 9px;
    font-weight: 650;
}

.tv-age-main-result {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 14px;
}

.tv-age-main-result > div {
    min-width: 0;

    padding-right: 8px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.tv-age-main-result > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.tv-age-main-result strong {
    display: block;

    color: #ffffff;

    font-size: clamp(31px, 3.6vw, 46px);
    font-weight: 830;
    line-height: 1;
    letter-spacing: -1.4px;

    overflow-wrap: anywhere;
}

.tv-age-main-result span {
    display: block;

    margin-top: 7px;

    color: #8e9bad;

    font-size: 8px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tv-age-results__top > small {
    display: block;

    margin-top: 15px;

    color: #77869a;

    font-size: 8px;
    line-height: 1.5;
}


/* ==========================================================================
   RESULT STATS
   ========================================================================== */

.tv-age-results__stats {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 20px;
}

.tv-age-stat {
    min-width: 0;

    padding: 13px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.04);
}

.tv-age-stat span {
    display: block;

    color: #8f9cad;

    font-size: 8px;
    font-weight: 600;
}

.tv-age-stat strong {
    display: block;

    margin-top: 5px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 770;

    overflow-wrap: anywhere;
}


/* ==========================================================================
   NEXT BIRTHDAY
   ========================================================================== */

.tv-age-birthday {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 18px;
    padding: 14px;

    border:
        1px solid
        rgba(99, 91, 255, 0.2);

    border-radius: 14px;

    background:
        rgba(124, 116, 255, 0.09);
}

.tv-age-birthday__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    border-radius: 11px;

    background:
        rgba(124, 116, 255, 0.13);
}

.tv-age-birthday__icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: #aaa5ff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-age-birthday > div:last-child {
    min-width: 0;
}

.tv-age-birthday span {
    display: block;

    color: #9ba8ba;

    font-size: 8px;
    font-weight: 600;
}

.tv-age-birthday strong {
    display: block;

    margin-top: 3px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 760;
}

.tv-age-birthday p {
    margin: 3px 0 0;

    color: #8d9aab;

    font-size: 8px;
    line-height: 1.5;
}


/* ==========================================================================
   RESET
   ========================================================================== */

.tv-age-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-height: 38px;

    margin-top: 18px;
    padding: 0 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #c1cad7;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.tv-age-reset:hover {
    border-color:
        rgba(255, 255, 255, 0.19);

    background:
        rgba(255, 255, 255, 0.09);

    color: #ffffff;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.tv-age-content {
    padding: 74px 0;

    background: #f8fafc;
}

.tv-age-content__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.38fr);

    align-items: start;
    gap: 48px;
}


/* ==========================================================================
   ARTICLE
   ========================================================================== */

.tv-age-article {
    max-width: 780px;
}

.tv-age-article h2 {
    margin: 36px 0 0;

    color: var(--tv-color-heading);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.65px;
}

.tv-age-article .tv-age-section-label + h2 {
    margin-top: 11px;
}

.tv-age-article p {
    margin: 11px 0 0;

    color: var(--tv-color-muted);

    font-size: 12px;
    line-height: 1.8;
}


/* ==========================================================================
   EXAMPLE GRID
   ========================================================================== */

.tv-age-example-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 11px;

    margin-top: 24px;
}

.tv-age-example-grid > div {
    padding: 16px;

    border: 1px solid var(--tv-color-border);
    border-radius: 14px;

    background: #ffffff;
}

.tv-age-example-grid strong {
    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 760;
}

.tv-age-example-grid p {
    margin-top: 5px;

    font-size: 9px;
    line-height: 1.65;
}


/* ==========================================================================
   DISCLAIMER
   ========================================================================== */

.tv-age-disclaimer {
    margin-top: 24px;

    padding: 17px 18px;

    border-left:
        3px solid
        var(--tv-color-primary);

    border-radius:
        0 13px 13px 0;

    background: #f2f1ff;
}

.tv-age-disclaimer strong {
    display: block;

    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 770;
}

.tv-age-disclaimer p {
    margin-top: 5px;

    font-size: 9px;
}


/* ==========================================================================
   RELATED TOOLS
   ========================================================================== */

.tv-age-related {
    position: sticky;

    top:
        calc(
            var(--tv-header-height)
            + 24px
        );
}

.tv-age-related h2 {
    margin: 11px 0 0;

    color: var(--tv-color-heading);

    font-size: 20px;
    font-weight: 790;
    line-height: 1.3;
    letter-spacing: -0.45px;
}

.tv-age-related__list {
    display: grid;

    gap: 9px;

    margin-top: 17px;
}

.tv-age-related__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 68px;
    padding: 12px 13px;

    border: 1px solid var(--tv-color-border);
    border-radius: 14px;

    background: #ffffff;

    text-decoration: none;

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.tv-age-related__list a:hover {
    border-color:
        rgba(99, 91, 255, 0.18);

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px
        rgba(16, 24, 40, 0.055);
}

.tv-age-related__list span {
    min-width: 0;

    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 740;
}

.tv-age-related__list small {
    display: block;

    margin-top: 3px;

    color: var(--tv-color-muted);

    font-size: 8px;
    font-weight: 400;
}

.tv-age-related__list b {
    color: var(--tv-color-primary);

    font-size: 14px;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.tv-age-faq {
    padding: 74px 0 82px;

    background: #ffffff;
}

.tv-age-faq__head {
    max-width: 680px;

    margin-bottom: 25px;
}

.tv-age-faq__head h2 {
    margin: 11px 0 0;

    color: var(--tv-color-heading);

    font-size: clamp(27px, 3vw, 38px);
    font-weight: 810;
    line-height: 1.15;
    letter-spacing: -1.1px;
}

.tv-age-faq__head p {
    margin: 10px 0 0;

    color: var(--tv-color-muted);

    font-size: 11px;
    line-height: 1.65;
}

.tv-age-faq__list {
    display: grid;

    gap: 9px;

    max-width: 900px;
}

.tv-age-faq__item {
    overflow: hidden;

    border: 1px solid var(--tv-color-border);
    border-radius: 15px;

    background: #ffffff;
}

.tv-age-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-height: 62px;
    padding: 14px 16px;

    color: var(--tv-color-heading);

    font-size: 11px;
    font-weight: 740;
    line-height: 1.45;

    cursor: pointer;
    list-style: none;
}

.tv-age-faq__item summary::-webkit-details-marker {
    display: none;
}

.tv-age-faq__item summary i {
    position: relative;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border: 1px solid var(--tv-color-border);
    border-radius: 9px;

    background: #fafbfc;
}

.tv-age-faq__item summary i::before,
.tv-age-faq__item summary i::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 10px;
    height: 2px;

    border-radius: 999px;

    background: #667085;

    transform: translate(-50%, -50%);

    transition: transform 160ms ease;
}

.tv-age-faq__item summary i::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.tv-age-faq__item[open] summary i::after {
    transform: translate(-50%, -50%);
}

.tv-age-faq__item > div {
    padding: 0 16px 15px;
}

.tv-age-faq__item > div p {
    max-width: 800px;

    margin: 0;

    color: var(--tv-color-muted);

    font-size: 10px;
    line-height: 1.7;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

    .tv-age-hero__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tv-age-hero__note {
        max-width: 620px;
    }

    .tv-age-calculator {
        grid-template-columns: 1fr;
    }

    .tv-age-results {
        min-height: auto;
    }

    .tv-age-content__layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .tv-age-related {
        position: static;
        max-width: 620px;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .tv-age-hero {
        padding: 34px 0 45px;
    }

    .tv-age-breadcrumb {
        margin-bottom: 20px;
    }

    .tv-age-hero__content h1 {
        font-size: clamp(32px, 10vw, 42px);
        letter-spacing: -1.35px;
    }

    .tv-age-hero__content > p {
        margin-top: 14px;

        font-size: 13px;
        line-height: 1.68;
    }

    .tv-age-calculator-section {
        padding: 48px 0 56px;
    }

    .tv-age-calculator {
        border-radius: 19px;
    }

    .tv-age-calculator__form,
    .tv-age-results {
        padding: 22px;
    }

    .tv-age-calculator__heading h2 {
        font-size: 22px;
    }

    .tv-age-main-result strong {
        font-size: clamp(29px, 9vw, 40px);
    }

    .tv-age-content {
        padding: 56px 0;
    }

    .tv-age-article h2 {
        margin-top: 29px;

        font-size: 21px;
    }

    .tv-age-article p {
        font-size: 11px;
    }

    .tv-age-example-grid {
        grid-template-columns: 1fr;
    }

    .tv-age-faq {
        padding: 56px 0 62px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .tv-age-calculator__form,
    .tv-age-results {
        padding: 18px;
    }

    .tv-age-field__label-row {
        align-items: flex-start;
    }

    .tv-age-main-result {
        gap: 5px;
    }

    .tv-age-main-result > div {
        padding-right: 5px;
    }

    .tv-age-main-result strong {
        font-size: clamp(25px, 8.5vw, 34px);
    }

    .tv-age-main-result span {
        font-size: 7px;
    }

    .tv-age-results__stats {
        grid-template-columns: 1fr 1fr;
    }

    .tv-age-stat {
        padding: 12px;
    }

    .tv-age-birthday {
        align-items: flex-start;
    }

    .tv-age-faq__item summary {
        gap: 13px;

        padding: 13px 14px;
    }

    .tv-age-faq__item > div {
        padding: 0 14px 14px;
    }
}


/* ==========================================================================
   VERY SMALL MOBILE
   ========================================================================== */

@media (max-width: 360px) {

    .tv-age-main-result {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tv-age-main-result > div {
        display: flex;
        align-items: baseline;

        gap: 7px;

        padding: 0 0 10px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.07);
    }

    .tv-age-main-result > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .tv-age-main-result span {
        margin-top: 0;
    }

    .tv-age-results__stats {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tv-age-breadcrumb a,
    .tv-age-today-button,
    .tv-age-field__input-wrap,
    .tv-age-reset,
    .tv-age-related__list a,
    .tv-age-faq__item summary i::before,
    .tv-age-faq__item summary i::after {
        transition: none;
    }

    .tv-age-related__list a:hover {
        transform: none;
    }
}