/* Static styles shared by the landing page and the AI page: the footer, the first-paint shell, small page fixes. */
html.app-route .landing-only { display: none !important; }
html:not(.app-route) #app > .boot { display: none; }
.boot .loading { display: flex; align-items: center; gap: 12px; color: var(--muted, #6b7079); }
#nav-yours[hidden] { display: none; }

.site-foot .foot-line { font-size: 14.5px; line-height: 1.55; }
.site-foot .foot-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.site-foot .foot-links li { display: flex; align-items: center; min-height: 44px; }
.site-foot .foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px; margin-right: 8px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.site-foot .foot-links a:hover { color: var(--ink-solid, #15171b); }
.site-foot .foot-links .link-btn { display: inline-flex; align-items: center; text-decoration: underline; min-height: 44px; padding: 0 8px; margin-left: -8px; margin-right: 8px; color: var(--text-2); font-size: inherit; font-weight: 400; }
@media (max-width: 600px) { .site-foot { margin-top: 64px; padding-top: 36px; } }
@media print { .site-foot .foot-links { display: none; } }

.eyebrow + .display, .eyebrow + h1 { margin-top: 16px; }

/* Phones: when "Your sheets" shows in the header, the AI link lives in the footer so the header never scrolls sideways. */
@media (max-width: 480px) {
  #nav-yours:not([hidden]) ~ a[href="/ai.html"] { display: none; }
  .site-head .site-nav a { padding: 0 9px; }
}

/* Appearance control in the footer: System, Light, Dark. */
.appearance { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.appearance-label { font-size: 14.5px; color: var(--text-2, #3c4048); }
.appearance-opts { display: inline-flex; border: 1px solid var(--line-strong, #cfd5dd); border-radius: 10px; overflow: hidden; background: var(--surface, #fff); }
.appearance label { position: relative; display: block; margin: 0; cursor: pointer; }
.appearance label + label { border-left: 1px solid var(--line-strong, #cfd5dd); }
.appearance input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.appearance label span { display: flex; align-items: center; justify-content: center; min-height: 40px; min-width: 76px; padding: 0 14px; font: 600 14px/1 var(--sans, system-ui, sans-serif); color: var(--text-2, #3c4048); }
.appearance input:hover + span { background: var(--hover-wash, #0000000a); }
.appearance input:checked + span { background: var(--ink-solid, #0b0b0c); color: var(--on-ink, #fff); }
.appearance input:focus-visible + span { outline: 2px solid var(--cobalt, #2e5ec4); outline-offset: -4px; }
@media (pointer: coarse) { .appearance label span { min-height: 44px; } }
@media print { .appearance { display: none; } }

/* The OpenApps mark is a dark glyph: flip it on dark pages so it stays visible. */
:root[data-theme="dark"] .site-head .brand img { filter: invert(1) brightness(1.1); }
