:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef6f8;
    --text: #172033;
    --muted: #5d6880;
    --border: #dbe2ec;
    --primary: #145c72;
    --primary-strong: #0f4556;
    --travel: #0f8fa8;
    --work: #6750a4;
    --business: #c56a17;
    --danger: #a72727;
    --success: #147344;
    --radius: 8px;
    --shadow: 0 12px 28px rgba(23, 32, 51, .09);
    --space: .85rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.48;
    font-size: 15px;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(20, 92, 114, .45); outline-offset: 3px; }
.skip-link {
    position: absolute;
    left: .75rem;
    top: -4rem;
    z-index: 20;
    padding: .6rem .8rem;
    background: var(--surface);
    border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.nav-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: .65rem 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.brand, .nav-links, .language-switcher, .footer-links {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.brand {
    min-width: max-content;
    text-decoration: none;
    font-weight: 800;
    gap: .65rem;
}
.brand-mark {
    display: grid;
    grid-template-columns: repeat(2, .52rem);
    grid-template-rows: repeat(2, .52rem);
    gap: .22rem;
    place-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, #123b4b, #0f7b90);
    box-shadow: 0 8px 20px rgba(15, 69, 86, .2);
}
.brand-mark span {
    border-radius: .18rem;
    background: rgba(255,255,255,.96);
}
.brand-mark span:nth-child(2) { background: #8bd4df; }
.brand-mark span:nth-child(3) { background: #f4b86a; }
.brand-word {
    display: flex;
    align-items: baseline;
    gap: .02rem;
    color: var(--text);
    font-size: 1.05rem;
    letter-spacing: 0;
}
.brand-word span:first-child { font-weight: 850; }
.brand-word span:nth-child(2) {
    color: var(--primary);
    font-weight: 850;
}
.brand-word small {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}
.icon-circle {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}
.nav-links a, .footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
}
.nav-links a:hover, .footer-links a:hover { color: var(--primary); }
.language-switcher a {
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}

.hero {
    min-height: 46vh;
    display: grid;
    align-items: center;
    padding: 3.4rem 1rem 2.4rem;
    background:
        linear-gradient(135deg, rgba(20,92,114,.92), rgba(23,32,51,.86)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Cpath d='M0 530c160-80 250-50 395-15 170 41 250-74 430-46 165 26 228 117 375 42v189H0z' fill='%23ffffff' fill-opacity='.18'/%3E%3Cpath d='M0 0h1200v700H0z' fill='none'/%3E%3Ccircle cx='975' cy='135' r='92' fill='%23ffffff' fill-opacity='.14'/%3E%3Cpath d='M154 200h280M154 255h210M154 310h330' stroke='%23fff' stroke-width='18' stroke-linecap='round' opacity='.15'/%3E%3C/svg%3E");
    background-size: cover;
    color: #fff;
}
.hero-content, .section, .site-footer {
    max-width: 1220px;
    margin: 0 auto;
}
.hero-content { width: 100%; }
.eyebrow {
    margin: 0 0 .7rem;
    color: currentColor;
    opacity: .78;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(2.15rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.02rem; }
.hero-lead {
    max-width: 760px;
    margin: 1.2rem 0 1.5rem;
    font-size: 1.03rem;
}
.section {
    padding: 1.45rem 1rem;
    scroll-margin-top: 5rem;
}
.section-hero {
    padding-top: 1.4rem;
    padding-bottom: .8rem;
}
.section-heading {
    display: grid;
    gap: .35rem;
    margin-bottom: 1rem;
}
.section-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}
.section-hero h1 {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
}
.section-hero .section-heading {
    margin-bottom: .75rem;
}
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .2rem;
}
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(23, 32, 51, .06);
}
.quick-links a:hover {
    border-color: rgba(20, 92, 114, .35);
    background: #f8fcfd;
}
.quick-links span {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: .9rem;
}
.feature-grid, .card-grid, .tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .link-card, .tool-card, .admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-card {
    min-height: 190px;
    padding: 1rem;
    display: grid;
    gap: .8rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover, .link-card:hover { transform: translateY(-3px); }
.accent-travel .icon-circle { background: var(--travel); }
.accent-work .icon-circle { background: var(--work); }
.accent-business .icon-circle { background: var(--business); }
.feature-card p, .link-card p, .tool-card p, .admin-card p { color: var(--muted); margin: 0; }
.card-action, .badge {
    justify-self: start;
    align-self: end;
    border-radius: 999px;
    padding: .35rem .65rem;
    background: var(--surface-soft);
    color: var(--primary-strong);
    font-weight: 800;
    font-size: .82rem;
}
.badge-affiliate {
    background: #eef1f4;
    color: #4f5968;
    font-size: .74rem;
    font-weight: 750;
}
.badge-external { background: #eaf4ff; color: #154c7b; }
.badge-tool { background: #edf8ef; color: #0f6338; }
.link-card, .tool-card, .admin-card {
    padding: .8rem;
    display: grid;
    gap: .6rem;
}
.sitemap-grid .admin-card {
    align-content: start;
}
.sitemap-list {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding-left: 1.1rem;
}
.sitemap-list li::marker {
    color: var(--primary);
}
.sitemap-list a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}
.sitemap-list a:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}
.sitemap-group-link {
    color: var(--primary);
    text-decoration: none;
}
.sitemap-group-link:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}
.sitemap-tool-card {
    gap: .75rem;
}
.sitemap-tool-list {
    gap: .42rem;
    padding-left: 0;
    list-style: none;
}
.sitemap-tool-list li {
    margin: 0;
}
.sitemap-tool-list a {
    display: block;
    padding: .38rem .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fbfc;
    color: var(--text);
    font-weight: 650;
    line-height: 1.25;
}
.sitemap-tool-list a:hover {
    border-color: rgba(20, 92, 114, .35);
    background: var(--surface-soft);
    color: var(--primary-strong);
    text-decoration: none;
}
.sitemap-list p {
    margin: .12rem 0 0;
    color: var(--muted);
    font-size: .94rem;
}
.link-card a { text-decoration: none; color: var(--primary); font-weight: 800; }
.link-card a.button, a.button, button.button { color: #fff; }
.link-card a.button {
    width: 100%;
    align-self: end;
}
.affiliate-note {
    padding: .85rem 1rem;
    background: #fff8ed;
    border: 1px solid #f0d5a5;
    border-radius: var(--radius);
    color: #5f3a02;
}
.privacy-warning {
    padding: .65rem .75rem;
    border: 1px solid #f0d5a5;
    border-radius: var(--radius);
    background: #fff8ed;
    color: #5f3a02;
    font-weight: 700;
}
.tool-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}
.tool-card > .badge,
.tool-card > h3,
.tool-card > p,
.tool-card > .field-label,
.tool-card > textarea,
.tool-card > .checklist,
.tool-card > .result-box,
.tool-card > .tool-controls,
.tool-card > .button,
.tool-card > .qr-image {
    grid-column: 1 / -1;
}
.tool-card > .button {
    justify-self: start;
}
.tool-card textarea, .tool-card input, .tool-card select,
.admin-form textarea, .admin-form input, .admin-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .62rem .68rem;
    background: #fff;
    color: var(--text);
}
.field-label {
    display: grid;
    gap: .35rem;
    color: var(--text);
    font-weight: 800;
}
.field-label span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
}
.tool-card textarea { min-height: 98px; resize: vertical; }
.tool-controls, .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: var(--radius);
    padding: .62rem .82rem;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 800;
}
.button:hover { background: var(--primary-strong); }
.button-muted { color: var(--text); background: #e7edf4; }
.button.button-muted, button.button-muted, a.button.button-muted { color: var(--text); }
.button-danger { background: var(--danger); }
.result-box {
    min-height: 2.6rem;
    padding: .65rem;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px dashed var(--border);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.result-box-long {
    border-style: solid;
    border-color: #c8dfe7;
    background: #f1f8fa;
    color: var(--primary-strong);
    font-weight: 700;
}
.result-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(23, 32, 51, .45);
}
.result-dialog-panel {
    width: min(440px, 100%);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.result-dialog-panel h2 {
    margin-bottom: .5rem;
    font-size: 1.25rem;
}
.result-dialog-panel p {
    margin: 0 0 .9rem;
    color: var(--muted);
    white-space: pre-line;
}
.result-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.qr-image:not([src]) {
    display: none;
}
.checklist {
    display: grid;
    gap: .35rem;
}
.checklist label {
    display: flex;
    gap: .45rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: .35rem .45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--text);
    text-align: left;
}
.checklist input {
    width: auto;
    flex: 0 0 auto;
}
.admin-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: .7rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.admin-form {
    display: grid;
    gap: .75rem;
    max-width: 760px;
}
.poll-vote-form {
    display: grid;
    gap: .45rem;
    max-width: 820px;
}
.poll-status {
    margin: 0 0 .3rem;
    color: var(--primary-strong);
    font-weight: 800;
}
.poll-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.6rem;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
}
.poll-option:hover {
    border-color: rgba(20, 92, 114, .35);
    background: #fff;
}
.poll-option.is-selected {
    border-color: rgba(20, 92, 114, .55);
    background: #edf8fb;
}
.poll-option.is-disabled {
    opacity: .58;
    cursor: not-allowed;
}
.poll-option input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
}
.poll-option span {
    overflow-wrap: anywhere;
}
.poll-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .3rem;
}
.poll-vote-form .button {
    justify-self: start;
}
.poll-result-summary,
.poll-result-closed {
    margin: 0 0 .65rem;
}
.poll-result-closed {
    padding: .6rem .7rem;
    border-radius: var(--radius);
    background: #edf8ef;
    color: var(--success);
    font-weight: 800;
}
.poll-chart {
    display: grid;
    gap: .8rem;
}
.poll-chart-row {
    display: grid;
    gap: .25rem;
}
.poll-chart-label {
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.poll-chart-track {
    min-height: .9rem;
    border-radius: 999px;
    background: #e7edf4;
    overflow: hidden;
}
.poll-chart-bar {
    height: .9rem;
    border-radius: 999px;
    background: var(--primary);
}
.poll-chart-count {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}
.inline-form {
    display: inline-flex;
    margin-left: .5rem;
}
.status { color: var(--success); font-weight: 800; }
.error { color: var(--danger); font-weight: 800; }

.poll-link-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}
.qr-image {
    width: 180px;
    height: 180px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.app-panel {
    display: grid;
    gap: 1rem;
}
.compact-heading {
    margin-bottom: .2rem;
}
.app-controls {
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.world-clock-card,
.timer-card,
.calendar-month,
.holiday-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.world-clock-card {
    display: grid;
    gap: .25rem;
    padding: .85rem;
}
.world-clock-card strong {
    color: var(--primary-strong);
    font-size: 1rem;
}
.world-clock-card span {
    font-size: 1.15rem;
    font-weight: 850;
}
.world-clock-card small,
.holiday-item small,
.small-note {
    color: var(--muted);
}
.time-result {
    max-width: 680px;
}
.timer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}
.timer-card {
    display: grid;
    gap: .85rem;
    align-content: start;
    padding: 1rem;
}
.location-card {
    display: grid;
    gap: .9rem;
    max-width: 860px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.location-card h2 {
    margin-bottom: .35rem;
}
.location-card p {
    margin: 0;
    color: var(--muted);
}
.location-result {
    display: grid;
    gap: .75rem;
}
.location-result dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin: 0;
}
.location-result dl div {
    padding: .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
}
.location-result dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}
.location-result dd {
    margin: .2rem 0 0;
    color: var(--primary-strong);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.location-map-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: end;
}
.location-map-link input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .62rem .68rem;
    background: #f8fafc;
    color: var(--primary-strong);
    overflow: hidden;
    text-overflow: ellipsis;
}
.timer-display {
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--primary-strong);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    text-align: center;
}
.timer-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}
.lap-list {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding-left: 1.4rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.calendar-year {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.calendar-month {
    display: grid;
    gap: .55rem;
    padding: .75rem;
}
.calendar-month h3 {
    color: var(--primary-strong);
    text-transform: capitalize;
}
.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .25rem;
}
.calendar-weekdays span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}
.calendar-day {
    display: inline-grid;
    place-items: center;
    min-height: 2rem;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.calendar-day.is-empty {
    background: transparent;
}
.calendar-day.is-holiday {
    background: #fff3df;
    color: #7a3c00;
    box-shadow: inset 0 0 0 1px #efca90;
}
.calendar-day.is-today {
    background: var(--primary);
    color: #fff;
}
.holiday-item {
    display: grid;
    gap: .2rem;
    padding: .75rem;
}
.holiday-item strong {
    color: var(--primary-strong);
}
.site-footer {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}
.gtm-noscript {
    display: none;
    visibility: hidden;
}

@media (min-width: 821px) {
    h1 { font-size: clamp(2rem, 4vw, 3.8rem); }
    h2 { font-size: 1.55rem; }
    h3 { font-size: .98rem; }
    .hero { min-height: 40vh; padding: 2.8rem 1rem 2rem; }
    .hero-lead { font-size: .98rem; margin: .9rem 0 1.1rem; }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calendar-year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tool-card textarea { min-height: 86px; }
    .link-card p, .tool-card p, .admin-card p { font-size: .94rem; }
    .button { padding: .55rem .72rem; }
}
@media (max-width: 820px) {
    .nav-shell, .site-footer { align-items: stretch; flex-direction: column; }
    .nav-shell { display: grid; }
    .nav-links { flex-wrap: wrap; }
    .feature-grid, .card-grid, .tool-grid, .poll-link-panel, .world-clock-grid, .timer-grid, .calendar-year { grid-template-columns: 1fr; }
    .tool-card { grid-template-columns: 1fr; }
    .timer-inputs { grid-template-columns: 1fr; }
    .location-result dl, .location-map-link { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 2.4rem 1rem 1.8rem; }
    .section { padding: 1.15rem 1rem; }
    .section-hero { padding-top: 1rem; padding-bottom: .55rem; }
    .section-hero h1 { font-size: 1.75rem; }
    .quick-links { gap: .45rem; }
    .quick-links a { flex: 1 1 calc(50% - .45rem); padding: .48rem .55rem; }
}
