.article-header h1,
.article-body {
    max-width: calc(100vw - 48px);
    overflow-wrap: anywhere;
}

.clock-tool {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.clock-hero,
.clock-panel,
.clock-code-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(12, 24, 20, .96));
    box-shadow: var(--shadow);
}

.clock-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
    gap: 18px;
    align-items: stretch;
    padding: 20px;
    overflow: hidden;
    border-color: rgba(101, 168, 255, .32);
    background:
        linear-gradient(135deg, rgba(101, 168, 255, .16), transparent 46%),
        linear-gradient(180deg, rgba(19, 41, 32, .98), rgba(8, 16, 13, .98));
}

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

.clock-hero h2,
.clock-panel h2 {
    margin: 0;
    color: #fff;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.clock-hero h2 {
    max-width: 860px;
    font-size: clamp(30px, 6vw, 54px);
}

.clock-lede,
.clock-panel p,
.clock-panel li,
.clock-card-label,
.clock-code-card small,
.clock-form small,
.clock-check-grid em {
    color: var(--muted);
}

.clock-lede {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 16px;
}

.clock-facts,
.clock-links,
.clock-result-row,
.clock-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clock-facts {
    margin-top: 18px;
}

.clock-facts span,
.clock-links a,
.clock-result-row button,
.clock-progress button {
    min-height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(101, 168, 255, .32);
    background: rgba(101, 168, 255, .11);
    color: #cfe3ff;
    font-weight: 750;
}

.clock-facts span,
.clock-links a,
.clock-result-row button,
.clock-progress button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
}

.clock-result-row button,
.clock-progress button {
    cursor: pointer;
}

.clock-links a:hover,
.clock-result-row button:hover,
.clock-progress button:hover {
    background: var(--blue);
    color: #06111f;
}

.clock-code-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 230px;
    padding: 20px;
    text-align: center;
    border-color: rgba(226, 180, 67, .34);
    background:
        radial-gradient(circle at 50% 30%, rgba(226, 180, 67, .24), transparent 58%),
        linear-gradient(180deg, rgba(19, 41, 32, .86), rgba(8, 16, 13, .92));
}

.clock-code-card output {
    width: min(100%, 250px);
    padding: 14px 12px;
    border: 1px solid rgba(226, 180, 67, .42);
    border-radius: 8px;
    background: rgba(8, 16, 13, .72);
    color: var(--gold-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(34px, 9vw, 52px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.clock-card-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 850;
}

.clock-panel {
    padding: 18px;
}

.clock-generator {
    border-color: rgba(68, 201, 130, .34);
}

.clock-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 14px;
}

.clock-form,
.clock-grid,
.clock-check-grid {
    display: grid;
    gap: 12px;
}

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

.clock-form label,
.clock-check-grid label,
.clock-filter-row label {
    min-width: 0;
}

.clock-form span,
.clock-filter-row span {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 800;
}

.clock-form input,
.clock-filter-row input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(8, 16, 13, .74);
    color: #fff;
    padding: 8px 10px;
}

.clock-form small {
    display: block;
    margin-top: 6px;
    line-height: 1.35;
}

.clock-result-row {
    align-items: center;
    margin-top: 12px;
}

.clock-result-row p {
    flex: 1 1 280px;
    margin: 0;
}

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

.clock-steps {
    display: grid;
    gap: 9px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.clock-steps li,
.clock-check-grid label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .34);
}

.clock-steps strong {
    min-width: 98px;
    color: var(--gold-2);
}

.clock-steps span,
.clock-check-grid strong,
.clock-check-grid em {
    display: block;
}

.clock-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.clock-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.clock-table th,
.clock-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.clock-table th {
    color: var(--gold-2);
    font-size: 12px;
    text-transform: uppercase;
}

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

.clock-check-grid input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.clock-check-grid em {
    margin-top: 3px;
    font-style: normal;
}

.clock-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #cfe3ff;
}

.clock-filter-row {
    margin-bottom: 12px;
}

.clock-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 820px) {
    .clock-hero,
    .clock-form,
    .clock-grid,
    .clock-check-grid {
        grid-template-columns: 1fr;
    }

    .clock-section-heading {
        display: block;
    }

    .clock-code-card {
        min-height: 190px;
    }
}

@media (max-width: 520px) {
    .article-header h1,
    .article-body {
        max-width: calc(100vw - 28px);
    }

    .clock-hero,
    .clock-panel {
        padding: 14px;
    }

    .clock-hero h2 {
        font-size: 30px;
    }

    .clock-steps li {
        grid-template-columns: 1fr;
    }
}
