/* SOLMARA — M5 portals. Same editorial language as the explorer:
   ledgers, hairlines, serif headlines — no boxes. */

body.portal-page {
  min-height: 100svh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46, 168, 160, .08), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(212, 162, 78, .07), transparent 60%),
    var(--ink);
}

#portal-main { max-width: 760px; margin: 0 auto; padding: 130px 22px 90px; }

.po-gate h1, .po-wrap h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 52px); color: var(--shell); line-height: 1.1;
  margin: 6px 0 10px;
}
.po-sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(239,230,214,.65); }

.po-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.po-door {
  text-align: start; background: none; cursor: pointer;
  border: 1px solid rgba(239, 230, 214, .16); border-radius: 4px;
  padding: 30px 26px 26px; color: var(--sand);
  transition: border-color .25s, background .25s, transform .25s;
}
.po-door:hover { border-color: var(--gold); background: rgba(212,162,78,.05); transform: translateY(-2px); }
.po-door b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--shell); margin-bottom: 6px; }
.po-door span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,230,214,.5); }

.po-back {
  background: none; border: none; cursor: pointer;
  color: rgba(239,230,214,.55); font-size: 12px; letter-spacing: .1em;
  padding: 0; margin-bottom: 26px; font-family: var(--sans);
}
.po-back:hover { color: var(--gold); }

.po-wrap h2 {
  font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--shell);
  margin: 44px 0 6px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 162, 78, .35);
}

.po-ledger { }
.po-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 2px; border-bottom: 1px solid rgba(239,230,214,.09);
}
.po-row-name { flex: 1; font-size: 14px; color: var(--sand); }
.po-row-name.serif { font-family: var(--serif); font-size: 19px; flex: none; width: 64px; color: var(--shell); }
.po-row-when { font-size: 11px; color: rgba(239,230,214,.45); letter-spacing: .06em; }
.po-row-st { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,230,214,.5); }
.po-row-st.ok, .po-row.paid .po-row-st { color: #7fe0d7; }
a.po-row-st { text-decoration: none; border-bottom: 1px dotted rgba(127,224,215,.55); cursor: pointer; transition: color .18s, border-color .18s; }
a.po-row-st:hover, a.po-row-st:focus-visible { color: #a6ede6; border-bottom-color: #a6ede6; }
.po-row b { font-size: 14px; font-weight: 600; color: var(--shell); }
.po-row.paid b { color: rgba(239,230,214,.55); text-decoration: none; }
.po-row.dim { opacity: .55; }

.po-journal { position: relative; padding-inline-start: 4px; }
.po-j { position: relative; padding-block: 14px; padding-inline: 26px 0; border-inline-start: 1px solid rgba(239,230,214,.14); }
.po-j s {
  position: absolute; inset-inline-start: -5px; top: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); text-decoration: none;
}
.po-j.dim s { background: rgba(239,230,214,.25); }
.po-j.dim { opacity: .55; }
.po-j span { font-size: 10px; letter-spacing: .18em; color: rgba(239,230,214,.45); }
.po-j p { font-size: 14px; color: var(--sand); margin-top: 4px; max-width: 520px; }
.po-bar { height: 3px; background: rgba(239,230,214,.12); border-radius: 2px; margin-top: 10px; max-width: 300px; }
.po-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #e3b566, var(--gold)); }
/* The fill is a block at width:N% — under RTL it anchors to the right edge and
   grows leftward, so the gradient has to run the other way to keep the gold
   end at the growing edge. */
[dir="rtl"] .po-bar i { background: linear-gradient(270deg, #e3b566, var(--gold)); }

.po-stats { display: flex; gap: 40px; padding: 18px 2px 6px; }
.po-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--gold); line-height: 1; }
.po-stats span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239,230,214,.55); }

.po-copy {
  background: none; border: none; cursor: pointer;
  color: #7fe0d7; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(46,168,160,.5); padding: 2px 0;
}
.po-copy:hover { color: var(--shell); }

.po-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.po-form input {
  flex: 1; min-width: 200px;
  background: rgba(239,230,214,.05); border: 1px solid rgba(239,230,214,.18);
  border-radius: 8px; color: var(--shell); font-size: 14px; font-family: var(--sans);
  padding: 12px 14px;
}
.po-form input:focus { outline: none; border-color: var(--gold); }
.po-note { font-size: 12px; color: rgba(239,230,214,.55); margin: 6px 0 4px; }
.po-note.ok { color: #7fe0d7; }
.po-cta-line { margin-top: 40px; font-size: 14px; color: rgba(239,230,214,.75);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .po-doors { grid-template-columns: 1fr; }
  #portal-main { padding-top: 108px; }
  .po-row { flex-wrap: wrap; }
}
