/* Header, footer and shared page parts. */

body.twohr .twohr-skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 1000; padding: 0.5rem 0.75rem; background: var(--color-ink); color: var(--color-cream); }
body.twohr .twohr-skip:focus { top: 0.5rem; }

body.twohr .twohr-head { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--color-cream) 94%, transparent); border-bottom: 1px solid transparent; }
body.admin-bar.twohr .twohr-head { top: 32px; }
body.twohr .twohr-head__inner { display: flex; align-items: center; gap: 1.75rem; min-height: 4.25rem; }
body.twohr .twohr-head__logo img { display: block; width: 6rem; height: auto; }
body.twohr .twohr-head__nav { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 600; }
body.twohr .twohr-head__nav a, body.twohr .twohr-head__trade a:not(.button) { text-decoration: none; }
body.twohr .twohr-head__trade { display: flex; align-items: center; gap: 1.125rem; font-weight: 600; }
body.twohr .twohr-head__trade .button { min-height: 2.5rem; padding: 0 1rem; }
body.twohr .twohr-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--color-ink); color: var(--color-cream); font-size: var(--text-size-tiny); }
body.twohr .twohr-menu { display: none; margin-left: auto; position: relative; }
body.twohr .twohr-menu summary { list-style: none; cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; padding: 0 0.875rem; border: 2px solid var(--color-ink); border-radius: var(--radius); font-weight: 700; }
body.twohr .twohr-menu summary::-webkit-details-marker { display: none; }
body.twohr .twohr-menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(86vw, 19rem); display: grid; gap: 0.125rem; padding: 0.75rem; background: var(--color-paper); border: 1px solid var(--border-color); box-shadow: 0 16px 36px rgba(35, 31, 28, 0.14); }
body.twohr .twohr-menu nav a { padding: 0.625rem 0.375rem; text-decoration: none; font-weight: 600; }
body.twohr .twohr-menu nav .button { margin-top: 0.375rem; }
@media (max-width: 1100px) {
	body.twohr .twohr-head__nav, body.twohr .twohr-head__trade { display: none; }
	body.twohr .twohr-menu { display: block; }
}
@media (max-width: 782px) { body.admin-bar.twohr .twohr-head { top: 0; } }

body.twohr .twohr-foot { background: var(--background-color-inverse); color: var(--text-color-inverse); }
body.twohr .twohr-foot a { color: inherit; text-underline-offset: 4px; }
body.twohr .twohr-foot a:hover { color: var(--color-white); }
body.twohr .twohr-foot h2 { color: inherit; margin-bottom: 0.75rem; }
body.twohr .twohr-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem 2.5rem; padding: var(--space-section-medium) 0 1.75rem; }
body.twohr .twohr-foot__brand img { width: 11rem; height: auto; margin-bottom: 1rem; }
body.twohr .twohr-foot p { margin: 0 0 0.75rem; }
body.twohr .twohr-foot__legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgba(248, 244, 232, 0.3); }
@media (max-width: 900px) { body.twohr .twohr-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { body.twohr .twohr-foot__grid { grid-template-columns: 1fr; } }

/* Stock notes: approved retailers only. */
body.twohr .twohr-stock { padding: 1.25rem 1.5rem; background: var(--background-color-secondary); border-left: 4px solid var(--color-red); }
body.twohr .twohr-stock h2 { margin-bottom: 0.625rem; }
body.twohr .twohr-stock ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
body.twohr .twohr-stock--compact { margin-bottom: 1.5rem; }

/* Brands we carry: one card per brand, dealt in as the grid arrives. */
body.twohr .twohr-brands__lede { max-width: 42rem; margin: 1.25rem 0 2.5rem; }
body.twohr .twohr-brand-grid { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
body.twohr .twohr-brand-card { display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; border-top: 2px solid var(--color-ink); padding-top: 1rem; }
body.twohr .twohr-brand-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--color-white); border-radius: var(--radius); margin-bottom: 1rem; }
body.twohr .twohr-brand-card h2 { margin: 0 0 0.375rem; }
body.twohr .twohr-brand-card p { margin: 0 0 0.75rem; color: var(--text-color-secondary); }
body.twohr .twohr-brand-card .twohr-link { justify-self: start; }
html.twohr-js body.twohr .twohr-brand-grid:not(.is-in) .twohr-brand-card { opacity: 0; transform: translateY(24px); }
html.twohr-js body.twohr .twohr-brand-card { transition: opacity 0.6s ease, transform 0.8s var(--ease-settle); transition-delay: calc(var(--i) * 70ms); }
@media (max-width: 1000px) { body.twohr .twohr-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { body.twohr .twohr-brand-grid { gap: 2rem 1rem; } body.twohr .twohr-brand-card p { font-size: var(--text-size-small); } }
@media (prefers-reduced-motion: reduce) { html.twohr-js body.twohr .twohr-brand-card { transition: none; opacity: 1; transform: none; } }

/* Where to buy: every shop and online store we supply, by region. */
body.twohr .twohr-where__lede { max-width: 42rem; margin: 1.25rem 0 2.5rem; }
body.twohr .twohr-where { columns: 3 16rem; column-gap: 2.5rem; }
body.twohr .twohr-region { break-inside: avoid; margin-bottom: 1.75rem; scroll-margin-top: calc(var(--twohr-head, 4.25rem) + 1.5rem); }
body.twohr .twohr-region h2 { margin: 0; padding-bottom: 0.375rem; border-bottom: 2px solid var(--color-ink); }
body.twohr .twohr-region ul { list-style: none; margin: 0; padding: 0; }
body.twohr .twohr-region li { display: grid; padding: 0.55rem 0; border-bottom: 1px solid var(--border-color); }
body.twohr .twohr-region em { font-style: normal; color: var(--text-color-secondary); font-size: var(--text-size-small); }
body.twohr .twohr-region span { color: var(--text-color-secondary); font-size: var(--text-size-small); }
body.twohr .twohr-region:target h2 { color: var(--text-color-accent); border-bottom-color: var(--color-red); }
body.twohr .twohr-where__more { margin: 1.75rem 0 0; max-width: 46rem; }
body.twohr .twohr-where__trade { margin-top: 3rem; padding-top: 1.75rem; border-top: 2px solid var(--color-ink); }
body.twohr .twohr-where__trade h2 { margin-bottom: 1rem; }
