/* HOME top band, three columns (theme "right column stack: QR first, then actions, then helper boxes", DESIGN_STANDARD.md):
   top band = the tagline with the QR box at its right end (own row); left = the 27 years seal and the XAG logo, stacked; centre = ONE vertical icon list (Where can XAG help?, then Why XAG);
   right = one stack of equal-width boxes with 16px gaps: Enter Your Class (purple button), Start here, Start the Conversation.
   Tablet: logos row, list, stack. Phone: one column. Glass cards: shared tokens only. */
#page-home .home-top{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr) minmax(250px,320px);grid-template-rows:auto auto auto auto minmax(0,1fr) auto;column-gap:24px;row-gap:16px;align-items:start;margin:0}
/* ONE shared grid (rule: frame similar content in boxes; align tops and bottoms of adjacent columns): the middle column's parts are grid items (display:contents) so the
   right stack spans the list row and the button row: its top = the top of the first list box, its bottom = the bottom of the Explore learning button. */
#page-home .home-top-mid,#page-home #homeAudience[data-xat-ready],#page-home .home-top .xat,#page-home .home-top .xat-panel{display:contents}
/* row 1 = the top band: tagline (columns 1-2, centred) with the QR box at the right end (column 3, same edges as the right column); rows 2-5 = heading, tabs, rows list (1fr: grows so the button sits right under the last row), button */
#page-home .home-hero{grid-column:1/3;grid-row:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;text-align:center}
#page-home .home-hero h1{margin-block:0}
/* row 2 = the picture set (x-home), directly under the title block, across all three columns */
#page-home .home-top>.xs-band{grid-column:1/-1;grid-row:2;margin:0!important;width:100%!important}
#page-home .home-qr{grid-column:3;grid-row:1;align-self:center;width:100%;margin:0}
#page-home .home-top-mid>h2{grid-column:2;grid-row:3}
#page-home .home-top .xat-tabs{grid-column:2;grid-row:4}
#page-home .home-top .xat-list{grid-column:2;grid-row:5;align-self:stretch;grid-auto-rows:1fr}
#page-home .home-top .xat-cta{grid-column:2;grid-row:6;align-self:end}
#page-home #homeAudience:not([data-xat-ready]){grid-column:2;grid-row:4/7;display:flex;flex-direction:column;gap:16px;min-width:0}
#page-home .home-top-left{grid-column:1;grid-row:3/7;display:flex;justify-content:flex-start;align-items:flex-start;padding-top:8px}
#page-home .home-top-left .xag-logo-pair{flex-direction:column;align-items:flex-start;gap:12px}
#page-home .home-top-left .xag-seal27{margin:0}
/* centre: the list */
#page-home .home-top-mid>h2{font-size:1.3rem;line-height:1.3;margin:0;text-align:left}
#page-home .home-top-mid>h2.home-list-h2{margin-top:8px}
#page-home .home-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
#page-home .home-list-item{display:flex;align-items:center;gap:16px;padding:12px 16px;color:inherit;text-decoration:none;box-sizing:border-box}
#page-home .home-list-ico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:1.5rem;line-height:1}
#page-home .home-list-text{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left}
#page-home .home-list-text strong{font-weight:700;line-height:1.3}
#page-home .home-list-text span{font-size:.92rem;line-height:1.4;opacity:.9}
#page-home .home-list-compact .home-list-item{padding-block:8px}
#page-home .home-list-compact .home-list-ico{width:32px;height:32px;font-size:1.2rem}
#page-home a.home-list-item:hover{border-color:var(--xag-c-accent)}
#page-home a.home-list-item:focus-visible{outline:3px solid var(--xag-c-seal-3);outline-offset:2px}
/* right: one stack, same width and left edge */
#page-home .home-top-right{grid-column:3;grid-row:3/7;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:16px;align-items:stretch;min-width:0}
#page-home #xagGuide:empty{display:none}
#page-home .home-top-right>*{margin:0!important;width:100%;max-width:none!important;box-sizing:border-box}
#page-home .home-top-right .home-cta-stack{display:flex;flex-direction:column;gap:0;padding:0}
#page-home .home-top-right .home-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;box-sizing:border-box}
#page-home .home-top-right .xag-footer-cta,#page-home .home-top-right #xagGuide .xg-card,#page-home .home-qr,#page-home .home-list-item{background:var(--xag-glass-fill,rgba(255,255,255,.12));border:1px solid rgba(125,211,252,.28);border-radius:12px;padding:16px;box-sizing:border-box}
#page-home .home-list-item{padding:12px 28px;border-radius:var(--xag-btn-radius,999px)}
#page-home .home-list-compact .home-list-item{padding-block:8px}
#page-home .home-top-right .xag-footer-cta{display:flex;flex-direction:column;gap:12px;text-align:left}
#page-home .home-top-right .xag-footer-cta h2{font-size:1rem;margin:0}
#page-home .home-top-right .xag-footer-cta p{margin:0}
#page-home .home-top-right .xag-cta-row{display:block}
#page-home .home-top-right .xag-cta-row .home-cta{white-space:normal;padding-inline:12px}
#page-home .home-top-right #xagGuide{text-align:left}
#page-home .home-top-right #xagGuide .xg-card{max-width:none;margin:0}
#page-home .home-qr{display:flex;align-items:center;gap:12px;color:inherit;box-sizing:border-box}
#page-home .home-qr .ft-qr-img{width:72px;height:72px;flex:none}
#page-home .home-qr .home-qr-cap{font-size:.9rem;line-height:1.35}
@media(max-width:1000px){
  #page-home .home-top{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  #page-home .home-hero,#page-home .home-top>.xs-band,#page-home .home-qr,#page-home .home-top-left,#page-home .home-top-mid>h2,#page-home .home-top .xat-tabs,#page-home .home-top .xat-list,#page-home .home-top .xat-cta,#page-home #homeAudience:not([data-xat-ready]),#page-home .home-top-right{grid-column:1;grid-row:auto}
  #page-home .home-top-left{justify-content:center}
  #page-home .home-top-left .xag-logo-pair{flex-direction:row;align-items:center}
  #page-home .home-top-right,#page-home .home-qr{width:min(100%,520px);margin-inline:auto}
}
