/* Avenues — package cards, treatment pricing and the /pricing/ page.
   Loaded after avenues-templates.css. Owns every `.pkg*` rule (the old "packages" block
   was moved here in one cut, nothing left behind in avenues-templates.css), plus the
   treatment family nav, trust bar, hero price rail and the price tables.
   NB: CSS comments do not nest — an inner "slash-star" here silently ends this comment
   and the parser then swallows the next rule (it ate --pkg-gap, so every package gap
   collapsed to 0 and the row CTA sat flush against the cards).

   Modelled on avenues.life/fairivf/: roomy full-width bands, one big price, inclusions in
   three columns on desktop, eligibility read straight off the page. Brand colours only —
   Sun #FCD841, Green Lotus #618465, deep green #3D5641, Ember #F66C5E, white, dark grey;
   price text #B32D1E for AA contrast. No pastel fills. */

.av-tpl{--pkg-gap:clamp(12px,1.4vw,18px)}

/* ---------------------------------------------------------------- family nav
   The Fair-family bar under the header: parent + siblings, current one marked. */
.av-tpl .fam-nav{background:var(--brand-white);border-bottom:1px solid var(--grey-100)}
.av-tpl .fam-nav .wrap{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-block:0}
.av-tpl .fam-nav .wrap::-webkit-scrollbar{display:none}
.av-tpl .fam-nav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:48px;padding:10px 16px;font-size:.95rem;font-weight:500;color:var(--grey-700);text-decoration:none;border-bottom:3px solid transparent;white-space:nowrap}
.av-tpl .fam-nav a:hover{color:var(--green-600)}
.av-tpl .fam-nav a[aria-current="page"]{color:var(--green-600);font-weight:600;border-bottom-color:var(--brand-sun)}
.av-tpl .fam-nav a:focus-visible{outline:3px solid var(--green-600);outline-offset:-3px}

/* ---------------------------------------------------------------- trust bar */
.av-tpl .trust-bar{background:var(--green-600);color:var(--brand-white)}
.av-tpl .trust-bar .wrap{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 36px;padding-block:14px}
.av-tpl .trust-bar li{display:flex;align-items:center;gap:9px;font-size:.95rem;font-weight:500;letter-spacing:.01em}
.av-tpl .trust-bar ul{display:contents;list-style:none;margin:0;padding:0}
.av-tpl .trust-bar .tick{flex:0 0 auto;width:18px;height:18px;border-radius:50%;background:var(--brand-sun);display:grid;place-items:center}
.av-tpl .trust-bar .tick::before{content:"";width:6px;height:10px;border:2px solid var(--green-600);border-top:0;border-left:0;transform:rotate(42deg) translate(-1px,-1px)}
.av-tpl .trust-bar img{width:20px;height:20px;object-fit:contain}

/* ---------------------------------------------------- hero price rail (live: "For Only
   £4,749 | With optional coaching £5,349" beside the buttons, metrics underneath) */
.av-tpl .pkg-hero h1{font-size:clamp(1.7rem,2.6vw,2.25rem);letter-spacing:-.015em;text-wrap:pretty}
.av-tpl .pkg-hero .lead{font-size:var(--fs-lead,.875rem);max-width:48ch}
@media(min-width:900px){.av-tpl .pkg-hero .wrap{grid-template-columns:1.05fr .95fr}}

.av-tpl .hero-rail{display:flex;flex-wrap:wrap;gap:14px 32px;margin:22px 0 24px}
.av-tpl .hero-rail .rail-price{display:grid;gap:2px}
.av-tpl .hero-rail .rail-price + .rail-price{padding-left:32px;border-left:2px solid var(--brand-sun)}
.av-tpl .hero-rail .cap{font-size:.8125rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--grey-600)}
.av-tpl .hero-rail .amount{font-family:var(--font-display);font-size:clamp(2.1rem,4.6vw,3rem);font-weight:700;line-height:1;color:var(--price-text);font-variant-numeric:tabular-nums}
.av-tpl .hero-rail .pkg-discount{align-self:end}

.av-tpl .hero-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0 0 22px;max-width:620px}
.av-tpl .hero-metrics div{background:var(--brand-white);border:1px solid var(--grey-100);border-left:4px solid var(--brand-green);border-radius:var(--radius-sm);padding:12px 14px;box-shadow:var(--shadow-xs)}
.av-tpl .hero-metrics dt{font-size:.78rem;color:var(--grey-600);line-height:1.35}
.av-tpl .hero-metrics dd{margin:2px 0 0;font-family:var(--font-display);font-weight:700;font-size:1.45rem;color:var(--green-600);line-height:1.1}
.av-tpl .hero-note{font-size:.85rem;color:var(--grey-600);margin-top:-8px;max-width:56ch}

/* ------------------------------------------------------------ section headings
   Live centres the band headings; keep the left-aligned variant for split layouts. */
.av-tpl .section-head.centred{margin-inline:auto;text-align:center;max-width:68ch}
.av-tpl .section-head.centred h2{color:var(--green-600)}
.av-tpl .brand-sun .section-head.centred h2{color:var(--green-600)}
.av-tpl .brand-green .section-head.centred h2{color:var(--brand-white)}

/* ------------------------------------------------------------ package cards */
.av-tpl .pkgs{align-items:stretch}
/* Hub pages render a card at a time: each card and its "what's included" drawer share one
   grid cell, so the drawer stays under its own card instead of claiming a column. */
.av-tpl .pkg-cell{display:flex;flex-direction:column;min-width:0}
.av-tpl .pkg-cell > .pkg-row{flex:1}
.av-tpl .pkg-cell > .pkg-drawer{margin-top:12px;padding-top:12px}
.av-tpl .pkg-row{display:grid;gap:var(--pkg-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.av-tpl .pkg-row.cols-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
/* Five or more packages: three per row on a wide screen (two rows), never six squeezed into one. */
.av-tpl .pkg-row.cols-many{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
@media(min-width:900px){.av-tpl .pkg-row.cols-many{grid-template-columns:repeat(3,minmax(0,1fr))}}

.av-tpl .pkg{position:relative;display:flex;flex-direction:column;gap:10px;background:var(--brand-white);border:1px solid var(--grey-100);border-radius:var(--radius-lg);padding:26px 24px;box-shadow:var(--shadow-sm)}
.av-tpl .brand-sun .pkg,.av-tpl .tint .pkg{border-color:transparent;box-shadow:var(--shadow-md)}
.av-tpl .pkg h3{font-size:1.3rem;line-height:1.2}
.av-tpl .pkg-badge{align-self:flex-start;background:var(--brand-ember);color:var(--grey-900);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-radius:var(--radius-pill);padding:5px 13px}
.av-tpl .pkg-sub{color:var(--grey-600);font-size:var(--fs-body,.875rem)}
.av-tpl .pkg-prices{display:grid;gap:10px;margin-top:2px}
.av-tpl .pkg-price{display:grid;gap:1px}
.av-tpl .pkg-price .amount{font-family:var(--font-display);font-size:2.35rem;font-weight:700;line-height:1;color:var(--price-text);font-variant-numeric:tabular-nums}
.av-tpl .pkg-price .cap{font-size:.82rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey-600)}
.av-tpl .pkg-discount{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--grey-900);background:var(--brand-sun);border-radius:var(--radius-pill);padding:4px 12px;justify-self:start}
.av-tpl .pkg-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px;margin:2px 0 0}
.av-tpl .pkg-metrics div{border-left:3px solid var(--brand-sun);padding-left:11px}
.av-tpl .pkg-metrics dt{font-size:.75rem;color:var(--grey-600);line-height:1.35}
.av-tpl .pkg-metrics dd{margin:1px 0 0;font-family:var(--font-display);font-weight:700;font-size:1.2rem;color:var(--green-600)}
.av-tpl .pkg .btn{margin-top:auto;align-self:flex-start}
.av-tpl .pkg-cardlink{color:var(--green-600);font-weight:600;text-decoration:none;margin-top:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px}
.av-tpl .pkg-cardlink::after{content:"→"}
.av-tpl .pkg-cardlink:hover{text-decoration:underline}

/* tick lists (inclusions) */
.av-tpl .pkg-list{margin:0;padding-left:0;list-style:none;display:grid;gap:9px}
.av-tpl .pkg-list li{padding-left:28px;position:relative;font-size:var(--fs-body,.875rem);line-height:1.5}
.av-tpl .pkg-list li::before{content:"";position:absolute;left:0;top:.22em;width:18px;height:18px;border-radius:50%;background:var(--brand-sun)}
.av-tpl .pkg-list li::after{content:"";position:absolute;left:6.4px;top:.48em;width:5px;height:9px;border:2px solid var(--green-600);border-top:0;border-left:0;transform:rotate(42deg)}
.av-tpl .pkg-list.tight li{font-size:var(--fs-body,.875rem)}

/* the single-package "feature" card: price rail beside the inclusion columns */
.av-tpl .pkg-feature{display:grid;gap:var(--pkg-gap);background:var(--brand-white);border-radius:var(--radius-xl);padding:clamp(22px,3vw,38px);box-shadow:var(--shadow-md)}
@media(min-width:900px){.av-tpl .pkg-feature{grid-template-columns:minmax(240px,.8fr) 2.2fr;gap:clamp(28px,4vw,56px);align-items:start}}
.av-tpl .pkg-feature .pkg-rail{display:grid;gap:14px;align-content:start}
.av-tpl .pkg-feature .pkg-rail h3{font-size:1.5rem}

/* inclusion columns: Clinical Care / AI-Powered Embryology / Support, side by side */
.av-tpl .inc-cols{display:grid;gap:var(--pkg-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:start}
.av-tpl .inc-cols.carded{align-items:stretch}
.av-tpl .inc-col{display:grid;gap:14px;align-content:start}
.av-tpl .inc-cols.carded .inc-col{background:var(--brand-white);border-radius:var(--radius-lg);padding:26px 24px;box-shadow:var(--shadow-md)}
.av-tpl .inc-col h3,.av-tpl .inc-col h4{font-size:1.05rem;font-family:var(--font-display);font-weight:600;color:var(--green-600);letter-spacing:.01em;text-transform:none;margin:0}
.av-tpl .inc-col .inc-mark{width:38px;height:38px;border-radius:50%;background:var(--brand-sun);display:grid;place-items:center;font-family:var(--font-display);font-weight:700;color:var(--green-600);font-size:1rem}

/* fine print: exclusions, eligibility note, refund — once per group, readable */
.av-tpl .pkg-fine{display:grid;gap:var(--pkg-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));margin-top:var(--pkg-gap)}
.av-tpl .pkg-fine > div{background:var(--brand-white);border:1px solid var(--grey-100);border-left:4px solid var(--brand-ember);border-radius:var(--radius-md);padding:20px 22px}
.av-tpl .pkg-fine h3{font-size:.9rem;letter-spacing:.09em;text-transform:uppercase;color:var(--grey-900);margin-bottom:10px}
.av-tpl .pkg-fine p{font-size:.8125rem;color:var(--grey-700)}
.av-tpl .pkg-fine ul{margin:0;padding-left:20px;display:grid;gap:6px;font-size:.8125rem;color:var(--grey-700)}
.av-tpl .pkg-fine .refund{border-left-color:var(--brand-green)}

/* the collapsible used on /pricing/ only (live puts "more info" behind a toggle there) */
.av-tpl .pkg-drawer{margin-top:var(--pkg-gap);border-top:1px solid var(--grey-100);padding-top:18px}
.av-tpl .pkg-drawer > summary{cursor:pointer;display:inline-flex;align-items:center;gap:10px;min-height:44px;font-family:var(--font-display);font-weight:600;font-size:1rem;color:var(--green-600);list-style:none}
.av-tpl .pkg-drawer > summary::-webkit-details-marker{display:none}
.av-tpl .pkg-drawer > summary::after{content:"+";font-size:1.15rem;line-height:1}
.av-tpl .pkg-drawer[open] > summary::after{content:"–"}
.av-tpl .pkg-drawer > summary:focus-visible{outline:3px solid var(--green-600);outline-offset:3px}
.av-tpl .pkg-drawer .inc-cols{margin-top:20px}

/* "Also in this package" deltas when a group's packages include different things */
.av-tpl .inc-extra{display:grid;gap:14px;margin-top:var(--pkg-gap)}
.av-tpl .inc-extra h4{font-family:var(--font-display);font-size:1.05rem;font-weight:600;color:var(--green-600);letter-spacing:0;text-transform:none}
.av-tpl .inc-extra + .pkg-fine,.av-tpl .inc-cols + .pkg-fine{margin-top:var(--pkg-gap)}

/* ------------------------------------------------ who it's for / eligibility split */
.av-tpl .elig-split{display:grid;gap:clamp(24px,4vw,56px);align-items:center}
@media(min-width:900px){.av-tpl .elig-split.has-img{grid-template-columns:1.05fr .95fr}}
.av-tpl .elig-img{border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-lg)}
.av-tpl .elig-img img{width:100%;height:100%;object-fit:cover}
.av-tpl .elig-list{margin:0;padding-left:0;list-style:none;display:grid;gap:10px}
.av-tpl .elig-split:not(.has-img) .elig-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px 24px}
/* A pill radius only reads as a pill on one line; on three it became an oval. These are cards. */
.av-tpl .elig-list li{position:relative;background:var(--brand-white);border:1px solid var(--grey-100);border-radius:var(--radius-md);padding:16px 20px 16px 48px;font-size:.98rem;line-height:1.5;color:var(--grey-900);box-shadow:var(--shadow-xs)}
.av-tpl .elig-list li::before{content:"\2713";position:absolute;left:18px;top:14px;font-weight:700;font-size:1rem;line-height:1.6;color:var(--green-600)}
.av-tpl .elig-list li strong{font-weight:600}
.av-tpl .elig-note{font-size:.88rem;color:var(--grey-600);margin-top:18px;max-width:72ch}
/* a plain WYSIWYG "who is it for" gets the same pill treatment */
.av-tpl .elig-prose ul{margin:0;padding-left:0;list-style:none;display:grid;gap:10px}
@media(min-width:760px){.av-tpl .elig-split:not(.has-img) .elig-prose ul{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px 24px}}
.av-tpl .elig-prose li{position:relative;background:var(--brand-white);border:1px solid var(--grey-100);border-radius:var(--radius-md);padding:16px 20px 16px 48px;font-size:.98rem;line-height:1.5;color:var(--grey-900);box-shadow:var(--shadow-xs)}
.av-tpl .elig-prose li::before{content:"\2713";position:absolute;left:18px;top:14px;font-weight:700;font-size:1rem;line-height:1.6;color:var(--green-600)}
.av-tpl .elig-prose p{margin-bottom:14px}

/* ------------------------------------------------------------- stats + tables */
.av-tpl .stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-lg);padding:24px;display:grid;gap:6px}
.av-tpl .stat-value{font-family:var(--font-display);font-size:clamp(2.2rem,4vw,2.8rem);font-weight:700;color:var(--brand-sun);line-height:1}
.av-tpl .stat-type{font-weight:600;color:var(--brand-white);font-size:.98rem}

.av-tpl .table-scroll{overflow-x:auto;border:1px solid var(--grey-100);border-radius:var(--radius-md);background:var(--brand-white)}
.av-tpl .tbl td.us{font-weight:700;color:var(--green-600)}

/* price lists: two columns of compact rows on desktop, like live's /pricing/ */
.av-tpl .price-grid{column-gap:clamp(28px,4vw,56px)}
@media(min-width:900px){.av-tpl .price-grid{column-count:2}}
.av-tpl .price-list{margin:0 0 clamp(24px,3vw,36px);break-inside:avoid;-webkit-column-break-inside:avoid}
.av-tpl .price-list h2{font-size:clamp(1.25rem,2.4vw,1.6rem);color:var(--green-600);margin-bottom:10px}
.av-tpl .price-list .table-scroll{border:0;border-radius:0;overflow:visible;background:transparent}
.av-tpl .price-list .tbl{min-width:0;font-size:.95rem}
.av-tpl .price-list .tbl th,.av-tpl .price-list .tbl td{padding:9px 0;border-bottom:1px solid var(--grey-100);vertical-align:baseline}
.av-tpl .price-list .tbl th{font-family:var(--font-body);font-weight:500;color:var(--grey-900);padding-right:16px}
.av-tpl .price-list .tbl td.us{text-align:right;white-space:nowrap;color:var(--price-text);font-family:var(--font-display);font-weight:700;font-size:1.05rem}
.av-tpl .line-note{display:block;font-size:.82rem;font-weight:400;color:var(--grey-600);margin-top:3px;line-height:1.45}

/* ------------------------------------------------------------------- phones */
@media(max-width:759px){
	.av-tpl .pkg-row,.av-tpl .inc-cols,.av-tpl .pkg-fine{grid-template-columns:1fr}
	.av-tpl .hero-rail .rail-price + .rail-price{padding-left:20px}
	.av-tpl .pkg-feature{padding:22px 18px}
}
.av-tpl .pkg-row,.av-tpl .inc-cols,.av-tpl .pkg-fine,.av-tpl .price-grid,.av-tpl .hero-metrics{min-width:0}
.av-tpl .pkg,.av-tpl .inc-col,.av-tpl .pkg-fine > div{min-width:0;overflow-wrap:anywhere}

/* ------------------------------------------------------- carried-over sections */
.av-tpl .prose.mid{max-width:70ch;margin-inline:auto}
.av-tpl .block.slim{padding-block:clamp(20px,3vw,32px)}
.av-tpl .block.slim .section-head{margin-bottom:0}
.av-tpl .block.slim .section-head h2{font-size:clamp(1.25rem,2.6vw,1.7rem);margin-bottom:0}
.av-tpl .section-head.centred{margin-bottom:clamp(26px,3.2vw,40px)}

/* Imported page content (the old pricing page) carries full-width band wrappers and
   full-size images; inside a prose column they only add height. */
.av-tpl .prose .wp-block-group{padding-block:0;margin-block:0}
.av-tpl .prose .alignfull,.av-tpl .prose .alignwide{width:auto;max-width:100%;margin-inline:0}
.av-tpl .prose figure{margin:20px 0}
.av-tpl .prose figure img{width:100%;max-height:320px;object-fit:cover;border-radius:var(--radius-lg)}
.av-tpl .section-head.centred .prose p{margin-bottom:0;font-size:var(--fs-body,.875rem);color:var(--grey-600)}
.av-tpl .price-list .list-lead p{font-size:.85rem;color:var(--grey-600);margin-bottom:10px}
.av-tpl .prose figure img{max-height:260px}
.av-tpl .pkg-row-note{text-align:center;color:var(--grey-600);margin:-8px 0 20px}
.av-tpl .pkg-row-cta{display:flex;justify-content:center;margin:var(--pkg-gap) 0 0}
.av-tpl .pkg-row.cols-many .btn{font-size:.85rem;padding:10px 14px;width:100%;white-space:normal}

/* brand icons from the theme's icon set (trust bar + inclusion-card groups) */
.av-tpl .trust-bar .bar-icon{flex:0 0 auto;width:22px;height:22px;color:var(--brand-sun);display:grid;place-items:center}
.av-tpl .trust-bar .bar-icon svg{width:22px;height:22px}
.av-tpl .inc-col .inc-mark.has-icon{color:var(--green-600)}
.av-tpl .inc-col .inc-mark.has-icon svg{width:22px;height:22px}
/* A lone inclusions list: spread it across the row instead of running down one side.
   .pkg-list is display:grid, so CSS multi-column has no effect on it — it reports a column
   count and changes nothing. Use grid tracks, which is what the element actually honours. */
@media (min-width:760px){
	.av-tpl .inc-cols.single{grid-template-columns:1fr}
	/* auto-fit, not a fixed count. Forcing three columns made /pricing/ 729px TALLER: its
	   items are long phrases, so narrow columns wrapped to three lines each and every grid row
	   grew to match. Let a column form only where one genuinely fits. */
	.av-tpl .inc-cols.single .pkg-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));column-gap:var(--pkg-gap)}
}


/* ---- Treatment hero: bigger image, product logo, chosen background ------------------
   Modelled on the old Fair pages: the photo takes about half the hero and is square, a
   product logo can sit above the heading, and each page can carry its own colour, either
   solid or fading from the text side into it. */
.av-tpl .pkg-hero .hero-img{aspect-ratio:1/1;max-height:560px;width:100%;box-shadow:var(--shadow-lg);border-radius:var(--radius-xl)}
@media(max-width:899px){.av-tpl .pkg-hero .hero-img{aspect-ratio:4/3;max-height:none}}
.av-tpl .pkg-hero .hero-img.is-original{aspect-ratio:auto;max-height:none}
.av-tpl .pkg-hero .hero-img.is-original img{height:auto;object-fit:contain}
.av-tpl .pkg-hero .hero-logo{margin:0 0 26px}
.av-tpl .pkg-hero .hero-logo img{display:block;width:auto;height:auto;max-width:100%}
.av-tpl .pkg-hero .hero-logo.size-small img{max-height:56px}
.av-tpl .pkg-hero .hero-logo.size-medium img{max-height:96px}
.av-tpl .pkg-hero .hero-logo.size-large img{max-height:136px}
.av-tpl .pkg-hero.has-bg.bg-solid{background:var(--hero-bg)}
.av-tpl .pkg-hero.has-bg.bg-fade{background:linear-gradient(90deg,var(--hero-from) 0%,var(--hero-from) 18%,var(--hero-bg) 82%)}
@media(max-width:899px){.av-tpl .pkg-hero.has-bg.bg-fade{background:linear-gradient(180deg,var(--hero-from) 0%,var(--hero-from) 45%,var(--hero-bg) 100%)}}
.av-tpl .pkg-hero.is-dark,.av-tpl .pkg-hero.is-dark h1,.av-tpl .pkg-hero.is-dark .lead,.av-tpl .pkg-hero.is-dark .hero-subhead,.av-tpl .pkg-hero.is-dark .eyebrow{color:#FFFFFF}
.av-tpl .pkg-hero.is-dark .hero-rail,.av-tpl .pkg-hero.is-dark .hero-rail *{color:#FFFFFF}
