/* ==========================================================================
   Base — typography, links, focus, selection.
   Phase 1 rule: no layout changes (no widths, grids, positions, spacing of
   existing page structure). Only type, colour and interaction states.
   `html body.hat7` outranks the legacy snippet rules (`body.hh-ui …`) that
   are printed later in <head>, without needing !important.
   ========================================================================== */

html body.hat7 {
	color: var(--text);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Display face for headings only */
html body.hat7 h1,
html body.hat7 h2,
html body.hat7 h3,
html body.hat7 h4 {
	font-family: var(--font-display);
	color: var(--text);
	font-weight: 600;
	letter-spacing: 0;
}

html body.hat7 button,
html body.hat7 input,
html body.hat7 select,
html body.hat7 textarea { font-family: var(--font-body); }

/* Links */
html body.hat7 a { color: var(--primary); }
html body.hat7 a:hover { color: var(--primary-dark); }

/* Keyboard focus — visible everywhere, never on mouse click */
html body.hat7 :focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

html body.hat7 ::selection { background: rgba(37, 109, 133, .2); }

/* Prices keep Latin digits/currency readable in RTL */
html body.hat7 .woocommerce-Price-amount { unicode-bidi: isolate; }
