/* Shared Tiny Hub chrome for every page on tinyhub.net: nav bar, phone menu,
   footer, and the sign-in and help pages. Prefixed th- so it never collides
   with the landing page's own styles. */
@font-face { font-family: "Aspekta"; font-weight: 400; font-display: swap; src: url(/assets/Aspekta-400.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 500; font-display: swap; src: url(/assets/Aspekta-500.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 600; font-display: swap; src: url(/assets/Aspekta-600.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 700; font-display: swap; src: url(/assets/Aspekta-700.woff2) format("woff2"); }

:root {
  --th-bg: #050507; --th-surface: #0b0d0f; --th-line: #2a3135; --th-line-soft: #1a1f22;
  --th-fg: #f4f5f6; --th-muted: #9aa2a7; --th-accent: #ffbc00;
  --th-font: "Aspekta", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.th-gutter { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Nav */
.th-nav { position: sticky; top: 0; z-index: 50; background: var(--th-bg); color: var(--th-fg); font-family: var(--th-font); display: flex; align-items: center; gap: 28px; height: 68px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; }
.th-nav a { color: inherit; text-decoration: none; }
.th-brand { display: flex; align-items: center; flex: none; }
.th-brand img { height: 26px; width: auto; display: block; }
.th-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.th-links > li { position: relative; }
.th-links a, .th-links summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; cursor: pointer; list-style: none; white-space: nowrap; }
.th-links summary::-webkit-details-marker { display: none; }
.th-links a:hover, .th-links summary:hover { background: var(--th-line-soft); }
.th-chev { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
details[open] > summary .th-chev { transform: rotate(180deg); }
.th-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; background: var(--th-surface); border: 1px solid var(--th-line); border-radius: 12px; padding: 8px; display: grid; gap: 2px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.th-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 8px; }
.th-menu a:hover { background: var(--th-line-soft); }
.th-menu b { font-weight: 500; font-size: 14px; }
.th-menu span { color: var(--th-muted); font-size: 13px; }
.th-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.th-signin { font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.th-signin:hover { background: var(--th-line-soft); }
.th-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--th-fg); color: var(--th-bg) !important; font-weight: 600; font-size: 14px; }
.th-cta:hover { background: #d9dcdf; }
.th-burger { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; background: var(--th-line-soft); border: 1px solid var(--th-line); color: var(--th-fg); cursor: pointer; }
.th-burger svg { width: 18px; height: 18px; }
.th-sheet { position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--th-bg); font-family: var(--th-font); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 32px; display: grid; align-content: start; overflow: auto; }
.th-sheet[hidden] { display: none; }
.th-sheet a { color: var(--th-fg); text-decoration: none; padding: 15px 4px; font-weight: 500; font-size: 18px; border-bottom: 1px solid var(--th-line-soft); }
.th-sheet .th-cta { margin-top: 20px; justify-content: center; height: 48px; font-size: 16px; border: 0; }
:focus-visible { outline: 2px solid var(--th-accent); outline-offset: 2px; border-radius: 4px; }

/* Footer */
.th-foot { display: flex; align-items: center; gap: 24px; padding-block: 18px; font-family: var(--th-font); font-size: 13px; color: var(--th-muted); border-top: 1px solid var(--th-line-soft); background: var(--th-bg); }
.th-foot .th-fine { display: flex; gap: 16px; flex-wrap: wrap; }
.th-foot nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.th-foot a { color: inherit; text-decoration: none; }
.th-foot a:hover { color: var(--th-fg); }

@media (max-width: 960px) {
  .th-links, .th-right .th-signin, .th-right .th-cta { display: none; }
  .th-burger { display: grid; }
  .th-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .th-foot nav { margin-left: 0; }
}

/* Sign-in and help pages */
.th-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--th-bg); color: var(--th-fg); font-family: var(--th-font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.th-page a { color: inherit; text-decoration: none; }
.th-main { display: grid; align-content: center; padding-block: 48px; }
.th-stage { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
.th-card { border: 1px solid var(--th-line); border-radius: 14px; padding: 64px 72px 56px; }
.th-card h1 { font-weight: 700; font-size: 40px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; text-wrap: balance; }
.th-card .th-sub { color: var(--th-muted); margin: 0 0 32px; }
.th-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 8px; background: var(--th-fg); color: var(--th-bg) !important; font-weight: 700; font-size: 15px; transition: background .15s; }
.th-primary:hover { background: #d9dcdf; }
.th-secondary { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 8px; border: 1px solid var(--th-line); font-weight: 600; font-size: 15px; margin-top: 12px; }
.th-secondary:hover { background: var(--th-line-soft); }
details.th-help { margin-top: 28px; }
details.th-help summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
details.th-help summary::-webkit-details-marker { display: none; }
.th-help-links { display: grid; gap: 10px; padding: 14px 0 0; }
.th-help-links a { width: fit-content; }
.th-help-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-quick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--th-line); }
.th-quick li { border-bottom: 1px solid var(--th-line); }
.th-quick a { display: flex; align-items: center; gap: 16px; padding: 18px 16px; transition: background .15s; }
.th-quick a:hover { background: var(--th-line-soft); }
.th-quick .th-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.th-quick b { font-weight: 500; font-size: 16px; }
.th-quick span { color: var(--th-muted); font-size: 13px; }
.th-quick .th-arrow { width: 16px; height: 16px; color: var(--th-muted); flex: none; transition: transform .15s; }
.th-quick a:hover .th-arrow { transform: translateX(3px); color: var(--th-fg); }
.th-note { margin: 18px 0 0; color: var(--th-muted); font-size: 13px; }
.th-note a { color: var(--th-fg); text-decoration: underline; text-underline-offset: 2px; }
.th-email { user-select: all; color: var(--th-fg); font-weight: 500; }

@media (max-width: 900px) {
  .th-stage { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .th-card { padding: 40px 28px 36px; }
  .th-main { align-content: start; padding-block: 24px 40px; }
}
@media (max-width: 520px) {
  .th-card { border: 0; padding: 16px 0 8px; }
  .th-card h1 { font-size: 34px; }
  .th-gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .th-chev, .th-quick a, .th-quick .th-arrow, .th-primary { transition: none; } }

/* The landing page styles bare details/summary (FAQ accordion); keep those
   rules out of the nav menus. */
.th-nav details { border: 0; margin: 0; }
.th-nav summary { justify-content: flex-start; font-weight: 500; }
.th-made { display: flex; align-items: center; flex: none; opacity: .9; }
.th-made:hover { opacity: 1; }
.th-made img { height: 22px; width: auto; display: block; }
.th-body { margin: 0; background: var(--th-bg); }
/* The landing page's skip link must sit above the sticky nav when focused. */
.skip:focus { z-index: 100; }
