/* edur-ui-v5-alignment — LOCAL append-only draft.
 * Load after edur-ui-v5-responsive.css, edur-ui-v5_1-residuals.css and
 * edur-ui-v5_2.css. Evidence: post-v5.1 R2.md / R2_triage.json.
 * States below refer to that baseline, not a rendered test of this draft.
 * Undo all: remove this stylesheet's link. See ALIGN_NOTES.md for dependencies.
 */

/* A01 — R2 ranks 2/4/6; footer contact, 66/44/33 reported states;
 * first states /gitary/@1280x800, /@1024x768, /@1024x768.
 * Identical full-width tracks align the existing icon and text in each row.
 * The address's anonymous text item wraps wholly inside the second track.
 * Safe scope: contact spans only; social links and other footer columns excluded.
 * Undo: remove A01–A05 together. */
html body.template-13 footer#footer .custom-footer__banner1 .contact-box > ul > li > span:is(.address, .mail, .tel) {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  text-align: left;
}

/* A02 — R2 ranks 2/4/6; same footer states as A01.
 * Replace relative inline icon placement with a fixed first grid track;
 * keep the theme's glyph, dimensions and line-height.
 * Undo: remove A01–A05 together. */
html body.template-13 footer#footer .custom-footer__banner1 .contact-box > ul > li > span:is(.address, .mail, .tel)::before {
  position: static;
  grid-column: 1;
  grid-row: 1;
}

/* A03 — R2 ranks 2/4/6; same footer states as A01.
 * Anchor text and its hit target stay in the second track.
 * Undo: remove A01–A05 together. */
html body.template-13 footer#footer .custom-footer__banner1 .contact-box > ul > li > span:is(.mail, .tel) > a {
  grid-column: 2;
  grid-row: 1;
}

/* A04 — R2 ranks 2/4/6; same footer states as A01, IF semantic address
 * lines are supplied as documented in ../r1/CSS_NOTES.md.
 * Only place those lines; v5 B23/B24 already provide block/nowrap semantics.
 * This draft does not manufacture or duplicate address text.
 * Undo: remove A01–A05 together. */
html body.template-13 footer#footer .custom-footer__banner1 .contact-box > ul > li > span.address > .edur-address-line {
  grid-column: 2;
}

/* A05 — R2 ranks 2/4/6; same footer states as A01, wrapped-markup branch.
 * Let the existing icon span both address lines rather than size the street row.
 * Undo: remove A01–A05 together. */
html body.template-13 footer#footer .custom-footer__banner1 .contact-box > ul > li > span.address:has(> .edur-address-line)::before {
  grid-row: 1 / span 2;
}

/* S01 — R2 rank 5; 66 states, first /@1440x900.
 * Use one gap between direct links and centre unequal natural link heights.
 * Forced display is necessary: saved #signature markup sets
 * style="display: inline-block !important". Preserve inline participation.
 * Undo: remove S01–S03 together. */
html body.template-13 footer#footer #signature {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* S02 — R2 rank 5; same 66 signature states as S01.
 * Replace theme a.image margin-right:1ex with the parent gap; centre content
 * inside each link without changing image dimensions or text metrics.
 * Undo: remove S01–S03 together. */
html body.template-13 footer#footer #signature > a:is(.image, .title, .AdatelierSignature) {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* S03 — R2 rank 5; same 66 signature states as S01.
 * Saved Adatelier script writes an inline margin-left:5px. Forced reset
 * prevents adding that margin to the new parent gap.
 * Undo: remove S01–S03 together. */
html body.template-13 footer#footer #signature > a.AdatelierSignature {
  margin-left: 0 !important;
}
