
.info-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem var(--spacing-md, 1rem) 4rem;
}
.info-wrap h1 {
    font-size: var(--fs-3xl);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.info-h1-icon { color: var(--primary-color); }
.info-lead {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1.6;
    margin: 0 0 2rem;
}
.info-wrap h2 {
    font-size: var(--fs-xl);
    margin: 2.25rem 0 0.6rem;
}
.info-wrap h2:where(:not(.reg-cta-title):not(.legal-toc-title)) {
    position: relative;
    display: flex;                  /* so an .info-h2-icon sits on the baseline row */
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-color);
}
.info-wrap h2:where(:not(.reg-cta-title):not(.legal-toc-title))::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-primary);
}
/* Optional icon before a heading. Sized down and set in the accent so it
   labels the section without competing with the title. */
.info-h2-icon {
    flex: 0 0 auto;
    font-size: 0.8em;
    opacity: 0.9;
}
/* ── Links in body copy ───────────────────────────────────────────────────── */
.info-wrap { --info-link: var(--accent-primary); --info-link-hover: var(--primary-hover); }
body.dark-mode .info-wrap { --info-link-hover: #93c5fd; }

.info-wrap :where(a:not(.btn)) {
    color: var(--info-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: color-mix(in srgb, var(--info-link) 40%, transparent);
    transition: color 120ms, text-decoration-color 120ms;
}
.info-wrap :where(a:not(.btn)):hover {
    color: var(--info-link-hover);
    text-decoration-color: currentColor;
}
.info-wrap :where(a:not(.btn)):focus-visible {
    outline: 2px solid var(--info-link);
    outline-offset: 2px;
    border-radius: 2px;
}

.info-wrap li {
    margin-bottom: 5px;
}
.info-wrap p  { line-height: 1.65; margin: 0 0 1rem; }
.info-wrap ul { line-height: 1.65; margin: 0 0 1rem; padding-left: 1.25rem; }
.info-cta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}
.info-note {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 2.5rem;
}

/* ── Open Source: illustrated rows ────────────────────────────────────────── */
.os-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 0 0 2rem;
}
.os-media { flex: 0 0 180px; }
.os-body  { flex: 1 1 auto; min-width: 0; }
.os-body > :first-child { margin-top: 0; }
.os-body p:last-child   { margin-bottom: 0; }

.os-shot {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface-2, #eef2f7);
}
/* Placeholder for a screenshot that has not been taken yet, and the labelled
   tile used where there is nothing to photograph (the API row). */
.os-shot--missing,
.os-shot--icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--accent-primary);
}
.os-shot--missing i,
.os-shot--icon i { font-size: 2.6rem; }
.os-icon-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 620px) {
    .os-item  { flex-direction: column; gap: 0.85rem; }
    .os-media { flex: 0 0 auto; width: 100%; }
    .os-shot  { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* ── Info sections: quick-links row (Philosophy, Open Source) ────────────── */
.info-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
}
.info-quicknav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface-2, #eef2f7);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;          /* overrides the section's underlined links */
    transition: border-color 120ms, background-color 120ms;
}
.info-quicknav a:hover {
    border-color: var(--info-link, var(--accent-primary));
    text-decoration: none;
}
.info-quicknav i { font-size: var(--fs-xs); opacity: 0.8; }

/* ── Resource cards ("What we build on") ─────────────────────────────────── */
.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.75rem;
}
.res-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface-2, #eef2f7);
    padding: 0.85rem 1rem;
}
.info-wrap .res-name {
    font-weight: 700;
    font-size: var(--fs-md);
    text-decoration: none;          /* the card is the affordance, not an underline */
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}
.info-wrap .res-name:hover { text-decoration: underline; }
.res-ext { font-size: 0.62em; opacity: 0.55; }
.res-ver {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: var(--fs-3xs);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.info-wrap .res-role {
    margin: 0.4rem 0 0;
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--text-muted);
}

/* Sub-heading above a resource grid — quieter than an h2, no rule of its own. */
.info-wrap .res-grid + h3,
.info-wrap h3 {
    font-size: var(--fs-base);
    margin: 1.6rem 0 0.7rem;
}

/* ── Roadmap: status cards ────────────────────────────────────────────────── */
.info-wrap .roadmap-stack {
    display: grid;
    grid-template-columns: 1fr;      /* "Coming next" under "Here today" */
    gap: 2rem;
    margin: 0 0 2rem;
}
.info-wrap .roadmap-col-head {
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 0;               /* the section rule belongs to h2, not here */
    padding-bottom: 0;
}
.info-wrap .roadmap-col-head--now  i { color: #16a34a; }
.info-wrap .roadmap-col-head--next i { color: #f59e0b; }

/* ── The card grid ──────────────────────────────────────────────────────── */
.info-wrap .rmc-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: .9rem;
    align-items: stretch;
}

.info-wrap .rmc {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, .5rem);
    min-width: 0;                   /* let a long blurb wrap instead of widening the track */
}

/* ── Media panel ────────────────────────────────────────────────────────── */
.info-wrap .rmc-media {
    flex: 0 0 132px;
    align-self: flex-start;
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2, #eef2f7);
    line-height: 0;
}
.info-wrap .rmc-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
/* No screenshot → the row's icon, tinted to match its list. */
.info-wrap .rmc-media--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 2.6rem;
}
.info-wrap .rmc-media--now  { background: rgba(22,163,74,.10);  color: #16a34a; border-color: rgba(22,163,74,.22); }
.info-wrap .rmc-media--next { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.28); }

.info-wrap a.rmc-media--link {
    text-decoration: none;          /* not a text link */
    transition: border-color 120ms, transform 120ms, box-shadow 120ms;
}
.info-wrap a.rmc-media--link:hover {
    border-color: var(--info-link, var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* ── Card body ──────────────────────────────────────────────────────────── */
.info-wrap .rmc-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.info-wrap .rmc-title { font-size: var(--fs-md); font-weight: 700; }
.info-wrap .rmc-blurb {
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* "Still being worked on" bullets, marked with the Coming-next orange arrow. */
.info-wrap .rmc-todo {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: grid;
    gap: .3rem;
}
.info-wrap .rmc-todo li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-size: var(--fs-sm);
    line-height: 1.45;
    color: var(--text-muted);
}
.info-wrap .rmc-todo i { flex: 0 0 auto; color: #b45309; font-size: var(--fs-2xs); }

body.dark-mode .info-wrap .rmc-todo i,
body.dark-mode .info-wrap .rmc-media--next { color: #f59e0b; }

/* Narrow: one column, and a smaller media panel so the text keeps its room. */
@media (max-width: 560px) {
    .info-wrap .rmc { gap: .8rem; padding: .85rem; }
    .info-wrap .rmc-media { flex-basis: 92px; width: 92px; height: 92px; }
    .info-wrap .rmc-media--icon { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .info-wrap a.rmc-media--link { transition: none; }
    .info-wrap a.rmc-media--link:hover { transform: none; }
}

.rm-item { margin: 0 0 3rem; }
.rm-headline {
    font-size: var(--fs-2xl);
    line-height: 1.25;
    margin: 0 0 0.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.rm-headline .rm-hicon {
    color: var(--primary-color);
    font-size: 0.9em;
    flex: 0 0 auto;
    width: 1.5em;
    text-align: center;
}
.rm-blurb {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    padding-left: calc(1.5em + 0.6rem);
    max-width: 72ch;
}

.rm-shot {
    display: block;
    margin: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rm-shot:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}
.rm-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.rm-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface-2, rgba(120, 120, 120, 0.05));
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
}
.rm-placeholder .rm-ph-icon { font-size: var(--fs-3xl); opacity: 0.5; }
.rm-placeholder .rm-ph-label { font-size: var(--fs-md); font-weight: 600; }
.rm-placeholder .rm-ph-file {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--fs-xs);
    opacity: 0.75;
    word-break: break-all;
}

.tp-main > .tp-wrap.info-wrap { padding-top: 1.25rem; }

.tp-nav-head.in-nav-head--bare {
    justify-content: flex-end;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    min-height: 0;
}

.tp-nav-link.in-nav-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.tp-nav-link.in-nav-disabled:hover { background: none; color: inherit; }
.in-nav-lock { margin-left: auto; font-size: var(--fs-2xs); opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — the Info section below 820px
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 820px) {
    /* No padding rule here on purpose: --col-pad already narrows to 0.6rem at
       this width (coreLayout.css) and `.tp-page--article .tp-wrap` reads it,
       so the gutter follows the rest of the site with nothing to keep in sync. */

    /* 3xl is 2rem — a headline built for a 900px column. */
    .info-wrap h1 { font-size: var(--fs-2xl); }
    .info-wrap h2 { font-size: var(--fs-lg); margin-top: 1.5rem; }
    .info-lead    { font-size: var(--fs-md); margin-bottom: 1.25rem; }

    /* The roadmap items: the blurb is indented to clear the headline's icon
       gutter, which costs ~2.5rem of a ~360px measure. */
    .rm-headline { font-size: var(--fs-xl); }
    .rm-blurb    { padding-left: 0; }
    .rm-item     { margin-bottom: 2rem; }

    .info-note { margin-top: 1.75rem; }

    /* The CTA buttons stack rather than sitting two-up and truncating. */
    .info-cta { flex-direction: column; align-items: stretch; }
    .info-cta .btn { justify-content: center; }
}
