/* Shared Blog layout for the main listing and every category; article pages are unchanged. */
@font-face { font-family: 'Blog Reference Sans'; src: url('assets/blog/reference-sans.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
.blog-reference .blog-main {
  --blog-dark: #252b3a;
  --blog-accent: var(--wine, #4c1019);
  --blog-action: var(--wine, #4c1019);
  --blog-surface: #fcf9f8;
  --blog-eyebrow: #f03771;
  --blog-border: rgba(37,43,58,.1);
  --blog-shadow: 0 4px 16px rgba(37,43,58,.05);
  max-width: none; margin: 0; padding: 0 0 80px;
  background: var(--blog-surface); color: var(--blog-dark);
  font: 400 14px/22px 'Blog Reference Sans', sans-serif;
}
.blog-reference .blog-main *, .blog-reference .blog-main *::before, .blog-reference .blog-main *::after { box-sizing: border-box; }
.blog-reference .blog-main a { color: inherit; }
.blog-reference .blog-main a:focus-visible { outline: 2px solid var(--blog-accent); outline-offset: 3px; }
.blog-reference .blog-breadcrumb { position: absolute; z-index: 1; padding: 20px 16px; }
.blog-reference .blog-breadcrumb ol { color: rgba(255,255,255,.9); font: 400 12px/20px 'Blog Reference Sans', sans-serif; }
.blog-reference .blog-breadcrumb li + li::before { color: rgba(255,255,255,.5); }
.blog-reference .blog-intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 600px; max-width: none; padding: 60px 16px; text-align: center;
  background: linear-gradient(to bottom,rgba(37,43,58,.7),rgba(37,43,58,.48),rgba(37,43,58,.62)),url('assets/blog/banner.webp') center/cover;
  color: #fff;
}
.blog-reference .blog-intro .blog-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 auto 20px; padding: 10px 20px; max-width: 100%; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(37,43,58,.35);
  color: var(--blog-eyebrow); font: 800 12px/16px 'Blog Reference Sans',sans-serif;
  letter-spacing: .28em; box-shadow: 0 4px 18px rgba(0,0,0,.16); backdrop-filter: blur(12px);
}
.blog-reference .blog-intro .blog-eyebrow::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--blog-eyebrow); }
.blog-reference .blog-intro h1 { max-width: 960px; margin: 0 auto; color: #fff; font: 800 54px/1.12 'Blog Reference Sans',sans-serif; letter-spacing: normal; overflow-wrap: break-word; filter: drop-shadow(0 3px 14px rgba(0,0,0,.28)); }
.blog-reference .blog-intro > p:last-child { max-width: 760px; margin: 24px auto 0; color: rgba(255,255,255,.9); font: 400 16px/32px 'Blog Reference Sans',sans-serif; filter: drop-shadow(0 2px 8px rgba(0,0,0,.24)); }
.blog-reference .blog-layout { position: relative; max-width: 1540px; margin: 0 auto; padding: 80px 16px 0; display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 32px; align-items: start; border: 0; }
.blog-reference .blog-sidebar { display: block; min-width: 0; }
.blog-reference .blog-sidebar > section { padding: 24px; margin: 0; background: #fff; border: 1px solid var(--blog-border); border-radius: 16px; box-shadow: var(--blog-shadow); }
.blog-reference .blog-sidebar > section + section { margin-top: 32px; }
.blog-reference .blog-sidebar h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--blog-dark); font: 800 18px/28px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-panel-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 16px; color: var(--blog-accent); background: var(--blog-surface); }
.blog-reference .blog-panel-icon svg { width: 18px; height: 18px; }
.blog-reference .blog-categories { display: grid; grid-template-columns: 1fr; gap: 12px; max-height: 500px; padding-right: 4px; overflow-y: auto; }
.blog-reference .blog-categories a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 12px 16px; border: 1px solid var(--blog-border); border-radius: 12px; background: var(--blog-surface); color: rgba(37,43,58,.7); font: 600 14px/20px 'Blog Reference Sans',sans-serif; transition: border-color .3s,background .3s,box-shadow .3s; }
.blog-reference .blog-categories a[aria-current] { font-weight: 600; }
.blog-reference .blog-categories span { min-width: 0; padding: 4px 10px; background: white; color: rgba(37,43,58,.55); border-radius: 9999px; font: 700 12px/16px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-categories a:hover { border-color: rgba(76,16,25,.35); background: white; color: var(--blog-accent); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.blog-reference .blog-tags nav { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-reference .blog-tags a { border: 1px solid var(--blog-border); border-radius: 9999px; background: var(--blog-surface); padding: 8px 16px; color: rgba(37,43,58,.7); font: 600 14px/20px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-tags a:hover { background: var(--blog-accent); border-color: var(--blog-accent); color: #fff; }
.blog-reference .blog-recent ul { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.blog-reference .blog-recent li { border: 0; margin: 0; padding: 0; }
.blog-reference .blog-recent li > a { display: flex; gap: 16px; padding: 12px; background: rgba(76,16,25,.08); border: 1px solid var(--blog-border); border-radius: 16px; text-decoration: none; }
.blog-reference .blog-recent img { flex: 0 0 80px; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.blog-reference .blog-recent a > span { min-width: 0; }
.blog-reference .blog-recent strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--blog-dark); font: 700 14px/24px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-recent-read { display: block; margin-top: 8px; color: var(--blog-action); font: 600 12px/16px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-recent a:hover { background: #fff; border-color: var(--blog-accent); }
.blog-reference .blog-recent > p { margin: 0; color: rgba(37,43,58,.7); font: 400 14px/28px 'Blog Reference Sans',sans-serif; }
/* The reference starts directly with the cards; keep the heading for screen readers. */
.blog-reference .blog-list-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blog-reference .blog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.blog-reference .blog-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--blog-border); border-radius: 16px; box-shadow: var(--blog-shadow); transition: transform .3s,border-color .3s,box-shadow .3s; }
.blog-reference .blog-card:hover { transform: translateY(-4px); border-color: rgba(76,16,25,.25); box-shadow: 0 8px 22px rgba(37,43,58,.07); }
.blog-reference .blog-card-image { height: 300px; aspect-ratio: auto; background: var(--blog-surface); }
.blog-reference .blog-card-image img { transition: transform .7s; }
.blog-reference .blog-card:hover .blog-card-image img { transform: scale(1.1); }
.blog-reference .blog-card-copy { padding: 24px; }
.blog-reference .blog-card-copy .blog-eyebrow { display: inline-block; padding: 4px 12px; margin: 0; border: 1px solid rgba(240,55,113,.2); border-radius: 9999px; background: var(--blog-surface); color: var(--blog-eyebrow); font: 700 12px/16px -apple-system,system-ui,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; letter-spacing: normal; text-transform: uppercase; }
.blog-reference .blog-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 56px; margin: 16px 0 0; color: var(--blog-dark); font: 800 20px/28px 'Blog Reference Sans',sans-serif; overflow-wrap: normal; }
.blog-reference .blog-card h3 a:hover { text-decoration: none; color: var(--blog-accent); }
.blog-reference .blog-card-copy > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 12px 0 0; color: rgba(37,43,58,.7); font: 400 14px/28px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--blog-border); }
.blog-reference .blog-card-meta time { color: rgba(37,43,58,.55); font: 600 12px/16px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-card-meta .blog-read { display: inline-flex; align-items: center; gap: 8px; color: var(--blog-action); font: 700 16px/22px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-read span { margin: 0; transition: transform .3s; }
.blog-reference .blog-card:hover .blog-read span { transform: translateX(4px); }
.blog-reference .blog-pagination { gap: 8px; margin-top: 40px; font: 400 14px/30px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-pagination a,.blog-reference .blog-pagination span { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; font: inherit; border: 1px solid transparent; border-radius: 6px; }
.blog-reference .blog-pagination [aria-current] { color: var(--blog-accent); border-color: var(--blog-accent); background: #fff; font-weight: 600; }
.blog-reference .blog-pagination [aria-disabled] { color: rgba(0,0,0,.25); }
.blog-reference .blog-pagination a:hover { background: rgba(0,0,0,.06); border-color: transparent; }
.blog-reference .blog-empty { border: 1px solid var(--blog-border); border-radius: 16px; background: #fff; padding: 24px; box-shadow: var(--blog-shadow); }
.blog-reference .blog-empty .blog-eyebrow { color: var(--blog-eyebrow); font: 700 12px/16px 'Blog Reference Sans',sans-serif; letter-spacing: normal; }
.blog-reference .blog-empty h3 { font: 800 24px/32px 'Blog Reference Sans',sans-serif; color: var(--blog-dark); }
.blog-reference .blog-empty > p:not(.blog-eyebrow) { font: 400 14px/28px 'Blog Reference Sans',sans-serif; color: rgba(37,43,58,.7); }
.blog-reference .blog-empty > a { color: var(--blog-action); border: 0; font: 700 14px/20px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-related { margin-top: 40px; padding: 24px; border: 1px solid var(--blog-border); border-radius: 16px; background: white; box-shadow: var(--blog-shadow); }
.blog-reference .blog-related h2 { color: var(--blog-dark); font: 800 20px/28px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-related h3 { font: 700 16px/24px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-related section { border-color: var(--blog-border); }
.blog-reference .blog-related a { color: rgba(37,43,58,.7); font: 400 14px/24px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-contact { max-width: 1508px; margin: 64px auto 0; padding: 32px; border: 1px solid var(--blog-border); border-radius: 16px; background: #fff; box-shadow: var(--blog-shadow); }
.blog-reference .blog-contact .blog-eyebrow { color: var(--blog-eyebrow); font: 700 12px/20px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-contact h2 { color: var(--blog-dark); font: 800 30px/38px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-contact p:not(.blog-eyebrow) { color: rgba(37,43,58,.7); font: 400 14px/28px 'Blog Reference Sans',sans-serif; }
.blog-reference .blog-contact .btn { background: var(--blog-action); border-color: var(--blog-action); color: #fff; border-radius: 9999px; font: 700 14px/20px 'Blog Reference Sans',sans-serif; }
@media (max-width: 1539px) { .blog-reference .blog-contact { margin-right: 16px; margin-left: 16px; } }
@media (max-width: 1199px) { .blog-reference .blog-layout { grid-template-columns: 1fr; } .blog-reference .blog-results { order: 1; } .blog-reference .blog-sidebar { order: 2; } .blog-reference .blog-recent ul { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1023px) { .blog-reference .blog-intro h1 { font-size: 44px; } .blog-reference .blog-recent ul { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .blog-reference .blog-pagination a, .blog-reference .blog-pagination span { min-width: 44px; min-height: 44px; } }
@media (max-width: 767px) {
 .blog-reference .blog-main { padding-bottom: 48px; }
 .blog-reference .blog-intro { min-height: 320px; padding: 36px 20px; }
 .blog-reference .blog-intro h1 { font-size: clamp(30px, 7.5vw, 36px); }
 .blog-reference .blog-intro .blog-eyebrow { gap: 8px; padding: 8px 12px; font-size: 10px; line-height: 16px; letter-spacing: .1em; }
 .blog-reference .blog-intro > p:last-child { margin-top: 16px; font-size: 14px; line-height: 24px; }
 .blog-reference .blog-layout { display: grid; padding: 36px 20px 0; gap: 32px; }
 .blog-reference .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
 .blog-reference .blog-card { display: flex; flex-direction: column; border: 1px solid var(--blog-border); border-radius: 12px; box-shadow: var(--blog-shadow); background: #fff; }
 .blog-reference .blog-card-image { height: auto; aspect-ratio: 4 / 3; }
 .blog-reference .blog-card-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px; }
 .blog-reference .blog-card-copy .blog-eyebrow { align-self: flex-start; max-width: 100%; padding: 4px 7px; font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
 .blog-reference .blog-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 0; margin-top: 10px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
 .blog-reference .blog-card-copy > p { -webkit-line-clamp: 3; margin-top: 8px; font-size: 12px; line-height: 1.5; }
 .blog-reference .blog-card-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
 .blog-reference .blog-card-meta time { font-size: 10px; }
 .blog-reference .blog-card-meta .blog-read { font-size: 13px; line-height: 1.4; }
 .blog-reference .blog-pagination a, .blog-reference .blog-pagination span { min-width: 44px; min-height: 44px; }
 .blog-reference .blog-sidebar > section + section { margin-top: 24px; }
 .blog-reference .blog-categories { max-height: 300px; }
 .blog-reference .blog-recent ul { grid-template-columns: 1fr; }
 .blog-reference .blog-contact { margin: 40px 20px 0; padding: 24px; }
 .blog-reference .blog-contact h2 { font-size: 26px; line-height: 34px; }
}
@media (max-width: 360px) { .blog-reference .blog-intro { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .blog-reference .blog-main * { transition: none; } }

/* Category filtering preserves the current viewport and uses the same Blog layout. */
.blog-reference .blog-grid[hidden], .blog-reference .blog-empty[hidden] {display:none}
.blog-reference .blog-results {overflow-anchor:none}
.blog-reference .blog-categories a[aria-current="page"] {border-color:var(--blog-accent);color:var(--blog-accent);background:#fff}

.blog-reference .blog-recent-date { display: block; margin-top: 6px; color: var(--blog-muted, #737780); font-size: 12px; line-height: 1.5; }

/* Shared arrow styling for every Blog listing, including dynamic category changes. */
.blog-reference .blog-pagination .blog-pagination-arrow,
.blog-reference .blog-pagination [aria-label="Previous page"],
.blog-reference .blog-pagination [aria-label="Next page"] { font-size: 28px; line-height: 30px; }
