.mmst-template-wrap,
.mmst-hub,
.mmst-single-topic,
.mmst-archive {
    --mmst-bg: #f8f6f1;
    --mmst-panel: #ffffff;
    --mmst-border: #e6dcc6;
    --mmst-text: #2d2a26;
    --mmst-muted: #6d655c;
    --mmst-accent: #ac9343;
    --mmst-accent-dark: #7f6c2a;
    color: var(--mmst-text);
}

.mmst-template-wrap {
    padding: 36px 0 56px;
}

.mmst-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.mmst-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: var(--mmst-muted);
}

.mmst-breadcrumbs a {
    color: var(--mmst-accent-dark);
    text-decoration: none;
}

.mmst-breadcrumbs-top {
    margin-top: 4px;
}

.mmst-hub-hero,
.mmst-hero,
.mmst-section {
    background: linear-gradient(180deg, #f8f6f1 0%, #fff 100%);
    border: 1px solid var(--mmst-border);
    border-radius: 24px;
    padding: 32px;
    margin: 0 0 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.mmst-section {
    background: var(--mmst-panel);
}

.mmst-taxonomy-hero {
    margin-top: 0;
}

.mmst-kicker,
.mmst-meta-row,
.mmst-tag-row,
.mmst-card-topics,
.mmst-card-bottom,
.mmst-archive-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mmst-kicker {
    color: var(--mmst-accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.mmst-title,
.mmst-hub h2 {
    margin: 12px 0 10px;
    line-height: 1.05;
}

.mmst-hub h2,
.mmst-title,
.mmst-section h3,
.mmst-section-heading h3,
.mmst-card h3 {
    letter-spacing: 0.02em;
}

.mmst-lead,
.mmst-hub-hero p:last-child,
.mmst-card p,
.mmst-category-card p,
.mmst-related-card span,
.mmst-count {
    color: var(--mmst-muted);
}

.mmst-lead,
.mmst-hub-hero p:last-child {
    font-size: 1.05rem;
    max-width: 900px;
}

.mmst-chip,
.mmst-card-bottom .mmst-chip,
.mmst-card-topics .mmst-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--mmst-border);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--mmst-accent-dark);
    background: #fffaf0;
    font-size: 0.85rem;
}

.mmst-chip:hover {
    border-color: var(--mmst-accent);
}

.mmst-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--mmst-accent);
    background: var(--mmst-accent);
    color: #1e1a11;
    text-decoration: none;
    font-weight: 700;
}

.mmst-button-secondary {
    background: #fffaf0;
    color: var(--mmst-accent-dark);
    border-color: var(--mmst-border);
}

.mmst-section h3,
.mmst-section-heading h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.mmst-section-content p:first-child {
    margin-top: 0;
}

.mmst-search-form {
    margin: 0 0 28px;
}

.mmst-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
}

.mmst-search-grid input,
.mmst-search-grid select,
.mmst-search-grid button {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--mmst-border);
    padding: 0 14px;
}

.mmst-search-grid button {
    background: var(--mmst-accent);
    color: #1e1a11;
    font-weight: 700;
    cursor: pointer;
}

.mmst-card-grid,
.mmst-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.mmst-card,
.mmst-related-card {
    background: var(--mmst-panel);
    border: 1px solid var(--mmst-border);
    border-radius: 22px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 22px rgba(0,0,0,0.03);
}

.mmst-card h3,
.mmst-related-card strong {
    margin: 12px 0 10px;
    display: block;
}

.mmst-count {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
}

.mmst-related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmst-hub-section,
.mmst-single-actions-top {
    margin: 0 0 24px;
}

@media (max-width: 900px) {
    .mmst-template-wrap {
        padding: 24px 0 40px;
    }

    .mmst-shell {
        width: min(1120px, calc(100% - 20px));
    }

    .mmst-search-grid {
        grid-template-columns: 1fr;
    }

    .mmst-hub-hero,
    .mmst-hero,
    .mmst-section,
    .mmst-card,
    .mmst-related-card {
        padding: 20px;
        border-radius: 18px;
    }
}
