/* Inner pages of the Manifestation Miracle affiliate area (layouts per page). Tokens in ../site.css. */

/* ---- Main (overview) ---- */
.prod{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:36px;align-items:center}
.prod-pic{background:radial-gradient(circle at 50% 55%,#fff 0%,var(--mist) 60%,#eadff0 100%);border-radius:18px;padding:18px;display:grid;place-items:center}
.prod-pic img{max-height:340px;width:auto}
.prod-h{font-size:clamp(30px,3vw,40px);margin:0 0 4px}
.prod-by{font:italic 500 20px/1.4 var(--serif);color:var(--plum);margin:0 0 8px}
.prod-tag{font-size:19px;margin:0 0 18px}
.stat-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.stat{display:flex;align-items:center;gap:12px;background:var(--mist);border-radius:14px;padding:14px 16px}
.stat p{margin:0;font-size:18px}
.stat b{display:block;font:800 26px/1.15 var(--serif);color:var(--aub)}
.stat-ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#fff;color:var(--plum);flex:0 0 auto}
.stat-gold{background:linear-gradient(135deg,#fff6d6,#ffe9a8)}
.stat-gold .stat-ic{color:var(--gold-2)}
.prod-plus{color:var(--muted);font-size:17px;margin:0 0 20px}
.notices{margin-top:28px}
.notice{position:relative;padding-top:30px}
.notice h2{font-size:clamp(22px,2.1vw,27px);margin-top:8px}
.notice p:last-child{margin-bottom:0}
.notice-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--mist);color:var(--plum)}
.notice-gold{background:linear-gradient(160deg,#2a1230,var(--space));color:#e8dcec}
.notice-gold h2{color:#fff}
.notice-gold .notice-ic{background:rgba(247,194,27,.16);color:var(--gold)}
.band{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:0;margin-top:48px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);background:linear-gradient(135deg,var(--plum) 0%,#7d3478 45%,var(--violet) 100%);color:#f6ecf6}
.band-pic img{width:100%;height:100%;object-fit:cover;display:block;min-height:280px}
.band-txt{padding:clamp(26px,3.5vw,48px)}
.band-txt h2{color:#fff}
.band-txt p:last-child{margin-bottom:0}
.letter{margin-top:48px;background:#fff url() no-repeat;position:relative}
.letter::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;border-radius:var(--radius) 0 0 var(--radius);background:linear-gradient(180deg,var(--gold),var(--plum))}
.letter-body{font-size:19px;max-width:760px}
@media (max-width:860px){
  .prod,.band{grid-template-columns:1fr}
  .stat-row{grid-template-columns:1fr}
}

/* ---- fix1 overview ---- */
.notices{grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
@media (min-width:861px){
  .notice{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:40px;align-content:start}
  .notice>.notice-ic{grid-column:1;grid-row:1}
  .notice>h2{grid-column:1;grid-row:2;margin:6px 0 0}
  .notice>p{grid-column:2;grid-row:1/span 3;margin:0}
  .notice>p~p{grid-row:4;margin-top:16px}
}
.pg-overview .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.pg-overview .tile{flex-direction:row;align-items:center;gap:14px;padding:16px 18px}
.pg-overview .tile-ic{flex:0 0 auto}
.pg-overview .tile-t{flex:1 1 auto}
.pg-overview .tile .tag-new{position:static;order:3}
.pg-overview .tile-go{margin:0;order:4}
.pg-overview .tile-go{font-size:0;gap:0}
.pg-overview .tile-go .ico{width:20px;height:20px}
.letter{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px 40px;align-items:center}
.letter>h2{grid-column:1/-1;margin-bottom:0}
.letter .mgr{flex-direction:column;text-align:center;background:var(--mist);border-radius:18px;padding:26px 20px}
@media (max-width:860px){
  .letter{grid-template-columns:1fr}
  .pg-overview .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .pg-overview .tile{flex-direction:column;align-items:flex-start;gap:10px;padding:16px 14px}
  .pg-overview .tile .tag-new{position:absolute;top:12px;right:12px}
  .pg-overview .tile-go{display:none}
}
/* #5 movement panel: both faces stay in the picture */
@media (min-width:861px){.band{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.band-pic img{object-position:58% 35%}

/* ---- fix2 ---- */
/* #5 the two notice cards are the same height */
.notices{align-items:stretch}
/* #6 the letter reads as signed: one column, the manager's picture and name straight under "Sincerely," like the old page */
.letter{grid-template-columns:minmax(0,1fr)}
.letter .letter-body p:last-child{margin-bottom:0}
.letter .mgr{flex-direction:row;align-items:center;text-align:left;background:none;border-radius:0;padding:4px 0 0;justify-self:start}
@media (max-width:700px){.letter .mgr{flex-direction:column;align-items:flex-start}}

/* ---- fix3 ---- */
/* overview: cards keep their own height; the letter card is a readable width, centred */
.notices{align-items:start}
.letter{max-width:900px;margin-left:auto;margin-right:auto}
