/* LuciMail personal pages: the card's look and the landing templates (landing.py). Loaded on every /p/<code> page after pages.css.
   The top bar and the cover are the card's front, drawn in its design style; the rest is its back. Colors come from theme.css
   (landing.look_css: --mid-*, --bold-*, --paper-hl, --btn-*), each checked for contrast there. No inline styles anywhere. */

/* ------------------------------------------------------------------------------------------------------------- the three looks */
.pp-s-midnight {
  --cv-bg: var(--mid-bg, #0b0e14); --cv-ink: #ffffff; --cv-mut: var(--mid-mut, #c4c6ca); --cv-hl: var(--mid-hl, #8fb8ff);
  --cv-glow: var(--mid-glow, none); --cv-btn: var(--mid-btn, #8fb8ff); --cv-btn-ink: var(--mid-btn-ink, #15171d);
  --cv-edge: transparent; --cv-topline: rgba(255, 255, 255, .09);
}
.pp-s-bold {
  --cv-bg: var(--bold-bg, #0050c8); --cv-ink: var(--bold-ink, #ffffff); --cv-mut: var(--bold-mut, #ffffff); --cv-hl: var(--bold-ink, #ffffff);
  --cv-glow: var(--bold-glow, none); --cv-btn: var(--bold-btn, #ffffff); --cv-btn-ink: var(--bold-btn-ink, #0050c8);
  --cv-edge: transparent; --cv-topline: var(--bold-line, rgba(255, 255, 255, .26));
}
.pp-s-paper {
  --cv-bg: #ffffff; --cv-ink: var(--ink); --cv-mut: var(--ink-2); --cv-hl: var(--paper-hl, var(--brand-text)); --cv-glow: none;
  --cv-btn: var(--btn-bg, var(--brand)); --cv-btn-ink: var(--btn-ink, var(--brand-ink)); --cv-edge: var(--line); --cv-topline: var(--line);
}

/* a short page (Quick reply) still ends with its footer at the bottom of the screen */
body.pp { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.pp > main { flex: 1 0 auto; }

/* the top bar: the card's lockup row */
.pp-top { background: var(--cv-bg); border-bottom-color: var(--cv-topline); }
.pp .pp-top .pp-brand { color: var(--cv-ink); }
.pp-s-midnight .pp-logo, .pp-s-bold .pp-logo { background: #ffffff; padding: 4px 8px; border-radius: 8px; max-height: 42px; }
.pp-s-midnight .pp-mark, .pp-s-bold .pp-mark { padding: 4px; }

/* the cover: who it's for, the headline, the card's own colors */
.pp-hero .pp-for { color: var(--cv-hl); }
.pp-hero .pp-for::before { background: var(--cv-hl); }
.pp-hero .pp-h1 { color: var(--cv-ink); }
.pp-hero .pp-h1 em { color: var(--cv-hl); }
.pp-hero .pp-sub, .pp-hero .pp-meta { color: var(--cv-mut); }
.pp .pp-hero a:not(.pp-btn) { color: var(--cv-ink); }
.pp-top .pp-btn-primary, .pp-hero .pp-btn-primary { background: var(--cv-btn); border-color: var(--cv-btn); color: var(--cv-btn-ink) !important; }
.pp-top .pp-btn-primary:hover, .pp-hero .pp-btn-primary:hover { background: var(--cv-btn); border-color: var(--cv-btn); filter: brightness(1.06); }
.pp-s-paper .pp-top .pp-btn-primary:hover, .pp-s-paper .pp-hero .pp-btn-primary:hover { filter: none; background: var(--btn-dark, var(--brand-dark)); }

/* the footer closes the page in the cover's colors */
.pp-foot { background: var(--cv-bg); border-top-color: var(--cv-topline); }
.pp-foot p:first-child, .pp-foot .pp-fine { color: var(--cv-mut); }
.pp .pp-foot a, .pp .pp-foot .pp-fine a { color: var(--cv-ink); }
.pp .pp-foot a:hover { color: var(--cv-ink); text-decoration: underline; }

/* every link people tap on a phone is at least 44px tall (negative margins keep the spacing it always had) */
.pp .pp-more, .pp .pp-later, .pp .pp-fix a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.pp .pp-src { min-height: 44px; margin: -10px 0; }
.pp-fix { margin-top: 2px; }

/* the offer column: the seller's details sit on a card too, since the column rises into the cover */
.pp-side .pp-about { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }

/* ---------------------------------------------------------------------------------------------------- the back, per style */
/* Paper: fine rules, flat cards, numbered marks; the accent only in the details */
.pp-s-paper .pp-card, .pp-s-paper .pp-facts li, .pp-s-paper .pp-shot, .pp-s-paper .pp-side .pp-about { box-shadow: none; border-color: var(--line-2); }
.pp-s-paper .pp-card { border-radius: 12px; }
.pp-s-paper .pp-facts li { border-radius: 10px; padding-left: 56px; }
.pp-s-paper .pp-facts li::before { content: counter(fact, decimal-leading-zero); background: none; border-radius: 0; width: 28px;
  font: 600 15px/28px var(--mono); color: var(--brand-text); }
.pp-s-paper .pp-letter ul { counter-reset: bul; }
.pp-s-paper .pp-letter li { counter-increment: bul; padding-left: 34px; }
.pp-s-paper .pp-letter li::before { content: counter(bul, decimal-leading-zero); width: auto; height: auto; top: .1em; background: none;
  border-radius: 0; font: 600 14px/1.7 var(--mono); color: var(--brand-text); }
.pp-s-paper .pp-offercard::before { height: 2px; }
.pp-s-paper .pp-label { letter-spacing: .16em; }

/* Bold: squares, a heavy accent edge */
.pp-s-bold .pp-card { border-radius: 14px; }
.pp-s-bold .pp-offercard::before { height: 8px; background: var(--bold-bg, var(--brand)); }
.pp-s-bold .pp-letter li::before { border-radius: 1px; background: var(--bold-bg, var(--brand)); }
.pp-s-bold .pp-facts li::before { border-radius: 6px; background: var(--bold-bg, var(--brand)); color: var(--bold-ink, #ffffff); }

/* Midnight: rounded cards, dots, the accent glowing in at the edge of the offer card */
.pp-s-midnight .pp-offercard::before { background: linear-gradient(90deg, var(--brand), var(--mid-hl, var(--brand))); }

/* ------------------------------------------------------------------------------------------------------------- the templates */
/* Proof: the seller's own points, in their words */
.pp-proofs { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.pp-proofs li { position: relative; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfc;
  font: 600 17px/1.4 var(--sans); }
.pp-proofs li::before { content: ""; position: absolute; left: 20px; top: 17px; width: 7px; height: 13px; border: solid var(--brand-text);
  border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pp-s-paper .pp-proofs li { border-radius: 10px; background: var(--paper); }
@media (min-width: 600px) { .pp-proofs { grid-template-columns: 1fr 1fr; } }

/* Book a time, through the seller's own link */
.pp-bookout .pp-btn { min-width: 220px; }

/* Claim the offer: the offer is the headline, with one clear button */
.pp-t-offer .pp-hero .pp-h1 { font-size: 32px; line-height: 1.08; }
.pp-claim { margin: 22px 0 18px; }
.pp-btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.pp-morewrap { margin-top: -6px; }

/* Quick reply: the shortest page, two big answers */
.pp-t-quick .pp-hero .pp-h1 { font-size: 30px; line-height: 1.08; margin-bottom: 4px; }
.pp-t-quick .pp-reply .pp-h2 { font-size: 24px; }
.pp-taps { display: grid; gap: 10px; }
.pp-tap { min-height: 58px; font-size: 17px; border-radius: 14px; }
.pp-opt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-opt summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600;
  font-size: 15px; color: var(--brand-text); }
.pp-opt summary::-webkit-details-marker { display: none; }
.pp-opt summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid currentColor; font: 600 15px/1 var(--sans); flex: none; }
.pp-opt[open] summary::before { content: "\2212"; }
.pp-opt summary i { font-style: normal; font-weight: 400; color: var(--muted); }
.pp-optin { display: grid; gap: 12px; padding: 2px 0 16px; }
.pp-opt .pp-field input { min-height: 48px; }

@media (min-width: 960px) {
  .pp-t-offer .pp-hero .pp-h1 { font-size: 54px; line-height: 1.02; }
  .pp-t-quick .pp-hero .pp-h1 { font-size: 46px; }
  .pp-t-quick .pp-reply .pp-h2 { font-size: 32px; }
  .pp-taps { grid-template-columns: 1fr 1fr; }
}
