/*
 * BentoSort: the guides hub and the guides. Loaded after base.css and prose.css, only on those
 * pages. Logical properties only, so right-to-left languages need no extra rules.
 */

/* The trail above a guide's title: Home › Guides. */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.92rem; }
.breadcrumb li + li::before { content: "›"; margin-inline-end: 0.5rem; color: var(--ink-soft); }
[dir="rtl"] .breadcrumb li + li::before { content: "‹"; }
.breadcrumb a { color: var(--ink-soft); }

/* The direct answer under the heading: the lines a searcher came for. */
.answer { font-size: 1.12rem; }

/* One picture per guide, beside or above the answer; the art sits on the washi ground. */
.guide-art { display: block; width: min(100%, 26rem); margin: 0 0 1.75rem; }
.guide-art img { width: 100%; height: auto; border-radius: var(--radius); }

/* The example setup: a compartment of its own, labeled as an illustration. */
.example {
    background: var(--paper-raised); box-shadow: var(--card-shadow);
    border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.example > :last-child { margin-bottom: 0; }
.example .label { font-size: 0.9rem; font-weight: 700; color: var(--vermilion-ink); margin-bottom: 0.4rem; }

/* The box settings of a setup: name on the left, value on the right, wrapping on narrow screens. */
.settings { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: 0.35rem 1.25rem; margin: 0.75rem 0 1rem; }
.settings dt { font-weight: 600; }
.settings dd { margin: 0; }
@media (max-width: 30rem) {
    .settings { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
    .settings dd { margin-bottom: 0.5rem; }
}

/* Where to go next: the other guides and the download. */
.next { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.next ul { padding-inline-start: 1.2rem; }

/* =========================================================================
   Hub: one card per guide
   ========================================================================= */

.guide-cards { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; max-width: 44rem; }
.guide-card {
    display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 1.1rem; align-items: start;
    background: var(--paper-raised); box-shadow: var(--card-shadow);
    border-radius: var(--radius); padding: 1rem 1.15rem;
}
.guide-card picture { display: block; grid-row: span 2; }
.guide-card img { width: 100%; height: auto; border-radius: 10px; }
.guide-card h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.guide-card p { margin: 0; }
@media (min-width: 40rem) {
    .guide-card { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
