/* ============================================================
   Portugal Explorer Events - Frontend CSS (Editorial Premium)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

.pe-events-wrapper {
  --ink:    #0f0e0e;
  --ink2:   #222020;
  --mid:    #7a7676;
  --light:  #b8b4b4;
  --silk:   #e8e4df;
  --cream:  #f5f2ed;
  --parchm: #faf8f4;
  --white:  #ffffff;
  --red:    #b01a1a;
  --fh: 'Playfair Display', Georgia, serif;
  --fi: 'Instrument Serif', Georgia, serif;
  --fb: 'DM Sans', sans-serif;
  font-family: var(--fb);
  color: var(--ink);
  background: var(--parchm);
}

/* -- MASTHEAD -- */
.pe-masthead {
  background: var(--white);
  border-bottom: 1px solid var(--silk);
}
.pe-mast-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 48px;
  border-bottom: 1px solid var(--silk);
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--light);
}
.pe-mast-date { color: var(--mid); }
.pe-mast-logo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 48px 0;
  gap: 24px;
}
.pe-mast-nav-left, .pe-mast-nav-right {
  display: flex; align-items: center; gap: 28px;
  padding-top: 6px;
}
.pe-mast-nav-right { justify-content: flex-end; }
.pe-mast-nav-left a, .pe-mast-nav-right a {
  font-family: var(--fb); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--mid);
  transition: color .2s; cursor: pointer; white-space: nowrap;
}
.pe-mast-nav-left a:hover, .pe-mast-nav-right a:hover { color: var(--ink); }
.pe-mast-center { text-align: center; padding-bottom: 20px; }
.pe-mast-kicker {
  font-family: var(--fb); font-size: 8.5px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--light);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pe-mast-kicker::before, .pe-mast-kicker::after {
  content: ''; width: 32px; height: 1px; background: var(--silk);
}
.pe-mast-wordmark {
  font-family: var(--fh);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900; line-height: .88;
  letter-spacing: -3px; color: var(--ink);
  text-transform: uppercase;
}
.pe-mast-wordmark-sub {
  display: block;
  font-family: var(--fi); font-style: italic;
  font-size: .32em; font-weight: 400;
  letter-spacing: 6px; color: var(--mid);
  text-transform: none; margin-top: 6px; line-height: 1.4;
}
.pe-mast-rule { width: 100%; height: 3px; background: var(--ink); }

/* -- MASTHEAD COM NAVEGACAO MUNICIPAL -- */
.pe-mast-with-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px 0;
  gap: 16px;
}
.pe-mast-with-nav .pe-mast-center { padding: 16px 0; }
.pe-mast-with-nav .pe-mast-wordmark {
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -1px;
  line-height: 1;
}
.pe-mast-with-nav .pe-mast-nav-left,
.pe-mast-with-nav .pe-mast-nav-right {
  gap: 0; flex-wrap: wrap; padding-top: 0;
}
.pe-mast-with-nav .pe-mast-nav-right { justify-content: flex-end; }
.pe-mast-with-nav .pe-mast-nav-left a,
.pe-mast-with-nav .pe-mast-nav-right a {
  font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; padding: 6px 10px;
  display: flex; align-items: center; gap: 4px;
}
.pe-mast-with-nav .pe-mast-nav-left a.active,
.pe-mast-with-nav .pe-mast-nav-right a.active {
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

/* -- MASTHEAD CENTRADO (sem municipio) -- */
.pe-mast-center-only {
  text-align: center;
  padding: 28px 48px 20px;
}
.pe-mast-center-only .pe-mast-kicker {
  font-family: var(--fb); font-size: 8.5px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--light);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pe-mast-center-only .pe-mast-kicker::before,
.pe-mast-center-only .pe-mast-kicker::after {
  content: ''; width: 32px; height: 1px; background: var(--silk);
}
.pe-mast-center-only .pe-mast-wordmark {
  font-family: var(--fh);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900; line-height: .88;
  letter-spacing: -3px; color: var(--ink);
  text-transform: uppercase;
}
.pe-mast-center-only .pe-mast-wordmark-sub {
  display: block;
  font-family: var(--fi); font-style: italic;
  font-size: .32em; font-weight: 400;
  letter-spacing: 6px; color: var(--mid);
  text-transform: none; margin-top: 6px; line-height: 1.4;
}

/* -- CATEGORY PILLS -- */
.pe-cats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--silk);
  padding: 0 48px;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.pe-cats-bar::-webkit-scrollbar { display: none; }
.pe-cat-pill {
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 12px;
  border: none; background: none; cursor: pointer;
  color: var(--light); white-space: nowrap;
  position: relative; transition: color .2s;
}
.pe-cat-pill::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform .25s ease;
}
.pe-cat-pill:hover { color: var(--mid); }
.pe-cat-pill.active { color: var(--ink); }
.pe-cat-pill.active::after { transform: scaleX(1); }
.pe-cat-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 7px; vertical-align: middle; margin-top: -1px;
}
.pe-cats-sep { width: 1px; height: 20px; background: var(--silk); flex-shrink: 0; margin: 0 4px; }

/* -- TOOLBAR -- */
.pe-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  border-bottom: 1px solid var(--silk);
  background: var(--parchm);
  gap: 16px; flex-wrap: wrap;
}
.pe-toolbar-left { display: flex; align-items: center; gap: 20px; }
.pe-cal-nav { display: flex; align-items: center; gap: 14px; }
.pe-cal-nav-lbl {
  font-family: var(--fh); font-size: 17px; font-weight: 700;
  color: var(--ink); min-width: 180px; text-align: center; letter-spacing: .3px;
}
.pe-arr-btn {
  background: none; border: 1px solid var(--silk);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--mid); font-size: 14px; transition: all .2s;
}
.pe-arr-btn:hover { border-color: var(--ink); color: var(--ink); }
.pe-toolbar-sep { width: 1px; height: 22px; background: var(--silk); }
.pe-district-sel {
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 26px 7px 10px;
  border: 1px solid var(--silk); background: var(--white);
  color: var(--mid); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath fill='%23b8b4b4' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color .2s, color .2s;
}
.pe-district-sel:focus { outline: none; border-color: var(--ink); color: var(--ink); }
.pe-district-sel option { font-family: var(--fb); }

.pe-view-toggle { display: flex; }
.pe-vtog-btn {
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--silk); border-right: none;
  background: var(--white); color: var(--light);
  cursor: pointer; transition: all .2s;
}
.pe-vtog-btn:last-child { border-right: 1px solid var(--silk); }
.pe-vtog-btn:hover { color: var(--ink); border-color: var(--ink); }
.pe-vtog-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* -- VIEWS -- */
.pe-view { display: none; }
.pe-view.active { display: block; animation: pe-fade .28s ease; }
@keyframes pe-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ==============================
   CALENDARIO MENSAL
============================== */
.pe-cal-outer { padding: 32px 48px 48px; }

.pe-cal-wds {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--ink);
}
.pe-cal-wd {
  padding: 10px 12px 8px;
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--light);
}

.pe-cal-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  border-left: 1px solid var(--silk);
  align-items: stretch;
}
.pe-cell {
  min-height: 110px;
  border-right: 1px solid var(--silk);
  border-bottom: 1px solid var(--silk);
  padding: 10px 10px 8px;
  transition: background .12s;
  display: flex;
  flex-direction: column;
}
.pe-cell:hover { background: var(--cream); }
.pe-cell.other { background: var(--parchm); }
.pe-cell.other .pe-cell-n { color: var(--silk); }
.pe-cell.today { background: #fff8f0; }
.pe-cell.today .pe-cell-n {
  font-weight: 900; color: var(--white);
  background: var(--red); width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.pe-cell-n {
  font-family: var(--fh); font-size: 13px; font-weight: 700;
  color: var(--ink2); margin-bottom: 7px; line-height: 1;
}
.pe-cell-evs { display: flex; flex-direction: column; gap: 3px; }

.pe-cev {
  display: flex; align-items: stretch;
  border-radius: 3px; overflow: hidden;
  cursor: pointer; transition: opacity .15s, transform .15s;
}
.pe-cev:hover { opacity: .78; transform: translateX(2px); }
.pe-cev-bar { width: 3px; flex-shrink: 0; }
.pe-cev-txt {
  flex: 1; padding: 3px 6px;
  font-family: var(--fb); font-size: 9.5px; font-weight: 500;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4; background: var(--white);
  border: 1px solid var(--silk); border-left: none;
}
.pe-cev.rec .pe-cev-txt { font-style: italic; }
.pe-cev-thumb { width: 28px; flex-shrink: 0; overflow: hidden; border-left: 1px solid var(--silk); }
.pe-cev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-cell-more {
  font-family: var(--fb); font-size: 8.5px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--light); padding: 2px 6px; cursor: pointer; text-align: right;
}
.pe-cell-more:hover { color: var(--mid); }

/* ==============================
   LISTA EDITORIAL (GRELHA)
============================== */
.pe-list-outer { padding: 40px 48px 60px; }

.pe-list-month { margin-bottom: 56px; }
.pe-list-month-hd {
  display: flex; align-items: baseline; gap: 0; margin-bottom: 0;
}
.pe-list-month-num {
  font-family: var(--fh); font-size: 11px; font-weight: 700;
  color: var(--light); letter-spacing: 2px;
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  padding: 0 12px 0 0; margin-right: 20px;
  border-right: 2px solid var(--ink);
  text-transform: uppercase;
}
.pe-list-month-name {
  font-family: var(--fh); font-size: clamp(36px, 6vw, 70px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -2px; color: var(--ink); line-height: 1;
}
.pe-list-month-yr {
  font-family: var(--fb); font-size: 11px; font-weight: 300;
  color: var(--light); letter-spacing: 2px;
  margin-left: 14px; align-self: flex-end; padding-bottom: 8px;
}
.pe-list-rule { height: 1px; background: var(--silk); margin: 16px 0 24px; }

/* Grelha ordenada por linha (nao por coluna) com imagens a altura natural */
.pe-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
}
.pe-list-grid.has-feature {
  grid-template-columns: repeat(3, 1fr);
}

.pe-lcard {
  background: var(--white); cursor: pointer;
  transition: background .15s;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--silk);
  border-radius: 4px;
}
.pe-lcard:hover { background: var(--cream); }
.pe-lcard:hover .pe-lcard-img img { transform: scale(1.04); }

/* Imagem respeita proporcao original */
.pe-lcard-img { width: 100%; overflow: hidden; flex-shrink: 0; }
.pe-lcard-img img {
  width: 100%; height: auto; display: block;
  transition: transform .5s ease;
}
.pe-lcard-img-ph {
  width: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 24px; font-style: italic;
}
.pe-lcard-body {
  padding: 18px 20px 22px; flex: 1;
  display: flex; flex-direction: column;
}
.pe-lcard-meta-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pe-lcard-cat {
  font-family: var(--fb); font-size: 8px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.pe-lcard-date {
  font-family: var(--fh); font-size: 13px; font-weight: 700; color: var(--ink);
}
.pe-lcard-title {
  font-family: var(--fh); font-size: 19px; font-weight: 700;
  color: var(--ink); line-height: 1.15; margin-bottom: 8px; flex: 1;
}
.pe-lcard.featured .pe-lcard-title { font-size: 26px; line-height: 1.1; }
.pe-lcard-loc {
  font-family: var(--fb); font-size: 10px; font-weight: 400;
  color: var(--light); letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--silk);
}
.pe-lcard-price {
  font-family: var(--fb); font-size: 9px; font-weight: 600;
  letter-spacing: 1px; color: var(--mid); margin-left: auto;
}

/* ==============================
   MODAL EDITORIAL
============================== */
.pe-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pe-modal-bg {
  position: absolute; inset: 0;
  background: rgba(15, 14, 14, .82);
  backdrop-filter: blur(10px);
}
.pe-modal-wrap {
  position: relative;
  width: 100%; max-width: 800px; max-height: 92vh;
  background: var(--white);
  overflow: hidden; overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  animation: pe-modal-in .3s cubic-bezier(.22,1,.36,1);
}
@keyframes pe-modal-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pe-modal-wrap::-webkit-scrollbar { width: 3px; }
.pe-modal-wrap::-webkit-scrollbar-thumb { background: var(--silk); }

.pe-modal-close {
  position: absolute; top: 18px; right: 20px; z-index: 10;
  background: rgba(255,255,255,.92); border: 1px solid var(--silk);
  font-family: var(--fb); font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 12px; cursor: pointer; color: var(--mid);
  transition: all .2s; backdrop-filter: blur(4px);
}
.pe-modal-close:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.pe-modal-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.pe-modal-hero-img { overflow: hidden; }
.pe-modal-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-modal-hero-img-ph {
  width: 100%; height: 100%; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 48px; font-style: italic;
}
.pe-modal-hero-txt {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 32px 28px;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.pe-modal-hero-txt::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.pe-modal-cat-line {
  font-family: var(--fb); font-size: 8px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.pe-modal-cat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pe-modal-hero-title {
  font-family: var(--fh); font-size: 30px; font-weight: 900;
  color: var(--white); line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.5px;
  margin-bottom: 20px;
}
.pe-modal-hero-dist {
  font-family: var(--fb); font-size: 9px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}
.pe-modal-body {
  display: grid; grid-template-columns: 1fr 220px;
}
.pe-modal-main { padding: 28px 32px 32px; border-right: 1px solid var(--silk); }
.pe-modal-side { padding: 28px 24px 32px; background: var(--parchm); }
.pe-modal-section-lbl {
  font-family: var(--fb); font-size: 8px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--light);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--silk);
}
.pe-modal-desc {
  font-family: var(--fi); font-size: 17px; font-style: italic;
  line-height: 1.75; color: var(--ink2); margin-bottom: 28px;
}
.pe-modal-actions { display: flex; gap: 8px; }
.pe-modal-btn {
  flex: 1; padding: 13px;
  font-family: var(--fb); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; text-align: center;
  border: none; text-decoration: none; display: block; transition: all .2s;
}
.pe-modal-btn-primary { background: var(--ink); color: var(--white); }
.pe-modal-btn-primary:hover { background: var(--ink2); }
.pe-modal-btn-secondary { background: transparent; border: 1px solid var(--silk); color: var(--mid); }
.pe-modal-btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.pe-modal-detail { margin-bottom: 18px; }
.pe-modal-detail-lbl {
  font-family: var(--fb); font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--light);
  margin-bottom: 4px;
}
.pe-modal-detail-val {
  font-family: var(--fh); font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.25;
}
.pe-modal-detail-val.small {
  font-size: 13px; font-weight: 400; font-family: var(--fb); color: var(--mid);
}

/* -- NO EVENTS -- */
.pe-no-events {
  text-align: center; padding: 80px 20px;
  font-family: var(--fi); font-size: 20px; font-style: italic; color: var(--light);
}
.pe-no-events::before {
  display: block; font-family: var(--fh); font-size: 48px;
  font-style: italic; content: '"'; color: var(--silk); margin-bottom: 8px;
}

/* -- WIDGET LISTA SIMPLES -- */
.pe-events-list-widget { font-family: var(--fb); }
.pe-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--silk);
}
.pe-list-item:last-child { border-bottom: none; }
.pe-list-date-badge {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 3px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
}
.pe-list-date-badge .pe-date-day { font-family: var(--fh); font-size: 22px; font-weight: 900; line-height: 1; }
.pe-list-date-badge .pe-date-month { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.pe-list-info { flex: 1; min-width: 0; }
.pe-list-info h4 { font-family: var(--fh); font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.pe-list-info h4 a { color: var(--ink); text-decoration: none; }
.pe-list-info h4 a:hover { color: var(--mid); }
.pe-list-location { font-size: 11px; color: var(--light); display: block; letter-spacing: .3px; }
.pe-list-price {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--mid); border: 1px solid var(--silk);
  padding: 2px 8px; margin-top: 4px; letter-spacing: .5px;
}
.pe-list-thumb { flex-shrink: 0; width: 72px; height: 58px; overflow: hidden; }
.pe-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* -- LOADING -- */
.pe-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; font-family: var(--fi); font-style: italic;
  color: var(--light); font-size: 16px; gap: 14px;
}
.pe-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--silk);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: pe-spin .7s linear infinite;
}
@keyframes pe-spin { to { transform: rotate(360deg); } }

/* -- RESPONSIVE -- */
@media (max-width: 860px) {
  .pe-mast-strip { padding: 9px 20px; }
  .pe-mast-logo { padding: 16px 20px 0; grid-template-columns: 1fr; gap: 0; }
  .pe-mast-nav-left, .pe-mast-nav-right { display: none; }
  .pe-mast-wordmark { font-size: clamp(40px, 12vw, 78px); letter-spacing: -2px; }
  .pe-cats-bar { padding: 0 20px; }
  .pe-toolbar { padding: 12px 20px; }
  .pe-cal-outer { padding: 18px 16px 28px; }
  .pe-cal-wd { font-size: 8px; padding: 8px 4px; letter-spacing: 1px; }
  .pe-cell { min-height: 72px; padding: 6px 4px; }
  .pe-cev-txt { font-size: 8.5px; }
  .pe-cev-thumb { display: none; }
  .pe-list-outer { padding: 24px 20px 40px; }
  .pe-list-grid { grid-template-columns: repeat(2, 1fr); }
  .pe-list-grid.has-feature { grid-template-columns: repeat(2, 1fr); }
  .pe-list-grid.has-feature .pe-lcard:first-child { grid-row: span 1; }
  .pe-modal-hero { grid-template-columns: 1fr; }
  .pe-modal-hero-img { min-height: 220px; }
  .pe-modal-body { grid-template-columns: 1fr; }
  .pe-modal-side { border-top: 1px solid var(--silk); }
  .pe-modal-main, .pe-modal-side { padding: 20px; }
  .pe-modal-hero-title { font-size: 24px; }
  .pe-mast-with-nav { grid-template-columns: 1fr; gap: 0; padding: 14px 16px 0; }
  .pe-mast-with-nav .pe-mast-nav-left,
  .pe-mast-with-nav .pe-mast-nav-right { justify-content: center; }
  .pe-mast-with-nav .pe-mast-nav-left a,
  .pe-mast-with-nav .pe-mast-nav-right a { font-size: 8px; padding: 4px 7px; }
  .pe-mast-with-nav .pe-mast-wordmark { font-size: clamp(24px, 8vw, 40px); }
}
@media (max-width: 520px) {
  .pe-list-grid, .pe-list-grid.has-feature { grid-template-columns: 1fr; }
  .pe-lcard.featured .pe-lcard-title { font-size: 20px; }
  .pe-cal-wds { display: none; }
}