/* ==========================================================================
   Living on the Edge — Brand Guide
   Stylesheet for the page-brand-guide.php template
   --------------------------------------------------------------------------
   FONT NOTE: Gotham / DIN Condensed / Adobe Garamond Pro are licensed.
   This uses Montserrat / Oswald / EB Garamond as stand-ins. To switch in
   the real fonts, add their @font-face blocks and change the --font-* vars.
   ========================================================================== */

:root{
  --navy:#004677;
  --gray:#808285;
  --black:#000000;
  --white:#ffffff;
  --ink:#141414;
  --canvas:#f4f4f5;
  --panel:#ffffff;
  --line:#e2e2e4;
  --line-soft:#ededee;
  --nav-w:272px;
  --maxw:880px;
  --font-sans:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-cond:'Oswald',sans-serif;
  --font-serif:'EB Garamond',Georgia,serif;
}

/* Scope everything under .lote-bg so it never leaks into the rest of the theme */
.lote-bg *{box-sizing:border-box}
.lote-bg{margin:0;background:var(--canvas);color:var(--ink);
  font-family:var(--font-sans);font-size:18px;line-height:1.5;-webkit-font-smoothing:antialiased}
html{scroll-behavior:smooth}
.lote-bg a{color:inherit}
.lote-bg img{max-width:100%;display:block}

/* Cover / hero */
.lote-bg .lote-hero{position:relative;overflow:hidden;background:var(--hero-bg,#6f6f6f);
  display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:clamp(380px,52vw,640px);padding:64px 24px}
.lote-bg .hero-corner{position:absolute;width:min(32%,360px);pointer-events:none;z-index:1}
.lote-bg .hero-corner.tr{top:0;right:0}
.lote-bg .hero-corner.bl{left:0;bottom:0}
.lote-bg .hero-corner img{width:100%;height:auto;max-width:none;display:block}
.lote-bg .hero-center{position:relative;z-index:2;max-width:min(90%,760px)}
.lote-bg .hero-center-img{width:100%;height:auto;margin:0 auto}
.lote-bg .hero-icon{width:clamp(30px,3.6vw,54px);height:auto;margin:0 auto 22px;color:#fff}
.lote-bg .hero-wordmark{font-family:var(--font-sans);font-weight:600;color:#fff;
  letter-spacing:.34em;text-transform:uppercase;font-size:clamp(13px,1.9vw,26px)}
.lote-bg .hero-title{font-family:var(--font-sans);font-weight:300;color:rgba(255,255,255,.94);
  letter-spacing:.12em;line-height:1.02;text-transform:uppercase;
  font-size:clamp(44px,8.4vw,116px);margin-top:clamp(14px,2.4vw,34px)}

/* Introduction banner */
.lote-bg .intro-banner{width:100%;height:auto;border-radius:18px;margin-top:34px}

.lote-bg .shell{display:flex;align-items:flex-start}
.lote-bg .sidebar{width:var(--nav-w);flex:0 0 var(--nav-w);position:sticky;top:0;height:100vh;
  background:var(--panel);border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:34px 26px 24px}
.lote-bg .brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}
.lote-bg .brand .mark{width:40px;height:40px;flex:0 0 40px}
.lote-bg .brand .wm{font-weight:800;letter-spacing:.02em;line-height:1.05;font-size:15px;text-transform:uppercase}
.lote-bg .brand .wm small{display:block;font-weight:600;font-size:11px;letter-spacing:.18em;color:var(--gray)}
/* Uploaded sidebar logo (replaces the type lockup) */
.lote-bg .brand.has-img{display:block}
.lote-bg .brand .brand-img{width:100%;max-width:190px;height:auto;display:block}
.lote-bg .brand .wm-type{margin-top:2px}
.lote-bg .brand .wm-type small{margin-top:5px}

.lote-bg nav.toc{display:flex;flex-direction:column;gap:2px;flex:1}
.lote-bg nav.toc a{text-decoration:none;font-size:14px;font-weight:600;letter-spacing:.02em;
  color:#5b5d61;padding:9px 12px;border-radius:8px;position:relative;
  display:flex;align-items:center;gap:10px;transition:.15s}
.lote-bg nav.toc a .dot{width:6px;height:6px;border-radius:50%;background:transparent;transition:.15s}
.lote-bg nav.toc a:hover{background:var(--line-soft);color:var(--ink)}
.lote-bg nav.toc a.active{color:var(--navy);background:rgba(0,70,119,.07)}
.lote-bg nav.toc a.active .dot{background:var(--navy)}

.lote-bg .side-foot{border-top:1px solid var(--line);padding-top:16px;margin-top:10px}
.lote-bg .side-foot .ver{font-size:11px;color:var(--gray);letter-spacing:.04em}

.lote-bg main{flex:1;min-width:0;padding:0 64px}
.lote-bg .wrap{max-width:var(--maxw);margin:0 auto}

.lote-bg section{padding:88px 0;border-bottom:1px solid var(--line);scroll-margin-top:24px}
.lote-bg section:last-of-type{border-bottom:none}
.lote-bg .sec-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:14px}
.lote-bg .kicker{font-size:13px;font-weight:700;letter-spacing:.22em;color:var(--gray);text-transform:uppercase;margin:0 0 6px}
.lote-bg h2.title{font-size:32px;font-weight:700;letter-spacing:.01em;margin:0;line-height:1.08}
.lote-bg #introduction .lead{font-weight:700;font-size:32px;line-height:1.25}
.lote-bg h3{font-size:18px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--navy);margin:48px 0 14px}
.lote-bg .lead{font-size:22px;font-weight:400;line-height:1.45;max-width:42ch;color:var(--ink)}

/* Mission / Vision split layout (text left, photo right) */
.lote-bg .sec-split{display:flex;gap:48px;align-items:center;justify-content:space-between}
.lote-bg .sec-copy{flex:1 1 0;min-width:0}
.lote-bg .sec-media{flex:0 0 42%;max-width:440px}
.lote-bg .sec-media img{width:100%;height:auto;border-radius:18px;display:block;
  box-shadow:0 1px 3px rgba(0,0,0,.08)}
@media(max-width:960px){
  .lote-bg .sec-split{flex-direction:column;align-items:flex-start;gap:26px}
  .lote-bg .sec-media{flex:none;width:100%;max-width:100%}
}
.lote-bg p{margin:0 0 18px}
.lote-bg .muted{color:#3c3c3e}
.lote-bg .narrow{max-width:64ch}

.lote-bg .dl{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  font-size:12.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--navy);background:#fff;border:1.5px solid var(--navy);
  padding:11px 20px;border-radius:999px;cursor:pointer;transition:.15s;text-decoration:none}
.lote-bg .dl:hover{background:var(--navy);color:#fff}
.lote-bg .dl svg{width:16px;height:16px;flex:0 0 16px}
.lote-bg .dl.small{font-size:11px;padding:8px 14px;letter-spacing:.1em}

.lote-bg ul.carets{list-style:none;margin:6px 0 0;padding:0 0 0 30px;display:flex;flex-direction:column;gap:18px}
.lote-bg ul.carets li{display:flex;gap:12px;align-items:flex-start;font-size:18px}
.lote-bg ul.carets li svg{width:24px;height:24px;flex:0 0 24px;color:var(--navy);margin-top:1px}
.lote-bg ul.carets li b{font-weight:700}

.lote-bg .logo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:8px}
.lote-bg .logo-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.lote-bg .logo-card .stage{display:flex;align-items:center;justify-content:center;padding:40px 24px;min-height:150px}
.lote-bg .logo-card .stage.v{flex-direction:column;gap:0}
.lote-bg .logo-card .bar{display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;border-top:1px solid var(--line);background:#fafafb}
.lote-bg .logo-card .bar span{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gray)}
.lote-bg .chiprow{display:flex;gap:8px}
.lote-bg .chip{width:26px;height:26px;border-radius:7px;cursor:pointer;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;transition:.15s}
.lote-bg .chip:hover{transform:translateY(-2px)}

.lote-bg .bg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.lote-bg .bg-tile{aspect-ratio:1;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background-size:cover;background-position:center;position:relative;overflow:hidden}
.lote-bg .bg-tile::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.28)}
.lote-bg .bg-tile .lk{position:relative;z-index:1;display:flex;align-items:center;gap:10px}

.lote-bg .icon-quad{display:grid;grid-template-columns:repeat(2,96px);gap:14px}
.lote-bg .icon-quad .t{width:96px;height:96px;border-radius:18px;display:flex;align-items:center;justify-content:center}

.lote-bg .clearspace{border:1px dashed var(--gray);border-radius:14px;background:#fff;
  padding:54px;display:flex;align-items:center;justify-content:center;margin-top:8px;position:relative}

.lote-bg .swatches{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:10px}
.lote-bg .sw{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.lote-bg .sw .fill{height:130px;cursor:pointer;position:relative}
.lote-bg .sw .fill .copy-hint{position:absolute;top:12px;right:12px;font-size:10px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;background:rgba(255,255,255,.85);color:#222;
  padding:5px 9px;border-radius:6px;opacity:0;transition:.15s}
.lote-bg .sw .fill:hover .copy-hint{opacity:1}
.lote-bg .sw .meta{padding:16px 18px}
.lote-bg .sw .meta .nm{font-weight:700;font-size:15px;margin-bottom:10px}
.lote-bg .sw .meta .row{display:flex;justify-content:space-between;align-items:center;
  font-size:13px;padding:5px 0;border-top:1px solid var(--line-soft);cursor:pointer}
.lote-bg .sw .meta .row:first-of-type{border-top:none}
.lote-bg .sw .meta .row .k{color:var(--gray);font-weight:600;letter-spacing:.04em}
.lote-bg .sw .meta .row .v{font-variant-numeric:tabular-nums}
.lote-bg .sw .meta .row:hover .v{color:var(--navy)}

.lote-bg .type-block{border:1px solid var(--line);border-radius:16px;background:#fff;padding:26px 28px;margin-bottom:18px}
.lote-bg .type-block .fam{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--navy);margin-bottom:4px}
.lote-bg .type-block .note{font-size:13px;color:var(--gray);margin-bottom:18px}
.lote-bg .spec{font-size:30px;line-height:1.25;margin:0}
.lote-bg .weights{display:flex;flex-wrap:wrap;gap:18px;margin-top:12px}
.lote-bg .weights span{font-size:20px}

.lote-bg .sub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:8px}
.lote-bg .sub-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:22px 22px 20px}
.lote-bg .sub-card .sb-logo{height:46px;margin-bottom:14px;display:flex;align-items:center}
.lote-bg .sub-card .sb-logo img{max-height:46px;width:auto}
.lote-bg .sub-card .sb-name{font-weight:700;font-size:17px;margin-bottom:4px}
.lote-bg .sub-card .sb-desc{font-size:14px;color:#55565a;margin:0}

.lote-bg .tr-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:8px}
.lote-bg .tr-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:20px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:16px}
.lote-bg .tr-card .lang{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gray)}
.lote-bg .tr-card .name{font-size:21px;font-weight:600;color:var(--navy)}
.lote-bg .tr-card.rtl .name{direction:rtl}

/* Introduction body + helper notes */
.lote-bg .intro-body{max-width:68ch;color:#3c3c3e;font-size:18px;margin-top:18px}
.lote-bg .copy-note{font-size:13px;color:var(--gray);margin:14px 0 0;letter-spacing:.02em}

/* Group label (e.g. "Vertical (Stacked)") */
.lote-bg .grp-label{font-size:13px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--navy);margin:30px 0 14px}

/* Green download CTA pill (matches design) */
.lote-bg .dl.green{background:#5AD59F;border-color:#5AD59F;color:#fff;margin-top:18px}
.lote-bg .dl.green:hover{background:#49c08c;border-color:#49c08c;color:#fff}

/* Green download badge on individual asset cards */
.lote-bg .dl-badge{position:absolute;bottom:-13px;right:16px;width:34px;height:34px;display:block;cursor:pointer;transition:.15s;z-index:3}
.lote-bg .dl-badge svg{width:100%;height:100%;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.14))}
.lote-bg .dl-badge svg path{fill:none;stroke:#fff}
.lote-bg .dl-badge:hover{transform:translateY(-2px)}

/* Lockup (icon + word mark) used by logo/language/region cards */
.lote-bg .lk-v{display:flex;flex-direction:column;align-items:center;line-height:.9}
.lote-bg .lk-v .lk-icon-v{width:58px;height:58px;margin-bottom:9px}
.lote-bg .lk-h{display:flex;align-items:center;gap:12px;line-height:.88}
.lote-bg .lk-h .lk-icon-h{width:46px;height:46px;flex:0 0 46px}
.lote-bg .lk-words{display:flex;flex-direction:column}
.lote-bg .lk-v .lk-words{align-items:center}
.lote-bg .lk-living{font-weight:900;font-size:24px;letter-spacing:-.01em}
.lote-bg .lk-h .lk-living{font-size:21px}
.lote-bg .lk-ote{font-weight:600;font-size:12px;letter-spacing:.17em}
.lote-bg .lk-h .lk-ote{font-size:9.5px;letter-spacing:.13em}

/* Logo variant cards */
.lote-bg .logo-variant-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:30px 22px}
.lote-bg .logo-variant{position:relative;border-radius:14px;min-height:150px;
  display:flex;align-items:center;justify-content:center;padding:34px 24px}
.lote-bg .logo-variant.on-white{background:#fff;border:1px solid var(--line)}
.lote-bg .logo-variant.on-gray{background:#808285}
/* Uploaded real logo files (fall back to built-in lockup when absent) */
.lote-bg .logo-variant .lv-logo{display:block;margin:auto;width:auto;height:auto;object-fit:contain}
.lote-bg .logo-variant .lv-logo--v{max-width:78%;max-height:150px}
.lote-bg .logo-variant .lv-logo--h{max-width:88%;max-height:74px}

/* Brand per Language */
.lote-bg .lang-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px 22px;margin-top:8px}
.lote-bg .lang-label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gray);margin-bottom:8px}
.lote-bg .lang-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:14px;
  display:flex;align-items:center;justify-content:center;padding:24px 18px;min-height:104px}
.lote-bg .lang-card.rtl{direction:rtl}
.lote-bg .lang-card img{max-height:42px;width:auto}
.lote-bg .lang-mark{display:flex;align-items:center;gap:10px;color:#141414;--sw:#fff}
.lote-bg .lang-mark .lk-icon-h{width:40px;height:40px;flex:0 0 40px}
.lote-bg .lang-name{font-weight:800;font-size:17px;letter-spacing:.02em;text-transform:uppercase;line-height:1.05}

/* Brand by Region/Country */
.lote-bg .region-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 22px;margin-top:18px}
.lote-bg .region-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:30px 20px;min-height:140px;--sw:#fff}
.lote-bg .region-label{font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--gray)}
.lote-bg .region-card .region-logo{display:block;width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain}
.lote-bg .region-card.has-logo{padding:26px 22px;min-height:180px}

/* Placeholder grid for Brand Usage (awaiting exported artwork) */
.lote-bg .ph-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}
.lote-bg .ph-grid.wide{grid-template-columns:repeat(3,1fr)}
.lote-bg .ph-tile{border:1px dashed #c7c8ca;border-radius:14px;background:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  aspect-ratio:1;padding:18px;text-align:center}
.lote-bg .ph-tile.tall{aspect-ratio:4/3}
.lote-bg .ph-tile .ph-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gray)}
/* Editable example galleries (real uploaded photos) */
.lote-bg .ex-label{font-weight:700;color:#141414;margin:26px 0 12px}
.lote-bg .ex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:8px}
.lote-bg .ex-grid.four{grid-template-columns:repeat(4,1fr)}
.lote-bg .ph-grid.three,.lote-bg .ex-grid.three{grid-template-columns:repeat(3,1fr)}
.lote-bg .ex-tile{border-radius:14px;overflow:hidden;background:#e9edf0;aspect-ratio:1/1}
.lote-bg .ex-tile.square{aspect-ratio:1/1}
.lote-bg .ex-tile img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
/* Lightbox */
.lote-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;
  background:rgba(17,18,20,.86);padding:32px;opacity:0;pointer-events:none;transition:opacity .2s;cursor:zoom-out}
.lote-lightbox.open{opacity:1;pointer-events:auto}
.lote-lightbox img{max-width:min(1100px,94vw);max-height:90vh;width:auto;height:auto;
  border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lote-lightbox .lb-close{position:absolute;top:20px;right:26px;width:42px;height:42px;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.lote-lightbox .lb-close:hover{background:rgba(255,255,255,.26)}
.lote-bg .clearspace-img{display:block;max-width:100%;height:auto;border-radius:14px;margin-top:8px}
/* Brand Usage examples: wider, uncropped, natural height (lightbox still applies) */
.lote-bg .usage-grid{display:flex;flex-wrap:wrap;gap:18px;margin-top:8px}
.lote-bg .ex-tile.usage-tile{aspect-ratio:auto;max-width:600px;width:100%;background:transparent}
.lote-bg .ex-tile.usage-tile img{width:100%;height:auto;object-fit:contain;border-radius:14px}

.lote-bg #lote-toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);
  background:#111;color:#fff;font-size:13px;font-weight:600;letter-spacing:.02em;
  padding:12px 20px;border-radius:10px;opacity:0;pointer-events:none;transition:.22s;z-index:99999}
.lote-bg #lote-toast.show{opacity:1;transform:translate(-50%,0)}

.lote-bg .mtop{display:none}
@media(max-width:960px){
  .lote-bg .sidebar{display:none}
  .lote-bg main{padding:0 22px}
  .lote-bg section{padding:38px 0}
  .lote-bg h3{margin:30px 0 12px}
  .lote-bg .mtop{display:flex;position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);
    align-items:center;gap:12px;padding:12px 16px;overflow-x:auto}
  .lote-bg .mtop .brand{margin:0;flex:0 0 auto}
  .lote-bg .mtop nav{display:flex;gap:6px}
  .lote-bg .mtop nav a{flex:0 0 auto;font-size:13px;font-weight:600;color:#5b5d61;text-decoration:none;
    padding:7px 12px;border-radius:8px;white-space:nowrap}
  .lote-bg .mtop nav a.active{color:var(--navy);background:rgba(0,70,119,.08)}
  .lote-bg h2.title{font-size:28px}
  .lote-bg .logo-grid,.lote-bg .swatches,.lote-bg .sub-grid,.lote-bg .tr-grid,.lote-bg .bg-grid{grid-template-columns:1fr}
  .lote-bg .logo-variant-grid,.lote-bg .region-grid{grid-template-columns:1fr}
  .lote-bg .lang-grid{grid-template-columns:repeat(2,1fr)}
  .lote-bg .ph-grid,.lote-bg .ph-grid.wide{grid-template-columns:repeat(2,1fr)}
  .lote-bg .ex-grid,.lote-bg .ex-grid.four,.lote-bg .ex-grid.three,.lote-bg .ph-grid.three{grid-template-columns:repeat(2,1fr)}
  .lote-bg .sec-head{flex-direction:column}
  .lote-bg .lote-hero{min-height:auto;padding:34px 20px 38px}
  .lote-bg .hero-center{max-width:56%}
  .lote-bg .hero-center-img{width:100%;height:auto;max-height:40vh;object-fit:contain}
  .lote-bg .hero-icon{width:clamp(28px,8vw,42px);margin-bottom:14px}
  .lote-bg .hero-wordmark{font-size:clamp(10px,3vw,15px);letter-spacing:.22em}
  .lote-bg .hero-title{font-size:clamp(26px,7.4vw,42px);letter-spacing:.06em;margin-top:12px}
  .lote-bg .hero-corner{width:min(40%,190px)}
}
