/* Parts of the platform's stylesheet the Coates Global pages still use (4 Dec 2026): the cookie choice, the
   chat assistant and the newspaper-style news top row. The platform's colour names point at the Coates
   Global colours. */
:root{--stone:var(--panel);--stone-2:var(--line);--brass:var(--gold);--brass-deep:var(--gold);--brass-2:var(--gold);
--brass-soft:light-dark(#f3ead6,#1d2a36);--text:var(--ink);--muted:var(--mute);--ink-2:var(--wine);--ink-3:var(--wine2);
--line-ink:rgba(255,255,255,.16);--verified:#23715c;--notice:#8a5a00;--notice-soft:#fbf3e2;--danger:var(--red);
--radius:2px;
--step--1:.875rem;--step-0:1.0625rem;--step-1:1.3125rem;--step-2:1.75rem}

/* Cookie choice (partials/cookie-consent): a white panel at the foot of the screen, over the page,
   never covering it entirely. The two choices are the same button, so neither is pushed. */
.consent { position: fixed; z-index: 90; left: 16px; bottom: 16px; width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--text); border-top: 3px solid var(--brass); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10,31,51,.28), 0 2px 8px rgba(10,31,51,.12); }
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.consent-inner { padding: 22px 24px 20px; }
.consent h2 { font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); }
.consent p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; }
.consent .consent-status { margin: -6px 0 14px; font-weight: 600; color: var(--ink); }
.consent .consent-status[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.consent-actions .btn { flex: 1 1 0; min-width: 8.5em; padding: 0.8em 1em; }
.consent p a { color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) {
  .consent { left: 0; bottom: 0; width: 100%; border-radius: 0; }
  .consent-inner { padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .consent h2 { font-size: 1.125rem; margin-bottom: 6px; }
  .consent p { font-size: 0.875rem; line-height: 1.5; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent.is-new { animation: gc-rise .5s cubic-bezier(.2,.7,.2,1) both; }
}
.footer-button { background: none; border: 0; padding: 0; font: inherit; color: #e4ebf2; cursor: pointer; text-align: left; }
.footer-button:hover { text-decoration: underline; }

/* Website chat assistant (partials/chat, public/js/chat.js), in the site's navy and gold (4 Dec 2026).
   A round launcher with Elena's picture at the bottom right; the panel opens above it. Hidden while the
   cookie choice is showing. Light colours always, so it reads the same in dark mode. */
:root { --chat: #0f2a44; --chat-2: #0a1f33; --chat-gold: #b08d57; --chat-gold-2: #8a6a36; --chat-soft: #f7f3ec; --chat-line: #e4dccd; --chat-field: #d6cdbb; --chat-ink: #1b2330; --chat-mute: #5a6472; }
.chat-launcher { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border: 1px solid var(--chat-gold); border-radius: 999px; background: var(--chat); color: #fff; font: 600 .95rem/1 var(--sans); letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 28px rgba(10,31,51,.35); }
.chat-launcher:hover { background: var(--chat-2); }
.chat-launcher:focus-visible { outline: 3px solid var(--chat-gold); outline-offset: 3px; }
.chat-launcher img { width: 38px; height: 38px; border-radius: 50%; background: #efe7d8; border: 2px solid var(--chat-gold); object-fit: cover; }
.consent:not([hidden]) ~ .chat-launcher, .chat-open .chat-launcher { display: none; }
.chat-panel { color-scheme: light; position: fixed; z-index: 95; right: 20px; bottom: 20px; width: min(410px, calc(100% - 40px)); max-height: min(700px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; color: var(--chat-ink); font-family: var(--sans); border: 1px solid var(--chat-line); border-radius: 12px; box-shadow: 0 24px 60px rgba(10,31,51,.35); overflow: hidden; }
.chat-panel[hidden], .chat-panel [hidden] { display: none !important; }
.chat-panel .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 12px 14px 16px; background: var(--chat); color: #fff; border-bottom: 3px solid var(--chat-gold); }
.chat-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #efe7d8; border: 2px solid var(--chat-gold); object-fit: cover; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { color: #fff; font: 600 1.5rem/1.05 var(--serif); margin: 0 0 4px; }
.chat-head p { margin: 0; font-size: .76rem; color: #c9d3de; line-height: 1.35; }
.chat-head .chat-role { display: block; color: var(--chat-gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; margin-bottom: 2px; }
.chat-close { flex: none; align-self: flex-start; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; border-radius: 6px; }
.chat-close:hover { background: rgba(255,255,255,.12); }
.chat-close:focus-visible { outline: 2px solid var(--chat-gold); }
.chat-form { padding: 14px 18px 16px; overflow-y: auto; display: grid; gap: 10px; background: #fff; }
.chat-intro { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--chat-mute); }
.chat-section { display: flex; align-items: center; gap: 10px; margin: 4px 0 -2px; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--chat-gold-2); }
.chat-section::after { content: ""; flex: 1; height: 1px; background: var(--chat-line); }
.chat-field { display: grid; gap: 5px; min-width: 0; }
.chat-field label { font-size: .8rem; font-weight: 600; color: var(--chat); }
.chat-field .optional { font-weight: 400; color: var(--chat-mute); }
.chat-field input, .chat-field select { box-sizing: border-box; width: 100%; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--chat-field); border-radius: 6px; background-color: #fff; color: var(--chat-ink); font: 400 .92rem/1.2 var(--sans); }
.chat-field select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b08d57' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.chat-field select:invalid { color: var(--chat-mute); }
.chat-field input::placeholder { color: #9aa2ad; }
.chat-field input:focus, .chat-field select:focus, .chat-compose textarea:focus { outline: none; border-color: var(--chat-gold); box-shadow: 0 0 0 3px rgba(176,141,87,.22); }
.chat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-check { display: flex; gap: 9px; align-items: flex-start; margin: -4px 0 0; font-size: .82rem; line-height: 1.35; color: var(--chat-ink); cursor: pointer; }
.chat-check input { margin: 1px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--chat); }
.chat-consent { margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--chat-line); font-size: .76rem; color: var(--chat-mute); }
.chat-consent a { color: var(--chat); text-decoration: underline; text-decoration-color: var(--chat-gold); text-underline-offset: 2px; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-error { margin: 0; color: #a3261e; font-weight: 600; font-size: .84rem; }
.chat-btn { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--chat); border-radius: 6px; background: var(--chat); color: #fff; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; cursor: pointer; }
.chat-btn:hover { background: var(--chat-2); border-color: var(--chat-gold); color: #fff; }
.chat-btn:focus-visible { outline: 3px solid var(--chat-gold); outline-offset: 2px; }
.chat-btn:disabled { opacity: .6; cursor: wait; }
.chat-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-body[hidden], .chat-form[hidden] { display: none; }
.chat-log { flex: 1; min-height: 240px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--chat-soft); }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p { margin: 0 0 8px; }
.chat-msg p:last-child { margin: 0; }
.chat-assistant { align-self: flex-start; background: #fff; color: var(--chat-ink); border: 1px solid var(--chat-line); border-bottom-left-radius: 3px; box-shadow: 0 1px 2px rgba(10,31,51,.06); }
.chat-assistant a { color: var(--chat); text-decoration-color: var(--chat-gold); }
.chat-visitor { align-self: flex-end; background: var(--chat); color: #fff; border-bottom-right-radius: 3px; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span:not(.visually-hidden) { width: 7px; height: 7px; border-radius: 50%; background: var(--chat-gold); opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .chat-typing span:not(.visually-hidden) { animation: gc-dot 1.2s ease-in-out infinite; }
  .chat-typing span:nth-child(2) { animation-delay: .2s; }
  .chat-typing span:nth-child(3) { animation-delay: .4s; }
}
@keyframes gc-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--chat-line); background: #fff; }
.chat-compose textarea { box-sizing: border-box; flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 11px 12px; border: 1px solid var(--chat-field); border-radius: 6px; background: #fff; color: var(--chat-ink); font: 400 .92rem/1.4 var(--sans); }
.chat-send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 6px; background: var(--chat); color: var(--chat-gold); cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--chat-2); color: #fff; }
.chat-send:focus-visible { outline: 3px solid var(--chat-gold); outline-offset: 2px; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 0 12px 10px 14px; font-size: .78rem; color: var(--chat-mute); background: #fff; }
.chat-foot a { color: var(--chat); font-weight: 600; text-decoration: none; }
.chat-end { background: none; border: 1px solid var(--chat-line); color: var(--chat); font: 600 .78rem/1 var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chat-end:hover { border-color: var(--chat-gold); background: var(--chat-soft); }
.chat-ended { padding: 14px 16px 16px; border-top: 1px solid var(--chat-line); background: #fff; display: grid; gap: 10px; }
.chat-ended p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--chat-ink); }
@media (max-width: 600px) {
  .chat-launcher { right: 14px; bottom: 14px; padding: 5px 16px 5px 5px; }
  /* A pop-up on a phone too, not the whole screen: the page stays visible around it. */
  .chat-panel { left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); border-radius: 14px; }
  .chat-head { padding: 12px 10px 12px 14px; }
  .chat-head p { font-size: .72rem; }
  .chat-log { min-height: 160px; }
  .chat-form { gap: 10px; padding: 14px 14px 16px; }
  .chat-cols { grid-template-columns: 1fr; gap: 10px; }
  .chat-field input, .chat-field select { height: 42px; font-size: 1rem; }
  .chat-open body { overflow: hidden; }
}
@media print { .chat-launcher, .chat-panel { display: none !important; } }


/* News and guides pages: newspaper-style top row (lead story + latest four). */
.news-top { padding-top: clamp(28px, 4vw, 48px); }
.news-tabs { margin-bottom: clamp(20px, 2.6vw, 28px); }
/* Both columns share one height: the photo fills its column, so its bottom lines up with the last story. */
.news-top-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: stretch; }
.lead-story { display: flex; }
.lead-story a { position: relative; display: block; flex: 1; min-height: 360px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); border-radius: 4px; }
.lead-story-image { position: absolute; inset: 0; }
.lead-story-image img, .lead-story-image .img-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-story-image .img-fallback { color: rgba(255,255,255,.35); display: grid; place-items: center; }
.lead-story-image img { transition: transform .5s ease; }
.lead-story a:hover .lead-story-image img { transform: scale(1.02); }
.lead-story-text { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2.6vw, 30px); padding-top: 72px; background: linear-gradient(to top, rgba(10,24,40,.9) 0%, rgba(10,24,40,.6) 55%, rgba(10,24,40,0) 100%); }
.lead-story-flag { position: absolute; z-index: 1; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); margin: 0; padding: 6px 12px; background: var(--brass); color: #fff; font-weight: 600; font-size: 0.875rem; border-radius: 2px; }
.lead-story-meta { display: flex; gap: 12px; margin: 0 0 8px; font-size: 0.9rem; color: #d9e1ea; }
.lead-story-meta span { color: #e2c38c; font-weight: 600; }
.lead-story-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; margin: 0; text-wrap: balance; }
.lead-story a:hover .lead-story-title { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.latest-list { display: flex; flex-direction: column; }
.latest-heading { font-size: var(--step-1); padding-bottom: 10px; margin: 0; border-bottom: 2px solid var(--brass); }
.latest-list ol { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-rows: 1fr; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; padding: 18px 0; color: inherit; text-decoration: none; }
.latest-thumb img, .latest-thumb .img-fallback { display: grid; place-items: center; width: 128px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone-2); border-radius: 2px; }
.latest-thumb .img-fallback svg { width: 28px; height: 28px; }
.latest-text { display: grid; gap: 4px; align-content: start; }
.latest-kind { color: var(--brass-2); font-weight: 600; font-size: 0.875rem; }
.latest-text strong { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.0625rem; line-height: 1.32; }
.latest-text time { font-size: 0.875rem; color: var(--muted); }
.latest-list a:hover strong { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.news-top + .news-listing { padding-top: clamp(40px, 5vw, 64px); }
.listing-heading { font-size: var(--step-2); margin: 0 0 clamp(18px, 2.4vw, 26px); }
/* "More news" / "More guides and articles" with the newsletter button on the right (under it on phones). */
.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 clamp(18px, 2.4vw, 26px); }
.listing-head .listing-heading { margin: 0; }
.listing-head .btn { margin-left: auto; }
@media (max-width: 600px) { .listing-head .btn { margin-left: 0; } }
/* A button under a section's cards, on the right (home page guides: newsletter). */
.section-foot { display: flex; justify-content: flex-end; margin: clamp(22px, 3vw, 32px) 0 0; }
@media (max-width: 600px) { .section-foot { justify-content: flex-start; } }
@media (max-width: 980px) {
  .news-top-grid { grid-template-columns: 1fr; }
  .lead-story a { min-height: 0; }
  .lead-story-image { position: static; }
  .lead-story-image img, .lead-story-image .img-fallback { height: auto; aspect-ratio: 3 / 2; }
  .latest-list ol { grid-auto-rows: auto; }
}
@media (max-width: 560px) {
  .lead-story-text { position: static; padding: 18px; background: var(--ink); }
  .latest-list a { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .latest-thumb img, .latest-thumb .img-fallback { width: 104px; }
}


/* Coates Global forms outside the page builders (newsletter page, 4 Dec 2026). */
.cg-error{color:var(--red);font-size:14px;margin:4px 0 10px}
.cg-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5;margin:6px 0 4px}
.cg-check input{margin-top:4px;width:18px;height:18px;flex:none}
@media (max-width:820px){main .band .wrap[style*="grid-template-columns"]{grid-template-columns:1fr!important}}

/* Long legal text (privacy policy). */
.cg-doc h2{font-size:clamp(24px,2.6vw,30px);margin:34px 0 10px}
.cg-doc ul{padding-left:1.2em}
.cg-doc li{margin-bottom:6px}

/* Media gallery (/media-gallery/) */
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}
.vcard{margin:0;background:var(--card,#fff);border:1px solid var(--line,#e1e4de)}
.vcard video{display:block;width:100%;aspect-ratio:16/9;background:#0f2a44}
.vcard figcaption{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;font-size:15px}
.vcard figcaption span{color:var(--mute,#5b6470);font-size:13px}
