/* Current Paddock r71 desktop and tablet refinements for the home page.
   Loaded after the template stylesheet. Palette, typography and brand artwork are unchanged. */

/* 1. Wider content measure on large desktops (1360px cap left 50% of a 2560px screen empty). */
@media (min-width:1680px){ .ag-wrap{max-width:1520px} }
@media (min-width:2200px){ .ag-wrap{max-width:1720px} }

/* 2. Calmer vertical rhythm: sections were separated by up to 360px of empty space on desktop. */
@media (min-width:1081px){
  .ag-sec{padding-top:clamp(80px,10vh,136px);padding-bottom:clamp(80px,10vh,136px)}
  .ag-tight{padding-top:clamp(40px,6vh,72px)}
}

/* 3. Chapter cards: template presentation kept (photographs uncropped). Taller cards on tall screens. */
@media (min-width:1081px) and (min-height:1200px){ .ag-card{max-height:1040px} }

/* 4. About: portrait and text side by side on desktop (previously stacked into the left half). */
@media (min-width:1081px){
  .ag-root #about .ag-wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(56px,6vw,128px);align-items:center}
  .ag-root #about .ag-wrap>.ag-label{grid-column:1/-1;grid-row:1}
  .ag-root #about .cp-about{grid-column:1;grid-row:2;margin-top:clamp(40px,4vw,64px)}
  .ag-root #about .cp-about-lead{max-width:none}
  .ag-root #about .cp-about img{aspect-ratio:1/1;object-fit:cover}
  .ag-root #about .cp-about-intro{grid-column:2;grid-row:2;max-width:56ch;margin-top:clamp(40px,4vw,64px)}
  .ag-root #about .cp-about-intro .cp-about-name{margin-top:0}
}

/* 5. Formula E film (r72): the new Formula E film (1600x900 desktop, 960x540 phone, from a 1920x1080 source) is shown in its native 16:9 frame, uncropped. */
.ag-root .cp-inline-loop{aspect-ratio:16/9}
@media (min-width:1081px){ .cp-fe{grid-template-columns:minmax(0,4fr) minmax(0,7fr)} }
@media (max-width:680px),(orientation:portrait) and (max-width:1080px){ .cp-fe-media{width:100%} }
@media (min-width:681px) and (max-width:1080px) and (orientation:landscape){ .cp-fe{grid-template-columns:minmax(0,4fr) minmax(0,7fr)} }

/* 6. Race Against Dementia card: tighter frame, the headline and link no longer float in empty space. */
@media (min-width:1081px){ .ag-root .ag-join{min-height:0;grid-template-rows:auto clamp(56px,6vw,96px) auto} }

/* 7. Accessibility: skip link (visible on keyboard focus only) and main landmark focus. */
.cp-skip{position:fixed;left:16px;top:16px;z-index:10000;padding:12px 18px;border-radius:999px;background:#f3f2ef;color:#0b0b0c;font:500 15px/1 AgSans,ui-sans-serif,sans-serif;text-decoration:none;transform:translateY(-200%);transition:transform .2s}
.cp-skip:focus,.cp-skip:focus-visible{transform:none;outline:2px solid #d2b99a;outline-offset:3px}
#main:focus{outline:none}

/* 8. Charity card note (r72): slightly wider measure so the disclaimer sets without a one-word last line. */
.ag-root .ag-join-row p{max-width:440px;text-wrap:pretty}
/* r73 WCAG 1.4.3: chapter tags over photos (tablet/mobile) and city label over the hero film. Same carbon/ivory colours, opacity only. */
@media (max-width:1080px){.ag-root .ag-card-tag{background:rgba(6,6,7,.66)}}
.ag-root .ag-nav .cp-clk-l{color:rgba(243,242,239,.74)}
