/* Mandrella Blog Cards — scoped to .mpwt */
.mpwt {
  --a: var(--mpwt-accent, #295ea3);
  --a-dark: color-mix(in srgb, var(--a) 78%, #000);
  --s100:#f5f5f4; --s200:#e7e5e4; --s400:#a8a29e; --s500:#78716c; --s600:#57534e; --s900:#1c1917;
  --gold:#c18a21; --serif:'Fraunces', Georgia, serif;
  --sans:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--sans); color: var(--s900); line-height: 1.5; box-sizing: border-box;
  max-width: 1280px; margin: 0 auto; padding: 8px 16px 24px;
}
.mpwt *, .mpwt *::before, .mpwt *::after { box-sizing: border-box; }
.mpwt svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mpwt a { text-decoration: none; box-shadow: none; }
.mpwt h2, .mpwt h3 { font-family: var(--serif); margin: 0; letter-spacing: 0; text-transform: none; }
.mpwt p { margin: 0; }

.mpwt-head { padding-bottom: 8px; border-bottom: 1px solid var(--s200); margin-bottom: 24px; }
.mpwt-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: block; }
.mpwt .mpwt-title { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--s900); margin-top: 4px; line-height: 1.2; }

.mpwt-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.mpwt-cols-1 .mpwt-grid { grid-template-columns: 1fr; }
.mpwt-cols-2 .mpwt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mpwt-cols-4 .mpwt-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .mpwt-cols-4 .mpwt-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 980px)  { .mpwt-cols-3 .mpwt-grid, .mpwt-cols-4 .mpwt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .mpwt .mpwt-grid { grid-template-columns: 1fr; } }

.mpwt-card { background: #fff; border: 1px solid var(--s200); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.mpwt-card:hover { border-color: var(--s400); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mpwt-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--s100); overflow: hidden; }
.mpwt-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; transition: transform .5s; }
.mpwt-card:hover .mpwt-media img { transform: scale(1.03); }
.mpwt-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: linear-gradient(135deg, var(--s100), var(--s200), var(--s100)); }
.mpwt-ph b { font: 700 30px var(--serif); color: var(--a); }
.mpwt-ph span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--s600); font-weight: 500; margin-top: 8px; }
.mpwt-ph em { font-style: normal; font-size: 12px; color: var(--s400); margin-top: 4px; }
.mpwt-scrim { position: absolute; top: 12px; left: 12px; background: rgba(28,25,23,.8); color: #fff; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(2px); }
.mpwt-feat { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

.mpwt-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.mpwt-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--s500); }
.mpwt-meta b { font-weight: 600; color: var(--a-dark); }
.mpwt .mpwt-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpwt .mpwt-card-title a { color: var(--s900); transition: color .15s; }
.mpwt .mpwt-card-title a:hover { color: var(--a); }
.mpwt-sub { font-size: 12px; color: var(--s500); font-style: italic; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mpwt-sum { font-size: 12px; color: var(--s600); line-height: 1.65; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpwt-info { border-top: 1px solid var(--s100); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--s600); }
.mpwt-info div { display: flex; gap: 8px; align-items: center; min-width: 0; }
.mpwt-info svg { color: var(--s400); }
.mpwt-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpwt-actions { border-top: 1px solid var(--s100); padding-top: 12px; }
.mpwt .mpwt-link { font-size: 12px; font-weight: 600; color: var(--a); display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.mpwt .mpwt-link:hover { color: var(--a-dark); }

/* Filters */
.mpwt .mpwt-card[hidden], .mpwt .mpwt-empty[hidden] { display: none; }
.mpwt-filters { margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.mpwt-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; padding: 4px; background: rgba(214,211,209,.45); border-radius: 6px; }
.mpwt button { font-family: var(--sans); cursor: pointer; margin: 0; line-height: 1.2; -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: 0; box-shadow: none; }
.mpwt .mpwt-seg button { border: 0; background: transparent; color: var(--s600); font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 4px; white-space: nowrap; transition: color .15s, background .15s; }
.mpwt .mpwt-seg button:hover { color: var(--s900); background: transparent; }
.mpwt .mpwt-seg button.on { background: #fff; color: var(--s900); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mpwt-cats-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--s200); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--s500); }
.mpwt-cats-head svg { color: var(--gold); }
.mpwt-cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; scrollbar-color: #d6cebe #f1f0ea; }
.mpwt-cat-row::-webkit-scrollbar { height: 6px; }
.mpwt-cat-row::-webkit-scrollbar-track { background: #f1f0ea; border-radius: 4px; }
.mpwt-cat-row::-webkit-scrollbar-thumb { background: #d6cebe; border-radius: 4px; }
.mpwt .mpwt-cat-row button { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 7px 14px; font-size: 12px; font-weight: 500; border-radius: 6px; border: 0; background: var(--s100); color: #44403c; transition: background .15s, color .15s; }
.mpwt .mpwt-cat-row button:hover { background: rgba(231,229,228,.9); color: var(--s900); }
.mpwt .mpwt-cat-row button.on { background: var(--a); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.mpwt-cat-row button i { font-style: normal; font-size: 11px; color: var(--s500); font-variant-numeric: tabular-nums; }
.mpwt-cat-row button.on i { color: #f6dfa9; }
.mpwt-empty { background: #fff; border: 1px solid var(--s200); border-radius: 8px; padding: 40px 24px; text-align: center; max-width: 512px; margin: 0 auto; }
.mpwt .mpwt-empty h3 { font-size: 18px; font-weight: 700; color: #292524; }
.mpwt-empty p { font-size: 12px; color: var(--s500); margin: 4px 0 16px; }
.mpwt .mpwt-empty button { background: var(--s100); color: #44403c; border: 0; font-size: 12px; font-weight: 500; padding: 8px 16px; border-radius: 4px; }
.mpwt .mpwt-empty button:hover { background: var(--s200); }
.mpwt-none { text-align: center; color: var(--s500); font-size: 14px; }
