:root {
    color-scheme: light;
    --page: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --ink: #142033;
    --muted: #5d6979;
    --line: #dbe3ed;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --teal: #0f8b8d;
    --amber: #b45309;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
    min-width: 280px;
    min-height: 100%;
    background: var(--page);
}

body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-inner,
.header-inner,
.content-grid,
.faq-inner,
.footer-inner {
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
}

.site-header {
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.site-logo span { color: var(--blue); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #526174;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-current {
    border-color: var(--line);
    color: var(--blue-dark);
    background: #f7f9fc;
}

.page-hero,
.detail-hero {
    padding: 64px 0 132px;
    border-bottom: 1px solid #d7e2f0;
    background: #eaf2fc;
    text-align: center;
}

.detail-hero { padding-bottom: 112px; }

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: #162844;
    font-size: 58px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy,
.detail-hero > .page-inner > p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px auto 0;
    color: #50637b;
    font-size: 18px;
    line-height: 1.65;
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.calculator-wrap,
.answer-section {
    position: relative;
    z-index: 2;
    margin-top: -78px;
}

.calculator-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.calculator-input-side {
    padding: 36px;
}

.calculator-input-side h2,
.section-heading h2,
.content-grid h2,
.faq-inner h2,
.inline-calculator h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: 0;
}

.calculator-form { margin-top: 24px; }

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    color: #526174;
    font-size: 13px;
    font-weight: 800;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.input-row input,
.inline-form input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #f9fbfd;
    font-size: 18px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.input-row input:focus,
.inline-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    background: #ffffff;
}

.input-row button,
.inline-form button {
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
}

.input-row button:hover,
.inline-form button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }

.calculator-result {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    border-left: 1px solid var(--line);
    background: #163763;
    color: #ffffff;
    text-align: center;
}

.calculator-result-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calculator-result-summary > span {
    color: #c6d8ef;
    font-size: 14px;
    font-weight: 750;
}

.calculator-result-summary time {
    margin-top: 11px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
}

.calculator-result-summary small {
    margin-top: 12px;
    color: #a9dfe5;
    font-size: 12px;
    font-weight: 750;
}

.date-countdown {
    width: min(100%, 440px);
    min-height: 112px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(198, 216, 239, 0.24);
}

.date-countdown > p {
    margin: 0 0 11px;
    color: #c6d8ef;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

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

.date-countdown-unit {
    min-width: 0;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border: 1px solid rgba(198, 216, 239, 0.2);
    border-radius: 8px;
    background: rgba(5, 24, 49, 0.38);
}

.date-countdown-unit strong {
    min-width: 2ch;
    color: #ffffff;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1;
}

.date-countdown-unit span {
    margin-top: 7px;
    color: #9fb8d7;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.date-countdown-unit.is-seconds strong { color: #5eead4; }

.date-countdown.is-light {
    width: min(100%, 520px);
    margin: 24px auto 0;
    border-top-color: var(--line);
}

.date-countdown.is-light > p { color: #526174; }

.date-countdown.is-light .date-countdown-unit {
    border-color: #d6dfeb;
    background: #f3f6fa;
}

.date-countdown.is-light .date-countdown-unit strong { color: var(--ink); }
.date-countdown.is-light .date-countdown-unit span { color: #64748b; }
.date-countdown.is-light .date-countdown-unit.is-seconds strong { color: #0788a4; }

.featured-section { padding: 74px 0 78px; }

.section-heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.date-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.date-card {
    min-width: 0;
    min-height: 150px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    background: var(--surface);
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.date-card:nth-child(2) { border-top-color: var(--teal); }
.date-card:nth-child(3) { border-top-color: var(--amber); }

.date-card:hover {
    border-color: #b9c7d8;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.date-card-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--blue-dark);
    background: #eaf1ff;
    font-size: 19px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.date-card:nth-child(2) .date-card-number { color: #086b6d; background: #e5f5f3; }
.date-card:nth-child(3) .date-card-number { color: #92400e; background: #fff2dc; }

.date-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.date-card time {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.date-card-arrow { color: #8190a3; font-size: 21px; }

.days-table-section {
    padding: 76px 0 84px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.days-table-section .section-heading > p:not(.section-kicker) {
    max-width: 680px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.days-table-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.days-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--ink);
}

.days-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.days-table .days-column { width: 24%; }
.days-table .date-column { width: 48%; }
.days-table .weekday-column { width: 28%; }

.days-table th,
.days-table td {
    height: 56px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.days-table thead th {
    height: 52px;
    color: #dceaff;
    background: #163763;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.days-table tbody tr:nth-child(even) { background: #f7f9fc; }
.days-table tbody tr:last-child > * { border-bottom: 0; }

.days-table tbody th,
.days-table tbody td {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.days-table tbody th { font-weight: 850; }
.days-table tbody td { color: #526174; }

.days-table tbody th a {
    color: var(--blue-dark);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.days-table tbody th a:hover { color: #163763; }

.content-section {
    padding: 78px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
    gap: 68px;
    align-items: start;
}

.content-grid article > p:not(.section-kicker) {
    margin: 19px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.content-grid article h2:not(:first-of-type) { margin-top: 38px; }

.info-panel,
.related-panel {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.info-panel h2,
.related-panel h2 {
    margin: 0 0 17px;
    font-size: 20px;
}

.info-panel ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-panel li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: #465569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.info-panel li span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.faq-section {
    padding: 76px 0 84px;
    border-top: 1px solid var(--line);
    background: var(--page);
}

.faq-inner { max-width: 800px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
    position: relative;
    padding: 21px 42px 21px 0;
    color: #243247;
    cursor: pointer;
    font-size: 16px;
    font-weight: 850;
    list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 5px;
    color: var(--blue);
    font-size: 23px;
    font-weight: 500;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list details p {
    max-width: 690px;
    margin: -4px 0 21px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.answer-card {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.answer-card > p {
    margin: 0;
    color: #5e6d80;
    font-size: 15px;
    font-weight: 750;
}

.answer-card > time {
    display: block;
    margin-top: 10px;
    color: #163763;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.18;
}

.answer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.answer-meta span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #536174;
    background: #f7f9fc;
    font-size: 12px;
    font-weight: 800;
}

.date-equation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #546276;
    font-size: 14px;
}

.date-equation span { color: var(--blue-dark); font-weight: 850; }
.date-equation strong { color: var(--ink); }

.share-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.share-button {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.share-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 45, 82, 0.14);
}

.share-button.is-copied {
    border-color: #15803d;
    color: #ffffff;
    background: #15803d;
}

.share-button.is-copied svg { opacity: 0; }

.share-button.is-copied::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
}

.share-primary { border-color: var(--blue); color: #ffffff; background: var(--blue); }
.share-whatsapp { border-color: #137a42; color: #ffffff; background: #137a42; }
.share-x { border-color: #111827; color: #ffffff; background: #111827; }

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.result-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid #c9d5e4;
    border-radius: 8px;
    color: #26364c;
    background: #f9fbfd;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.result-action:hover {
    border-color: #9fb1c6;
    background: #eef4fb;
}

.inline-calculator-section { padding: 52px 0 0; }

.inline-calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.inline-calculator h2 { font-size: 23px; }

.advanced-date-form {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(90px, 0.6fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr) auto;
    align-items: end;
    gap: 10px;
}

.advanced-date-form label { min-width: 0; }

.advanced-date-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #526174;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.advanced-date-form input,
.advanced-date-form select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #f9fbfd;
    font-size: 14px;
    font-weight: 800;
}

.advanced-date-form input:focus,
.advanced-date-form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    background: #ffffff;
}

.advanced-date-form button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.advanced-date-form button:hover { background: var(--blue-dark); }

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.inline-result {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
}

.inline-result span,
.inline-result small { color: var(--muted); font-size: 11px; font-weight: 750; }
.inline-result time { margin: 3px 0; color: var(--ink); font-size: 16px; font-weight: 900; }

.deadline-planner-section { padding: 20px 0 0; }

.deadline-planner-card {
    padding: 28px;
    overflow: hidden;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 14px 34px rgba(29, 78, 216, 0.07);
}

.deadline-planner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.deadline-planner-head h2 {
    margin: 2px 0 7px;
    font-size: 25px;
}

.deadline-planner-head > div:first-child > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.deadline-planner-result {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 11px 13px;
    border: 1px solid #c9d9f0;
    border-radius: 8px;
    background: #ffffff;
}

.deadline-planner-result span {
    color: #66758a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.deadline-planner-result time {
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}

.deadline-milestones {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
    padding-top: 2px;
}

.deadline-line {
    position: absolute;
    z-index: 0;
    top: 9px;
    left: 10%;
    right: 10%;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: #dce7f5;
}

.deadline-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0 48%, #0f8b8d 48% 76%, #b45309 76% 100%);
}

.deadline-milestone {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.deadline-milestone i {
    width: 18px;
    height: 18px;
    margin-bottom: 9px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.deadline-milestone.is-halfway i { background: var(--teal); box-shadow: 0 0 0 2px rgba(15, 139, 141, 0.28); }
.deadline-milestone.is-target i { background: var(--amber); box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.25); }

.deadline-milestone strong {
    color: #34445a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.deadline-milestone time {
    margin-top: 3px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.deadline-planner-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.deadline-planner-actions button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid #b9cae1;
    border-radius: 8px;
    color: #263a58;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.deadline-planner-actions button:first-child {
    border-color: var(--blue);
    color: #ffffff;
    background: var(--blue);
}

.deadline-planner-actions button:hover { transform: translateY(-1px); }
.deadline-planner-actions button:first-child:hover { background: var(--blue-dark); }

.deadline-planner-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-content { margin-top: 58px; }

.result-insights-section {
    margin-top: 58px;
    padding: 76px 0 82px;
    border-block: 1px solid var(--line);
    background: #ffffff;
}

.result-section-heading {
    max-width: 720px;
    margin-bottom: 26px;
}

.result-section-heading > p:not(.section-kicker) {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.date-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.date-fact-card {
    min-width: 0;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.date-fact-card:last-child { border-right: 0; }
.date-fact-card:nth-child(4n) { border-right: 0; }
.date-fact-card:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }

.date-fact-card span,
.date-fact-card small {
    color: #607086;
    font-size: 11px;
    font-weight: 800;
}

.date-fact-card span { text-transform: uppercase; }

.date-fact-card strong {
    margin: 8px 0 5px;
    color: #163763;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

#factUnixTimestamp { font-size: 18px; }

.timeline-card {
    margin-top: 16px;
    padding: 24px 26px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.timeline-track {
    position: relative;
    height: 7px;
    margin: 7px 5px 17px;
    border-radius: 4px;
    background: #dbe6f2;
}

.timeline-track::before,
.timeline-track::after,
.timeline-track span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 1px #9bb7dc;
    transform: translate(-50%, -50%);
}

.timeline-track::before { left: 0; }
.timeline-track span::after { left: 50%; background: var(--teal); }
.timeline-track::after { left: 100%; background: #b45309; }

.timeline-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--teal) 52%, #d97706);
}

.timeline-labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.timeline-labels div { display: grid; gap: 4px; }
.timeline-labels div:nth-child(2) { text-align: center; }
.timeline-labels div:last-child { text-align: right; }
.timeline-labels span { color: #68778a; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.timeline-labels strong { color: #293a51; font-size: 13px; font-variant-numeric: tabular-nums; }

.insight-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.duration-card,
.business-date-card,
.calendar-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.duration-card { padding: 26px; }
.insight-heading h2,
.business-date-card h2,
.calendar-card h2,
.method-note h2 { margin: 0; font-size: 23px; line-height: 1.25; }

.duration-list { margin: 20px 0 0; }

.duration-list div {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
}

.duration-list dt { color: #64748b; font-size: 13px; font-weight: 750; }
.duration-list dd { margin: 0; color: #1f3149; font-size: 14px; font-weight: 900; text-align: right; }

.business-date-card {
    display: grid;
    align-content: space-between;
    gap: 26px;
    padding: 26px;
    background: #163763;
}

.business-date-card .section-kicker { color: #91d9dc; }
.business-date-card h2 { color: #ffffff; }
.business-date-card p:not(.section-kicker) { margin: 12px 0 0; color: #c6d8ef; font-size: 14px; line-height: 1.65; }
.business-date-card time { color: #ffffff; font-size: 22px; font-weight: 900; line-height: 1.3; }

.business-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-breakdown span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(198, 216, 239, 0.22);
    border-radius: 8px;
    color: #c6d8ef;
    background: rgba(4, 22, 45, 0.24);
    font-size: 11px;
    font-weight: 750;
}

.business-breakdown strong { margin-right: 4px; color: #ffffff; font-size: 13px; }

.calendar-card {
    margin-top: 16px;
    padding: 26px;
}

.calendar-card-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.calendar-card-head > span { color: #607086; font-size: 12px; font-weight: 750; }

.calendar-weekdays,
.result-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    padding-bottom: 10px;
    color: #69798d;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.result-calendar {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.result-calendar > span {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #3a495d;
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.result-calendar > span.is-empty { color: transparent; background: #f7f9fc; }

.result-calendar > span.is-target {
    position: relative;
    color: #ffffff;
    background: var(--blue);
    box-shadow: inset 0 0 0 3px #dbeafe;
}

.nearby-calculations {
    margin-top: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.nearby-table-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nearby-results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.nearby-results-table th,
.nearby-results-table td {
    height: 50px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    color: #47576b;
    font-size: 13px;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.nearby-results-table thead th {
    color: #dceaff;
    background: #163763;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.nearby-results-table tbody th { color: #26364c; font-weight: 900; }
.nearby-results-table tbody tr:last-child > * { border-bottom: 0; }
.nearby-results-table tbody tr:nth-child(even) { background: #f7f9fc; }
.nearby-results-table tbody tr.is-current { background: #eaf2ff; }
.nearby-results-table a { color: var(--blue-dark); text-underline-offset: 3px; }

.result-cover {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef4fb;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.use-case-plan {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid var(--line);
}

.use-case-plan > p:not(.section-kicker) {
    margin: 13px 0 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.use-case-plan table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.use-case-plan th,
.use-case-plan td {
    padding: 13px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #526174;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.use-case-plan tr > *:last-child { border-right: 0; }
.use-case-plan tbody tr:last-child > * { border-bottom: 0; }
.use-case-plan thead th {
    color: #dceaff;
    background: #163763;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.use-case-plan thead th:first-child { width: 27%; }
.use-case-plan thead th:nth-child(2) { width: 23%; }
.use-case-plan tbody th { color: #26364c; font-weight: 900; }
.use-case-plan time { color: var(--blue-dark); font-weight: 850; font-variant-numeric: tabular-nums; }

.method-note {
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.method-note p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.related-panel { display: grid; }

.related-panel a {
    display: grid;
    gap: 3px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.related-panel a span { color: var(--teal); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.related-panel a strong { color: #35445a; font-size: 14px; }
.related-panel a:hover strong { color: var(--blue-dark); }

.trust-hero {
    padding: 72px 0 76px;
    border-bottom: 1px solid #cfdaea;
    background: #eaf3ff;
}

.trust-hero .eyebrow { margin: 24px 0 11px; }

.trust-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #12335f;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
}

.trust-hero p:last-child {
    max-width: 760px;
    margin: 23px 0 0;
    color: #526784;
    font-size: 18px;
    line-height: 1.7;
}

.trust-content-section { padding: 68px 0 82px; }

.trust-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 28px;
}

.trust-article {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.trust-article > section + section {
    margin-top: 36px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.trust-article h2 {
    margin: 0 0 14px;
    color: #18365f;
    font-size: 26px;
    line-height: 1.25;
}

.trust-article p {
    margin: 12px 0 0;
    color: #536174;
    font-size: 15px;
    line-height: 1.8;
}

.trust-article ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.trust-article li {
    position: relative;
    padding-left: 23px;
    color: #35475f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.trust-article li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.contact-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
    padding: 18px 20px;
    border: 1px solid #bdd2ef;
    border-radius: 8px;
    background: #eef5ff;
}

.contact-callout span { color: #526174; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.contact-callout a { color: var(--blue-dark); font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }

.trust-navigation {
    position: sticky;
    top: 20px;
    display: grid;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.trust-navigation h2 { margin: 0 0 10px; font-size: 18px; }

.trust-navigation a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: #506077;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.trust-navigation a:hover,
.trust-navigation a[aria-current="page"] { color: var(--blue-dark); }

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p { margin: 0; color: #697586; font-size: 13px; }

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-links a {
    color: #59697e;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover { color: var(--blue-dark); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .calculator-card,
    .content-grid { grid-template-columns: 1fr; }

    .calculator-result {
        min-height: 310px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .date-card-grid { grid-template-columns: 1fr; }
    .date-card { min-height: 112px; }

    .content-grid { gap: 36px; }
    .trust-layout { grid-template-columns: 1fr; }
    .trust-navigation { position: static; }

    .date-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .date-fact-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .date-fact-card:nth-child(even) { border-right: 0; }
    .date-fact-card:nth-last-child(-n + 2) { border-bottom: 0; }

    .advanced-date-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .advanced-date-form button { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .page-inner,
    .header-inner,
    .content-grid,
    .faq-inner,
    .footer-inner { width: min(100% - 22px, 1080px); }

    .site-header,
    .header-inner { min-height: 62px; }
    .site-nav a { padding-inline: 10px; font-size: 12px; }
    .site-nav a.is-current { display: none; }

    .page-hero,
    .detail-hero { padding: 48px 0 105px; }
    .detail-hero { padding-bottom: 94px; }

    .page-hero h1,
    .detail-hero h1 { font-size: 38px; }

    .hero-copy,
    .detail-hero > .page-inner > p:not(.eyebrow) { font-size: 16px; }

    .calculator-wrap,
    .answer-section { margin-top: -62px; }

    .calculator-input-side { padding: 25px 18px; }
    .calculator-input-side h2,
    .section-heading h2,
    .content-grid h2,
    .faq-inner h2 { font-size: 27px; }

    .input-row { grid-template-columns: 1fr; }
    .input-row button { width: 100%; }

    .calculator-result { min-height: 300px; padding: 25px 18px; }
    .calculator-result-summary time { font-size: 25px; }
    .date-countdown { margin-top: 22px; }
    .date-countdown-unit strong { font-size: 22px; }

    .featured-section { padding: 58px 0; }
    .date-card { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
    .date-card-arrow { display: none; }

    .days-table-section { padding: 58px 0 64px; }
    .days-table-section .section-heading { margin-bottom: 22px; }
    .days-table .days-column { width: 29%; }
    .days-table .date-column { width: 43%; }
    .days-table .weekday-column { width: 28%; }
    .days-table th,
    .days-table td { height: 52px; padding: 11px 9px; }
    .days-table tbody th,
    .days-table tbody td { font-size: 12px; }
    .days-table thead th { font-size: 10px; }

    .content-section { padding: 60px 0; }
    .faq-section { padding: 60px 0 66px; }
    .use-case-plan th,
    .use-case-plan td { padding: 10px 7px; font-size: 10px; }
    .use-case-plan thead th { font-size: 8px; }
    .trust-hero { padding: 50px 0 56px; }
    .trust-hero h1 { font-size: 38px; }
    .trust-hero p:last-child { font-size: 16px; }
    .trust-content-section { padding: 42px 0 60px; }
    .trust-article { padding: 25px 16px; }
    .trust-article h2 { font-size: 23px; }
    .contact-callout { align-items: flex-start; flex-direction: column; }

    .answer-card { padding: 28px 14px; }
    .answer-card > time { font-size: 29px; }

    .date-equation {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .inline-calculator-section { padding-top: 40px; }
    .inline-calculator { grid-template-columns: 1fr; padding: 22px 14px; }
    .inline-form { grid-template-columns: minmax(0, 1fr) auto; }
    .inline-result { grid-column: auto; }
    .deadline-planner-section { padding-top: 14px; }
    .deadline-planner-card { padding: 22px 14px; }
    .deadline-planner-head { flex-direction: column; gap: 15px; }
    .deadline-planner-head h2 { font-size: 22px; }
    .deadline-planner-result {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .deadline-milestones { gap: 2px; margin-top: 25px; }
    .deadline-line { left: 9%; right: 9%; }
    .deadline-milestone strong { font-size: 8px; }
    .deadline-milestone time { font-size: 10px; }
    .deadline-planner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .deadline-planner-actions button { min-width: 0; padding-inline: 8px; font-size: 10px; }
    .detail-content { margin-top: 42px; }

    .result-insights-section { margin-top: 42px; padding: 58px 0 64px; }
    .result-section-heading { margin-bottom: 22px; }
    .date-fact-card { min-height: 108px; padding: 16px 14px; }
    .date-fact-card strong { font-size: 19px; }
    .timeline-card { padding: 20px 14px 17px; }
    .timeline-labels { gap: 8px; }
    .timeline-labels strong { font-size: 11px; }
    .insight-split { grid-template-columns: 1fr; }
    .duration-card,
    .business-date-card,
    .calendar-card { padding: 20px 15px; }
    .calendar-card-head { align-items: flex-start; flex-direction: column; gap: 7px; }
    .result-calendar > span { min-height: 44px; font-size: 12px; }
    .calendar-weekdays span { font-size: 9px; }
    .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nearby-calculations { padding: 20px 14px; }
    .nearby-results-table th,
    .nearby-results-table td { height: 46px; padding: 9px 7px; font-size: 11px; }
    .nearby-results-table thead th { font-size: 8px; }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 340px) {
    .inline-form { grid-template-columns: 1fr; }
    .inline-form button { width: 100%; }
    .advanced-date-form { grid-template-columns: 1fr; }
    .advanced-date-form button { grid-column: auto; width: 100%; }
    .date-card-number { width: 42px; height: 42px; }
    .date-fact-card { padding-inline: 10px; }
    .date-fact-card strong { font-size: 16px; }
    #factUnixTimestamp { font-size: 14px; }
    .deadline-planner-card { padding-inline: 10px; }
    .deadline-milestone strong { font-size: 7px; }
    .deadline-milestone time { font-size: 9px; }
    .deadline-planner-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
    .site-header,
    .share-row,
    .result-actions,
    .deadline-planner-actions,
    .inline-calculator-section,
    .site-footer { display: none !important; }

    body { background: #ffffff; }
    .detail-hero { padding: 24px 0 90px; }
    .answer-card { box-shadow: none; }
}
