/*
 * theme-4eck bridge — ALL of the plugin's knowledge about the agency base
 * theme lives in this one file, so the plugin stays theme-portable and this
 * file stays deletable. Enqueued at priority 20 (prints after the theme).
 *
 * theme-4eck styles bare tags globally (uppercase Lora headings, bottom-border
 * inputs, list/table resets) and clamps every direct child of <main> to
 * Bootstrap container widths. The plugin's UI predates all of that and owns
 * its own containers, type and forms — this bridge neutralises the theme
 * inside plugin-rendered subtrees and nothing else.
 */

/* Plugin page roots as rendered into the_content (direct children of
   theme-4eck's <main class="site-main">). */

/* 1. Escape the theme's container clamp: the plugin owns its own width
   (--an-container) and gutters. :where() keeps specificity at zero above,
   so plain class selectors here win. */
.site-main > .an-crumbs,
.site-main > .anh,
.site-main > .anp,
.site-main > .anv,
.site-main > .anc,
.site-main > .anac,
.site-main > .analingua,
.site-main > .ang-grid,
.site-main > .anh-pick {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

/* Breadcrumbs are a full-bleed bar directly under the header. */
.site-main > .an-crumbs {
	width: 100%;
}

/* 2. Undo the theme's global heading treatment (uppercase Lora with forced
   margins) inside plugin subtrees. */
:is(.anh, .anp, .anv, .anc, .anac, .analingua, .ang-grid, .anh-pick, .an-crumbs) :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--an-font-head);
	text-transform: none;
	letter-spacing: normal;
	color: var(--an-text);
}

/* 3. Undo the theme's bare-input styling (100% width, 45px height, bottom
   border only) inside plugin forms; the plugin's own classed rules then
   re-apply cleanly. */
:is(.anc, .anp, .anv, .anac, .analingua) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	width: auto;
	height: auto;
	border: 1px solid var(--an-border);
	border-radius: var(--an-radius-btn);
	background: var(--an-surface);
	font-family: var(--an-font-body);
	font-size: 15px;
	color: var(--an-text);
}

/* 4. Undo the theme's list restyling inside plugin subtrees (game pickers,
   program grids and info lists are laid out by plugin CSS). */
:is(.anh, .anp, .anv, .anac, .analingua, .ang-grid, .anh-pick) :is(ul, ol) {
	margin: 0;
	padding: 0;
}

/* 5. The fixed-header offset: theme-4eck pads <main> for its own sticky
   header; the plugin's hero sections bring their own spacing. Keep the
   theme's value — but if doubling ever shows up during verification, this is
   the knob. (Intentionally empty for now.) */
