/* Shared styles for the subscribe flow, account and confirmation pages. */
:root { --ink:#000; --muted:#666; --line:#E5E3DE; --paper:#FAF9F6; }
html, body { margin:0; padding:0; }
body.ps-page { background:#fff; color:var(--ink); font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
.ps-main { padding:40px 16px 120px; min-height:60vh; }
.ps-main #ps-wizard { box-shadow:none; }

/* Footer, as on the old subscribe page */
.ps-footer { background:#e6e6e6 url('/img/paper.png') center/cover; text-align:center; padding:48px 16px 52px; font-size:14px; letter-spacing:.3px; }
.ps-footer .ps-pub { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:17px; margin:0 0 18px; letter-spacing:.4px; }
.ps-footer nav a { color:#000; text-decoration:none; border-bottom:1px solid rgba(0,0,0,.4); padding-bottom:2px; margin:0 22px; }
.ps-footer .ps-copy { margin:44px 0 0; font-size:13px; }

/* Code box */
#ps-wizard .ps-codebox { text-align:left; margin:0 0 20px; }
#ps-wizard .ps-link { background:none; border:0; padding:0; color:var(--ps-text); text-decoration:underline; font:inherit; font-size:14px; cursor:pointer; opacity:.8; }
#ps-wizard .ps-link:hover { opacity:1; }
#ps-wizard .ps-code-toggle { display:inline-flex; align-items:center; gap:10px; background:#eef0f3; border:0; border-radius:10px; padding:13px 20px; font-family:var(--ps-font-body); font-size:16px; font-weight:600; color:var(--ps-text); cursor:pointer; transition:background .15s; }
#ps-wizard .ps-code-toggle:hover { background:#e2e5ea; }
#ps-wizard .ps-code-toggle svg { transition:transform .15s; }
#ps-wizard .ps-code-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
#ps-wizard .ps-code-inline { display:flex; gap:8px; margin-top:10px; }
#ps-wizard .ps-code-inline input { flex:1; min-width:0; padding:12px 14px; font-size:15px; font-family:var(--ps-font-body); border:1px solid var(--ps-border); border-radius:var(--ps-radius); text-transform:uppercase; letter-spacing:.5px; }
#ps-wizard .ps-code-inline input:focus { outline:none; border-color:var(--ps-accent); }
#ps-wizard .ps-btn-small { padding:10px 18px; font-size:14px; background:#fff; border:1px solid var(--ps-accent); color:var(--ps-text); }
#ps-wizard .ps-btn-small:hover { background:var(--ps-accent); color:#fff; }
#ps-wizard .ps-code-remove { margin-top:6px; font-size:13px; }
#ps-wizard .ps-code-note { background:#fff; border:1px solid var(--ps-accent); border-radius:var(--ps-radius); padding:12px 16px; font-size:15px; text-align:left; margin:0 0 20px; }

/* Payment */
#ps-wizard #ps-express { margin-bottom:14px; }
#ps-wizard .ps-payment { text-align:left; margin-bottom:8px; min-height:40px; }
#ps-wizard .ps-pay-wait { font-size:14px; color:var(--muted); text-align:center; }
#ps-wizard .ps-agree { display:flex; align-items:flex-start; gap:10px; text-align:left; font-size:14px; line-height:1.5; margin:18px auto 22px; max-width:400px; cursor:pointer; }
#ps-wizard .ps-agree input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--ps-accent); flex-shrink:0; }
#ps-wizard .ps-agree a { color:var(--ps-text); }
#ps-wizard .ps-free-line { font-size:15px; margin:0 0 12px; }
#ps-wizard .ps-btn-checkout.ps-busy { opacity:.7; cursor:wait; }

/* Simple content pages (account, welcome, terms, admin) */
.pg { max-width:600px; margin:0 auto; background:var(--paper); padding:40px 28px; box-sizing:border-box; }
.pg h1 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:32px; line-height:1.2; margin:0 0 14px; text-align:center; }
.pg h2 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:22px; margin:28px 0 10px; }
.pg p, .pg li { font-size:16px; line-height:1.65; }
.pg .sub { text-align:center; color:#333; margin:0 0 26px; }
.pg form { max-width:400px; margin:0 auto; }
.pg input[type=email], .pg input[type=text] { width:100%; box-sizing:border-box; padding:15px 18px; font-size:16px; border:1px solid var(--line); border-radius:8px; font-family:inherit; }
.pg .btn { display:inline-flex; justify-content:center; align-items:center; width:100%; box-sizing:border-box; margin-top:14px; padding:15px 28px; font-size:16px; font-weight:600; border:0; border-radius:8px; background:var(--brand-accent); color:#fff; text-decoration:none; cursor:pointer; font-family:inherit; }
.pg .btn:hover { background:var(--brand-accent-hover); }
.pg .btn.secondary { background:#fff; color:#000; border:1px solid var(--line); }
.pg .note { font-size:14px; color:var(--muted); text-align:center; }
.pg .err { color:#C53030; font-size:14px; min-height:20px; margin-top:8px; }
.pg .card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px 20px; margin:0 0 16px; }
.pg .card h3 { margin:0 0 6px; font-family:'Source Serif 4',Georgia,serif; font-size:20px; }
.pg .muted { color:var(--muted); font-size:14px; }
.pg .spin { width:34px; height:34px; border:3px solid var(--line); border-top-color:var(--brand-accent); border-radius:50%; margin:20px auto; animation:pss-spin 1s linear infinite; }
@keyframes pss-spin { to { transform:rotate(360deg); } }
.pg .draft { background:#fff7e0; border:1px solid #e3c873; padding:10px 14px; border-radius:6px; font-size:14px; }

@media (max-width:480px) {
  .ps-main { padding:24px 0 80px; }
  .ps-footer nav a { margin:0 10px; }
  .pg { padding:32px 18px; }
  .pg h1 { font-size:27px; }
}
#ps-wizard #ps-email-error:empty { display:none; }
@media (max-width:480px) {
  #ps-wizard .ps-nav-buttons.ps-nav-stacked { flex-direction:column; }
  #ps-wizard .ps-nav-stacked .ps-btn-checkout { order:-1; }
  #ps-wizard .ps-nav-stacked .ps-free-line { order:-2; }
}
