/* Additions for the live site (things the prototype didn't need). */
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
.view:focus, .adm-main:focus { outline: none; }
.add-form { display: contents; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.round-sm { width: 40px; height: 40px; }
.page.narrow { max-width: 860px; }
.error-page { padding-top: 60px; padding-bottom: 40px; }

/* Footer */
.ftr .ftr-h { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ftr p a:hover { color: var(--ink); text-decoration: underline; }
.ftr-copy { margin-top: 14px; font-size: 13px; }

/* Shop */
.shop-bar-space { margin-right: auto; }
.results-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; }
.results-count { font-size: 14px; }
.applied a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }
.applied a .ic { width: 16px; height: 16px; }
.applied a:hover { background: var(--line); }
.applied .clear { background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.size-chip { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.size-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.results.is-loading { opacity: .5; transition: opacity .2s; }
.empty-note { padding: 40px 0; color: var(--muted); }
.empty-note h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin-bottom: 6px; }
.marquee-track a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Product */
.pdp-gallery.single { grid-template-columns: minmax(0, 1fr); }
.pdp-ship { display: flex; align-items: center; gap: 8px; }
.pdp-ship .ic { width: 18px; height: 18px; flex: none; }
.related { margin-top: 72px; }
.acc-item > h2 { margin: 0; }
.wa-big { min-width: min(460px, 100%); min-height: 56px; font-size: 16px; }

/* Account */
.acct-nav form { display: contents; }
.tl i { font-size: 13px; font-weight: 650; }

/* Info pages */
.prose { padding-bottom: 20px; }
.prose h2 { font-size: 20px; font-weight: 650; margin: 30px 0 8px; }
.prose p { color: var(--muted); max-width: 62ch; margin-top: 8px; }
.prose .lede { font-size: 19px; color: var(--ink); margin-top: 12px; }

/* Admin additions */
.tabs a { position: relative; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { background: #fff; color: var(--ink); }
.tabs a[aria-current="page"] { background: #121212; color: #fff; }
.tabs a em { font-style: normal; font-size: 12px; opacity: .8; }
.row-actions form { display: contents; }
.adm-card.has-error { border-color: var(--danger); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop:has(+ .file-input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.photo.is-new::after { content: "New"; position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--champ-bg); color: var(--champ-ink); font-size: 11px; font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.settings-form { max-width: 860px; }
.settings-form + .adm-card, .settings-form ~ .adm-card { max-width: 860px; }
body.is-admin .toast { bottom: 24px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .applied { width: 100%; }
}

/* Admin on phones: keep the scrolling top menu from widening the page */
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .adm-side { min-width: 0; }
  .adm-main { padding-left: 16px; padding-right: 16px; }
}

/* Scroll boxes must contain their screen-reader-only labels, or the page gets wider than the phone */
.tbl-wrap, .marquee, .stories-list, .rail, .chips, .thumbs, .acct-nav { position: relative; }
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); }
  .acct-side { min-width: 0; }
}

/* Logo: seal + wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-seal { width: 46px; height: 46px; flex: none; transition: transform .7s var(--ease); }
.logo:hover .logo-seal { transform: rotate(-14deg); }
.logo-word { height: 26px; width: auto; }
.ftr-logo { display: flex; align-items: center; gap: 14px; }
.ftr-logo img:first-child { width: 72px; height: 72px; }
.ftr-logo img:last-child { height: 30px; width: auto; }
.adm-logo { display: flex; align-items: center; gap: 9px; padding: 0 6px; }
.adm-logo img:first-child { width: 36px; height: 36px; flex: none; }
.adm-logo img:nth-child(2) { height: 22px; width: auto; }
.adm-logo span { font-family: var(--sans); font-size: 12px; font-weight: 600; color: #121212; background: var(--champ-bg); padding: 2px 8px; border-radius: 999px; }
img.wa-av { width: 34px; height: 34px; padding: 0; background: none; flex: none; }
@media (max-width: 760px) {
  .logo-seal { width: 40px; height: 40px; }
  .logo-word { height: 22px; }
}
@media (max-width: 860px) {
  .adm-logo img:nth-child(2), .adm-logo span { display: none; }
}
