/*
 * ITC shared styles: the classes used by more than one component. Anything
 * owned by a single component lives in that component's <style> block.
 * Uses the tokens from tokens.css.
 */

/* ---- Buttons ---- */
/* Size mirrors intracen.org production (.button: 21px / 15px 16px, 2px radius). */
.itc-btn { display: inline-block; font-size: 21px; font-weight: 700; padding: 15px 16px; border-radius: 2px; border: 0; cursor: pointer; text-decoration: none; }
.itc-btn--primary { background: var(--itc-crimson); color: var(--itc-white); }
/* Production hover is a drop-shadow, not a colour change — the fill stays ITC Pink. */
.itc-btn--primary:hover,
.itc-btn--primary:active { background: var(--itc-crimson); color: var(--itc-white); text-decoration: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
/* Style guide p17: white fill, 1px ITC Pink border, pink label — never navy. */
.itc-btn--secondary { background: var(--itc-white); color: var(--itc-crimson); border: 1px solid var(--itc-crimson); padding: 14px 15px; }
.itc-btn--secondary:hover,
.itc-btn--secondary:active { background: var(--itc-white); color: var(--itc-crimson-dk); text-decoration: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }

/* ---- Field label ---- */
.itc-label { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--itc-crimson); }

/* ---- Sticky back-header (detail + About pages) ----
   top matches the sticky brand header's height so the two stack rather than overlap. */
.itc-backhead { position: sticky; top: 92px; z-index: 20; background: var(--itc-navy); display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 68px; }
.itc-backhead__link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; }
.itc-backhead__title { flex: 1; min-width: 0; font-family: var(--itc-font-head); font-weight: 600; font-size: clamp(17px, 4.5vw, 22px); color: var(--itc-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itc-backhead__link--label { flex: 1; min-width: 0; width: auto; justify-content: flex-start; gap: 24px; padding-left: 8px; }
.itc-backhead__link--label:hover { text-decoration: none; }
.itc-backhead__link--label:hover .itc-backhead__title { text-decoration: underline; text-underline-offset: 4px; }

/* Lime category/bullet dot, 9px. AboutBody sizes its list bullets up. */
.itc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--itc-lime); flex: none; }

/* Components adjust these in their own <style>, which loads after this file,
   so a same-specificity modifier still beats the shared `margin: 0`. */
.itc-h2 { margin: 0; font-family: var(--itc-font-head); font-weight: 600; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; color: var(--itc-navy); }
.itc-body { margin: 0; font-size: 18px; line-height: 1.65; color: var(--itc-text); text-wrap: pretty; }

/* ---- Bottom-nav spacer (rendered by the page bodies) ---- */
/* Floating bar height + its 12px offset: the footer's last line stays visible
   above it. Navy so the footer appears to run on behind the bar. */
.itc-bottomnav-spacer { height: calc(88px + env(safe-area-inset-bottom, 0px)); background: var(--itc-navy); }

/* ---- Section helpers ---- */
.itc-section { padding: 64px var(--itc-pad); }
.itc-wrap { max-width: var(--itc-maxw); margin: 0 auto; }
.itc-wrap--wide { max-width: var(--itc-maxw-wide); margin: 0 auto; }
