/* Shared by the member's letter and its preview in the admin. Fonts are local. */
.welcome-letter {
  color: #28251f;
  background: #fffdf8;
  background-image: repeating-linear-gradient(135deg, #6d827a 0 10px, #fffdf8 10px 20px, #bc8c75 20px 30px, #fffdf8 30px 40px);
  background-size: 100% 4px;
  background-repeat: no-repeat;
  border: 1px solid #ddd6c8;
  border-radius: 5px;
  box-shadow: 0 3px 0 #e9e3d7;
  padding: 40px 44px;
  margin: 0 0 40px;
  overflow-wrap: anywhere;
}
.welcome-letter .letter-heading {
  font: 500 11px/1.5 Inter, sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #6c675e;
  padding-bottom: 24px;
  margin: 0 0 28px;
  border-bottom: 1px solid #e8e1d4;
}
.letter-postal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 22px 20px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e8e1d4;
}
.welcome-letter .letter-postal-header .letter-heading { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.letter-correspondents { margin: 0; align-self: center; }
.letter-correspondents > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin: 0 0 18px; }
.letter-correspondents > div:last-child { margin-bottom: 0; }
.letter-correspondents dt { font: 500 10px/1.6 Inter, sans-serif; text-transform: uppercase; letter-spacing: .8px; color: #756e60; padding-top: 3px; white-space: nowrap; }
.letter-correspondents dd { font: 500 14px/1.5 Inter, sans-serif; margin: 0; }
.letter-correspondents dd span { display: block; font-size: 12px; color: #756e60; font-weight: 400; margin-top: 2px; }
.letter-correspondents .letter-recipient { font: 500 23px/1.2 Newsreader, Georgia, serif; }
.letter-postage { position: relative; height: 134px; color: #596c5b; }
.postal-stamp { display: block; width: 82px; height: 101px; margin-left: auto; transform: rotate(4deg); }
.stamp-brand { font: 700 16px 'Space Grotesk', sans-serif; letter-spacing: -.6px; }
.stamp-caption { font: 500 6px Inter, sans-serif; letter-spacing: .65px; }
.postal-postmark { position: absolute; width: 158px; height: 67px; left: 0; bottom: 0; color: #857a6a; transform: rotate(-12deg); opacity: .85; }
.postmark-name { font: 600 6.4px Inter, sans-serif; }
.postmark-mark { font: 600 11px 'Space Grotesk', sans-serif; letter-spacing: -.6px; }
.postmark-caption { font: 500 4.6px Inter, sans-serif; letter-spacing: .25px; }
.welcome-letter .welcome-letter-text {
  font: 400 21px/1.65 Newsreader, Georgia, serif;
  font-optical-sizing: auto;
}
.welcome-letter-text p { margin: 0 0 20px; }
.welcome-letter-text p:last-child { margin-bottom: 0; }
.welcome-letter-text a { color: inherit; text-underline-offset: 3px; }
.welcome-letter-text img { max-width: 100%; height: auto; }
.welcome-letter-text pre { white-space: pre-wrap; }
.welcome-letter-text ul, .welcome-letter-text ol { padding-left: 24px; margin: 20px 0; }
.welcome-letter .welcome-continue { border-top: 1px solid #e8e1d4; margin-top: 32px; padding-top: 24px; }
.welcome-continue .btn { min-height: 46px; padding: 12px 18px; font-size: 14px; }
.welcome-continue p { font: 12px/1.6 Inter, sans-serif; color: #6c675e; margin: 12px 0 0; }
.welcome-letter .welcome-error { padding: 16px; margin-top: 24px; border-left: 3px solid #7e0100; background: #fbede6; font: 14px/1.6 Inter, sans-serif; }

/* The member workspace is intentionally separate from the postal letter and
   its admin preview. Geometry gives each task a place; color marks actions. */
.public-container.member-container {
  --member-blue: #00416b;
  --highlight: #fcd800;
  max-width: 1040px;
  padding: 48px 32px 32px;
}
.member-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.member-heading > div { min-width: 0; }
.member-heading h1 { font: 600 clamp(28px, 4vw, 40px)/1.12 'Space Grotesk', sans-serif; letter-spacing: -1.2px; margin: 10px 0 16px; overflow-wrap: anywhere; }
.member-kicker { font: 600 10px/1.5 Inter, sans-serif; letter-spacing: 1.5px; color: #5c574f; }
.member-address { font-size: 12px; color: #5c574f; overflow-wrap: anywhere; }
.member-address span { color: #2f6b4f; }
.member-container a { color: var(--member-blue); text-underline-offset: 4px; }
.member-address a { color: inherit; }
.member-exit button { font: 500 13px Inter, sans-serif; color: #5c574f; border: 0; border-bottom: 1px solid #b5b0a5; background: transparent; padding: 8px 4px; cursor: pointer; }
.member-container :focus-visible { outline: 3px solid var(--member-blue); outline-offset: 4px; }
.member-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-bottom: 16px; margin-bottom: 40px; border-bottom: 1px solid #b5b0a5; }
.member-nav a { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; text-decoration: none; font: 600 14px/1.4 'Space Grotesk', sans-serif; border: 1px solid transparent; }
.member-nav-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-nav a:hover { background: #e8e5dc; }
.member-nav a[aria-current] { color: #fffdf8; background: var(--member-blue); border-color: var(--member-blue); }
.member-container .btn { border-radius: 2px; min-height: 46px; max-width: 100%; white-space: normal; padding: 12px 18px; font-size: 14px; text-align: left; }
.member-container a.btn { text-decoration: none; color: #1a1816; }
.letter-share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.letter-share-label { flex-basis: 100%; font: 400 11px/1.5 Inter, sans-serif; color: #5c574f; }
.letter-share-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 500 13px/1.5 'Space Grotesk', sans-serif; }
.letter-share-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.member-panel { scroll-margin-top: 24px; }
.member-panel h2 { font: 600 clamp(26px, 3.4vw, 32px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.7px; margin: 12px 0 24px; }
.member-panel > p:not(.member-kicker), .member-disclosure > p { font-size: 14px; line-height: 1.8; margin: 18px 0; }
.member-panel .member-note { color: #5c574f; font-size: 13px; }
.member-letters { list-style: none; padding: 0; margin: 32px 0 24px; border-bottom: 1px solid #ddd6c8; }
.member-letters li { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #ddd6c8; padding: 24px 0; }
.member-letter-info { min-width: 0; }
.member-letter-info > a { font: 500 26px/1.3 Newsreader, Georgia, serif; overflow-wrap: anywhere; }
.member-letter-info strong { font: 500 18px/1.4 'Space Grotesk', sans-serif; }
.member-letter-info > span { display: block; font-size: 12px; color: #5c574f; margin-top: 10px; }
.member-letter-info .letter-share { margin-top: 16px; }
.member-letters .member-letter-stage { flex: 0 0 auto; max-width: 35%; font-size: 12px; line-height: 1.6; color: #00416b; }
.member-disclosure { border-top: 1px solid #ddd6c8; margin-top: 24px; padding-top: 16px; }
.member-disclosure summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--member-blue); }
.member-disclosure[open] > summary { margin-bottom: 16px; }
.member-disclosure.sending-guide { margin-top: 36px; }
.letter-guide { padding-left: 20px; margin: 24px 0; }
.letter-guide li { padding-left: 8px; margin: 18px 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.letter-guide li::marker { color: #00416b; }
.letter-destination { margin: 24px 0; }
.letter-destination h3 { font: 600 13px/1.5 'Space Grotesk', sans-serif; color: #00416b; margin: 0 0 10px; }
.member-postal-guide .letter-guide { list-style: none; counter-reset: postal-step; padding: 0; margin: 28px 0; }
.member-postal-guide .letter-guide li { counter-increment: postal-step; position: relative; padding-left: 44px; margin: 24px 0; }
.member-postal-guide .letter-guide li::before { content: counter(postal-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; background: #00416b; color: #fffdf8; font: 600 14px/1 'Space Grotesk', sans-serif; }
.member-postal-guide .letter-guide strong { display: block; margin-bottom: 4px; font-size: 16px; }
.member-postal-guide .letter-destination { border-left: 4px solid #fcd800; background: #fffdf8; padding: 20px 24px; }
.member-postal-guide .postal-address { margin: 0; padding: 0; background: transparent; font-size: 16px; line-height: 1.7; }
.member-postal-guide > p { font-size: 13px; line-height: 1.8; color: #5c574f; }
.member-kit { max-width: 800px; }
.member-kit form { margin-top: 20px; }
.member-kit form .member-note { font-size: 13px; margin-top: 10px; }
.member-account { max-width: 720px; overflow-wrap: anywhere; }
.member-account > p, .member-account > form { margin: 20px 0; }
.member-account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding: 24px 0 32px; border-bottom: 1px solid #ddd6c8; margin-bottom: 32px; }
.member-account-facts dt { font-size: 12px; color: #5c574f; margin-bottom: 8px; }
.member-account-facts dd { font-size: 16px; }
.member-notice { display: flex; align-items: center; gap: 16px 24px; justify-content: space-between; background: #f5edca; border-left: 3px solid #00416b; padding: 16px 20px; margin: -12px 0 32px; font-size: 13px; line-height: 1.7; }
.member-notice a { flex: none; }
.member-back { margin-bottom: 24px; font-size: 13px; }
.member-container .welcome-letter { max-width: 736px; margin-left: auto; margin-right: auto; }
.member-footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid #b5b0a5; padding-top: 20px; margin-top: 48px; font-size: 13px; }
.member-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.member-links a { display: flex; align-items: center; min-height: 44px; }
.member-links .welcome-persistent { gap: 8px; }
.welcome-envelope { --correios-amarelo: #fcd800; --correios-azul: #00416b; display: block; flex: none; width: 28px; height: 21.28px; }
.member-help summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: #00416b; }
.member-help p { padding: 12px 0; line-height: 1.8; overflow-wrap: anywhere; }
.member-help { flex-basis: 100%; }
.member-kit .welcome-error { border-left: 3px solid #7e0100; padding: 16px; background: #fbede6; }
.kit-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 24px; margin: 24px 0; background: #faf8f1; border: 1px solid #e2dccf; border-radius: 6px; }
.kit-stage { position: relative; min-width: 0; text-align: center; }
.kit-stage:not(:last-child)::after { content: ''; position: absolute; top: 44px; left: calc(50% + 56px); width: calc(100% - 76px); border-top: 1px dashed #b7af9d; }
.kit-stage:not(:last-child)::before { content: ''; position: absolute; top: 41px; left: calc(150% - 24px); width: 6px; height: 6px; border-top: 1px solid #b7af9d; border-right: 1px solid #b7af9d; transform: rotate(45deg); }
.kit-illustration { position: relative; display: grid; place-items: center; width: 96px; height: 88px; margin: 0 auto 18px; border-radius: 50%; background: #f0ece1; color: #817865; }
.kit-illustration svg { width: 82px; height: 70px; }
.kit-icon-fill { fill: #faf8f1; }
.kit-stage.is-current .kit-illustration { background: #e7ecd8; color: #4b6446; box-shadow: 0 0 0 2px #879675; }
.kit-stage.is-complete .kit-illustration { background: #e7ecd8; color: #4b6446; }
.kit-stage.is-complete .kit-illustration::after { content: '✓'; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; color: #fffdf8; background: #526b48; font: 600 13px/22px Inter, sans-serif; }
.kit-stage-copy h3 { font: 600 14px/1.5 Inter, sans-serif; color: #39392d; margin: 0 0 8px; }
.kit-stage-copy .kit-stage-status { display: inline-block; font: 500 11px/1.5 Inter, sans-serif; color: #686354; margin: 0; }
.kit-stage.is-current .kit-stage-status { padding: 3px 8px; background: #e7ecd8; border: 1px solid #c5cfb4; border-radius: 12px; color: #405c38; }
.kit-stage.is-complete .kit-stage-status { color: #405c38; }
.kit-stage-copy .kit-stage-note { font: 400 11px/1.6 Inter, sans-serif; color: #686354; margin: 6px 0 0; }
@media (max-width: 799px) {
  .member-notice { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .public-container.member-container { padding: 28px 18px; }
  .member-heading { gap: 12px; margin-bottom: 24px; }
  .member-heading h1 { letter-spacing: -.7px; }
  .member-nav { margin-bottom: 28px; gap: 2px; }
  .member-nav a { flex-direction: column; gap: 6px; min-height: 68px; padding: 10px 4px; font-size: 13px; }
  .member-nav-icon { width: 18px; height: 18px; }
  .member-letters li { display: block; }
  .member-letters .member-letter-stage { margin-top: 14px; max-width: none; }
  .member-account-facts { grid-template-columns: minmax(0, 1fr); }
  .member-footer { gap: 0 20px; margin-top: 36px; }
  .member-links { gap: 0 20px; }
  .welcome-letter { padding: 26px 22px; margin-bottom: 32px; }
  .welcome-letter .welcome-letter-text { font-size: 20px; line-height: 1.6; }
  .welcome-letter .letter-heading { font-size: 10px; padding-bottom: 20px; margin-bottom: 24px; }
  .letter-postal-header { grid-template-columns: minmax(0, 1fr) 94px; gap: 20px 12px; padding-bottom: 24px; margin-bottom: 26px; }
  .letter-correspondents > div { grid-template-columns: 1fr; gap: 3px; margin-bottom: 12px; }
  .letter-correspondents dt { padding-top: 0; font-size: 9px; }
  .letter-correspondents dd { font-size: 13px; }
  .letter-correspondents dd span { font-size: 11px; }
  .letter-correspondents .letter-recipient { font-size: 22px; }
  .letter-postage { height: 137px; }
  .postal-stamp { width: 72px; height: 88px; }
  .postal-postmark { width: 100px; height: 50px; left: -4px; bottom: 0; }
  .kit-journey { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px 18px; }
  .kit-stage { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; min-height: 96px; text-align: left; align-items: center; }
  .kit-illustration { width: 72px; height: 72px; margin: 0; align-self: start; }
  .kit-illustration svg { width: 64px; height: 58px; }
  .kit-stage:not(:last-child)::after { top: 82px; left: 35px; height: calc(100% - 64px); width: 0; border-top: 0; border-left: 1px dashed #b7af9d; }
  .kit-stage:not(:last-child)::before { top: calc(100% + 14px); left: 32px; border-top: 0; border-bottom: 1px solid #b7af9d; }
  .kit-stage-copy h3 { font-size: 13px; }
}

/* Recommendations are independent milestones, not an ordered wizard. */
.member-home { border-top: 4px solid var(--member-blue); padding-top: 16px; }
.member-recommendations { list-style: none; margin: 0; padding: 0; }
.recommendation { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(170px, 210px); align-items: start; gap: 16px; border-top: 1px solid #ddd6c8; padding: 22px 0; }
.recommendation:first-child { border-top: 0; }
.recommendation-check { display: block; margin-top: 2px; }
.recommendation-check svg { display: block; width: 24px; height: 24px; fill: none; stroke: #898377; stroke-width: 1.5; }
.is-complete .recommendation-check rect { fill: var(--member-blue); stroke: var(--member-blue); }
.is-complete .recommendation-check path { stroke: #fffdf8; stroke-width: 2; }
.recommendation-copy { min-width: 0; }
.recommendation-copy h2 { font: 500 18px/1.4 'Space Grotesk', sans-serif; letter-spacing: normal; margin: 0; overflow-wrap: anywhere; }
.recommendation-copy p { font: 400 13px/1.7 Inter, sans-serif; color: #5c574f; margin: 7px 0 0; }
.recommendation-actions { display: flex; align-items: start; flex-direction: column; gap: 4px; }
.recommendation-actions > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
.recommendation-actions form { max-width: 100%; }
.recommendation-error { border-left: 3px solid #7e0100; background: #fbede6; padding: 16px; }
.member-home .member-postal-guide { max-width: 680px; margin-top: 40px; scroll-margin-top: 24px; }
@media (max-width: 799px) {
  .recommendation { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 12px; }
  .recommendation-actions { grid-column: 2; }
  .recommendation-copy h2 { font-size: 17px; }
}
