/*
 * public/parts/directory-pages.css
 * Styles for the generated business and question pages (/business/..., /question/...).
 * Built by tools/build-pages.js; colors and fonts come from theme.css.
 */

.container.etw-dir {
    max-width: 820px;
}

/* ---- Header ---- */
.etw-dir-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--pad-x);
    border-bottom: 1px solid var(--c-ink);
}

.etw-dir-logo {
    font-size: 18px;
}

.etw-dir-nav {
    display: flex;
    gap: 20px;
}

.etw-dir-nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-ink);
    text-decoration: none;
}

.etw-dir-nav a:hover {
    text-decoration: underline;
}

/* ---- Breadcrumbs ---- */
.etw-dir-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--c-muted);
}

.etw-dir-crumbs li + li::before {
    content: '›';
    margin-right: 6px;
}

.etw-dir-crumbs a {
    color: var(--c-muted);
    text-decoration: none;
}

.etw-dir-crumbs a:hover {
    color: var(--c-ink);
    text-decoration: underline;
}

/* ---- Title + intro ---- */
.etw-dir-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--c-ink);
}

.etw-dir-intro {
    margin: 0 0 28px;
    color: var(--c-muted);
    font-size: 17px;
}

/* ---- Article card (one business / one question) ---- */
.etw-dir-article {
    padding: 28px 24px;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--c-white);
}

/* Main photo on location and question pages (4:3) */
.etw-dir-photo {
    margin: 0 0 20px;
}

.etw-dir-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--card-border);
    border-radius: var(--card-radius);
}

.etw-dir-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.etw-dir-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-white);
    background: var(--c-ink);
    border-radius: 5px;
}

.etw-dir-chip--local {
    color: var(--c-ink);
    background: var(--c-tan-light);
}

.etw-dir-about {
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-ink);
}

.etw-dir-about p {
    margin: 0 0 14px;
}

.etw-dir-about ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.etw-dir-lead {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
}

.etw-dir-pending {
    color: var(--c-muted);
    font-style: italic;
}

/* ---- Facts (address, phone, website, hours) ---- */
.etw-dir-facts {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
    clear: both; /* starts below the photo */
}

.etw-dir-fact dt {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.etw-dir-fact dd {
    margin: 0;
    font-weight: 600;
}

.etw-dir-fact a {
    color: var(--c-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- "Own this business?" link: deliberately quiet ---- */
.etw-dir-owner {
    margin: 12px 0 0;
    text-align: right;
    font-size: 12px;
}

.etw-dir-owner a {
    color: var(--c-muted);
    text-decoration: none;
}

.etw-dir-owner a:hover {
    color: var(--c-ink);
    text-decoration: underline;
}

/* ---- Lists of links (related, hubs) ---- */
.etw-dir-more,
.etw-dir-group {
    margin-top: 36px;
}

.etw-dir-more h2,
.etw-dir-group h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.etw-dir-group h2 a {
    color: var(--c-ink);
    text-decoration: none;
}

.etw-dir-group h2 a:hover {
    text-decoration: underline;
}

.etw-dir-cards {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.etw-dir-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border: 2px solid var(--c-ink);
    border-radius: 12px;
    color: var(--c-ink);
    text-decoration: none;
    background: var(--c-white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.etw-dir-card:hover {
    background: var(--c-tan-light);
    transform: translateY(-2px);
}

.etw-dir-card-title {
    font-weight: 600;
}

.etw-dir-card-meta {
    font-size: 14px;
    color: var(--c-muted);
}

.etw-dir-back {
    margin: 40px 0 0;
}

.etw-dir-back a {
    font-weight: 600;
    color: var(--c-ink);
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
    .etw-dir-article {
        padding: 36px 40px;
    }

    .etw-dir-facts {
        grid-template-columns: 1fr 1fr;
    }

    .etw-dir-cards {
        grid-template-columns: 1fr 1fr;
    }
}
