/* The public recipe directory (docs/recipes.md, "Directory"): a ruled list in
 * the share page's visual language (recipe-share.css), with the site's tokens
 * (site.css). */

.rl-page {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.rl-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.rl-header h1 {
    margin: 0;
    font-size: var(--font-size-7);
    line-height: var(--line-height-7);
    overflow-wrap: anywhere;
}

.rl-subtitle {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: var(--font-size-3);
    line-height: var(--line-height-3);
    font-style: italic;
}

.rl-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.rl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-1) var(--space-5);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

/* With no pager after it, the footer's rule closes the list. */
.rl-list:last-child > .rl-row:last-child {
    border-bottom: 0;
}

.rl-main {
    flex: 1 1 16rem;
    min-width: 0;
}

.rl-name {
    color: var(--fg);
    font-size: var(--font-size-4);
    line-height: var(--line-height-4);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rl-meta {
    margin: 0;
    color: var(--muted);
    font-size: var(--font-size-2);
    line-height: var(--line-height-2);
    overflow-wrap: anywhere;
}

.rl-meta a {
    color: var(--muted);
}

.rl-meta a:hover,
.rl-name:hover {
    color: var(--accent-text);
}

.rl-dot {
    margin: 0 var(--space-2);
}

.rl-figures {
    display: flex;
    flex: none;
    gap: var(--space-5);
    margin: 0;
    font-size: var(--font-size-2);
    line-height: var(--line-height-2);
}

.rl-figures div {
    display: flex;
    flex-direction: column;
}

.rl-figures dt {
    color: var(--muted);
    font-size: var(--font-size-1);
    line-height: var(--line-height-1);
}

.rl-figures dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rl-swatch {
    display: inline-block;
    width: 0.875em;
    height: 0.875em;
    margin-right: var(--space-1);
    vertical-align: -0.1em;
    border-radius: var(--radius-1);
    box-shadow: 0 0 0 1px var(--border);
}

.rl-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.rl-pager-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 var(--space-4);
    color: var(--fg);
    background: var(--soft);
    border-radius: var(--radius-3);
    font-weight: 500;
    text-decoration: none;
}

.rl-pager-link:hover {
    background: var(--soft-hover);
    color: var(--fg);
}

.rl-pager-count {
    color: var(--muted);
    font-size: var(--font-size-2);
}

@media (max-width: 30em) {
    .rl-header h1 {
        font-size: var(--font-size-6);
        line-height: var(--line-height-6);
    }

    .rl-figures {
        flex: 1 1 100%;
        gap: var(--space-4);
    }

    .rl-pager-link {
        min-height: 2.75rem;
    }
}
