/* Y5 Website bottom: editorial insights, verified market updates and useful navigation.
   This stylesheet extends the existing homepage without changing global AdminLTE or Chatbox components. */
:root{--footer-navy:#102f3c;--footer-ink:#123748;--footer-gold:#f0b463;--footer-muted:#546d74}
.insights-section{padding:clamp(68px,8vw,116px) 0 clamp(56px,7vw,92px)}
.section-eyebrow{display:block;font-size:12px;letter-spacing:.17em;font-weight:800;color:#387483;margin-bottom:21px;text-transform:uppercase}
.insights-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:38px}
.insights-head>div{max-width:750px}.insights-head h2{max-width:18ch}.insights-head p{font-size:18px;color:var(--footer-muted);line-height:1.55;max-width:45ch;margin:18px 0 0}
.insights-more{flex:0 0 auto;font-size:15px;font-weight:700;text-decoration:none;border-bottom:1px solid #31606b;padding-bottom:8px;transition:color .2s ease}
.insights-more:hover{color:#007494}.insights-more span{padding-left:12px}
.insights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.insight-card{display:flex;flex-direction:column;min-width:0;background:#fff;text-decoration:none;box-shadow:0 4px 24px rgba(11,44,54,.045);border:1px solid #e2e9e8;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.insight-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(11,44,54,.11);border-color:#b9cdd0}
.insight-media{aspect-ratio:16/9;min-height:155px;overflow:hidden;background:#d9e8e6}
.insight-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.insight-card:hover .insight-media img{transform:scale(1.035)}
/* Cover-free articles use an original route-map motif rather than three identical placeholders.
   Each card changes direction and colour while the uploaded article image always takes priority. */
.insights-grid{counter-reset:insight-card}
.insight-card{counter-increment:insight-card}
.insight-media-placeholder{position:relative;isolation:isolate;background:linear-gradient(130deg,#102f3c 0%,#225865 100%);color:#f1bc73}
.insight-media-placeholder:before{content:"";position:absolute;width:74%;aspect-ratio:1;right:-14%;top:-45%;border:1px solid #d7e4df4f;border-radius:50%;box-shadow:0 0 0 42px #d8e7dd13,0 0 0 85px #d8e7dd0a;transform:rotate(-16deg)}
.insight-media-placeholder:after{content:"";position:absolute;z-index:0;left:-15%;bottom:15%;width:145%;height:39%;border-top:2px dashed #f1bc7380;border-radius:50%;transform:rotate(-11deg)}
.insight-media-placeholder span{position:absolute;z-index:1;inset:24px 27px;display:flex;justify-content:space-between;align-items:end;font-weight:800;font-size:clamp(30px,3vw,45px);letter-spacing:-.06em}
.insight-media-placeholder span:before{content:"Y5 / " counter(insight-card,decimal-leading-zero);position:absolute;left:0;top:0;font-size:11px;letter-spacing:.18em;color:#dcf0eb;font-weight:700}
.insight-media-placeholder b{align-self:flex-start;font-weight:400;font-size:42px;line-height:.8;transition:transform .3s ease}
.insight-card:hover .insight-media-placeholder b{transform:translate(3px,-3px)}
.insight-card:nth-child(3n+2) .insight-media-placeholder{background:linear-gradient(145deg,#173949 0%,#34717c 100%)}
.insight-card:nth-child(3n+2) .insight-media-placeholder:before{right:auto;left:-22%;top:-52%}
.insight-card:nth-child(3n+2) .insight-media-placeholder:after{transform:rotate(10deg);bottom:7%}
.insight-card:nth-child(3n) .insight-media-placeholder{background:linear-gradient(135deg,#113340 0%,#25525a 64%,#38626a 100%)}
.insight-card:nth-child(3n) .insight-media-placeholder:before{right:-20%;top:-75%;width:92%}
.insight-card:nth-child(3n) .insight-media-placeholder:after{transform:rotate(-19deg);bottom:0}
.insight-card-body{display:flex;flex:1;flex-direction:column;padding:clamp(24px,2.7vw,36px)}
.insight-tag{font-size:11px;font-weight:800;letter-spacing:.15em;color:#637c85}
.insight-card h3{font-size:clamp(21px,2.1vw,28px);line-height:1.2;letter-spacing:-.027em;margin:16px 0 14px;text-wrap:balance}
.insight-card p{font-size:15px;line-height:1.7;color:#536a72;margin:0 0 28px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.insight-read{margin-top:auto;font-size:14px;color:#075b76;font-weight:800}.insight-read span{margin-left:9px}
.market-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:center;background:#e7efed;padding:clamp(36px,5.4vw,84px);margin-bottom:10px;scroll-margin-top:24px}
.market-copy h2{max-width:13ch}.market-copy>p{max-width:39ch;font-size:18px;line-height:1.6;color:#415d65;margin:24px 0 0}
.market-form{min-width:0}.market-form>label{font-size:14px;font-weight:800;display:block;margin-bottom:10px;color:#1b4551}
.market-input-row{display:flex;background:#fff;border:1px solid #abc3c3;min-height:59px;transition:border-color .2s,box-shadow .2s}
.market-input-row:focus-within{border-color:#046a87;box-shadow:0 0 0 3px #086a861f}
.market-input-row input{flex:1;min-width:0;padding:15px 17px;font:inherit;font-size:16px;border:0;background:transparent;color:#103547;outline:none}
.market-input-row input::placeholder{color:#6b8187}
.market-input-row button{flex:0 0 auto;border:0;margin:5px;background:#123947;color:#fff;cursor:pointer;font-size:15px;font-weight:800;padding:0 22px;transition:background .2s}
.market-input-row button:hover{background:#075b76}.market-input-row button span{margin-left:11px;color:#f2c181}
.market-consent{display:flex;align-items:flex-start;gap:11px;margin-top:21px}.market-consent input{flex:0 0 19px;width:19px;height:19px;margin:1px 0 0;accent-color:#075b76;cursor:pointer}
.market-consent label{color:#2b4d58;font-size:13px;line-height:1.55;cursor:pointer}
.market-note{color:#58727b;font-size:12px;line-height:1.6;margin:12px 0 0}.market-note a{font-weight:800;text-underline-offset:3px}
.market-bot-trap{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.prefooter{position:relative;isolation:isolate;overflow:hidden;margin:10px 0 0;padding:clamp(48px,6vw,100px);background:#11313e;color:#f4f7f5;display:flex;align-items:end;justify-content:space-between;gap:30px}
.prefooter:before{content:"";position:absolute;z-index:-1;right:-120px;top:-220px;width:520px;height:520px;border:1px solid #7b9fa43b;border-radius:50%;box-shadow:0 0 0 65px #7b9fa40e,0 0 0 125px #7b9fa40a}
.prefooter-route{position:absolute;width:280px;height:1px;border-top:2px dashed #c99d59;right:3%;top:38%;transform:rotate(-13deg);opacity:.5}
.prefooter .section-eyebrow{color:#dcb781}.prefooter-copy{max-width:720px}.prefooter h2{max-width:17ch;font-size:clamp(34px,4.6vw,65px);color:#fff}
.prefooter p{max-width:48ch;color:#c6d9dd;font-size:17px;line-height:1.65;margin:24px 0 0}
.prefooter-actions{display:flex;flex-direction:column;min-width:min(250px,100%);gap:12px;z-index:1}
.prefooter-actions a{display:flex;justify-content:space-between;align-items:center;gap:20px;text-decoration:none;font-weight:800;font-size:15px;padding:17px 20px;min-height:54px;transition:transform .2s,background .2s,border-color .2s}
.prefooter-actions a:hover{transform:translateY(-2px)}.prefooter-main{background:#f2b96c;color:#142f3a}.prefooter-main:hover{background:#f9c989}
.prefooter-secondary{border:1px solid #71919a;color:#fff}.prefooter-secondary:hover{border-color:white;background:#ffffff0c}
.site-footer{display:block!important;padding:0!important;background:#0e2a36!important;color:#dbe5e7!important}
.footer-shell{max-width:1440px;margin:0 auto;padding:clamp(42px,5vw,76px) 4vw 22px}
.footer-intro{padding:0 0 52px;border-bottom:1px solid #ffffff26;display:flex;align-items:start;justify-content:space-between;gap:24px}
.footer-wordmark{font-weight:900;letter-spacing:-.09em;font-size:42px;text-decoration:none!important;color:#f3b768}.footer-wordmark span{letter-spacing:.2em;font-size:12px;color:#fff;vertical-align:middle;margin-left:8px}
.footer-intro p{color:#afc6ca!important;font-size:14px!important;text-align:right}
.footer-groups{display:grid;grid-template-columns:1fr 1fr 1fr 1.35fr;column-gap:clamp(24px,3.4vw,66px);row-gap:32px;padding:48px 0 60px}
.footer-groups nav,.footer-connect{display:flex;flex-direction:column;align-items:start;gap:14px;min-width:0}
.footer-groups h2{font-size:14px!important;letter-spacing:.05em!important;line-height:1.4!important;color:#fff!important;margin:0 0 10px!important;font-weight:800!important}
.footer-groups a{color:#b9cdd1;font-size:14px;line-height:1.4;text-decoration:none;transition:color .2s}
.footer-groups a:hover,.footer-bottom a:hover{color:#f1bc73;text-decoration:underline;text-underline-offset:5px}
.footer-connect address{font-size:14px;line-height:1.65;color:#b9cdd1;font-style:normal;max-width:30ch}
.footer-bottom{border-top:1px solid #ffffff26;padding-top:22px;display:flex;gap:20px;align-items:center;justify-content:space-between;font-size:12px;color:#8fabb2;letter-spacing:.02em}
.footer-bottom a{color:#b9cdd1;text-decoration:none;font-weight:700}
.market-form button:focus-visible,.market-form input:focus-visible,.prefooter a:focus-visible,.site-footer a:focus-visible,.insight-card:focus-visible,.insights-more:focus-visible{outline:3px solid #e8ac57;outline-offset:4px}
@media(max-width:1050px){.market-section{grid-template-columns:1fr 1.1fr}.prefooter{align-items:start;flex-direction:column}.prefooter-actions{flex-direction:row;max-width:100%;width:auto}.footer-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:730px){.insights-grid{grid-template-columns:1fr 1fr}.insights-head{align-items:start;flex-direction:column}.market-section{grid-template-columns:1fr;gap:30px}.prefooter{padding:clamp(34px,7vw,56px)}.footer-intro{flex-direction:column;gap:16px}.footer-intro p{text-align:left!important}.footer-groups{padding:36px 0 42px}}
@media(max-width:540px){.insights-section{padding:58px 0 52px}.insights-grid{grid-template-columns:1fr;gap:14px}.insight-media{aspect-ratio:16/8.2;min-height:145px}.insight-card-body{padding:25px}.insight-card p{margin-bottom:20px}.market-section{padding:30px 22px}.market-copy h2{font-size:clamp(31px,8vw,43px)}.market-input-row{flex-direction:column;background:transparent;border:0;gap:9px}.market-input-row:focus-within{border:0;box-shadow:none}.market-input-row input{background:#fff;border:1px solid #abc3c3;min-height:55px;width:100%;border-radius:0}.market-input-row button{margin:0;min-height:52px;justify-content:space-between}.market-consent{margin-top:18px}.prefooter{margin-top:10px}.prefooter-actions{flex-direction:column;width:100%}.footer-shell{padding:42px 20px 22px}.footer-wordmark{font-size:37px}.footer-groups{gap:34px 16px}.footer-groups h2{font-size:13px!important}.footer-groups a,.footer-connect address{font-size:13px}.footer-bottom{align-items:start;flex-direction:column}}
@media(max-width:340px){.footer-groups{grid-template-columns:1fr}.market-section{padding:28px 18px}.prefooter{padding:34px 22px}}
@media(prefers-reduced-motion:reduce){.insight-card,.insight-media img,.market-input-row,.market-input-row button,.prefooter-actions a,.footer-groups a{transition:none!important}.insight-card:hover,.prefooter-actions a:hover{transform:none!important}}

/* Keep the interaction readable for keyboard, touch and reduced-motion users. */
.insights-more,.footer-groups a,.footer-bottom a{min-height:34px;display:inline-flex;align-items:center}
.insights-more:hover span,.insight-card:hover .insight-read span{transform:translateX(3px)}
.insights-more span,.insight-read span{display:inline-block;transition:transform .2s ease}
.market-input-row input:focus-visible{outline:2px solid #0b6681;outline-offset:-2px}
.market-input-row button:active,.prefooter-actions a:active{transform:translateY(1px)}
@media(hover:none){.insight-card:hover{transform:none;box-shadow:0 4px 24px rgba(11,44,54,.045)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-image img,.service-image img{animation:none!important}.insights-more span,.insight-read span,.insight-media-placeholder b{transition:none!important}.insight-card:hover .insight-media-placeholder b,.insights-more:hover span,.insight-card:hover .insight-read span{transform:none!important}}

/* Narrow screens keep legal consent readable and footer links comfortable to tap. */
@media(max-width:540px){.market-consent label{font-size:14px}.market-note{font-size:13px}.footer-groups a,.footer-connect address{font-size:14px;line-height:1.5}.footer-groups nav,.footer-connect{gap:8px}.footer-groups a{min-height:40px}}
