/* ConstructionDash brand layer on top of Bootstrap 5.
   Palette: yellow #FFC51C (actions), grey #E6E6E6 (borders), white, black.
   Contrast: black on #FFC51C = 13:1; #333 on white = 12.6:1; #666 on white = 5.7:1 (all >= 4.5:1). */
:root {
  --cd-yellow: #FFC51C; --cd-yellow-hover: #E6B019;
  --cd-grey: #E6E6E6; --cd-grey-light: #F5F5F5;
  --cd-black: #000; --cd-text2: #333; --cd-muted: #666;
  --cd-success: #1B8A4B; --cd-warning: #B7791F; --cd-danger: #C0392B;
  --bs-body-color: #000; --bs-body-bg: #F5F5F5; --bs-border-color: #E6E6E6;
  --bs-link-color: #000; --bs-link-hover-color: #333; --bs-link-color-rgb: 0,0,0; --bs-link-hover-color-rgb: 51,51,51;
  --bs-primary: #FFC51C; --bs-primary-rgb: 255,197,28;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cd-sidebar: 248px; --cd-bottom-nav: 64px;
}
body { color: #000; background: var(--cd-grey-light); }
h1,h2,h3,h4,h5,h6 { color: #000; font-weight: 700; }
.text-muted, .form-text { color: var(--cd-muted) !important; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; box-shadow: 0 0 0 5px var(--cd-yellow); }

/* Buttons: yellow = primary action (black text); black = secondary emphasis */
.btn { min-height: 44px; font-weight: 600; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-primary, .btn-cd { --bs-btn-color:#000; --bs-btn-bg:#FFC51C; --bs-btn-border-color:#FFC51C;
  --bs-btn-hover-color:#000; --bs-btn-hover-bg:#E6B019; --bs-btn-hover-border-color:#E6B019;
  --bs-btn-active-color:#000; --bs-btn-active-bg:#D9A517; --bs-btn-active-border-color:#D9A517;
  --bs-btn-disabled-color:#000; --bs-btn-disabled-bg:#FFC51C; --bs-btn-disabled-border-color:#FFC51C; }
.btn-dark { --bs-btn-bg:#000; --bs-btn-border-color:#000; --bs-btn-color:#fff; --bs-btn-hover-bg:#333; --bs-btn-hover-border-color:#333; }
.btn-outline-dark { --bs-btn-color:#000; --bs-btn-border-color:#000; --bs-btn-hover-bg:#000; --bs-btn-hover-color:#fff; }
.form-control, .form-select { min-height: 46px; border-color: #bdbdbd; }
.form-control:focus, .form-select:focus { border-color: #000; box-shadow: 0 0 0 .25rem rgba(255,197,28,.55); }
.form-label { font-weight: 600; color: #000; }
.form-check-input:checked { background-color: #000; border-color: #000; }

/* Cards & tables */
.cd-card { background: #fff; border: 1px solid var(--cd-grey); border-radius: .75rem; padding: 1.25rem; margin-bottom: 1rem; }
.cd-card > h2, .cd-card > .h5 { font-size: 1.05rem; }
.table { --bs-table-bg: transparent; }
.table thead th { background: var(--cd-grey); color: #000; border-bottom: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table > :not(caption) > * > * { border-bottom-color: var(--cd-grey); }
.cd-stat { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.cd-stat-label { color: var(--cd-muted); font-size: .85rem; }
.cd-accent { border-top: 4px solid var(--cd-yellow); }

/* Badges */
.cd-badge { display:inline-block; padding:.25rem .6rem; border-radius:999px; font-size:.75rem; font-weight:700; background: var(--cd-grey); color:#000; }
.cd-badge-yellow { background: var(--cd-yellow); color:#000; }
.cd-badge-green { background: #E3F4EA; color: #14633A; }
.cd-badge-amber { background: #FBF0DC; color: #7A4F0F; }
.cd-badge-red { background: #F9E3E0; color: #8E2A1F; }

/* App shell: sidebar (desktop) + bottom nav (mobile) */
.cd-app { min-height: 100vh; }
.cd-sidebar { display: none; }
.cd-main { padding: 1rem 1rem calc(var(--cd-bottom-nav) + 1.5rem); max-width: 1200px; margin: 0 auto; }
.cd-topbar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:1rem; }
.cd-topbar h1 { font-size: 1.4rem; margin: 0; }
.cd-brand { display:flex; align-items:center; gap:.65rem; text-decoration:none; color:#000; font-weight:800; }
.cd-brand img { height: 44px; width: auto; max-width: 100%; object-fit: contain; border-radius: 9px; }
.cd-nav a { display:flex; align-items:center; gap:.7rem; padding:.7rem .9rem; margin-bottom:.15rem; border-radius:.6rem; color:#000; text-decoration:none; font-weight:600; min-height:44px; }
.cd-nav a:hover { background: var(--cd-grey-light); }
.cd-nav a.active { background: var(--cd-yellow); color:#000; }
.cd-nav a.disabled { color: var(--cd-muted); pointer-events:none; }
.cd-nav .soon { margin-left:auto; font-size:.65rem; font-weight:700; background:var(--cd-grey); color:#333; padding:.1rem .4rem; border-radius:6px; }
.cd-nav svg, .cd-bottom svg, .cd-side svg, .btn svg { width:20px; height:20px; flex:none; vertical-align:-4px; }
.cd-bottom { position:fixed; left:0; right:0; bottom:0; height:var(--cd-bottom-nav); background:#fff; border-top:1px solid var(--cd-grey); display:flex; z-index:1030; padding-bottom: env(safe-area-inset-bottom); }
.cd-bottom a, .cd-bottom button { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:.7rem; font-weight:600; color:#333; text-decoration:none; background:none; border:0; min-height:44px; }
.cd-bottom a.active { color:#000; box-shadow: inset 0 3px 0 var(--cd-yellow); }
.cd-bottom a.disabled { color:#999; pointer-events:none; }
.cd-more { position:fixed; left:0; right:0; bottom:var(--cd-bottom-nav); background:#fff; border-top:1px solid var(--cd-grey); padding:.5rem; z-index:1029; display:none; }
.cd-more.open { display:block; }
@media (min-width: 992px) {
  .cd-sidebar { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; width:var(--cd-sidebar); background:#fff; border-right:1px solid var(--cd-grey); padding:1rem .75rem; overflow-y:auto; }
  .cd-main { margin-left: var(--cd-sidebar); max-width:none; padding: 1.5rem 2rem; }
  .cd-main-inner { max-width: 1200px; }
  .cd-bottom, .cd-more { display:none !important; }
}

/* Auth screens: dark background uses the LIGHT logo */
.cd-auth { min-height:100vh; background:#fff; display:grid; grid-template-columns: 1fr; }
.cd-auth-hero { display:none; }
.cd-auth-box { width:100%; max-width:460px; margin:auto; padding:2rem 1rem; }
.cd-auth-box .cd-logo { display:block; width:auto; height:72px; margin:0 auto 1.25rem; border-radius:0; }
.cd-auth-box .cd-card { margin:0; padding:1.75rem; border:0; border-radius:1.5rem; box-shadow:0 18px 50px rgba(0,0,0,.14); }
.cd-auth-box .form-control { background:#f5f5f5; border-color:#d9d9d9; border-radius:.6rem; }
.cd-auth-box .form-control:focus { background:#fff; }
.cd-auth-box .btn-primary { border-radius:.6rem; min-height:48px; }
.cd-auth-foot { color:#333; text-align:center; font-size:.9rem; margin-top:1rem; }
.cd-auth-foot a { color:#000; font-weight:600; }
@media (min-width: 992px) {
  .cd-auth { grid-template-columns: 1.05fr 1fr; }
  .cd-auth-hero { display:flex; flex-direction:column; justify-content:flex-end; position:relative; overflow:hidden; padding:3rem 3.5rem; color:#fff;
    background:
      radial-gradient(ellipse at 85% 12%, rgba(255,197,28,.22), transparent 55%),
      linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0/48px 48px,
      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0/48px 48px,
      linear-gradient(160deg, #26292e, #0c0d0f 70%);
    background-color:#14161a; }
  .cd-auth-hero::after { content:""; position:absolute; right:-70px; bottom:-70px; width:300px; height:300px; border:36px solid rgba(255,197,28,.16); border-radius:50%; }
  .cd-auth-hero-inner { position:relative; z-index:1; margin-bottom:2.5rem; }
  .cd-auth-headline { color:#fff; font-size:clamp(2.4rem, 4.2vw, 3.8rem); font-weight:800; line-height:1.08; letter-spacing:-.02em; margin:0 0 1rem; }
  .cd-auth-tag { color:#FFC51C; font-size:1.05rem; max-width:30rem; margin:0; }
  .cd-auth-built { position:relative; z-index:1; margin:0; font-size:.95rem; color:#e6e6e6; }
  .cd-auth-box { padding:2rem 2.5rem; }
}
.cd-field-error { color: var(--cd-danger); font-size:.85rem; margin-top:.25rem; }
.cd-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.cd-flash .alert { border-radius:.6rem; }

/* ---------------------------------------------------------------------
   PUBLIC WEBSITE. White background, black text; contractor accent colour via
   --pub-accent / --pub-on-accent (set per site, text colour auto-chosen for contrast).
   --------------------------------------------------------------------- */
.cd-layout-public { background:#fff; color:#000; }
.pub-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.pub-skip { position:absolute; left:.5rem; top:.5rem; z-index:2000; background:#000; color:#fff; padding:.5rem .75rem; border-radius:.4rem; }
.pub-header { border-bottom:1px solid var(--cd-grey); background:#fff; position:sticky; top:0; z-index:100; }
.pub-header-row { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; padding-top:.6rem; padding-bottom:.6rem; }
.pub-logo { display:flex; align-items:center; gap:.6rem; font-weight:800; font-size:1.1rem; color:#000; text-decoration:none; margin-right:auto; }
.pub-logo img { width:auto; max-height:44px; }
.pub-nav { order:3; width:100%; display:flex; gap:.25rem; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pub-nav a { padding:.55rem .8rem; color:#000; text-decoration:none; font-weight:600; border-radius:.5rem; white-space:nowrap; min-height:44px; display:inline-flex; align-items:center; }
.pub-nav a:hover { background: var(--cd-grey-light); }
.pub-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pub-accent); }
.cd-layout-public .btn-cd { --bs-btn-bg: var(--pub-accent); --bs-btn-border-color: var(--pub-accent); --bs-btn-color: var(--pub-on-accent);
  --bs-btn-hover-bg: var(--pub-accent); --bs-btn-hover-border-color:#000; --bs-btn-hover-color: var(--pub-on-accent);
  --bs-btn-active-bg: var(--pub-accent); --bs-btn-active-color: var(--pub-on-accent); }
.pub-cta { white-space:nowrap; }
@media (min-width: 768px) { .pub-nav { order:0; width:auto; } .pub-logo { margin-right:0; } .pub-header-row { flex-wrap:nowrap; } .pub-nav { margin-right:auto; } }
.pub-hero { background:#000; color:#fff; background-size:cover; background-position:center; position:relative; }
.pub-hero::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,.62); }
.pub-hero .pub-wrap { position:relative; padding-top:3.5rem; padding-bottom:3.5rem; }
.pub-hero h1 { color:#fff; font-size:clamp(1.9rem, 6vw, 3rem); max-width:18ch; }
.pub-hero p { color:#fff; max-width:60ch; font-size:1.1rem; }
.pub-hero .pub-accent-bar { width:64px; height:6px; background:var(--pub-accent); margin-bottom:1rem; border-radius:3px; }
.pub-section { padding: 2.25rem 0; }
.pub-section.alt { background: var(--cd-grey-light); }
.pub-section h2 { font-size:1.5rem; margin-bottom:1rem; }
.pub-section h2::after { content:""; display:block; width:48px; height:4px; background:var(--pub-accent); margin-top:.4rem; border-radius:2px; }
.pub-chips { display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:0; list-style:none; }
.pub-chips li { border:1px solid var(--cd-grey); background:#fff; border-radius:999px; padding:.4rem .9rem; font-weight:600; }
.pub-grid { display:grid; gap:1rem; grid-template-columns: 1fr; }
@media (min-width:600px){ .pub-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px){ .pub-grid { grid-template-columns: repeat(3,1fr); } }
.pub-card { background:#fff; border:1px solid var(--cd-grey); border-radius:.75rem; overflow:hidden; display:flex; flex-direction:column; color:#000; text-decoration:none; }
.pub-card img { width:100%; aspect-ratio: 4/3; object-fit:cover; background: var(--cd-grey); }
.pub-card .body { padding:1rem; }
.pub-card h3 { font-size:1.1rem; margin:0 0 .25rem; }
.pub-card .meta { color:var(--cd-muted); font-size:.9rem; }
.pub-contact-list { list-style:none; padding:0; margin:0; }
.pub-contact-list li { margin-bottom:.6rem; }
.pub-footer { background:#14161a; color:#d9dbe0; margin-top:3rem; padding-top:3rem; }
.pub-footer a { color:#fff; text-decoration:none; }
.pub-footer a:hover { color: var(--cd-yellow); text-decoration:underline; }
.pub-footer strong { color: var(--cd-yellow); display:block; margin-bottom:.6rem; letter-spacing:.02em; }
.pub-footer-grid { display:grid; gap:2rem; grid-template-columns:1fr; }
@media (min-width:768px){ .pub-footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:992px){ .pub-footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1.2fr; } }
.pub-foot-logo { display:inline-block; background:#fff; border-radius:.8rem; padding:.5rem .8rem; }
.pub-foot-logo img { display:block; height:48px; width:auto; max-width:220px; object-fit:contain; }
.pub-foot-list { list-style:none; padding:0; margin:0; display:grid; gap:.45rem; }
.pub-foot-contact li { display:flex; gap:.6rem; align-items:flex-start; }
.pub-foot-contact .pub-ico { flex:0 0 auto; margin-top:.15rem; color:var(--cd-yellow); }
.pub-social { display:flex; gap:.5rem; }
.pub-social a { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #3a3d44; border-radius:50%; color:#fff; }
.pub-social a:hover { background:var(--cd-yellow); border-color:var(--cd-yellow); color:#000; text-decoration:none; }
.pub-footer-base { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; border-top:1px solid #2c2f36; margin-top:2rem; padding-top:1.1rem; padding-bottom:1.4rem; font-size:.85rem; }
.pub-credit { margin-left:auto; display:inline-flex; align-items:center; gap:.4rem; color:#E6E6E6; }
.pub-credit img { border-radius:4px; }
.pub-note { color: var(--cd-muted); font-size:.9rem; }
.pub-prose { max-width: 70ch; white-space: pre-line; }

/* ---- Stage 3: catalogue admin + public detail pages ---- */
.cd-photo-list { display:grid; grid-template-columns: repeat(2, 1fr); gap:.75rem; list-style:none; padding:0; margin:0 0 1rem; }
@media (min-width:768px){ .cd-photo-list { grid-template-columns: repeat(3, 1fr); } }
.cd-photo { background:#fff; border:1px solid var(--cd-grey); border-radius:.6rem; padding:.5rem; cursor:grab; }
.cd-photo.dragging { opacity:.45; }
.cd-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.4rem; background:var(--cd-grey); display:block; }
.cd-photo .cd-photo-actions { display:flex; flex-wrap:wrap; gap:.25rem; margin-top:.4rem; }
.cd-photo .btn { min-height:40px; padding:.25rem .55rem; font-size:.85rem; }
.cd-cover-badge { position:absolute; top:.9rem; left:.9rem; background:var(--cd-yellow); color:#000; font-weight:700; font-size:.7rem; padding:.15rem .5rem; border-radius:999px; }
.cd-list-row { display:flex; gap:.75rem; align-items:flex-start; padding:.75rem 0; border-bottom:1px solid var(--cd-grey); }
.cd-list-row:last-child { border-bottom:0; }
.cd-list-row img, .cd-list-row .cd-noimg { width:84px; height:64px; object-fit:cover; border-radius:.4rem; background:var(--cd-grey); flex:none; }
.cd-list-row .grow { flex:1; min-width:0; }
.cd-actions { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.5rem; }
.cd-actions .btn { min-height:40px; padding:.25rem .7rem; font-size:.9rem; }
.pub-gallery { display:grid; grid-template-columns: repeat(2, 1fr); gap:.5rem; margin:1rem 0; }
@media (min-width:768px){ .pub-gallery { grid-template-columns: repeat(3, 1fr); } .pub-gallery a:first-child { grid-column: span 2; grid-row: span 2; } }
.pub-gallery img { width:100%; height:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.5rem; background:var(--cd-grey); display:block; }
.pub-facts { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:.75rem; margin:1rem 0; }
.pub-facts div { border:1px solid var(--cd-grey); border-radius:.6rem; padding:.6rem .8rem; }
.pub-facts dt { font-size:.75rem; color:var(--cd-muted); text-transform:uppercase; letter-spacing:.04em; }
.pub-facts dd { margin:0; font-weight:700; }
.pub-share { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.pub-share .btn { min-height:44px; }
.pub-quote { border-left:5px solid var(--pub-accent); background:var(--cd-grey-light); padding:1rem 1.25rem; border-radius:.4rem; margin:1.25rem 0; }
.pub-filters { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.pub-filters a { border:1px solid #000; color:#000; text-decoration:none; padding:.4rem .9rem; border-radius:999px; font-weight:600; min-height:40px; display:inline-flex; align-items:center; }
.pub-filters a[aria-current="true"] { background:#000; color:#fff; }
#cd-lightbox { border:0; padding:0; background:transparent; max-width:96vw; max-height:96vh; }
#cd-lightbox::backdrop { background:rgba(0,0,0,.85); }
#cd-lightbox img { max-width:96vw; max-height:90vh; display:block; margin:0 auto; border-radius:.4rem; }
#cd-lightbox button { display:block; margin:.5rem auto 0; }
.d-contents { display: contents; }

/* Public enquiry form */
.pub-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.pub-form .form-control:focus,.pub-form .form-check-input:focus{border-color:#000;box-shadow:0 0 0 .2rem rgba(255,197,28,.55)}
.pub-form .form-check-input:checked{background-color:#000;border-color:#000}

/* Quotation document (staff view + public page) */
.qdoc{background:#fff;border:1px solid #E6E6E6;border-radius:.5rem;overflow:hidden;color:#000}
.qdoc-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem}
.qdoc-logo{max-height:56px;max-width:46%;width:auto;height:auto}
.qdoc-title{font-size:1.5rem;font-weight:700;line-height:1.1}
.qdoc-body{padding:1.25rem}
.qdoc-label{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.qdoc-h{font-size:1rem;font-weight:700;border-bottom:1px solid #E6E6E6;padding-bottom:.25rem;margin:1.25rem 0 .5rem}
.qdoc-table th{background:#E6E6E6;font-size:.8rem}.qdoc-table td,.qdoc-table th{border-color:#E6E6E6}
.qdoc-totals{max-width:22rem}.qdoc-totals th{font-weight:500}.qdoc-total th,.qdoc-total td{font-weight:700;font-size:1.05rem}
.qdoc-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.5rem}.qdoc-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.25rem}
.qdoc-cta{display:flex;gap:1rem;align-items:center;padding:1rem;border-radius:.5rem;margin-top:1.5rem;flex-wrap:wrap}
.qdoc-qr{width:8rem;height:8rem;background:#fff;border-radius:.25rem;padding:.25rem;flex:none}.qdoc-qr svg{width:100%;height:100%;display:block}
@media print{.cd-side,.cd-bottom,.cd-topbar,.no-print{display:none!important}.qdoc{border:0}}

/* ---- Digital flyer (public page) ---- */
.flyer-page { max-width: 860px; }
.flyer-h { font-weight: 800; letter-spacing: -.01em; }
.flyer-list { columns: 2 220px; padding-left: 1.1rem; }
.flyer-list li::marker { color: var(--cd-yellow, #FFC51C); }
.flyer-cta { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; background: var(--cd-yellow, #FFC51C); color: #000; border-radius: .75rem; padding: 1.25rem; }
.flyer-cta .btn { margin: 0 .5rem .5rem 0; }
.flyer-qr { background: #fff; padding: .6rem; border-radius: .5rem; text-align: center; width: 150px; }
.flyer-qr svg { width: 100%; height: auto; display: block; }

/* ---- Dashboard ---- */
.cd-tile { border-top: 3px solid var(--cd-yellow); overflow-wrap: anywhere; min-width: 0; }
.cd-tile a, .cd-tile a:hover, .cd-tile a:focus { color: inherit; text-decoration: none; display: block; }
.cd-tile a:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.cd-tile-n { font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: #000; }
.cd-bar-row { margin-bottom: .65rem; }
.cd-bar { background: var(--cd-grey); height: .6rem; border-radius: 1rem; overflow: hidden; }
.cd-bar span { display: block; height: 100%; background: var(--cd-yellow); }

/* ---- v1.1 design refresh: calmer cards, soft shadows, thin-line icons ---- */
:root { --cd-radius: 1rem; --cd-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05); }
body { background: #F4F5F7; }
.cd-card { border-radius: var(--cd-radius); border-color: #E7E9ED; box-shadow: var(--cd-shadow); }
.cd-sidebar { border-right-color: #E7E9ED; }
.cd-nav a { border-radius: .7rem; font-weight: 600; font-size: .95rem; }
.cd-nav a:hover { background:#F4F5F7; }
.cd-nav a.active { background: var(--cd-yellow); box-shadow: 0 2px 8px rgba(255,197,28,.45); }
.cd-nav svg, .cd-bottom svg, .btn svg { stroke-width: 1.6; }
.cd-topbar h1 { letter-spacing:-.01em; }
.table thead th { background:#F4F5F7; color:#444; }
.form-control, .form-select { border-radius:.6rem; }
.btn { border-radius:.6rem; }
.cd-tile { border-radius: var(--cd-radius); box-shadow: var(--cd-shadow); border-color:#E7E9ED; }
.cd-media-row { padding: 1rem 1.25rem; display:flex; gap: .9rem; align-items:flex-start; border-bottom:1px solid #E7E9ED; }
.cd-media-row:last-child { border-bottom:0; }
.cd-file-badge { flex:0 0 46px; height:46px; display:flex; align-items:center; justify-content:center; border-radius:.7rem; background:#FFF6D6; color:#000; font-weight:800; font-size:.75rem; border:1px solid #FFC51C; }
.min-w-0 { min-width:0; }

/* ---- v1.1 public home: What we do + services/projects slider ---- */
.pub-hero .pub-wrap { padding-top:4.5rem; padding-bottom:4.5rem; }
.pub-hero::before { background:linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35)); }
.pub-hero h1 { font-weight:800; letter-spacing:-.02em; max-width:20ch; }
.pub-eyebrow { color:#8a6a00; font-weight:800; text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; margin:0 0 .5rem; }
.pub-what { background:#fff; padding:3rem 0; }
.pub-what-grid { display:grid; gap:2rem; grid-template-columns:1fr; align-items:center; }
@media (min-width:992px){ .pub-what-grid { grid-template-columns: 1fr 1.05fr; gap:3rem; } .pub-what-solo { grid-template-columns:1fr; } }
.pub-what h2 { font-size:clamp(1.5rem,3.2vw,2.1rem); font-weight:800; letter-spacing:-.01em; margin-bottom:1.25rem; }
.pub-what h2::after { display:none; }
.pub-service-list { list-style:none; padding:0; margin:0 0 1rem; display:grid; gap:.75rem; grid-template-columns:1fr; }
@media (min-width:576px){ .pub-service-list { grid-template-columns:1fr 1fr; } }
.pub-service-list li { display:flex; gap:.7rem; align-items:center; font-weight:600; }
.pub-ico-wrap { flex:0 0 40px; height:40px; border-radius:50%; background:var(--pub-accent); color:var(--pub-on-accent); display:inline-flex; align-items:center; justify-content:center; }
.pub-slider { background:#F4F5F7; border:1px solid #E7E9ED; border-radius:1.25rem; padding:1rem; min-width:0; }
.pub-slider-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:.75rem; }
.pub-slider-nav { display:flex; gap:.4rem; }
.pub-slider-nav button { width:40px; height:40px; border-radius:50%; border:1px solid #000; background:#fff; color:#000; display:inline-flex; align-items:center; justify-content:center; }
.pub-slider-nav button:hover:not(:disabled) { background:var(--pub-accent); border-color:var(--pub-accent); color:var(--pub-on-accent); }
.pub-slider-nav button:disabled { opacity:.35; cursor:default; }
.pub-slider-track { display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding-bottom:.25rem; }
.pub-slider-track::-webkit-scrollbar { display:none; }
.pub-slide { flex:0 0 78%; scroll-snap-align:start; background:#fff; border:1px solid #E7E9ED; border-radius:1rem; overflow:hidden; text-decoration:none; color:#000; display:flex; flex-direction:column; box-shadow:var(--cd-shadow); }
@media (min-width:576px){ .pub-slide { flex-basis:46%; } }
@media (min-width:992px){ .pub-slide { flex-basis:48%; } }
.pub-slide:hover { box-shadow:0 6px 22px rgba(16,24,40,.14); color:#000; }
.pub-slide img, .pub-slide-ph { width:100%; aspect-ratio:4/3; object-fit:cover; background:#E6E6E6; display:flex; align-items:center; justify-content:center; color:#666; }
.pub-slide-body { display:flex; flex-direction:column; gap:.3rem; padding:.85rem .9rem 1rem; }
.pub-slide-body strong { font-size:1rem; line-height:1.25; }
.pub-slide-text { color:#555; font-size:.88rem; line-height:1.4; }
.pub-tag { align-self:flex-start; background:var(--pub-accent); color:var(--pub-on-accent); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding:.15rem .55rem; border-radius:999px; }
.pub-ico { flex:0 0 auto; }
.pub-card { border-radius:1rem; box-shadow:var(--cd-shadow); border-color:#E7E9ED; }
.pub-section h2 { font-weight:800; letter-spacing:-.01em; }
.pub-what-lead { color:#444; font-size:1.05rem; max-width:48ch; margin-bottom:1.25rem; }

/* ---- v1.1 pipeline kanban ---- */
.cd-kanban { display:flex; gap:1rem; overflow-x:auto; align-items:flex-start; padding:.25rem .1rem 1rem; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.cd-kcol { flex:0 0 285px; scroll-snap-align:start; background:#EBEDF0; border-radius:1rem; padding:.7rem; border-top:5px solid #888; transition:background .15s; }
.cd-kcol.is-over { background:#FFF3C4; outline:2px dashed #FFC51C; }
.cd-k-new_enquiry { border-top-color:#FFC51C; } .cd-k-contacted { border-top-color:#E0A800; } .cd-k-site_visit { border-top-color:#8f8f8f; }
.cd-k-quote_sent { border-top-color:#555; } .cd-k-negotiation { border-top-color:#111; } .cd-k-won { border-top-color:#1E8E3E; } .cd-k-lost { border-top-color:#C0392B; }
.cd-khead { display:flex; justify-content:space-between; align-items:center; padding:.15rem .25rem; }
.cd-ktotal { display:flex; flex-wrap:wrap; gap:.15rem .6rem; font-size:.85rem; font-weight:700; padding:0 .25rem .6rem; }
.cd-kcards { display:grid; gap:.6rem; min-height:60px; }
.cd-kcard { background:#fff; border:1px solid #E7E9ED; border-radius:.8rem; padding:.7rem .8rem; box-shadow:var(--cd-shadow); }
.cd-kcard[draggable="true"] { cursor:grab; } .cd-kcard.is-dragging { opacity:.45; }
.cd-ktitle { font-weight:700; color:#000; text-decoration:none; overflow-wrap:anywhere; } .cd-ktitle:hover { text-decoration:underline; }
.cd-kvalue { font-weight:700; margin:.15rem 0; }
.cd-avatar { flex:0 0 28px; height:28px; border-radius:50%; background:#FFC51C; color:#000; font-size:.7rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.cd-kempty { color:#777; font-size:.9rem; margin:.3rem .25rem; }
.cd-kmove { display:flex; gap:.4rem; margin-top:.6rem; }
.cd-kmove select { min-width:0; }
@media (max-width: 575px) { .cd-kcol { flex-basis:85%; } }
