/* MindFence guides and comparison pages · byRazLabs Ltd
 *
 * Loaded after style.css, never instead of it: the page shell, type, buttons
 * and .steps all come from there. This file only adds what a reading page
 * didn't need before 21 October 2026: the breadcrumb, comparison tables,
 * screenshots inside the text column, and footnotes. The footnote look copies
 * marketing.css's .notes so a caveat reads the same on every page.
 *
 * Tables scroll inside their own box on a phone, so the page itself never
 * scrolls sideways. */

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin: .5rem 0 0;
}

.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.checked {
    font-size: .85rem;
    color: var(--muted);
    margin: 0 0 2rem;
}

/* Comparison tables */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
}

table.compare {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: .92rem;
    line-height: 1.45;
}

.compare th, .compare td {
    text-align: left;
    vertical-align: top;
    padding: .7rem .8rem;
    border-bottom: 1px solid var(--line);
    color: var(--body);
}

.compare thead th {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.compare tbody th { color: var(--text); font-weight: 600; width: 11rem; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--us); }

/* Screenshots in the text column */

figure.shot {
    margin: 1.75rem auto;
    max-width: 22rem;
}

/* A whole phone screen reads at its real size in a narrower column; the
   cropped close-ups it replaced (21 October 2026) looked like large text.
   It is the framed composite (device.css, Site/framed/); the figure is a
   size container so the device can take its width in cqw. */
figure.shot.screen { max-width: 17rem; container-type: inline-size; }
figure.shot.screen .phone { --w: 100cqw; }

figure.shot:not(.screen) img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--glow-shadow);
}

figure.shot figcaption {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .6rem;
    text-align: center;
}

/* Lists of apps on the roundup and the guides index */

.applist { list-style: none; padding: 0; }
.applist > li {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
    margin: 0;
}
.applist h3 { margin: 0 0 .25rem; }
.applist p { margin: .25rem 0; }

/* Footnotes, as on the home page */

sup.fn { font-size: .6em; line-height: 0; vertical-align: super; margin-left: .1em; }
sup.fn a { color: var(--muted); text-decoration: none; }
sup.fn a:hover { color: var(--text); }

.notes {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.notes ol { padding-left: 1.2em; font-size: .85rem; line-height: 1.5; }
.notes li { color: var(--muted); margin: .3rem 0; }
.notes li:target { color: var(--text); }

.related h2 { font-size: 1.15rem; margin-top: 2.5rem; }
.related ul { padding-left: 1.15rem; }

/* Comparison tables on a phone: each row becomes its own card, with the
   column name beside each value, so nothing scrolls sideways. The labels
   come from data-label on each cell. */
@media (max-width: 599px) {
    .table-wrap { overflow: visible; border: 0; border-radius: 0; }
    table.compare { min-width: 0; }
    table.compare thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
    table.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
    .compare tbody tr {
        margin: 0 0 .75rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        overflow: hidden;
    }
    .compare tbody th { width: auto; background: var(--surface); padding: .7rem .9rem; }
    /* Block, not grid: a footnote marker inside a cell has to stay on its
       line, and grid made it an item of its own. */
    .compare td { position: relative; padding: .6rem .9rem .6rem 8.6rem; }
    .compare td::before { content: attr(data-label); position: absolute; left: .9rem; top: .6rem; width: 7rem; color: var(--muted); font-weight: 600; }
    .compare tr:last-child th { border-bottom: 1px solid var(--line); }
    .compare tr td:last-child { border-bottom: 0; }
}
