/* Blog listing layout. Scoped to protect the existing portal. */
.blog-page { --blog-accent: #866226; color: var(--ink); }
.blog-page [hidden] { display: none !important; }
.blog-heading { padding: 28px 0 54px; }
.blog-heading .crumb { margin-bottom: 36px; }
.blog-heading .crumb a:hover { text-decoration: underline; }
.blog-heading h1 { max-width: 820px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.22; margin: 14px 0 20px; }
.blog-heading h1 em { color: var(--blog-accent); font-weight: inherit; }
.blog-heading p { max-width: 620px; color: #655b4b; font-size: 16px; margin-bottom: 22px; }
.blog-demo { display: inline-block; color: #70562c; font-size: 12px; line-height: 1.7; }
.blog-feature-section { padding: 48px 0 0; }
.blog-feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); background: #fffdf9; }
.blog-feature-image { position: relative; min-width: 0; }
.blog-feature-image img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.blog-feature-image > span { position: absolute; top: 22px; left: 22px; background: var(--cream); padding: 8px 15px; color: #685026; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.blog-feature-copy { padding: 44px; align-self: center; }
.blog-feature-copy h2 { font-size: clamp(28px, 3vw, 37px); line-height: 1.3; font-weight: 400; margin: 14px 0; }
.blog-feature-copy p { color: #6b6152; font-size: 14px; margin-bottom: 25px; }
.blog-page .eyebrow, .blog-page .more { color: var(--blog-accent); }
.blog-list-section { padding: 68px 0 76px; scroll-margin-top: 150px; }
.blog-list-section h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; margin: 12px 0 0; }
.blog-section-note { font-size: 13px; color: #746a5b; margin-bottom: 5px; }
.blog-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px; background: #fffdf9; border: 1px solid var(--line); }
.blog-search { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 580px; background: #fff; border: 1px solid #d6cbb8; padding: 0 15px; }
.blog-search > span { font-size: 28px; color: #866226; }
.blog-search input { width: 100%; min-width: 0; padding: 12px 0; background: none; border: 0; color: var(--ink); font-size: 14px; }
.blog-search:focus-within { outline: 2px solid #866226; outline-offset: 2px; }
.blog-search input:focus { outline: none; }
.blog-sort { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.blog-sort label { color: #6b6152; white-space: nowrap; }
.blog-sort select { padding: 12px; border: 1px solid #d6cbb8; background: #fff; color: var(--ink); }
.blog-topics { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 20px; }
.blog-topics button { border: 1px solid #dfd4c0; background: transparent; padding: 9px 19px; border-radius: 2px; color: #6b6152; font-size: 13px; }
.blog-topics button[aria-pressed="true"] { background: var(--gold-light); border-color: var(--gold); color: #543c17; }
.blog-topics button:hover { border-color: #866226; }
.blog-results { color: #746a5b; font-size: 12px; margin: 20px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.blog-card { display: flex; flex-direction: column; background: #fffdf9; border: 1px solid var(--line); min-width: 0; }
.blog-card-image { overflow: hidden; aspect-ratio: 3 / 2; background: var(--gold-light); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-category { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blog-accent); font-weight: 700; }
.blog-card h3 { font-size: 23px; font-weight: 400; line-height: 1.42; margin: 12px 0; }
.blog-card-body > p { font-size: 14px; color: #746a5b; line-height: 1.75; margin: 0 0 24px; }
.blog-card-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #746a5b; }
.blog-card-footer > span { color: var(--blog-accent); }
.blog-card a:hover { color: var(--blog-accent); text-decoration: underline; }
.blog-card-footer > a { color: var(--blog-accent); }
.blog-topics a { display: inline-block; border: 1px solid #dfd4c0; background: transparent; padding: 9px 19px; border-radius: 2px; color: #6b6152; font-size: 13px; }
.blog-topics a[aria-current="true"] { background: var(--gold-light); border-color: var(--gold); color: #543c17; }
.blog-topics a:hover { border-color: #866226; }
.blog-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border: 1px solid #d6cbb8; background: #fffdf9; padding: 8px 13px; color: #604b2b; font-size: 13px; }
.blog-pagination a[aria-current="page"] { background: var(--gold-light); border-color: var(--gold); font-weight: bold; }
.blog-pagination > span { padding: 8px; }
.blog-page .blog-card-image { display: block; }
.blog-page[data-blog-cms] :is(h1, h2, h3, .blog-topics a) { overflow-wrap: anywhere; }
.blog-toolbar > .button { flex-shrink: 0; }
.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.blog-pagination button { min-width: 42px; min-height: 42px; border: 1px solid #d6cbb8; background: #fffdf9; padding: 8px 13px; color: #604b2b; font-size: 13px; }
.blog-pagination button[aria-current="page"] { background: var(--gold-light); border-color: var(--gold); font-weight: bold; }
.blog-pagination button:disabled { opacity: .45; }
.blog-empty { text-align: center; border: 1px dashed #c9b58f; background: #fffdf9; padding: 48px 20px; }
.blog-empty > span { color: var(--blog-accent); font-size: 40px; }
.blog-empty h3 { font-size: 25px; margin: 14px 0; font-weight: 400; }
.blog-empty p { color: #746a5b; font-size: 14px; }
.blog-layout-note { text-align: center; color: #746a5b; font-size: 12px; margin: 30px auto 0; max-width: 650px; }
.blog-page :is(button, select, a):focus-visible { outline: 2px solid #866226; outline-offset: 4px; }
.blog-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
    .blog-feature-copy { padding: 28px; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-feature-image img { min-height: 340px; }
}
@media (max-width: 600px) {
    .blog-heading { padding: 24px 0 36px; }
    .blog-heading .crumb { margin-bottom: 28px; }
    .blog-heading h1 { font-size: 36px; }
    .blog-feature-section { padding-top: 28px; }
    .blog-feature { grid-template-columns: 1fr; }
    .blog-feature-image img { min-height: 0; height: 230px; }
    .blog-feature-copy { padding: 28px 23px; }
    .blog-list-section { padding: 45px 0 50px; }
    .blog-section-note { margin-top: 14px; }
    .blog-toolbar { flex-direction: column; align-items: stretch; gap: 15px; padding: 15px; }
    .blog-sort { justify-content: space-between; }
    .blog-sort select { flex: 1; max-width: 200px; }
    .blog-topics { gap: 8px; }
    .blog-topics button { padding: 8px 14px; }
    .blog-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-card-body { padding: 23px; }
    .blog-card h3 { font-size: 24px; }
}
