/* Aer Healthcare inner pages. Built on aer.css (the homepage): same tokens, type scale 14/17/20/28/44/72,
   controls 10px, passport cards 14px, photos square. Page heads are a short night band in the navy of the
   logo's faces; the "At a glance" card is a passport data page, like the hero card on the homepage. */

/* page head */
.ph { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 100%, rgba(53,164,226,.2), transparent 60%), radial-gradient(40% 80% at 100% 0%, rgba(35,47,126,.9), transparent 70%); pointer-events: none; }
.ph-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: end; padding-top: 48px; padding-bottom: 64px; }
.ph-in.solo { grid-template-columns: minmax(0, 860px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 20px; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sky-2); }
.crumbs a { color: var(--sky-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .5; }
.ph h1 { color: #fff; font-size: 64px; line-height: 1.02; letter-spacing: -0.022em; font-weight: 780; font-stretch: 82%; text-wrap: balance; }
.ph .lede { max-width: 34em; }
.ph .hero-cta { margin-top: 32px; }
.ph-card { align-self: end; margin-bottom: -2px; }

/* the passport data page: facts at a glance */
.glance { container-type: inline-size; position: relative; padding: 20px 22px 16px; color: var(--ink); border-radius: 14px; transform: rotate(-1.5deg);
  background-color: #fbfdff;
  background-image: repeating-radial-gradient(circle at 0% 100%, rgba(53,164,226,.07) 0 1px, transparent 1px 10px);
  box-shadow: 0 30px 60px rgba(8,12,40,.45), 0 2px 0 rgba(255,255,255,.6) inset; }
.glance-h { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.glance-h img { width: 18px; height: auto; }
.glance-h span { margin-left: auto; color: var(--ink-2); font: 500 12px/1 var(--mono); letter-spacing: .08em; }
.glance dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.glance dt { color: var(--blue); font-size: 12.5px; line-height: 1.2; }
.glance dd { margin: 3px 0 0; color: var(--navy); font-weight: 700; font-size: 15.5px; line-height: 1.25; font-stretch: 90%; }
.glance .wide { grid-column: 1 / -1; }
.glance .wide dd { font-size: 19px; }
.glance .mrz { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: calc(100cqi / 31); }

/* body: one reading column and a side column that stays in view */
.doc { padding: 80px 0 96px; background: #fff; }
.doc-in { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 72px; justify-content: space-between; align-items: start; }
.doc-in.solo { grid-template-columns: minmax(0, 820px); }
.side { position: sticky; top: calc(var(--head) + 32px); display: grid; gap: 24px; }
.side-box { padding: 24px; background: var(--paper); border-radius: 14px; }
.side-box h2 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-stretch: 100%; margin-bottom: 12px; }
.side-box p { font-size: 15px; color: var(--ink-2); }
.side-box .btn { width: 100%; margin-top: 16px; }
.side-box .btn + .btn { margin-top: 10px; }
.toc li { border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 9px 0; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* prose */
.prose > * + * { margin-top: 20px; }
.prose > section + section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 36px; line-height: 1.12; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol { margin-top: 16px; }
.prose h3 { margin-top: 32px; }
.prose h3 + p, .prose h3 + ul, .prose h3 + ol { margin-top: 8px; }
.prose p, .prose li { color: var(--ink); }
.prose .intro { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.prose ul:not([class]) li, .prose ol:not([class]) li { position: relative; padding-left: 28px; margin-top: 8px; }
.prose ul:not([class]) li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.prose ol:not([class]) { counter-reset: n; }
.prose ol:not([class]) li { counter-increment: n; padding-left: 40px; }
.prose ol:not([class]) li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 13px/1 var(--mono); }
.prose .checks { margin-top: 16px; }
.prose .fees { margin-top: 8px; }
.prose figure { margin: 32px 0 0; }
.prose figure img, .prose video { width: 100%; height: auto; border-radius: 0; background: var(--paper); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.prose small, .fine { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.prose table:not(.fees) { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose table:not(.fees) th, .prose table:not(.fees) td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table:not(.fees) th { color: var(--navy); }
.prose dl.terms div { padding: 12px 0; border-top: 1px solid var(--line); }
.prose dl.terms dt { font-weight: 700; color: var(--navy); }
.prose dl.terms dd { margin: 2px 0 0; color: var(--ink-2); }

/* a pair of photos and steps for the device guides */
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.howto figure { margin: 0; }
.howto img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.video { max-width: 360px; }
.video video { aspect-ratio: 9 / 16; }

/* notices */
.note { padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--mist); }
.note p + p { margin-top: 8px; }
.warn { padding: 24px 28px; border: 2px solid var(--st-red); border-radius: 14px; }
.warn h3 { margin-top: 0; color: var(--st-red); font: 600 15px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.warn ul { margin-top: 12px; }

/* link cards: the guides, the tests, the next page */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.cards a { position: relative; display: block; padding: 20px 48px 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cards a:nth-child(odd) { padding-right: 56px; margin-right: 0; }
.cards a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.cards strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.3; font-stretch: 90%; }
.cards span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.cards a::after { content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border: solid var(--blue); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.cards a:hover strong { color: var(--blue); }
.cards.one { grid-template-columns: 1fr; }
.cards.one a:nth-child(even) { padding-left: 0; border-left: 0; }

/* device row on the appliances page */
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 28px; }
.devices li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; padding-top: 20px; border-top: 3px solid var(--navy); }
.devices img { width: 112px; height: 112px; object-fit: contain; background: var(--paper); padding: 10px; }
.devices p { margin: 6px 0 8px; font-size: 15.5px; color: var(--ink-2); }
.devices a { font-weight: 600; font-size: 15px; }

/* Aer Centres lists */
.centre-states { columns: 2; column-gap: 48px; margin-top: 24px; }
.centre-state { break-inside: avoid; margin-bottom: 32px; }
.centre-state h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.centre-state h3 span { margin-left: auto; font: 600 14px/1 var(--mono); color: var(--ink-2); }
.centre-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.centre-list li span { color: var(--ink-2); text-align: right; }
.map-band { padding: 56px 0; background: var(--navy); }
.map-band .centres-map { max-width: 880px; margin: 0 auto; }

/* closing band on every inner page */
.cta-band { padding: 72px 0; background: var(--paper); border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-in h2 { font-size: 36px; }
.cta-in p { margin-top: 8px; color: var(--ink-2); }
.cta-in .hero-cta { margin-top: 0; }

/* the booking calendar */
.embed { width: 100%; min-height: 820px; border: 0; background: var(--paper); }

/* a short page: thank you, not found */
.short { padding: 96px 0 112px; background: #fff; }
.short .prose { max-width: 720px; }

@media (max-width: 1100px) {
  .ph h1 { font-size: 52px; }
  .ph-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .doc-in { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
}
@media (max-width: 960px) {
  .ph-in, .ph-in.solo { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; padding-bottom: 40px; }
  .ph h1 { font-size: 40px; line-height: 1.05; }
  .ph .lede { font-size: 18px; }
  .ph-card { max-width: 380px; margin: 0 4px; }
  .doc { padding: 48px 0 64px; }
  .doc-in { grid-template-columns: 1fr; gap: 48px; }
  .side { position: static; }
  .prose h2 { font-size: 30px; }
  .prose .intro { font-size: 18px; }
  .prose > section + section { margin-top: 48px; padding-top: 40px; }
  .cards { grid-template-columns: 1fr; }
  .cards a:nth-child(even) { padding-left: 0; border-left: 0; }
  .devices { grid-template-columns: 1fr; }
  .devices li { grid-template-columns: 88px 1fr; }
  .devices img { width: 88px; height: 88px; }
  .howto { grid-template-columns: 1fr 1fr; gap: 12px; }
  .centre-states { columns: 1; }
  .cta-band { padding: 56px 0 120px; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-in h2 { font-size: 30px; }
  .short { padding: 56px 0 120px; }
}
.doc-after { padding-top: 0; }
.doc-after h2 { font-size: 28px; }

/* guide photos: product shots stay at a readable size, step photos crop to squares */
.prose figure img { width: auto; max-width: 100%; max-height: 520px; }
.prose .howto img { width: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; }
.ph-img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; margin-left: auto; transform: rotate(1.5deg); box-shadow: 0 30px 60px rgba(8,12,40,.45); }
@media (max-width: 960px) { .ph-img { max-width: 220px; margin: 0; } }
.prose section > * + * { margin-top: 16px; }
.prose section > h3 { margin-top: 32px; }
.prose section > h2 + * { margin-top: 16px; }
.prose section > h3 + * { margin-top: 8px; }
