/* ── Additional styles: appended to main.css or imported separately ── */

/* ── Static pages ──────────────────────────────────────────────────── */
.page-static        { max-width: 740px; }
.page-static h1     { font-size: 2rem; margin-bottom: .5rem; }
.page-static h2     { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.page-static p      { margin-bottom: 1rem; }
.page-desc          { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* ── Contact form ───────────────────────────────────────────────────── */
.contact-email      { font-family: var(--font-ui); font-size: 1.1rem; color: var(--color-navy); background: var(--color-cream-dark); display: inline-block; padding: .5rem 1rem; border-radius: var(--radius); border: 1px solid var(--color-border); margin-top: .25rem; user-select: all; }
.contact-form       { max-width: 560px; margin-top: 1.5rem; }
.form-field         { margin-bottom: 1.25rem; }
.form-field label   { display: block; font-family: var(--font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .35rem; }
.form-field input,
.form-field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-parchment); font-family: var(--font-sans); font-size: 1rem; color: var(--color-text); transition: border-color .15s; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-gold); }
.form-field textarea { resize: vertical; }
.form-submit        { display: inline-block; background: var(--color-navy); color: #fff; font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .7rem 1.75rem; border: none; border-radius: var(--radius); cursor: pointer; transition: background .15s; }
.form-submit:hover  { background: var(--color-gold); color: var(--color-navy); }
.form-flash         { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; }
.form-flash--success { background: #eaf7ee; border: 1px solid #a3d9b1; color: #1e5e30; }
.form-flash--error   { background: #fdf0f0; border: 1px solid #e8b4b4; color: #7a1f1f; }

/* ── Post list header ──────────────────────────────────────────────── */
.post-list-header   { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.post-list-header h1 { font-size: 1.75rem; }

/* ── Grid ad break ─────────────────────────────────────────────────── */
.grid-ad-break      { grid-column: 1 / -1; }

/* ── Pagination ─────────────────────────────────────────────────────  */
.pagination         { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; align-items: center; font-family: var(--font-ui); }
.page-btn           { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 .6rem; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); font-size: .875rem; text-decoration: none; }
.page-btn:hover     { background: var(--color-bg-alt); text-decoration: none; }
.page-btn.active    { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-ellipsis      { padding: 0 .35rem; color: var(--color-muted); }

/* ── Empty state ────────────────────────────────────────────────────  */
.empty-state        { color: var(--color-muted); padding: 2rem 0; }

/* ── Error page ─────────────────────────────────────────────────────  */
.error-page         { text-align: center; padding: 4rem 0; }
.error-page h1      { font-size: 6rem; color: var(--color-border); }
.error-page p       { color: var(--color-muted); margin-bottom: 1.5rem; }

/* ── Wizard Fact widget ─────────────────────────────────────────────── */
.widget-wizard-fact {
    background: #f0f4ff;
    border-top-color: var(--color-navy);
    border-color: #b8c4e8;
}
.widget-wizard-fact .widget-title {
    color: var(--color-navy-dark);
}
.wizard-fact-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
}

/* ── Wizard Tip callout (used in post content) ──────────────────────── */
.wizard-tip {
    background: #f0f4ff;
    border-left: 4px solid var(--color-navy);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.wizard-tip h3 {
    margin: 0 0 .6rem;
    font-size: 1rem;
    color: var(--color-navy-dark);
}
.wizard-tip p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}

/* ── Featured guide card (home page) ────────────────────────────────── */
.home-featured-guide        { margin-bottom: 2rem; }

.featured-guide-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-parchment);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s;
}
.featured-guide-card:hover  { box-shadow: 0 4px 18px rgba(0,0,0,.12); text-decoration: none; }

.featured-guide-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-navy-dark);
}
.featured-guide-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.featured-guide-card:hover .featured-guide-card__img-wrap img { transform: scale(1.03); }

.featured-guide-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
    gap: .75rem;
}
.featured-guide-card__title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.3;
    margin: 0;
}
.featured-guide-card__excerpt {
    color: var(--color-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-guide-card__cta {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: .9rem;
    margin-top: .25rem;
}

@media (max-width: 640px) {
    .featured-guide-card         { grid-template-columns: 1fr; }
    .featured-guide-card__body   { padding: 1.25rem 1.5rem; }
    .featured-guide-card__title  { font-size: 1.2rem; }
}
