/* Styles for the public certified-mail guide. Kept in its own file because the app's
   Content-Security-Policy sets style-src 'self': an inline <style> block is refused,
   which silently renders the page as unstyled HTML. */
:root {
    --ink: #14181f; --muted: #5b6472; --line: #e2e6ec; --bg: #ffffff; --soft: #f6f8fb;
    --accent: #1c4fd8; --accent-soft: #eef3ff;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; }
  header.top { border-bottom: 1px solid var(--line); margin-bottom: 44px; }
  header.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .mark {
    width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  }
  .brand strong { display: block; font-size: 15px; line-height: 1.2; }
  .brand small { color: var(--muted); font-size: 12.5px; }
  h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
  h2 { font-size: 1.28rem; letter-spacing: -0.01em; margin: 44px 0 12px; }
  h3 { font-size: 1.02rem; margin: 28px 0 8px; }
  p { margin: 0 0 16px; }
  .lede { font-size: 1.12rem; color: #2c333f; }
  a { color: var(--accent); }
  table { border-collapse: collapse; width: 100%; margin: 8px 0 10px; font-size: 15.5px; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
  td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  tr.total td { font-weight: 700; border-bottom: none; }
  .note { color: var(--muted); font-size: 14.5px; }
  .card { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 24px 0; }
  .card h3 { margin-top: 0; }
  .card.accent { background: var(--accent-soft); border-color: #cddaff; }
  ol.steps { padding-left: 20px; }
  ol.steps li { margin-bottom: 10px; }
  code {
    background: #eef1f6; border-radius: 5px; padding: 2px 6px; font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all;
  }
  .kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
  footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 22px; color: var(--muted); font-size: 14px; }
  @media (max-width: 560px) { h1 { font-size: 1.7rem; } body { font-size: 16px; } }

/* Piloxa public pages (home and the letter pages). Same sheet, same CSP reasoning. */
header.top a.home { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
header.top .wrap { justify-content: space-between; flex-wrap: wrap; }
nav.pages { display: flex; gap: 18px; font-size: 14.5px; }
nav.pages a { color: var(--muted); text-decoration: none; }
nav.pages a:hover, nav.pages a[aria-current="page"] { color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 12px; }
.grid .card { margin: 0; }
.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; font-size: 15px;
}
.button:hover { background: #163fae; }
.button.secondary { background: #eef1f6; color: var(--ink); }
.button.secondary:hover { background: #e2e7ef; }
table.record { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
table.record th, table.record td { text-align: left; vertical-align: top; padding: 9px 10px; border-top: 1px solid var(--line); }
table.record th { width: 24%; color: var(--muted); font-weight: 600; }
table.record tr:first-child th, table.record tr:first-child td { border-top: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: #2c333f; margin-right: 6px; }
.tag.ok { background: #e3f7ee; color: #087a55; }
.tag.no { background: #eef1f6; color: #465361; border: 1px dashed #b7c2cd; }
.tag.warn { background: #fff3db; color: #a76200; }
.quote { font-size: 1.08rem; font-style: italic; color: #2c333f; }
.sample {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin: 16px 0 24px;
  font-family: "Times New Roman", Times, serif; font-size: 15.5px; line-height: 1.5;
}
.sample p { margin: 0 0 12px; }
.sample p.gap { margin: 0; height: 4px; }
.sample .sample-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px;
}
ul.related { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
ul.related li a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; text-decoration: none; }
ul.related.big { display: block; }
ul.related.big li { margin-bottom: 10px; }
ul.related.big li a { border: none; padding: 0; font-size: inherit; font-weight: 600; text-decoration: underline; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } nav.pages { gap: 12px; } }

/* The first screen has to answer three questions before anyone presses the button: is a
   sign-in needed, can this account actually mail, and roughly what does it cost. The block
   sits beside the button on a desktop and under it on a phone, so it survives without a
   scroll on a 390px-wide screen. */
.hero-start { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 26px; margin: 0 0 22px; }
.hero-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.hero-start .hero-actions { flex-direction: column; align-items: flex-start; max-width: 100%; }
.hero-start .hero-actions .button { text-align: center; }
.guide-actions { margin: 0 0 14px; }
.expect {
  margin: 0; flex: 1 1 300px; min-width: 0; font-size: 14.5px; line-height: 1.55; color: #2c333f;
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.expect strong { color: var(--ink); }
@media (max-width: 640px) {
  header.top { margin-bottom: 24px; }
  .hero-start { gap: 12px; }
  .hero-start .hero-actions { flex-direction: row; flex-basis: 100%; }
  .hero-actions .button { flex: 1 1 auto; }
  .expect { flex-basis: 100%; }
}
