/*
 * MASTER ASSET REVISION r6 | Prepared 2026-10-20 (Australia/Sydney)
 * Complete replacement for master_css_overrides.css.
 * Contains UTS-CSS-001 r5 unchanged and UTS-CSS-002 r1.
 * Retained r5 comments describe its original preparation/test state. Current
 * application and publication events are in changes/UTS-CSS-001.md and
 * changes/UTS-CSS-002.md. UTS-CSS-002 supersedes the old instruction to retain
 * standalone GSU links: remove those links during the manual consolidation,
 * preserving other CSS Content entries and the GSU media file for rollback.
 */

/*
 * BEGIN UTS-CSS-001 | r5 | Legacy introduction presentation
 * Prepared/updated: 2026-10-20 (Australia/Sydney)
 * Purpose: Match the current PROD introduction typography and spacing without
 *   changing legacy page HTML.
 * Intended scope: StandardPage and StandardTwoColumnPage only. The master
 *   loads sitewide from Home; exact body data-pagetype values gate every rule.
 * CMS media path: Media > For All Sites > css > master_css_overrides.css.
 * Selector targets: The two allowed body types, followed by .block-introduction
 *   > p.title__sans--xs.text-indent-left-large.text-indent-right-large.
 * Source/dependency evidence: references/2026-10-20/UTS-CSS-001/
 *   20261020T092800+1100-r5-prod-source-01/manifest.json and
 *   20261020T092800+1100-r5-uat-source-01/manifest.json.
 * Required ordering: Home Styles > CSS Content must link this file after the
 *   primary UTS stylesheets. Preserve existing section override links.
 * Tested status: Exact-byte supplemental results are recorded under
 *   testing/UTS-CSS-001/20261020T093000+1100-r5-prod-preview-01/ and
 *   testing/UTS-CSS-001/20261020T093000+1100-r5-uat-preview-01/.
 *   Manual upload, CMS-loaded UAT acceptance and PROD deployment: not performed.
 * Known conflicts/limitations: CSS preserves the legacy paragraph DOM. UAT's
 *   comparison page still uses legacy markup; PROD is the current-style control.
 *   StandardPage positive gating uses a controlled body-type probe because the
 *   sampled real StandardPage has no matching legacy intro. Final loader,
 *   inheritance and actual 200% browser zoom checks follow manual upload.
 * Rollback reference: candidates/UTS-CSS-001/ROLLBACK.md.
 */
body[data-pagetype="StandardPage"] .block-introduction >
  p.title__sans--xs.text-indent-left-large.text-indent-right-large,
body[data-pagetype="StandardTwoColumnPage"] .block-introduction >
  p.title__sans--xs.text-indent-left-large.text-indent-right-large {
  font-family: "Tiempos Headline", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
  margin-bottom: 2rem;
  padding-inline-start: 0;
  padding-inline-end: 0;
}

@media (min-width: 834px) {
  body[data-pagetype="StandardPage"] .block-introduction >
    p.title__sans--xs.text-indent-left-large.text-indent-right-large,
  body[data-pagetype="StandardTwoColumnPage"] .block-introduction >
    p.title__sans--xs.text-indent-left-large.text-indent-right-large {
    font-size: 2.375rem;
  }
}

@container (min-width: 1280px) {
  @media (min-width: 744px) {
    body[data-pagetype="StandardPage"] .block-introduction >
      p.title__sans--xs.text-indent-left-large.text-indent-right-large,
    body[data-pagetype="StandardTwoColumnPage"] .block-introduction >
      p.title__sans--xs.text-indent-left-large.text-indent-right-large {
      padding-inline-end: 12.5vw;
    }
  }

  @media (min-width: 1280px) {
    body[data-pagetype="StandardPage"] .block-introduction >
      p.title__sans--xs.text-indent-left-large.text-indent-right-large,
    body[data-pagetype="StandardTwoColumnPage"] .block-introduction >
      p.title__sans--xs.text-indent-left-large.text-indent-right-large {
      padding-inline-end: 8.3vw;
    }
  }
}
/* END UTS-CSS-001 */

/*
 * BEGIN UTS-CSS-002 | r1 | Governance-scoped GSU consolidation
 * Prepared/updated: 2026-10-20 (Australia/Sydney)
 * Purpose: Consolidate all existing GSU table/list declarations into the master.
 * Intended scope: Canonical Governance root and descendants only, in PROD/UAT.
 *   The exact root or slash-boundary prefix must match one canonical head link.
 * Selector targets: Existing GSU WYSIWYG table/list/cell and accordion selectors;
 *   the version marker is scoped on :root. :where() adds zero specificity.
 * Source/dependency evidence: references/2026-10-20/UTS-CSS-002/
 *   20261020T122400+1100-asset-baselines-01/, 20261020T122400+1100-uat-source-01/,
 *   20261020T122400+1100-prod-source-01/ and 20261020T122700+1100-academic-source-01/.
 * Required ordering: Master after primary CSS, before later page-specific CSS.
 *   Retire standalone GSU links after replacement; preserve unrelated CMS content.
 * Tested status: Exact candidate regression results are recorded under
 *   testing/UTS-CSS-002/20261020T123000+1100-r1-regression-01/RESULTS.md.
 *   CMS-loaded acceptance of this consolidated revision is not yet performed.
 * Known conflicts/limitations: Scope depends on correct canonical metadata and
 *   :has() support. Outside Governance, former GSU presentation is intentionally
 *   removed. Metadata-only paths/aliases follow the canonical URL, not location.
 * Rollback reference: candidates/UTS-CSS-002/ROLLBACK.md.
 * GSU source: /css/gsu_css_overrides.css v1.0 (2026-08-31), SHA-256
 *   0a646e77659464383c328bb1d2144824a3995b4ae17b1e1fbf3d3a8e4959d19b.
 */

/* Retain the source version marker only within the Governance scope. */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))):root {
  --uts-gsu-css-overrides-version: "1.0-20260831";
}

/* Add space around tables and remove fixed, equal-width column layout. */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output table {
  margin-block: 2em;
  table-layout: auto;
}

/*
 * Remove redundant table spacing when the table is the first, last or
 * only element in accordion WYSIWYG content.
 * Replace with margin-trim when it has suitable baseline browser support.
 */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .accordion__content .wysiwyg-user-content-output table:first-child {
  margin-block-start: 0;
}

:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .accordion__content .wysiwyg-user-content-output table:last-child {
  margin-block-end: 0;
}

:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .accordion__content .wysiwyg-user-content-output table:only-child {
  margin-block: 0;
}

/* Improve table-cell spacing and align content to the top of each cell. */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output table td {
  padding-block: 1em;
  vertical-align: top;
}

/* Use lower-alpha markers for ordered lists in WYSIWYG content. */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output ol {
  list-style-type: lower-alpha;
}

/* Remove the default inline-start padding from unordered lists in table cells. */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output table td ul {
  padding-inline-start: 0;
}

/*
 * Remove external margins from the first and last direct child elements
 * inside a table cell. The child combinator prevents nested content from
 * being changed unintentionally.
 * Replace with margin-trim when it has suitable baseline browser support.
 */
:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output table td > :first-child {
  margin-block-start: 0;
}

:where(:root:has(> head > link[rel~="canonical"]:is(
  [href="https://www.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://www.uts.edu.au/about/leadership-governance/governance/"],
  [href="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance"],
  [href^="https://optimizely.uat.uts.edu.au/about/leadership-governance/governance/"]
))) .wysiwyg-user-content-output table td > :last-child {
  margin-block-end: 0;
}
/* END UTS-CSS-002 */
