/* Secondary pages (account, help, privacy, checkout, support, redeem, backoffice, studio)
   share the Linen shell from homepage.css; this file sets the reading column and plates. */

.page-header nav { gap: 32px; }
.page-main { width: min(920px, calc(100% - 160px)); margin: 64px auto 80px; min-height: 60vh; }
.page-main .eyebrow { color: var(--bb-accent); }
.page-main h1 { margin: 18px 0 24px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.012em; }
.page-main h1 em { font-style: italic; font-weight: 400; color: var(--bb-accent); }
.page-main > p { color: var(--bb-text); line-height: 1.6; margin: 0 0 16px; }
.page-lead { font-size: 20px; line-height: 1.55; max-width: 670px; color: var(--bb-text); }
.page-main a:not(.button):not(.link-button) { color: var(--bb-ink); border-bottom: 1px solid var(--bb-accent); }
.page-main a:not(.button):not(.link-button):hover { color: var(--bb-accent); }

/* Plates: the square, hairline-bordered panels that replace cards. */
.account-card { background: var(--bb-surface); border: 1px solid var(--bb-line); padding: 32px 36px; margin: 28px 0; }
.account-card h2 { font-size: 32px; line-height: 1.15; margin: 0 0 14px; }
.account-card h3 { margin: 0 0 12px; }
.account-card p { line-height: 1.6; color: var(--bb-text); margin: 0 0 14px; }
.account-card p:last-child { margin-bottom: 0; }
.account-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.account-status { font-size: 16px; font-style: italic; color: var(--bb-accent); min-height: 1.5em; margin: 0 0 14px; }
.receipt-list { padding-left: 20px; line-height: 2.1; color: var(--bb-text); }

.account-card :is(input, select, textarea) {
  color: var(--bb-ink);
  background: #ffffff;
  border: 1px solid var(--bb-border-strong);
  border-radius: 0;
  font: inherit;
  padding: 12px 14px;
  min-height: 48px;
}
.account-card button:not(.button),
.link-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--bb-ink);
  border-radius: 0;
  background: transparent;
  color: var(--bb-ink);
  font: 600 14px/1.4 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.account-card button:not(.button):hover,
.link-button:hover { background: var(--bb-surface-soft); color: var(--bb-ink-deep); }
.account-card button:not(.button):disabled,
.link-button:disabled { color: var(--bb-muted); border-color: var(--bb-line); background: var(--bb-surface-soft); cursor: wait; }


/* Studio page: the header sits above a full-height workspace. Nothing here styles the workspace itself. */
.studio-page { margin: 0; background: var(--bb-paper); height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.studio-page .site-header { width: auto; margin: 0 24px; padding-top: 16px; padding-bottom: 12px; flex-shrink: 0; }
.studio-page > .account-status { padding: 0 24px; margin: 8px 0 6px; flex-shrink: 0; }
.studio-page main { flex: 1; min-height: 0; }
.studio-page iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) { .page-main { width: calc(100% - 64px); } }
@media (max-width: 700px) {
  .page-main { width: calc(100% - 40px); margin: 36px auto 56px; }
  .account-card { padding: 22px; }
  .account-card h2 { font-size: 28px; }
  .page-lead { font-size: 18px; }
}

/* Help: the /help index lists articles by group; each article is its own page. */
.help-index { margin-top: 24px; }
.help-group { margin-top: 40px; }
.help-group h2 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bb-accent); }
.help-group ul { list-style: none; padding: 0; margin: 16px 0 0; columns: 2; column-gap: 48px; }
.help-group li { margin: 0 0 12px; break-inside: avoid; font-size: 19px; line-height: 1.35; }
.help-crumb { font-size: 15px; font-style: italic; color: var(--bb-muted); margin: 0 0 24px; }
.help-crumb span { margin: 0 8px; }
.help-page h1 { font-size: clamp(36px, 4vw, 56px); }
.help-body { margin-top: 28px; font-size: 18px; line-height: 1.6; color: var(--bb-text); }
.help-body h2 { font-size: 30px; margin: 40px 0 12px; }
.help-body h3 { font-size: 22px; margin: 30px 0 10px; }
.help-body p, .help-body li { margin: 0 0 14px; }
.help-body ul, .help-body ol { padding-left: 24px; margin: 0 0 16px; }
.help-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--bb-line); margin: 18px 0; }
.help-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--bb-surface-soft); padding: 1px 6px; }
.help-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
.help-body th, .help-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bb-line); vertical-align: top; }
.help-body blockquote { margin: 18px 0; padding: 4px 0 4px 22px; border-left: 1.5px solid var(--bb-accent); color: var(--bb-muted); }
.help-back { margin-top: 44px; }
@media (max-width: 700px) { .help-group ul { columns: 1; } .help-group li { font-size: 18px; } }

/* Not-found page */
.not-found { text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: 88px; }
.not-found .ornament { margin-bottom: 26px; }
.not-found h1 { margin-top: 16px; }
.not-found .page-lead { margin: 0 auto; }
.not-found-actions { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.not-found-help { margin-top: 44px; font-size: 16px; font-style: italic; color: var(--bb-muted); }
@media (max-width: 700px) { .not-found { margin-top: 48px; } .not-found-actions { flex-direction: column; gap: 22px; } .not-found-actions .button { width: 100%; } }
