/* OVERLAP agent — site-wide spacing/overlap parity (Phase 4).
   Owns: this file only. Rules must stay global-rhythm scoped. */

/* 1) D11-only wrapper blocks (page title, system main) add a 10px .block-inner
   gutter that D7 prod never had — shifts the whole content column +10px right
   and narrows it 20px on every page. Neutralize just these two wrappers;
   real D7-equivalent blocks keep their gutters. */
#block-chattstate-page-title > .block-inner,
#block-system-main > .block-inner {
  margin-left: 0;
  margin-right: 0;
}

/* 2) Panels "rounded corners" pane/region style. Prod emits per-display corner
   CSS (e.g. #mini-panel-academics_degrees_divisions ...) which the parity
   capture only holds for #mini-panel-clone_of_scholarships. The markup is
   structural (.rounded-corner/.wrap-corner) and only exists where D7 opted in,
   so generic structural selectors reproduce prod exactly. */
.wrap-corner { background: #fff !important; }
.wrap-corner > .t-edge,
.wrap-corner > .b-edge { height: 11px; font-size: 1px; }
.wrap-corner > .t-edge { background: url(/sites/all/modules/contrib/panels/plugins/styles/corners/shadow-t.png) repeat-x 0 top; }
.wrap-corner > .b-edge { background: url(/sites/all/modules/contrib/panels/plugins/styles/corners/shadow-b.png) repeat-x 0 bottom; }
.wrap-corner .l-edge { background: url(/sites/all/modules/contrib/panels/plugins/styles/corners/shadow-l.png) repeat-y 0 0; }
.wrap-corner .r-edge { background: url(/sites/all/modules/contrib/panels/plugins/styles/corners/shadow-r.png) repeat-y right 0; padding: 5px 24px; }
.wrap-corner .t-edge .l, .wrap-corner .t-edge .r,
.wrap-corner .b-edge .l, .wrap-corner .b-edge .r {
  position: absolute; top: 0; height: 11px; width: 11px;
  background-image: url(/sites/all/modules/contrib/panels/plugins/styles/corners/corner-bits.png);
}
.wrap-corner .t-edge .l, .wrap-corner .b-edge .l { left: 0; }
.wrap-corner .t-edge .r, .wrap-corner .b-edge .r { right: 0; background-position: -11px 0; }
.wrap-corner .b-edge .l { background-position: 0 -11px; }
.wrap-corner .b-edge .r { background-position: -11px -11px; }
.rounded-corner { margin-bottom: 1em; }

/* 3) Views exposed filters: D11 markup emits a stray <br> between the filter
   label and the widget (prod D7 has none) — pushes every exposed form input
   down 24px. */
.views-exposed-widget > br { display: none; }

/* 4) CONTENT-DIVERGENCE SHIM (remove if content re-synced): prod's Academic
   Resources pane ends its last li with "<br>&nbsp;" (an extra 24px line) that
   the D7->D11 body extraction collapsed to a space. Everything below shifts
   up 24px without it. Restore the geometry only on this page/pane. */
.page-academics .region-two-33-66-first .pane-1 .block-content > ul:first-of-type > li:last-child {
  padding-bottom: 24px;
}

/* 4b) Same content-divergence shim, right column of /academics: prod ends the
   "Academic Partnerships" paragraph with "<br />\n " (extra 24px line) that
   extraction collapsed. The p is the only one immediately followed by an h2. */
.page-academics .region-two-33-66-second .pane-custom .block-content p:has(+ h2) {
  padding-bottom: 24px;
}

/* 5) CONVERGE-agent reconciliation (cross-cutting, all pages): the D7->D11
   body extraction of footer block-block-1 dropped the inline style
   ("height:25px;width:135px" etc.) each partner-logo <img> carried on prod.
   Without them the logo strip renders at different sizes/row-height, shifting
   the EEO paragraph + legal links row ~10px on EVERY page (~82k AE/page).
   Restore prod's exact rendered dimensions. Remove if block content re-synced. */
#block-block-1 img[alt="TBR Logo in white"]              { width:135px !important; height:25px !important; }
#block-block-1 img[alt="tn_eCampus logo in white"]       { width:72px  !important; height:27px !important; }
#block-block-1 img[alt="Tennessee Promise logo in white"]{ width:40px  !important; height:31px !important; }
#block-block-1 img[alt="TN Reconnect logo in white"]     { width:55px  !important; height:31px !important; }
#block-block-1 img[alt="TN Transfer Pathway logo in white"]{ width:100px !important; height:24px !important; }

/* 5b) CONVERGE: after restoring logo dimensions, shift-search shows the logo
   row still 2px higher and the EEO/legal rows 6px higher than prod (line-box
   metric difference from the extracted markup). Empirical pad: +2 above the
   logo strip, +4 below it -> footer aligns pixel-exact to prod on all pages. */
#block-block-1 .block-content p { padding-top: 2px; padding-bottom: 4px; }
