/* Support, legal and 404 pages. Uses the theme roles from site.css, so Night and Day both work. */

/* page heads */
.s-head { position: relative; padding-top: 26px; padding-bottom: 8px; display: grid; gap: 18px; }
.s-head h1 { font-size: clamp(40px, 10vw, 68px); margin-bottom: 12px; }
.s-head .lede { max-width: 44ch; }
.s-head .yp { width: 120px; position: relative; }
.s-head .bubble { position: absolute; left: 112px; top: 12px; background: var(--cream); color: var(--ink); font: 800 13px/1.2 var(--display); padding: 9px 12px; border-radius: 16px 16px 16px 4px; border: 2.5px solid var(--ink); transform: rotate(4deg); white-space: nowrap; }
@media (min-width: 900px) {
  .s-head { grid-template-columns: 1fr 220px; align-items: end; padding-top: 50px; }
  .s-head .yp { width: 200px; justify-self: end; order: 2; }
  .s-head .bubble { left: auto; right: 150px; top: -6px; }
}

/* support body */
.s-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 30px; padding-bottom: 20px; align-items: start; }
@media (min-width: 900px) { .s-body { grid-template-columns: 1.25fr .95fr; gap: 48px; padding-top: 40px; } }
.faq-group { margin-bottom: 34px; }
.faq-group h2 { font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.faq-group h2 i { width: 18px; height: 18px; border-radius: 5px; display: block; border: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 0; min-height: 44px; font: 700 16.5px/1.4 var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font: 700 24px var(--display); color: var(--accent-text); transition: transform .25s var(--pop); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--fg-soft); font-size: 15.5px; max-width: 60ch; }
.faq details p + p { margin-top: -8px; }

.card { background: var(--bg-2); border-radius: 22px; padding: 24px; margin-bottom: 20px; border: 1px solid var(--line); }
.card h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.card > p { font-size: 15px; color: var(--fg-soft); margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font: 700 13px var(--body); }
.field select, .field input, .field textarea { font: 600 15px var(--body); color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; min-height: 46px; }
.field select:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font: 500 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg-soft); margin: 4px 0 16px; word-break: break-word; }
.preview b { color: var(--fg); }
.card .btn { width: 100%; justify-content: center; }
.card small { display: block; margin-top: 12px; color: var(--fg-soft); font-size: 13.5px; }
.card.quiet { background: transparent; border: 2px solid var(--line); }
.card ul { padding-left: 20px; font-size: 15px; color: var(--fg-soft); display: grid; gap: 8px; margin-bottom: 14px; }
.card a:not(.btn) { color: var(--accent-text); font-weight: 700; }

/* legal pages */
.l-head { padding-top: 26px; padding-bottom: 18px; }
.l-head h1 { font-size: clamp(38px, 9vw, 60px); margin-bottom: 12px; }
.l-head .meta { color: var(--fg-soft); font-size: 15px; }
.l-head .meta a { color: var(--accent-text); font-weight: 700; }
@media (min-width: 900px) { .l-head { padding-top: 50px; } }
.short { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 22px; position: relative; margin: 14px 0 40px; }
.short h2 { font-size: 20px; margin-bottom: 10px; }
.short ul { list-style: none; padding: 0; display: grid; gap: 6px 24px; font: 600 15.5px/1.45 var(--body); }
.short li { padding-left: 24px; position: relative; }
.short li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; }
.short a { font-weight: 800; }
.short .yp { display: none; }
@media (min-width: 900px) {
  .short { padding: 26px 28px 24px 140px; }
  .short .yp { display: block; position: absolute; left: 22px; bottom: 0; width: 96px; }
  .short ul { grid-template-columns: 1fr 1fr; }
}
.l-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 20px; }
.l-body > *, .s-body > * { min-width: 0; }
.toc { margin-bottom: 30px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.toc b { display: block; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 8px; }
.toc a { display: block; text-decoration: none; padding: 7px 0; color: var(--fg-soft); font-weight: 600; }
.toc a:hover { color: var(--fg); }
@media (min-width: 900px) {
  .l-body { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 24px; align-self: start; background: none; border: 0; padding: 0; font-size: 14px; }
  .toc a { padding: 7px 0 7px 14px; border-left: 3px solid var(--line); }
  .toc a:hover { border-color: var(--yellow); }
}
.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 12px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; letter-spacing: -.01em; margin: 24px 0 8px; }
.prose p, .prose ul { margin-bottom: 14px; color: var(--fg); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-text); font-weight: 700; text-underline-offset: 3px; }
.prose .muted { color: var(--fg-soft); }
.dtable-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 14px; margin: 8px 0 20px; }
.dtable { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.dtable th, .dtable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable th { background: var(--bg-2); font: 700 13px var(--body); }
.dtable td:first-child { font-weight: 700; }
.no { color: var(--fg-soft); }
.pub { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 15.5px; margin: 8px 0 18px; }
.pub dt { font-weight: 800; } .pub dd { margin: 0 0 10px; color: var(--fg-soft); }
.pub dd a { color: var(--accent-text); font-weight: 700; }
@media (min-width: 600px) { .pub { grid-template-columns: auto 1fr; gap: 8px 22px; } .pub dd { margin: 0; } }

/* 404 */
.lost { display: grid; gap: 24px; justify-items: center; text-align: center; padding-top: 30px; padding-bottom: 10px; }
.lost .yp { width: min(220px, 56vw); }
.lost h1 { font-size: clamp(36px, 9vw, 64px); }
.lost .lede { margin: 0 auto; }
.lost .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.lost .code { font: 800 14px/1 var(--display); letter-spacing: .14em; color: var(--accent-text); }

/* support form */
#contact-form { display: grid; gap: 2px; margin-top: 14px; position: relative; }
#contact-form .field { margin-bottom: 12px; }
#contact-form .two { display: grid; column-gap: 14px; align-items: end; }
@media (min-width: 560px) { #contact-form .two { grid-template-columns: 1fr 1fr; } }
#contact-form .opt { font-weight: 500; opacity: .65; }
#contact-form textarea { width: 100%; resize: vertical; min-height: 140px; font: inherit; }
#contact-form [aria-invalid="true"] { outline: 2px solid var(--coral); outline-offset: 1px; }
#contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form .form-note { font-size: 13px; color: var(--fg-soft); }
#contact-form .form-status:empty { display: none; }
#contact-form .form-status { font-weight: 700; font-size: 14.5px; padding: 12px 14px; border-radius: 12px; background: var(--chip); }
#contact-form .form-status[data-kind="ok"] { background: var(--mint); color: var(--ink); }
#contact-form .form-status[data-kind="error"] { background: var(--coral); color: #fff; }
#contact-form button { justify-self: start; }
#contact-form button:disabled { opacity: .6; cursor: progress; }
