/* Opt-in styles: existing brand tokens and legacy pages remain authoritative. */
.workspace-shell { margin-left: 260px; width: auto; }
.workspace-shell .page-wrap { max-width: 1440px; padding: 28px; }
.workspace-shell .app-topbar { background: var(--surface); }
.workspace-navigation { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 1040; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.workspace-navigation > summary { display: none; }
.workspace-sidebar { padding: 24px 16px; color: var(--text); }
.workspace-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.2rem; margin-bottom: 28px; text-decoration: none; overflow-wrap: anywhere; }
.workspace-brand img { width: 42px; height: 42px; object-fit: contain; }
.workspace-home { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border-left: 4px solid var(--brand); background: var(--surface-soft); color: var(--text); font-weight: 700; text-decoration: none; }
.workspace-caption { font-size: .7rem; letter-spacing: .16em; color: var(--muted); margin: 28px 14px 12px; font-weight: 800; }
.workspace-group { margin-bottom: 7px; }
.workspace-group summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 13px 12px; font-weight: 650; border-radius: 10px; }
.workspace-group summary::-webkit-details-marker { display: none; }
.workspace-group summary:hover, .workspace-group[open] summary { background: var(--surface-soft); }
.workspace-group summary > i:first-child { color: var(--brand-strong); width: 20px; text-align: center; }
.workspace-chevron { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.workspace-group[open] .workspace-chevron { transform: rotate(180deg); }
.workspace-group ul { list-style: none; margin: 4px 0 12px 22px; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.workspace-group a { display: block; padding: 10px 9px; text-decoration: none; color: var(--muted); font-size: .88rem; border-radius: 8px; }
.workspace-group a:hover, .workspace-group a[aria-current=page] { background: var(--surface-soft); color: var(--brand-strong); font-weight: 700; }
.workspace-logout { border-top: 1px solid var(--line); padding-top: 20px; margin: 20px 12px; }
.workspace-logout button { border: 0; background: transparent; color: var(--danger); font: inherit; cursor: pointer; }
.workspace-shell :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.workspace-shell .stat-card, .workspace-shell .action-card, .workspace-shell .page-hero { border-radius: 18px; }
.workspace-shell .dashboard-stat-grid { gap: 18px; }
.workspace-desks { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 16px; margin: 0 0 28px; }
.workspace-desk { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.workspace-desk > i { color: var(--brand-strong); font-size: 1.4rem; }
.workspace-desk span { color: var(--muted); font-size: .85rem; }
.workspace-shell .dashboard-action-grid { gap: 18px; }
.tenant-website { display: grid; gap: 28px; }
.website-section { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.website-section-with-image { display: grid; grid-template-columns: 1.1fr 1fr; }
.website-section-copy { padding: clamp(24px, 4vw, 64px); min-width: 0; }
.website-section h1 { font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin-bottom: 24px; }
.website-section h2 { font-weight: 750; font-size: clamp(1.5rem, 2.5vw, 2.3rem); }
.website-section-image { width: 100%; height: 100%; max-height: 650px; object-fit: cover; min-height: 280px; }
.website-rich-text { overflow-wrap: anywhere; line-height: 1.8; }
.website-rich-text img { max-width: 100%; height: auto; border-radius: 12px; }
.website-rich-text .ql-align-center { text-align: center; }
.website-rich-text .ql-align-right { text-align: right; }
.website-rich-text .ql-align-justify { text-align: justify; }
.website-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.website-section .website-actions { margin-top: 28px; }
.website-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.website-post > img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.website-post h2 { font-size: 1.5rem; }
.website-footer-content { flex-basis: 100%; max-width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.website-footer-content img { max-height: 100px; }
.website-editor .ql-editor { min-height: 320px; }
.website-editor-cover { max-width: 240px; max-height: 180px; object-fit: contain; margin-bottom: 16px; }
.website-editor .errorlist { color: var(--danger); }
@media (max-width: 700px) {
  .website-section-with-image { grid-template-columns: 1fr; }
  .website-section-image { min-height: 0; max-height: 320px; }
  .workspace-desks { grid-template-columns: 1fr 1fr; }
  .workspace-desk { padding: 16px; }
  .workspace-shell .page-wrap { padding: 16px; }
}
@media print { .workspace-navigation, .workspace-desks { display: none; } .workspace-shell { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .workspace-chevron { transition: none; } }

/* Dashboard header and overlay drawer share the same breakpoint. */
.workspace-shell .page-wrap { width: 100%; min-width: 0; }
.workspace-topbar { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 12px 28px; }
.workspace-title { font-size: 1.5rem; font-weight: 750; color: var(--text); text-decoration: none; }
.workspace-help { margin-left: auto; white-space: nowrap; background: var(--surface-soft); color: var(--text); padding: 10px 18px; border-radius: 28px; text-decoration: none; font-weight: 650; }
.workspace-user { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.workspace-toggle, .workspace-close { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.2rem; }
.workspace-backdrop { display: none; }
.workspace-shell .dashboard-count-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workspace-shell .stat-card { overflow-wrap: anywhere; }
@media (max-width: 1199px) {
  .workspace-shell { margin-left: 0; }
  .workspace-shell .page-wrap { padding: 24px; }
  .workspace-topbar { padding: 12px 24px; }
  .workspace-toggle, .workspace-close { display: inline-flex; }
  .workspace-close { float: right; margin: -8px -4px 12px 8px; }
  .workspace-user { display: none; }
  .workspace-navigation { width: min(320px, 85vw); height: 100dvh; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; z-index: 1060; overscroll-behavior: contain; }
  .workspace-navigation.is-open { transform: translateX(0); visibility: visible; }
  .workspace-sidebar { min-height: 100%; padding: 24px 16px; }
  .workspace-brand { min-height: 44px; font-size: 1.05rem; }
  .workspace-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(3px); z-index: 1050; }
  body.workspace-drawer-open { overflow: hidden; }
  .workspace-shell .dashboard-count-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .workspace-topbar { gap: 12px; padding: 12px 16px; min-height: 68px; }
  .workspace-title { font-size: 1.25rem; }
  .workspace-help { padding: 8px 12px; }
  .workspace-shell .page-wrap { padding: 16px; }
  .workspace-shell .dashboard-stat-grid { gap: 12px; }
  .workspace-shell .page-title { font-size: 1.7rem; overflow-wrap: anywhere; }
  .workspace-shell .dashboard-action-grid { grid-template-columns: 1fr; }
  .workspace-desk { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .workspace-navigation { transition: none; } }

.organisation-footer { margin-top: 40px; padding: 48px clamp(20px, 4vw, 64px) 24px; background: var(--surface-soft); color: var(--text); border-top: 1px solid var(--line); }
.organisation-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 36px; max-width: 1440px; margin: auto; }
.organisation-footer h2 { font-size: 1rem; color: var(--text); margin: 0 0 18px; font-weight: 750; }
.organisation-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.organisation-footer a { color: var(--muted); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.organisation-footer a:hover { color: var(--brand-strong); text-decoration: underline; }
.organisation-footer-about { min-width: 0; color: var(--muted); }
.organisation-footer-about img { max-height: 100px; object-fit: contain; }
.organisation-social-links a { display: inline-flex; align-items: center; gap: 12px; }
.organisation-social-links i, .organisation-social-x { width: 22px; text-align: center; color: var(--brand-strong); }
.organisation-footer-bottom { max-width: 1440px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .organisation-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 480px) { .organisation-footer-grid { grid-template-columns: 1fr; } }

/* Match the existing Management card, including each organisation's brand accent. */
.workspace-navigation { background: linear-gradient(145deg, rgba(224,242,254,.98), rgba(186,230,253,.96) 48%, rgba(240,249,255,.98)), linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 58%); }
.organisation-footer { background: #102331; color: #f1f5f9; border-color: #334858; }
.organisation-footer h2 { color: #fff; }
.organisation-footer a, .organisation-footer-about, .organisation-footer-bottom { color: #d4dfe8; }
.organisation-footer a:hover { color: #fff; }
.organisation-footer-bottom { border-color: #334858; }
.organisation-social-links i, .organisation-social-x { color: #b9e4f6; }
.social-unlinked { display: inline-flex; align-items: center; gap: 12px; color: #d4dfe8; }
.website-layout-learning .website-section-image { order: -1; }
.website-layout-testimonial { background: var(--surface-soft); }
.website-layout-testimonial blockquote { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.6; border-left: 4px solid var(--brand); padding-left: 20px; }
@media (max-width: 700px) { .website-layout-learning .website-section-image { order: 0; } }
.organisation-home-shell { background-image: linear-gradient(rgba(16,35,49,.35),rgba(16,35,49,.35)),var(--organisation-home-bg); background-size: cover; background-position: center; }
.website-feature-section, .website-testimonials { padding: clamp(20px,4vw,48px); }
.website-three-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.website-three-cards article { min-width: 0; background: var(--surface-soft); border-radius: 16px; overflow: hidden; }
.website-three-cards img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.website-three-cards article > div { padding: 24px; }
.website-three-cards h3, .testimonial-slide h3 { font-size: 1.4rem; }
.website-testimonials { overflow: hidden; }
.testimonial-slide { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr); gap: 32px; align-items: center; padding: 24px 0; }
.testimonial-slide img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 20px; }
.carousel-ready .testimonial-track { display: flex; transition: transform .35s ease; }
.carousel-ready .testimonial-slide { flex: 0 0 100%; min-width: 0; }
.testimonial-controls { margin-top: 20px; justify-content: center; }
.testimonial-controls[hidden] { display: none; }
@media(max-width:700px) { .website-three-cards { grid-template-columns: 1fr; } .testimonial-slide { grid-template-columns: 1fr; gap: 16px; } .testimonial-slide img { max-height: 200px; } }
@media(prefers-reduced-motion:reduce) { .carousel-ready .testimonial-track { transition: none; } }

.website-blog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media(max-width:1000px) { .website-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .website-blog-grid { grid-template-columns: 1fr; } }

.testimonial-window { overflow: hidden; }
/* Inline vector artwork inherits the organisation's theme without tinting people or uploaded photos. */
.theme-illustration { color: var(--brand); background: var(--surface); display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.theme-illustration svg { display: block; width: 100%; height: auto; max-height: 100%; }
.feature-picture { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.testimonial-picture { width: 100%; max-height: 320px; aspect-ratio: 4/3; border-radius: 20px; object-fit: cover; }
.editor-thumbnail { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.website-layout-about-intro { border: 0; background: var(--surface); box-shadow: 0 18px 50px rgba(16,35,49,.08); align-items: center; grid-template-columns: 1fr 1.1fr; }
.website-layout-about-intro .website-section-copy { padding: clamp(24px,4vw,60px); }
.website-layout-about-intro h1 { font-size: clamp(2.2rem,4vw,4rem); }
.website-layout-about-intro .website-section-image { border-radius: 48% 12% 42% 12%; margin: 32px 0; height: auto; min-height: 0; }
.website-layout-about-purpose { display: flex; flex-direction: column; align-items: center; padding: clamp(24px,4vw,56px); background: color-mix(in srgb,var(--brand) 8%,var(--surface)); border: 1px solid color-mix(in srgb,var(--brand) 25%,var(--line)); position: relative; }
.website-layout-about-purpose .website-section-copy { display: contents; }
.website-layout-about-purpose .page-kicker { order: 0; letter-spacing: .18em; }
.website-layout-about-purpose .website-section-image { order: 1; width: 240px; height: 180px; min-height: 0; border-radius: 50%; margin: 12px 0 24px; background: transparent; }
.website-layout-about-purpose h2 { order: 2; font-size: clamp(1.8rem,3vw,2.8rem); text-align: center; }
.website-layout-about-purpose .website-rich-text { order: 3; width: 100%; text-align: center; }
.website-layout-about-purpose .website-rich-text > p { max-width: 650px; margin: 16px auto 32px; }
.website-layout-about-purpose ol { list-style: none; counter-reset: approach; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 0; margin: 28px 0 0; text-align: left; }
.website-layout-about-purpose ol > li { counter-increment: approach; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 8px 24px rgba(16,35,49,.04); }
.website-layout-about-purpose ol > li::before { content: '0' counter(approach); display: block; color: var(--brand-strong); font-size: 1.8rem; font-weight: 800; margin-bottom: 18px; }
.website-layout-about-purpose ol strong { display: block; font-size: 1.2rem; margin-bottom: 12px; }
@media(max-width:700px) { .website-layout-about-intro { grid-template-columns: 1fr; } .website-layout-about-intro .website-section-image { margin: 0; border-radius: 24px; } .website-layout-about-purpose ol { grid-template-columns: 1fr; } .testimonial-picture { max-height: 200px; } }

.footer-contact { font-style: normal; display: grid; gap: 16px; margin: 24px 0 0; overflow-wrap: anywhere; }
.footer-contact > div { display: grid; gap: 4px; }
.footer-contact strong { color: #fff; font-size: .9rem; }
