/* The Starmates, v13 — the order form, the gift form and the thank-you page.
   Same paper, same ink, same round buttons as the rest of the site. A form is a sheet of the reading's own paper
   that the visitor fills in: fields sit on sheets, questions are set large, help is small and close to its field.
   The paper is light in both the sun and the moon version, so everything on a sheet uses the sheet's own colours. */

.legal-links a{color:inherit;text-decoration-color:var(--gold)}
.legal-links{overflow-wrap:anywhere}
.btn[aria-disabled="true"]{opacity:.55;pointer-events:none;cursor:default}
.btn[disabled]{opacity:.6;cursor:progress}
.consent .btn{background:var(--sheet-fg);color:var(--sheet)}   /* Accept and Decline carry the same weight */

/* ---------- the page ---------- */
.o-head{padding-top:clamp(104px,14vh,150px)}
.o-head h1{font-size:clamp(40px,5.4vw,80px);max-width:12em}
.o-head .lead{margin-top:16px;max-width:32em;color:var(--muted)}
.o-steps{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:22px;font-size:var(--t-small);color:var(--muted);font-weight:500}
.o-steps li{display:flex;align-items:center;gap:8px}
.o-steps li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--line)}
.o-steps li[aria-current="step"]{color:var(--fg)}
.o-steps li[aria-current="step"]::before{background:var(--gold);box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 24%,transparent)}

.o-grid{margin-top:clamp(28px,4vw,56px);display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:start}
@media (min-width:980px){ .o-grid{grid-template-columns:minmax(0,7fr) minmax(0,4fr)} .o-side{position:sticky;top:96px;order:2} }
.o-main{display:flex;flex-direction:column;gap:clamp(36px,5vw,60px);min-width:0}
.o-sec{display:flex;flex-direction:column;gap:16px;min-width:0}
.o-sec > h2{font-size:clamp(27px,1.4vw + 20px,38px);line-height:1.08}
.o-sec > h2:focus{outline:none}
.o-sec > .o-say{color:var(--muted);max-width:34em;margin-top:-6px}
.o-more{color:var(--muted);font-size:var(--t-small);max-width:40em}
.o-more a,.o-credit a{color:inherit;text-decoration-color:var(--gold)}
.o-credit{margin-top:clamp(40px,5vw,64px);font-size:13.5px;color:var(--muted)}

/* ---------- a sheet of paper that holds fields ---------- */
.o-sheet{display:flex;flex-direction:column;gap:20px;padding:clamp(18px,3vw,34px);border-radius:22px;background:var(--sheet);color:var(--sheet-fg);min-width:0}
.o-sheet h3{display:flex;align-items:center;gap:12px;font-size:clamp(23px,1vw + 18px,29px)}
.o-sheet h3 .art{flex:none;width:46px;line-height:0;color:var(--gold-fg)}
.o-sheet h3 .art svg{width:100%;height:auto}
.o-sheet h3 .art .cutf{fill:var(--sheet);stroke:var(--sheet)}
.o-sheet .field{color:var(--sheet-fg)}
.o-sheet .field small,.o-hint{font-weight:400;font-size:15px;line-height:1.4;color:var(--sheet-muted)}
.o-hint{display:block}
.o-row{display:grid;grid-template-columns:minmax(0,1fr);gap:20px 16px}
@media (min-width:640px){ .o-row.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} }

/* fields: the site's own (reading.css .field), with a drawn arrow on lists and a text area */
.o-sheet .field input,.o-sheet .field select,.o-sheet .field textarea{width:100%;border-color:rgba(27,30,43,.22);background:#fff;color:var(--sheet-fg);
  font:inherit;font-weight:400;font-size:18px;min-height:52px;padding:12px 16px;border-radius:14px;border-width:1.5px;border-style:solid;
  transition:border-color .2s ease,box-shadow .2s ease;caret-color:var(--gold-fg)}
.o-sheet .field textarea{min-height:108px;resize:vertical;line-height:1.45}
.o-sheet .field select{appearance:none;-webkit-appearance:none;padding-right:38px;text-overflow:ellipsis;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%231B1E2B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;background-size:15px}
.o-sheet .field select:invalid,.o-sheet .field select.blank{color:var(--sheet-muted)}
.o-sheet .field input::placeholder,.o-sheet .field textarea::placeholder{color:#6C6870;opacity:1}
.o-sheet .field input:focus,.o-sheet .field select:focus,.o-sheet .field textarea:focus{outline:none;border-color:var(--sheet-fg);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 30%,transparent)}
.o-sheet [aria-invalid="true"]{border-color:#A3341C!important}
.o-err{display:block;color:#A3341C;font-weight:500;font-size:15px;line-height:1.35}
.o-count{font-size:14px;color:var(--sheet-muted);align-self:flex-end;font-variant-numeric:tabular-nums;margin-top:-2px}

/* a question with several lists in a row: birth date, birth time */
.o-set{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:8px}
.o-set > legend{padding:0;margin-bottom:8px;font-weight:500;font-size:16px;float:left;width:100%}
.o-set > legend + *{clear:both}
.o-trio{display:grid;gap:8px;grid-template-columns:minmax(0,1.7fr) minmax(0,.95fr) minmax(0,1.15fr)}
.o-trio.time{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);max-width:440px}
.order-page .links .cta{display:none}   /* one thing to do on this page */
.o-trio select{padding-left:12px!important;padding-right:30px!important;background-position:right 9px center!important;font-size:17px!important}
.o-trio .field{gap:0}
.o-trio .field > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ticks */
.o-check{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;font-size:16.5px;line-height:1.45;cursor:pointer;padding:6px 0}
.o-check input{appearance:none;-webkit-appearance:none;width:26px;height:26px;margin:0;border-radius:8px;border:1.5px solid rgba(27,30,43,.4);background:#fff;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease;display:grid;place-content:center}
.o-check input::after{content:"";width:12px;height:7px;border-left:2.4px solid var(--sheet);border-bottom:2.4px solid var(--sheet);transform:translateY(-1.5px) rotate(-45deg) scale(0);transition:transform .15s cubic-bezier(.2,.7,.2,1)}
.o-check input:checked{background:var(--sheet-fg);border-color:var(--sheet-fg)}
.o-check input:checked::after{transform:translateY(-1.5px) rotate(-45deg) scale(1)}
.o-check input:focus-visible{outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 36%,transparent)}
.o-check a{color:inherit;text-decoration-color:var(--gold)}
.o-check .o-err{grid-column:2}
.o-checks{display:flex;flex-direction:column;gap:6px}

/* the language of the reading: two tiles, no default */
.o-tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.o-tile{position:relative;display:block;cursor:pointer}
.o-tile input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.o-tile span{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:96px;padding:16px 18px;border-radius:18px;background:var(--sheet);color:var(--sheet-fg);
  border:1.5px solid transparent;transition:background-color .2s ease,color .2s ease,transform .18s cubic-bezier(.2,.7,.2,1)}
.o-tile b{font-family:var(--ui);font-weight:500;font-size:clamp(22px,1.2vw + 17px,28px);line-height:1.1;letter-spacing:-.01em}
.o-tile small{font-size:14.5px;line-height:1.3;color:var(--sheet-muted);transition:color .2s ease}
@media (hover:hover) and (pointer:fine){ .o-tile:hover span{background:var(--sheet-2)} }
.o-tile input:checked + span{background:var(--band);color:var(--band-fg)}
.o-tile input:checked + span small{color:var(--band-muted)}
.o-tile input:active + span{transform:scale(.98)}
.o-tile input:focus-visible + span{outline:2px solid var(--fg);outline-offset:3px}
.o-tiles[aria-invalid="true"] .o-tile span{border-color:#A3341C}
.o-sec > .o-err{color:#C24A2E}
:root[data-sky="sun"] .o-sec > .o-err{color:#A3341C}

/* the city of birth: type, then pick */
.o-combo{position:relative}
.o-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;border-radius:16px;background:#fff;color:var(--sheet-fg);
  box-shadow:0 1px 2px rgba(40,30,20,.1),0 18px 40px -14px rgba(40,30,20,.45);max-height:min(60vh,392px);overflow-y:auto;overscroll-behavior:contain}
.o-list li{display:flex;align-items:center;min-height:46px;padding:9px 12px;border-radius:11px;font-size:17px;line-height:1.3;cursor:pointer}
.o-list li[aria-selected="true"]{background:var(--sheet-2)}
.o-list li.note{cursor:default;color:var(--sheet-muted);font-size:15.5px}
.o-list li b{font-weight:600}
.o-picked{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;font-size:15px;line-height:1.4;color:var(--sheet-fg)}
.o-picked svg{width:18px;height:18px;color:var(--gold-fg);margin-top:1px}
.o-link{align-self:flex-start;min-height:44px;display:inline-flex;align-items:center;font:inherit;font-size:15.5px;font-weight:500;color:var(--sheet-fg);
  text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;cursor:pointer;padding:0;background:none;border:0}
.o-link:hover{text-decoration-thickness:2px}

/* bots only */
.o-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- the package: a small order slip ---------- */
.o-pack{display:flex;flex-direction:column;background:var(--sheet);color:var(--sheet-fg);border-radius:22px;overflow:hidden}
.o-pack .top{display:flex;flex-direction:column;gap:10px;padding:clamp(18px,2.4vw,28px);background:var(--sheet-2);border-bottom:4px dotted rgba(27,30,43,.28)}
.o-pack .for{font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:420;font-size:clamp(25px,1vw + 19px,31px);line-height:1.1;letter-spacing:-.01em}
.o-pack .who{font-size:16px;color:var(--sheet-muted)}
.o-pack .num{font-size:clamp(64px,7vw,88px);line-height:.9;display:flex;align-items:flex-start}
.o-pack .usd{font-size:14.5px;color:var(--sheet-muted)}
.o-pack .body{display:flex;flex-direction:column;gap:14px;padding:clamp(18px,2.4vw,28px)}
.o-pack h3{font-size:19px;font-family:var(--ui);font-weight:600;letter-spacing:0}
.o-pack .incl{display:flex;flex-direction:column;gap:9px;font-size:16px;line-height:1.35}
.o-pack .incl li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start}
.o-pack .incl svg{width:18px;height:18px;color:var(--gold-fg);margin-top:1px}
.o-pack .fine{font-size:14.5px;color:var(--sheet-muted)}
.o-pack .fine a{color:var(--sheet-fg);text-decoration-color:var(--gold)}
.o-pack .code{padding:10px 14px;border-radius:12px;background:var(--sheet-2);font-size:15px}
.o-pack .switch{align-self:stretch;display:grid;grid-template-columns:1fr 1fr;background:rgba(27,30,43,.08)}
.o-pack .switch button{justify-content:center;padding:8px 10px;min-height:46px;font-size:16px;color:var(--sheet-fg)}
.o-pack .switch button[aria-pressed="true"]{background:var(--sheet-fg);color:var(--sheet)}
.o-pack .switch button:not([aria-pressed="true"]):hover{background:rgba(27,30,43,.08)}

/* ---------- the review: the order, read back as sentences ---------- */
.o-review{display:flex;flex-direction:column;gap:22px}
.o-review .lang{font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:400;font-size:clamp(24px,1vw + 19px,31px);line-height:1.15;letter-spacing:-.01em}
.o-review ul{display:flex;flex-direction:column}
.o-review li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:baseline;padding:14px 0;border-top:1px solid rgba(27,30,43,.14);font-size:18px;line-height:1.45}
.o-review li:last-child{border-bottom:1px solid rgba(27,30,43,.14)}
.o-review li b{font-weight:600}
.o-review .manual{display:block;font-size:15px;color:var(--sheet-muted)}
.o-review .o-link{min-height:32px;align-self:baseline}
.o-review .tot{display:flex;justify-content:space-between;gap:16px;align-items:baseline;font-size:18px}
.o-review .tot b{font-family:var(--figures);font-variant-numeric:lining-nums;font-weight:400;font-size:30px}
.o-review .small{font-size:15px;color:var(--sheet-muted)}
.o-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.o-acts .btn{min-height:54px;font-size:18px}
.o-sheet .btn:not(.quiet){background:var(--sheet-fg);color:var(--sheet)}
.o-sheet .btn:not(.quiet):hover{background:var(--gold);color:#171A29}
.o-sheet .btn.quiet{background:rgba(27,30,43,.08);color:var(--sheet-fg)}
.o-sheet .btn.quiet:hover{background:var(--gold);color:#171A29}
.o-submit{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.o-submit .btn{min-height:56px;padding-inline:32px;font-size:18px}
.o-alert{padding:14px 16px;border-radius:14px;background:#FBE9E3;color:#7A2613;font-size:16px;font-weight:500;line-height:1.4}
.o-alert:focus{outline:2px solid #A3341C;outline-offset:2px}
.o-empty{display:flex;flex-direction:column;gap:16px;align-items:flex-start;max-width:34em}
@media (max-width:520px){ .o-acts .btn,.o-submit .btn{width:100%;white-space:normal;text-align:center} }

/* ---------- the gift form on /gift ---------- */
.gm form .o-sheet{border-radius:0}
.menu-list-sheet .kit-kids{margin:8px 0 2px 34px;display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:rgba(27,30,43,.08);max-width:320px}
.menu-list-sheet .kit-kids button{min-height:40px;padding:6px 14px;border-radius:999px;font-size:15.5px;font-weight:500;color:var(--sheet-fg)}
.menu-list-sheet .kit-kids button[aria-pressed="true"]{background:var(--sheet-fg);color:var(--sheet)}
.o-when{display:flex;flex-wrap:wrap;gap:8px}
.o-when .opt{position:relative}
.o-when .opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.o-when .opt span{display:inline-flex;align-items:center;min-height:46px;padding:8px 18px;border-radius:999px;background:var(--sheet-2);font-weight:500;font-size:16.5px;transition:background-color .2s ease,color .2s ease}
.o-when .opt input:checked + span{background:var(--sheet-fg);color:var(--sheet)}
.o-when .opt input:focus-visible + span{outline:2px solid var(--gold);outline-offset:2px}
.giftcard .gc-msg{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:86%;text-align:center}
.gm-buy .gift-note{flex-basis:100%;color:var(--muted)}

/* ---------- the thank-you page ---------- */
.ty-no{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:22px;padding:12px 20px;border-radius:16px;background:var(--sheet);color:var(--sheet-fg);font-size:16px}
.ty-no b{font-family:var(--figures);font-variant-numeric:lining-nums;font-weight:500;font-size:24px;letter-spacing:.02em;user-select:all}
.ty{padding-block:clamp(36px,5vw,64px) 0}
.ty .wrap{display:grid;gap:clamp(14px,2vw,22px);grid-template-columns:minmax(0,1fr);max-width:880px;margin-inline:0}
@media (min-width:1337px){ .ty .wrap{margin-inline:max(0px,calc((100vw - var(--wide)) / 2));padding-inline:var(--gut)} }
.ty .o-sheet{gap:12px}
.ty .o-sheet h2{font-size:clamp(25px,1.2vw + 19px,33px)}
.ty .o-sheet p{font-size:18px;line-height:1.5;max-width:38em}
.ty .o-sheet a{color:inherit;text-decoration-color:var(--gold)}
.ty ol{display:flex;flex-direction:column;gap:10px;counter-reset:s;font-size:18px;line-height:1.45}
.ty ol li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;align-items:start}
.ty ol svg{width:20px;height:20px;color:var(--gold-fg);margin-top:3px}
.ty .acts{margin-top:10px}

@media (prefers-reduced-motion:reduce){
  .o-tile span,.o-check input,.o-check input::after,.o-sheet .field input,.o-sheet .field select,.o-sheet .field textarea{transition:none}
}
.o-people{display:flex;flex-direction:column;gap:16px;min-width:0}
/* on a phone the card preview comes first, then the form, then the price and the button that sends it */
@media (max-width:900px){ .giftmaker .gm-card{display:contents} .giftmaker .giftcard{order:-1} .giftmaker .gm-buy{order:2} }
.gm-buy .btn{min-height:54px;font-size:18px}
.gm-buy .num .paren{font-size:14px;max-width:9em}

/* ---------- v16: "+ Add a child" under the children, and Remove on the second and third child ---------- */
.o-sheet-h{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.o-sheet-h .o-remove{align-self:center}
.o-addwrap[hidden]{display:none}
.o-add{display:flex;flex-direction:column;gap:14px;padding:clamp(18px,3vw,30px);border:2px dashed var(--gold);border-radius:22px;color:var(--fg)}
.o-add-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px 16px;flex-wrap:wrap}
.o-add h3{font-size:clamp(23px,1vw + 18px,29px)}
.o-add-fig{font-family:var(--figures);font-variant-numeric:lining-nums;font-size:clamp(30px,2vw + 22px,40px);line-height:1;color:var(--gold-fg)}
:root[data-sky="moon"] .o-add-fig{color:var(--gold)}
.o-add-say{font-weight:500}
.o-add-list{display:flex;flex-direction:column;gap:8px;font-size:16.5px;line-height:1.4}
.o-add-list li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start}
.o-add-list svg{width:18px;height:18px;color:var(--gold-fg);margin-top:2px}
:root[data-sky="moon"] .o-add-list svg{color:var(--gold)}
.o-add-tab{width:100%;border-collapse:collapse;font-size:16px;font-variant-numeric:lining-nums tabular-nums}
.o-add-tab th,.o-add-tab td{padding:9px 8px;text-align:left;border-top:1px solid var(--line);vertical-align:baseline}
.o-add-tab thead th,.o-add-tab thead td{border-top:0;padding-top:0;font-size:14px;font-weight:600;color:var(--muted)}
.o-add-tab tbody th{font-weight:500;color:var(--muted);width:34%}
.o-add-tab tbody td:last-child{font-weight:600}
.o-add-fine{font-size:15px;color:var(--muted)}
.o-add .btn{align-self:flex-start}
@media (max-width:520px){ .o-add .btn{align-self:stretch;justify-content:center} .o-add-tab th,.o-add-tab td{padding-inline:4px} }
