/* Finding your way around (on request: clearer to navigate, with past work and "what I make" up front).
   Loaded last. The menu's first two tabs are My work and What I make; the tab of the section showing is marked
   (js/picker.js); phones keep a slim menu; and under each section the other five are listed with their one-liners. */

/* ── Menu ── */
.nav.scrolled { background: rgba(247, 246, 242, .97); } /* solid enough that the photos behind don't smudge through */
.nav nav.tabs a { color: var(--muted); }
.nav nav.tabs a:hover { color: var(--ink); }
.nav nav.tabs a:nth-child(-n+3) { color: var(--ink); font-weight: 600; } /* the three things people come for */
.nav nav.tabs a.on { color: var(--accent); }
.nav nav.tabs a::after { height: 2px; bottom: 3px; }

/* phones and tablets: the menu is just its tabs on the home page, whether or not the page has scrolled (the logo row
   it used to grow took a sixth of a phone's screen; the big logo is at the top and the tabs are always there) */
@media (max-width: 900px) {
  body[data-view="home"] .nav { min-height: 0; padding-top: 6px; }
  body[data-view="home"] .nav .logo, body[data-view="home"] .nav .nav-ig { display: none; }
  html { scroll-padding-top: 100px; }
}
@media (max-width: 900px) and (min-width: 701px) { html { scroll-padding-top: 64px; } .nav nav.tabs { gap: 0 clamp(16px, 2.8vw, 26px); } } /* (six tabs on one row) */
@media (max-height: 520px) { html { scroll-padding-top: 12px; } }

/* ── Hero ── */
.hero-stars a { display: inline-flex; flex-wrap: wrap; justify-content: inherit; align-items: center; gap: 2px 10px; color: inherit; text-decoration: none; padding-block: 6px; }
.hero-stars a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hero-stars a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* computers: "See my work" and "See what I can make", one click from the top */
.hero-ways { display: none; }
@media (min-width: 960px) {
  .hero-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: -10px 0 0; }
  .hero-ways a { padding-inline: 14px; font-size: .96rem; white-space: nowrap; }
  .hero-ways a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px;
    border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--ink);
    font-weight: 600; text-decoration: none; transition: border-color var(--quick);
  }
  .hero-ways a:hover { border-color: var(--ink); }
  .hero-ways a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .hero-ways a span { color: var(--accent); }
}

/* phones: the WhatsApp and Instagram tiles are one line each, so "What are you looking for?" starts on the first screen */
@media (min-width: 381px) and (max-width: 640px) {
  .hero .home-btn.social { min-height: 60px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  .hero .home-btn.social .hb-ico { width: 36px; height: 36px; }
  .hero .home-btn.social .hb-text b { font-size: 1.02rem; }
  .hero .home-btn.social .hb-text small { font-size: .78rem; overflow-wrap: anywhere; }
}
@media (max-width: 640px) { .hero .home-btn.quote { min-height: 64px; } }

/* ── The six choices: the name reads a little more clearly over its photos ── */
.pick b::before { background: linear-gradient(180deg, rgba(247, 246, 242, 0) 0%, rgba(247, 246, 242, .96) 30%, rgba(247, 246, 242, .96) 70%, rgba(247, 246, 242, 0) 100%); }
.pick[aria-pressed="true"] b::before { background: linear-gradient(180deg, rgba(24, 23, 22, 0) 0%, rgba(24, 23, 22, .92) 30%, rgba(24, 23, 22, .92) 70%, rgba(24, 23, 22, 0) 100%); }
.section[data-panel] { scroll-margin-top: 0; }

/* ── Under the section: the other five, as rows that say what each one is ── */
.pick-again p { margin-bottom: 14px; color: var(--ink); font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--display); letter-spacing: -.01em; }
.pick-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.pick-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; align-content: center;
  min-height: 64px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--quick), transform var(--quick);
}
.pick-row[hidden] { display: none; }
.pick-row b { grid-column: 1; font: 400 1.3rem/1.15 var(--display); letter-spacing: -.01em; }
.pick-row small { grid-column: 1; margin-top: 2px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.pick-row-go { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 1.1rem; }
.pick-row:hover { border-color: var(--ink); }
.pick-row:active { transform: scale(.99); }
.pick-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 1100px) { .pick-more { grid-template-columns: repeat(auto-fit, minmax(170px, 420px)); justify-content: start; } } /* all on one row; one on its own stays a sensible width */
@media (max-width: 640px) {
  .pick-more { grid-template-columns: 1fr; gap: 8px; }
  .pick-row { min-height: 58px; padding: 10px 14px; }
  .pick-row b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .pick-row, .hero-ways a { transition: none; } .pick-row:active { transform: none; } }

/* ═══ Fixes from a full review of the site (on request) ═══ */

/* The menu stays on My printers, Noteworthy and the figure collection (they only had a Home button, so getting
   from one to another took two taps). Phones and tablets: tabs only, as on the home page. */
@media (max-width: 900px) {
  .nav { min-height: 0; padding-top: 6px; }
  .nav .logo, .nav .nav-ig { display: none; }
}
/* the logo and Instagram button are invisible over the hero: keep the keyboard off them too */
body[data-view="home"] .nav:not(.scrolled) :is(.logo, .nav-ig) { visibility: hidden; }

/* The Estimates page's "estimate or quote" note: one line to tap on phones, open on computers (js/main.js) */
details.est-intro { padding: 0; }
details.est-intro summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 18px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
details.est-intro summary::-webkit-details-marker { display: none; }
details.est-intro summary::after { content: '+'; flex: none; font-size: 1.3rem; font-weight: 400; color: var(--accent); }
details.est-intro[open] summary::after { content: '−'; }
details.est-intro summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
details.est-intro > p { margin: 0 20px 12px; }
details.est-intro > p:last-child { padding-bottom: 6px; }

/* The figure collection: "Show more figures" under each screenful */
.fig-next { display: flex; margin: clamp(26px, 4vw, 40px) auto 0; }
.fig-next[hidden] { display: none; }
@media (max-width: 640px) { .fig-next { width: 100%; justify-content: center; } }

/* Nothing smaller than about 11 px, nothing to tap under about 40 px */
.pick-img .render-tag, .way-img .render-tag { font-size: .68rem; padding: 2px 6px; }
.service .eyebrow, .ex-layer { font-size: .7rem; }
.hero-stars a { min-height: 40px; }
.lb-count { color: rgba(255, 255, 255, .78); }

/* The floating buttons don't show through behind an open photo */
body:has(.lightbox[open]) .bottom-dock { visibility: hidden; }

/* Phones: when four or more sections are listed under one, they sit two across by name (six tall rows was a lot) */
@media (max-width: 640px) {
  .pick-more:has(.pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .pick-more:has(.pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden])) .pick-row small { display: none; }
  .pick-more:has(.pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden]) ~ .pick-row:not([hidden])) .pick-row { min-height: 52px; }
}
/* wide screens: the menu ends clear of the scroll nozzle's "Layer" label */
@media (min-width: 1440px) and (hover: hover) and (pointer: fine) { .nav { padding-right: calc(var(--gutter) + 64px); } }

/* ── The Estimates form, one question at a time (on request): only the question they're on shows, a tapped answer
   moves on, and Back / Continue sit under it. Choice cards are just their names (and a picture): no grey notes on
   the simple choices, and no prices until the last step. ── */
.est-form { padding-bottom: 24px; border-top: 0; }
.est-q { border-bottom: 0; }
.est-plain .est-opt small { display: none; }
.est-plain .est-opt { align-items: center; }
.est-plain .est-opt span { align-self: center; }
.est-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.est-nav[hidden], .est-nav [hidden] { display: none; }
.est-nav .btn { min-height: 44px; }
.est-continue { margin-left: auto; }
.est-q legend:focus { outline: none; }
