/* Long-form pages. styles.css supplies .prose, .wrap, .btn and the palette. */

.article {
    max-width: 72ch;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow a {
    color: var(--text-faint, #5b6779);
    text-decoration: none;
}

.eyebrow a:hover {
    color: var(--kodura-brand-bright, #3d92ff);
}

/* The opening claim, set larger because it is the argument the rest supports. */
.standfirst {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text, #e8edf5);
    margin-bottom: 2rem;
}

.article h2 {
    margin-top: 2.6rem;
}

.article h3 {
    margin-top: 1.8rem;
    font-size: 1.05rem;
}

.article pre {
    background: #02050b;
    border: 1px solid var(--border-solid, #182234);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    overflow-x: auto;
}

.article pre code {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.85rem;
    line-height: 1.6;
    background: none;
    padding: 0;
    color: var(--kodura-brand-cyan, #00b9fd);
    white-space: pre;
}

.article li code,
.article p code {
    overflow-wrap: anywhere;
}

/* Where the article hands over to the tool. Deliberately distinct from the
   body text: it is the answer, not more explanation. */
.callout {
    margin: 1.8rem 0;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--border-solid, #182234);
    border-left: 3px solid var(--kodura-brand-bright, #3d92ff);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.callout-warning {
    border-left-color: var(--pending, #f0a83c);
}

.callout-warning pre {
    margin: 0.9rem 0;
}

.article .app-pitch {
    margin-top: 3.5rem;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.post-list li {
    padding: 1.2rem 0;
    border-top: 1px solid var(--border-solid, #182234);
}

.post-list a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text, #e8edf5);
    text-decoration: none;
}

.post-list a:hover {
    color: var(--kodura-brand-bright, #3d92ff);
}

.post-list p {
    margin: 0.35rem 0 0.4rem;
    color: var(--text-dim, #8e9bb0);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-faint, #5b6779);
}

/* Reference tables. The wrapper scrolls rather than the page — a wide table is
 * the classic way an article ends up with a horizontally scrolling body. */
.table-scroll {
    overflow-x: auto;
    margin: 1.6rem 0;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
}

.article table {
    border-collapse: collapse;
    width: 100%;
    min-width: 34rem;
    font-family: var(--mono);
    font-size: 0.85rem;
}

.article th,
.article td {
    padding: 0.5rem 0.9rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.article th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.article td:first-child {
    color: var(--brand-bright);
    font-weight: 600;
}

.article tr:last-child td { border-bottom: 0; }
.article tr.highlight td { background: var(--row-highlight); }
.article tr:hover td { background: var(--row-hover); }

/* Tables whose cells are sentences rather than values. Opt-in: reference
 * tables stay on one line so their columns line up. */
.article table.prose-table td {
    white-space: normal;
    font-family: var(--sans);
    font-size: 0.9rem;
    vertical-align: top;
}
.article table.prose-table { min-width: 0; }
.article table.prose-table td:first-child { white-space: nowrap; }
