/* =========================================================================
   PEPOLOGY — brand shell: announcement bar, header, nav, footer.
   Tokens only (style.css :root); no hex in this file.
   Adapted from Theorys' theorys-shop.css section 1. Shop, product and
   commerce styling are later pieces and live in their own files.
   ========================================================================= */

/* Storefront prints its body font (Source Sans Pro) and background colour as
   INLINE css after the child sheets, so a bare `body` rule in style.css loses
   the tie. body.ani-shell (0,1,1) wins without !important. Form controls
   do not inherit font-family by default, so they are listed explicitly. */
body.ani-shell {
	font-family: var(--ani-font-body);
	color: var(--ani-ink);
	background-color: var(--ani-page);
	-webkit-font-smoothing: antialiased;
}
.ani-shell button, .ani-shell input, .ani-shell select, .ani-shell textarea { font-family: var(--ani-font-body); }
.ani-shell h1, .ani-shell h2, .ani-shell h3, .ani-shell h4 {
	font-family: var(--ani-font-head);
	font-weight: 500;          /* Newsreader reads heavy above 500 at display sizes */
	letter-spacing: -0.01em;
	color: var(--ani-ink);
}

/* Storefront's masthead is emptied in PHP; collapse what is left of it. */
.ani-shell .site-header,
.ani-shell .storefront-handheld-footer-bar {
	display: none !important;
}
.ani-shell .site-footer { padding: 0; margin: 0; background: none; }
.ani-shell #page { overflow: visible; }

/* Storefront's .col-full is ~1064px + em padding; the header is 1200 + 24px.
   Match them so page content lines up under the wordmark. The footer's own
   .col-full is released entirely so the dark band runs full-bleed. */
.ani-shell .col-full {
	max-width: 1200px;
	padding: 0 24px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.ani-shell .site-footer .col-full { max-width: none; padding: 0; margin: 0; }
/* Full-width templates (ani_is_full_template()) supply their own .ani-wrap. */
.ani-full .site-content .col-full { max-width: none; padding: 0; }
.ani-full .site-content { padding-top: 0; }
.ani-full .site-main { margin-bottom: 0; }

.ani-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* ---------- shared components ------------------------------------------
   Used by every content template (legal, COAs, and the pieces after them).
   Same class contract as Theorys' .thr-eyebrow / .thr-lead / .thr-crumbs /
   .thr-btn, so ported templates render without their own copies. */
.ani-eyebrow {
	/* Eyebrows stay in the SANS (as Theorys' do): tracked small caps in a serif
	   read as a different system. Copper = the logo's orbital. */
	display: block; font-family: var(--ani-font-body); font-size: 11.5px;
	letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--ani-copper); font-weight: 600; margin-bottom: 10px;
}
.ani-lead { color: var(--ani-ink-soft); max-width: 62ch; font-size: 16px; line-height: 1.65; margin: 0; }

.ani-crumbs { margin-bottom: 20px; font-size: 13px; color: var(--ani-ink-soft); }
.ani-shell .ani-crumbs a { color: var(--ani-ink-soft); text-decoration: none; }
.ani-shell .ani-crumbs a:hover { color: var(--ani-accent); }
.ani-crumbs .sep { margin: 0 8px; color: var(--ani-line); }

.ani-btn,
.ani-shell a.ani-btn,
.ani-shell button.ani-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--ani-font-body); font-weight: 600; font-size: 15px;   /* UI text = Inter */
	letter-spacing: 0.01em; line-height: 1;
	padding: 13px 22px;
	border: 1px solid var(--ani-accent); border-radius: 12px;
	background: var(--ani-accent); color: var(--ani-accent-ink);
	text-decoration: none; text-shadow: none; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.ani-shell a.ani-btn:hover,
.ani-shell button.ani-btn:hover {
	background: var(--ani-accent-hover); border-color: var(--ani-accent-hover);
	color: var(--ani-accent-ink); transform: translateY(-1px);
}
.ani-shell a.ani-btn--outline,
.ani-shell button.ani-btn--outline { background: transparent; color: var(--ani-accent); }
.ani-shell a.ani-btn--outline:hover,
.ani-shell button.ani-btn--outline:hover { background: var(--ani-accent); color: var(--ani-accent-ink); }

/* ---------- announcement bar ------------------------------------------- */
.ani-announce {
	background: var(--ani-dark);
	color: var(--ani-on-dark);
	text-align: center;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	padding: 9px 16px;
}

/* ---------- header ------------------------------------------------------ */
.ani-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--ani-page);
	border-bottom: 1px solid var(--ani-line);
}
/* Logged-in admins get the 32px/46px admin bar; stick below it, not under it. */
.admin-bar .ani-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ani-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ani-header { top: 0; } } /* WP un-fixes the bar here */

.ani-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 68px;
}

/* The logo (orbital mark + wordmark). PNGs are generated at exactly 34px and
   68px tall (1x/2x), so the height here must stay 34px on desktop or the 1x
   file is rescaled and goes soft. width/height attributes reserve the box. */
.ani-wordmark,
.ani-shell a.ani-wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.ani-logo-img { display: block; height: calc(var(--ani-logo-h, 34px) * 0.82); width: auto; }
@media (min-width: 768px) { .ani-logo-img { height: var(--ani-logo-h, 34px); } }

.ani-nav { display: none; gap: 28px; }
.ani-nav a,
.ani-shell .ani-nav a {
	font-size: 14.5px;
	color: var(--ani-ink-soft);
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 1px solid transparent;
}
.ani-shell .ani-nav a:hover { color: var(--ani-ink); }
.ani-shell .ani-nav a.is-current { color: var(--ani-ink); border-bottom-color: var(--ani-accent); }

.ani-header-right { display: flex; align-items: center; gap: 6px; }

.ani-icon-link,
.ani-shell a.ani-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px;
	color: var(--ani-ink);
	text-decoration: none;
	font-size: 14px;
}
.ani-shell a.ani-icon-link:hover { color: var(--ani-accent); }
.ani-icon-link svg { width: 21px; height: 21px; flex: none; }
/* Text label is desktop-only; the icon + aria-label carry it on small screens. */
.ani-account-label { display: none; }

/* The wrapper is the fragment Woo replaces on every ajax add — see
   ani_cart_badge_fragment(). Keep the class and that selector in step. */
.ani-cart-wrap { display: inline-flex; }
.ani-cart-count {
	/* Off the icon's top-right corner, so a two-digit count ("10") does not
	   cover the cart glyph — at 18px + 5px padding it hid it completely. */
	position: absolute; top: -5px; right: -9px;
	min-width: 14px; height: 16px; padding: 0 4px;
	border-radius: 999px;
	background: var(--ani-copper); color: var(--ani-accent-ink);   /* 6.86:1 */
	border: 2px solid var(--ani-page);
	font-size: 10px; font-weight: 600;
	line-height: 1; display: grid; place-items: center;
	box-sizing: content-box;
	font-variant-numeric: tabular-nums;
}

/* Flex, not grid, for the bars — same reasoning as Theorys' burger. */
.ani-burger,
.ani-shell button.ani-burger {
	width: 40px; height: 40px; flex: none;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 5px;
	padding: 0; margin-left: 4px;
	border: 1px solid var(--ani-field); border-radius: 10px;
	background: var(--ani-page);
	-webkit-appearance: none; appearance: none;
	cursor: pointer;
}
.ani-burger span { display: block; width: 17px; height: 2px; background: var(--ani-ink); border-radius: 2px; }

.ani-mobile-nav { display: none; padding: 8px 24px 18px; border-top: 1px solid var(--ani-line); background: var(--ani-page); }
.ani-mobile-nav.is-open { display: block; }
.ani-shell .ani-mobile-nav a {
	display: block; padding: 11px 0;
	font-size: 15.5px; color: var(--ani-ink); text-decoration: none;
	border-bottom: 1px solid var(--ani-line);
}
.ani-shell .ani-mobile-nav a.is-current { color: var(--ani-accent); font-weight: 600; }

/* ---------- footer ------------------------------------------------------ */
.ani-footer { background: var(--ani-dark); color: var(--ani-on-dark); padding: 60px 0 30px; }
.ani-footer-top { display: grid; grid-template-columns: 1fr; gap: 34px; }
/* Storefront's `.site-footer a:not(.button):not(.components-button)` is
   (0,3,1) AND is printed as inline CSS after this file, so a tie loses.
   (0,4,1) wins outright. Same for the RUO links below. */
.ani-footer .ani-logo-img { height: var(--ani-logo-h, 34px); }
.ani-footer-tag { margin: 14px 0 0; font-size: 14px; color: var(--ani-on-dark-soft); max-width: 34ch; }   /* 10.21:1, a measured colour instead of opacity */
.ani-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.ani-shell .ani-footer h4 {
	font-family: var(--ani-font-body);
	color: var(--ani-copper-light);   /* 7.47:1 on the footer */ font-size: 11.5px; font-weight: 600;
	letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px;
}
.ani-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ani-footer-col li { margin-bottom: 8px; }
/* Storefront's `.site-footer a:not(.button):not(.components-button)` is
   (0,3,1) and paints these near-black; this selector is (0,4,1). */
.ani-shell .ani-footer .ani-footer-cols .ani-footer-col a { color: var(--ani-on-dark); font-size: 14px; text-decoration: none; }
.ani-shell .ani-footer .ani-footer-cols .ani-footer-col a:hover { text-decoration: underline; }
.ani-footer-ruo {
	margin: 40px 0 0; padding-top: 22px;
	border-top: 1px solid rgba(216, 204, 198, 0.18);
	font-size: 12px; line-height: 1.7; color: var(--ani-on-dark-soft);
}
.ani-shell .site-footer .ani-footer .ani-footer-ruo a { color: var(--ani-on-dark); } /* (0,4,1): see the Storefront note above */
.ani-footer-copy { margin: 14px 0 0; font-size: 12px; color: var(--ani-on-dark-soft); }

/* ---------- responsive -------------------------------------------------- */
@media (min-width: 768px) {
	.ani-footer-top { grid-template-columns: 1fr 2fr; gap: 40px; }
	.ani-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.ani-nav { display: flex; }
	.ani-burger, .ani-shell button.ani-burger { display: none; }
	.ani-account-label { display: inline; }
	.ani-header-right { gap: 14px; }
}
.ani-shell .ani-burger:focus-visible, .ani-shell a:focus-visible, .ani-shell button:focus-visible { outline: 2px solid var(--ani-accent); outline-offset: 2px; }
