/* AA7 site layer: section layout and components used by site-build.ps1.
   Loaded after Porto and porto-adjustments.css. Colours come from the AA7 tokens. */
:root{--aa7-line:#dce2ea;--aa7-text:#4a5568;--aa7-card:#fff;--aa7-radius:14px}
body{color:var(--aa7-text)}
h1,h2,h3,.h5{color:var(--aa7-navy)}

/* Header logo (512x279 source) */
#header .header-logo img.aa7-logo-image{width:auto;height:60px;max-width:none}
.sticky-header-active #header .header-logo img.aa7-logo-image{height:46px;width:auto}
@media(max-width:575px){#header .header-logo img.aa7-logo-image{height:48px}.aa7-header-actions .btn{padding:6px 10px!important}}

/* Sections */
.aa7-section{padding:72px 0;background:#fff}
.aa7-section-alt{background:var(--aa7-paper)}
.aa7-section-tight{padding:32px 0 0}
.aa7-section-head{max-width:820px;margin-bottom:40px}
.aa7-section-head h2{font-size:clamp(1.6rem,2.6vw,2.2rem);line-height:1.25;font-weight:700;margin-bottom:12px;letter-spacing:-.5px}
.aa7-section-lead{font-size:1.05rem;line-height:1.75;margin:0}
.aa7-eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#a37b43;margin-bottom:10px}
.aa7-section p{line-height:1.8}
.aa7-section h3{font-size:1.15rem;font-weight:700;margin-bottom:10px}
@media(max-width:767px){.aa7-section{padding:52px 0}.aa7-section-head{margin-bottom:28px}}

/* Page hero */
.aa7-page-hero.page-header{padding:44px 0 48px;border:0;text-align:left}
.aa7-page-hero .breadcrumb{justify-content:flex-start;margin-bottom:14px;font-size:13px}
.aa7-page-hero .breadcrumb > li + li:before{content:"/";padding:0 8px;color:#9aa5b5}
.aa7-page-hero h1{font-size:clamp(1.8rem,3.4vw,2.8rem)!important;line-height:1.2!important;font-weight:800;letter-spacing:-1px;margin:0 0 14px;max-width:900px}
.aa7-hero-intro{font-size:1.1rem;line-height:1.7;max-width:820px;margin:0}
.page-header p.aa7-hero-intro{margin-left:0}
.aa7-byline{margin:14px 0 0;font-size:14px;color:var(--aa7-muted)}
.aa7-hero-media{margin-top:32px}
.aa7-hero-media img{display:block;width:100%;height:auto;border-radius:var(--aa7-radius);box-shadow:0 12px 40px rgba(19,35,61,.16)}

/* Home */
.aa7-home-slider{padding:24px 0}
.aa7-hero-carousel .item img{border-radius:var(--aa7-radius)}
@media(max-width:991px){.aa7-hero-carousel .item{aspect-ratio:1000 / 451;height:auto}}
@media(max-width:575px){.aa7-hero-carousel .item{height:auto}.aa7-home-slider{padding:12px 12px 16px}}
.aa7-home-intro{background:var(--aa7-navy);padding:8px 0 48px;color:#cad8ec}
.aa7-home-intro h1{color:#fff;font-size:clamp(1.9rem,3.6vw,3rem);line-height:1.15;font-weight:800;letter-spacing:-1px;margin:0 0 12px}
.aa7-home-intro .aa7-eyebrow{color:var(--aa7-accent)}
.aa7-home-intro .aa7-hero-intro{color:#cad8ec}
.aa7-hero-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}
@media(min-width:992px){.aa7-hero-actions{justify-content:flex-end}}

/* Media blocks */
.aa7-media-img{display:block;width:100%;height:auto;border-radius:var(--aa7-radius);box-shadow:0 12px 40px rgba(19,35,61,.14)}

/* Cards */
.aa7-card{background:var(--aa7-card);border:1px solid var(--aa7-line);border-radius:var(--aa7-radius);padding:28px;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column}
.aa7-section-alt .aa7-card{border-color:#e3e8ef}
.aa7-card:hover{box-shadow:0 14px 36px rgba(19,35,61,.1);transform:translateY(-2px)}
.aa7-card p{margin-bottom:12px}
.aa7-card p:last-child{margin-bottom:0}
.aa7-card-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:12px;background:var(--aa7-navy);color:var(--aa7-accent);font-size:20px;margin-bottom:18px;flex-shrink:0}
.aa7-card-link{margin-top:auto;padding-top:8px;font-weight:600;font-size:14px;color:var(--aa7-navy)}
.aa7-card-link i{font-size:11px;margin-left:4px}
.aa7-card-media{padding:0;overflow:hidden}
.aa7-card-img{display:block;width:100%;aspect-ratio:16 / 9;height:auto;object-fit:cover;background:var(--aa7-navy)}
.aa7-card-img-wide{aspect-ratio:500 / 214;object-fit:cover}
.aa7-card-body{padding:24px 26px 26px;display:flex;flex-direction:column;flex:1}
.aa7-card-body h3 a{color:var(--aa7-navy)}
.aa7-card-body h3 a::after{content:"";position:absolute;inset:0}
.aa7-card-media{position:relative}
.aa7-post-card .aa7-card-img{aspect-ratio:2 / 1}
.aa7-post-meta{font-size:13px;color:var(--aa7-muted);margin-bottom:8px}
.aa7-link-list li{padding:8px 0;border-bottom:1px solid var(--aa7-line)}
.aa7-link-list li:last-child{border-bottom:0}

/* Logo grids */
.aa7-logo-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px}
.aa7-logo-grid li{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--aa7-line);border-radius:12px;padding:14px;aspect-ratio:16 / 9}
.aa7-logo-grid img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.aa7-logo-grid-icons{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.aa7-logo-grid-icons li{aspect-ratio:1;padding:0;overflow:hidden;border:0;background:transparent}
.aa7-logo-grid-icons img{width:100%;height:100%;object-fit:cover;border-radius:12px;max-height:none}
.aa7-logo-grid-providers{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.aa7-logo-grid-providers li{aspect-ratio:395 / 500;padding:0;overflow:hidden;background:var(--aa7-navy);border:0}
.aa7-logo-grid-providers img{width:100%;height:100%;object-fit:cover;max-height:none}
.aa7-logo-grid-banners{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.aa7-logo-grid-banners li{padding:0;overflow:hidden;border:0;aspect-ratio:1000 / 451}
.aa7-logo-grid-banners img{width:100%;height:100%;object-fit:cover;max-height:none}
.aa7-logo-grid-footer{grid-template-columns:repeat(4,1fr);gap:8px}
.aa7-logo-grid-footer li{padding:6px;border:0;border-radius:8px;aspect-ratio:2 / 1}

/* RTP cards */
.aa7-rtp-card{background:#fff;border:1px solid var(--aa7-line);border-radius:var(--aa7-radius);overflow:hidden;height:100%}
.aa7-rtp-card img{display:block;width:100%;aspect-ratio:400 / 284;object-fit:cover}
.aa7-rtp-card h3{font-size:.95rem;margin:12px 14px 8px}
.aa7-rtp-card dl{margin:0 14px 14px;display:grid;gap:4px}
.aa7-rtp-card dl div{display:flex;justify-content:space-between;font-size:13px}
.aa7-rtp-card dt{font-weight:500;color:var(--aa7-muted)}
.aa7-rtp-card dd{margin:0;font-weight:700;color:var(--aa7-navy)}
.aa7-vol{padding:0 8px;border-radius:20px;font-size:12px}
.aa7-vol-low{background:#e3f4ea;color:#1d6b3f!important}
.aa7-vol-medium{background:#fdf1dc;color:#8a5a12!important}
.aa7-vol-very-high{background:#fbe4e4;color:#9b2c2c!important}
.aa7-rtp-grid{margin-bottom:24px}

/* Steps */
.aa7-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;counter-reset:none}
.aa7-step{background:#fff;border:1px solid var(--aa7-line);border-radius:var(--aa7-radius);padding:26px;position:relative}
.aa7-step-num{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--aa7-accent);color:var(--aa7-navy);font-weight:800;margin-bottom:14px}
.aa7-step p{margin:0}

/* Tables, notes, callouts */
.aa7-table{background:#fff;margin:0}
.aa7-table caption{caption-side:top;color:var(--aa7-navy);font-weight:600;padding-top:0}
.aa7-table thead th{background:var(--aa7-navy);color:#fff;border-color:var(--aa7-navy)}
.aa7-table th[scope=row]{color:var(--aa7-navy);font-weight:600;white-space:nowrap}
.aa7-table td,.aa7-table th{padding:14px 16px;vertical-align:top}
.aa7-note{display:flex;gap:14px;align-items:flex-start;background:#eef3f9;border-left:4px solid var(--aa7-navy);border-radius:10px;padding:18px 20px;margin-top:28px}
.aa7-note i{color:var(--aa7-navy);margin-top:5px}
.aa7-note p:last-child,.aa7-note div{margin:0}
.aa7-callout{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between;background:var(--aa7-navy);color:#cad8ec;border-radius:var(--aa7-radius);padding:32px}
.aa7-callout h3{color:#fff;margin-bottom:6px}
.aa7-callout p{margin:0}
.aa7-help{background:#fff;border:1px solid var(--aa7-line);border-left:5px solid var(--aa7-accent);border-radius:var(--aa7-radius);padding:26px}
.aa7-help li{padding:6px 0}

/* FAQ */
.aa7-faq{max-width:900px}
.text-center + .aa7-faq,.aa7-section-head.text-center ~ .aa7-faq{margin:0 auto}
.aa7-faq .toggle-content ul{padding-left:20px;margin-bottom:10px}
.aa7-faq .toggle > .toggle-title{background:#fff}
.aa7-chips{display:flex;flex-wrap:wrap;gap:10px}
.aa7-chips a{padding:8px 16px;border:1px solid var(--aa7-line);border-radius:30px;font-size:14px;font-weight:600;color:var(--aa7-navy);background:#fff}
.aa7-chips a:hover{background:var(--aa7-navy);color:#fff;text-decoration:none}

/* Article */
.aa7-article .aa7-section .container{max-width:860px}

/* Legal */
.aa7-updated{font-size:14px;color:var(--aa7-muted);margin-bottom:28px}
.aa7-legal-toc{position:sticky;top:110px;background:var(--aa7-paper);border-radius:var(--aa7-radius);padding:22px}
.aa7-legal-toc ol{padding-left:20px;margin:0;font-size:14px}
.aa7-legal-toc li{padding:4px 0}
.aa7-legal-block{padding-bottom:26px;margin-bottom:26px;border-bottom:1px solid var(--aa7-line)}
.aa7-legal-block:last-of-type{border-bottom:0}
@media(max-width:991px){.aa7-legal-toc{position:static}}

/* Footer */
#footer .aa7-footer-logo{height:64px;width:auto}
#footer .aa7-footer-title{font-size:15px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:1px;margin-bottom:14px}
#footer ul.list li{margin-bottom:8px}
#footer a{color:#cad8ec}
#footer a:hover{color:#fff}
#footer .aa7-age strong{display:inline-block;background:var(--aa7-accent);color:var(--aa7-navy);border-radius:6px;padding:0 8px;margin-right:6px}

/* Provider marquee on About keeps its own size */
.aa7-provider-section{border-top:0}
.aa7-provider-item{background:var(--aa7-navy);border-radius:10px;padding:0;overflow:hidden}
.aa7-provider-marquee{--provider-slot-width:120px;--provider-slot-height:152px}
.aa7-provider-item img{object-fit:cover}

/* Keep all seven menu items on one row between 992px and 1279px */
@media(min-width:992px){#header .header-nav-main nav > ul{flex-wrap:nowrap}}
@media(min-width:992px) and (max-width:1279px){
#header .header-nav-main nav > ul > li > a{padding-left:9px!important;padding-right:9px!important;font-size:11px!important}
#header .header-nav-main nav > ul > li > a.dropdown-toggle{padding-right:20px!important}
.aa7-header-actions .btn{padding:7px 12px!important;font-size:11px!important}
}

/* Centre logo rows so a short last row does not hang left */
.aa7-logo-grid{display:flex;flex-wrap:wrap;justify-content:center}
.aa7-logo-grid > li{flex:0 0 140px}
.aa7-logo-grid-icons > li{flex:0 0 132px}
.aa7-logo-grid-providers > li{flex:0 0 118px}
.aa7-logo-grid-banners > li{flex:0 0 calc((100% - 64px) / 5);min-width:200px}
.aa7-logo-grid-footer{justify-content:flex-start}
.aa7-logo-grid-footer > li{flex:0 0 calc((100% - 24px) / 4)}
@media(max-width:575px){.aa7-logo-grid > li{flex-basis:calc((100% - 16px) / 2)}.aa7-logo-grid-icons > li,.aa7-logo-grid-providers > li{flex-basis:calc((100% - 32px) / 3)}}

/* Wide Bootstrap gutters overflow the 12px container padding on phones */
@media(max-width:767px){.row.g-5{--bs-gutter-x:1.5rem;--bs-gutter-y:2rem}}

/* Floating Register / Login bar (created by assets/porto-ui.js) */
.aa7-floating-actions{gap:14px;padding:8px;border-radius:40px;background:rgba(19,35,61,.92);box-shadow:0 10px 34px rgba(0,0,0,.35);backdrop-filter:blur(6px)}
html .aa7-floating-action.btn{min-width:170px;min-height:56px;padding:14px 26px;border-radius:30px;font-size:16px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;gap:10px;border-width:2px}
html .aa7-floating-action.aa7-floating-register{background:linear-gradient(180deg,#f2d896 0%,#dbc181 55%,#c9a75c 100%);border-color:#f2d896;color:#13233d;box-shadow:0 0 0 0 rgba(219,193,129,.7);animation:aa7-cta-pulse 2.2s ease-out infinite}
html .aa7-floating-action.aa7-floating-register:hover,html .aa7-floating-action.aa7-floating-register:focus{background:#fff;border-color:#fff;color:#13233d!important}
html .aa7-floating-action.aa7-floating-login{background:transparent;border-color:#dbc181;color:#fff}
html .aa7-floating-action.aa7-floating-login:hover,html .aa7-floating-action.aa7-floating-login:focus{background:#dbc181;color:#13233d!important}
@keyframes aa7-cta-pulse{0%{box-shadow:0 0 0 0 rgba(219,193,129,.7)}70%{box-shadow:0 0 0 16px rgba(219,193,129,0)}100%{box-shadow:0 0 0 0 rgba(219,193,129,0)}}
@media(prefers-reduced-motion:reduce){html .aa7-floating-action.aa7-floating-register{animation:none}}
@media(max-width:575px){
.aa7-floating-actions{left:12px;right:12px;width:auto;max-width:none;transform:translateY(var(--footer-shift,0px));gap:10px}
html .aa7-floating-action.btn{flex:1;min-width:0;min-height:52px;padding:12px 10px;font-size:15px}
}
/* Leave room so the bar never hides the end of the footer */
body{padding-bottom:96px}

/* ---- AA7 Guide (knowledge site) ---- */
.aa7-guide-hero{background:radial-gradient(ellipse at 80% 20%,#223c61 0%,#13233d 60%);padding:72px 0 80px;color:#cad8ec}
.aa7-guide-hero h1{color:#fff;font-size:clamp(2rem,4vw,3.2rem);line-height:1.12;font-weight:800;letter-spacing:-1px;margin:0 0 16px}
.aa7-guide-hero .aa7-eyebrow{color:var(--aa7-accent)}
.aa7-guide-hero .aa7-hero-intro{color:#cad8ec;margin-bottom:28px}
.aa7-guide-hero .aa7-hero-actions{justify-content:flex-start}
.aa7-hero-stats{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.aa7-hero-stats li{display:flex;gap:18px;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:var(--aa7-radius);padding:18px 22px}
.aa7-hero-stats strong{flex:0 0 auto;min-width:96px;font-size:1.7rem;font-weight:800;color:var(--aa7-accent);line-height:1}
.aa7-hero-stats span{font-size:14px;line-height:1.5}
@media(max-width:575px){.aa7-guide-hero{padding:48px 0 56px}.aa7-hero-stats strong{min-width:80px;font-size:1.4rem}}
.aa7-takeaways{background:#fff8e8;border:1px solid #f0dfb5;border-left:5px solid var(--aa7-accent);border-radius:var(--aa7-radius);padding:20px 24px;margin-top:28px}
.aa7-takeaways-title{font-weight:700;color:var(--aa7-navy);margin:0 0 8px}
.aa7-takeaways-title i{color:#a37b43;margin-right:6px}
.aa7-takeaways ul{margin:0;padding-left:20px}
.aa7-takeaways li{padding:3px 0}
.aa7-glossary{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.aa7-term{background:#fff;border:1px solid var(--aa7-line);border-radius:12px;padding:18px 20px}
.aa7-term dt{color:var(--aa7-navy);font-weight:700;margin-bottom:6px}
.aa7-term dd{margin:0;line-height:1.7}
.aa7-section-alt .aa7-term{border-color:#e3e8ef}
.aa7-letter{font-size:1.6rem!important;margin:36px 0 14px!important;padding-bottom:6px;border-bottom:2px solid var(--aa7-accent);display:inline-block}
.aa7-glossary-wrap .aa7-letter:first-child{margin-top:24px!important}
#contents.aa7-section,#faq-jump.aa7-section{padding:28px 0 0}
#contents .aa7-section-head,#faq-jump .aa7-section-head{margin-bottom:14px}
#contents h2,#faq-jump h2{font-size:1rem!important;text-transform:uppercase;letter-spacing:1px}

/* ---- Blog: listing + article flow ---- */
.aa7-badge{display:inline-block;background:var(--aa7-navy);color:var(--aa7-accent);font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;border-radius:20px;padding:2px 10px;margin-right:6px}
.aa7-page-hero .aa7-badge{vertical-align:1px}
.aa7-blog-filter button{padding:8px 16px;border:1px solid var(--aa7-line);border-radius:30px;font-size:14px;font-weight:600;color:var(--aa7-navy);background:#fff;cursor:pointer}
.aa7-blog-filter button.active,.aa7-blog-filter button:hover{background:var(--aa7-navy);color:#fff}
.aa7-blog-grid [hidden]{display:none!important}
.aa7-empty{text-align:center;background:var(--aa7-paper);border:1px dashed #c9d3e0;border-radius:var(--aa7-radius);padding:48px 24px}
.aa7-empty i{font-size:32px;color:#a37b43;margin-bottom:14px}
.aa7-post-wrap{padding-top:56px;padding-bottom:64px}
.aa7-post{font-size:1.05rem}
.aa7-post p{line-height:1.85}
.aa7-post-section{margin-top:44px}
.aa7-post-section h2{font-size:clamp(1.4rem,2.2vw,1.8rem);font-weight:700;line-height:1.3;margin-bottom:16px;letter-spacing:-.3px}
.aa7-post-section h3{font-size:1.15rem;font-weight:700}
.aa7-quick{background:var(--aa7-navy);color:#dfe7f2;border-radius:var(--aa7-radius);padding:22px 26px}
.aa7-quick p{margin:0}
.aa7-quick .aa7-quick-title{color:var(--aa7-accent);font-weight:700;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;font-size:13px}
.aa7-example{background:#f2f7ef;border:1px solid #d5e6cc;border-left:5px solid #4b8a3a;border-radius:var(--aa7-radius);padding:20px 24px;margin:24px 0}
.aa7-example-title{font-weight:700;color:#2f5e24;margin-bottom:8px}
.aa7-example p:last-child{margin-bottom:0}
.aa7-tip{display:flex;gap:12px;background:#fff8e8;border-radius:12px;padding:16px 20px;margin:20px 0}
.aa7-tip i{color:#a37b43;margin-top:6px}
.aa7-tip div{line-height:1.7}
.aa7-pros,.aa7-cons{border-radius:12px;padding:18px 20px;height:100%}
.aa7-pros{background:#eef7f0;border:1px solid #cfe5d5}
.aa7-cons{background:#fbefef;border:1px solid #f0d2d2}
.aa7-pc-title{font-weight:700;margin-bottom:6px;color:var(--aa7-navy)}
.aa7-pros ul,.aa7-cons ul{margin:0;padding-left:20px}
.aa7-figure{margin:28px 0}
.aa7-figure img{border-radius:var(--aa7-radius);width:100%;height:auto}
.aa7-figure figcaption{font-size:14px;color:var(--aa7-muted);margin-top:8px;text-align:center}
.aa7-try{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;margin-top:48px;padding:26px 28px;border-radius:var(--aa7-radius);background:linear-gradient(135deg,#13233d 0%,#223c61 100%);color:#dfe7f2}
.aa7-try p{margin:0}
.aa7-try .aa7-try-title{color:var(--aa7-accent);font-weight:800;font-size:1.15rem;margin-bottom:6px}
.aa7-try a:not(.btn){color:var(--aa7-accent)}
.aa7-try .btn{flex:0 0 auto;padding:12px 26px}
.aa7-rg-line{margin-top:40px;padding-top:20px;border-top:1px solid var(--aa7-line);font-size:14px;color:var(--aa7-muted)}
.aa7-rg-line strong{background:var(--aa7-accent);color:var(--aa7-navy);border-radius:6px;padding:0 6px;margin-right:4px}
.aa7-post-aside{position:sticky;top:110px;display:grid;gap:16px}
.aa7-post-toc,.aa7-aside-box{background:var(--aa7-paper);border-radius:var(--aa7-radius);padding:20px 22px}
.aa7-aside-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--aa7-navy);margin-bottom:10px}
.aa7-post-toc ol{margin:0;padding-left:20px;font-size:14px}
.aa7-post-toc li{padding:4px 0}
.aa7-aside-cta{background:var(--aa7-navy);color:#cad8ec}
.aa7-aside-cta .aa7-aside-title{color:var(--aa7-accent)}
@media(max-width:991px){.aa7-post-aside{position:static}.aa7-post-wrap{padding-top:36px}}

/* Footer disclosure (relationship with AA7) */
#footer .aa7-disclosure{font-size:13px;line-height:1.6;color:#9fb2cc}
#footer .aa7-disclosure a{text-decoration:underline}
