
/*
 DATE48 V34
 Desktop Compass.
 Only /people/compass at >=1200px.
*/

@media (min-width:1200px) {

  body.d48-compassdesk-active {
    --dc-bg:#faf7f4;
    --dc-paper:#fffdfb;
    --dc-ink:#281e22;
    --dc-muted:#8b777d;
    --dc-line:#e6d9d8;
    --dc-accent:#912c53;
    --dc-tint:#f6ebed;

    --dc-edge:clamp(20px,2.7vw,48px);
    --dc-left:clamp(206px,15vw,238px);
    --dc-right:clamp(218px,17vw,272px);
    --dc-gap:clamp(20px,2.5vw,44px);

    background:var(--dc-bg)!important;
    color:var(--dc-ink)!important;
  }

  body.d48-compassdesk-active .app-page {
    width:100%!important;
    max-width:none!important;
    min-height:100vh!important;
    background:var(--dc-bg)!important;
  }

  body.d48-compassdesk-active .app-shell {
    box-sizing:border-box!important;
    position:relative!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;

    margin:
      0
      calc(
        var(--dc-edge) +
        var(--dc-right) +
        var(--dc-gap)
      )
      0
      calc(
        var(--dc-edge) +
        var(--dc-left) +
        var(--dc-gap)
      )!important;

    padding:24px 0 80px!important;
    background:transparent!important;
    overflow:visible!important;
  }

  body.d48-compassdesk-active
  .app-shell > .topbar,

  body.d48-compassdesk-active
  .app-shell > nav.bottom-nav,

  body.d48-compassdesk-active
  nav.bottom-nav,

  body.d48-compassdesk-active
  .date48-clean-bottom-bar {
    display:none!important;
  }

  body.d48-compassdesk-active
  #d48-desktop-v2-sidebar,

  body.d48-compassdesk-active
  #d48-desktop-v2-aside {
    display:none!important;
  }

  /* Main Compass page */

  body.d48-compassdesk-active
  .date48-compass-page {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;

    width:100%!important;
    min-width:0!important;
    max-width:none!important;

    min-height:calc(100vh - 60px)!important;

    margin:0!important;
    padding:0 0 56px!important;

    background:transparent!important;
    overflow:visible!important;
    color:var(--dc-ink)!important;
  }

  body.d48-compassdesk-active
  .date48-compass-page::before {
    content:"ЛЮДИ  ·  КОМПАС НАСТРОЕНИЯ";

    display:block;
    order:-1;

    margin:4px 0 24px;

    color:var(--dc-accent);

    font:700 10px/1.5 system-ui,sans-serif;
    letter-spacing:.21em;
    text-transform:uppercase;
  }

  /* Loading / results / questionnaire */

  body.d48-compassdesk-active
  .date48-compass-page >
  .date48-compass-result,

  body.d48-compassdesk-active
  .date48-compass-page >
  .date48-compass-flow,

  body.d48-compassdesk-active
  .date48-compass-page >
  .date48-compass-loading,

  body.d48-compassdesk-active
  .date48-compass-page >
  .date48-compass-error {
    box-sizing:border-box!important;

    width:100%!important;
    min-width:0!important;
    max-width:none!important;

    margin:0!important;
    padding:clamp(34px,4vw,66px)!important;

    border:1px solid var(--dc-line)!important;
    border-radius:24px!important;

    background:var(--dc-paper)!important;

    box-shadow:
      0 22px 64px rgba(58,36,43,.045)!important;
  }

  body.d48-compassdesk-active
  .date48-compass-result h1,

  body.d48-compassdesk-active
  .date48-compass-question h1 {
    max-width:670px!important;

    font-family:Georgia,serif!important;
    font-size:clamp(38px,3.25vw,58px)!important;
    font-weight:400!important;
    line-height:1.05!important;
    letter-spacing:-.044em!important;

    color:var(--dc-ink)!important;
  }

  body.d48-compassdesk-active
  .date48-compass-result p,

  body.d48-compassdesk-active
  .date48-compass-question p {
    max-width:610px;
    line-height:1.7!important;
  }

  body.d48-compassdesk-active
  .date48-compass-result__symbol {
    width:64px!important;
    height:64px!important;

    border-radius:50%!important;
    background:var(--dc-tint)!important;
    color:var(--dc-accent)!important;
  }

  body.d48-compassdesk-active
  .date48-compass-options {
    display:grid!important;

    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    gap:14px!important;
  }

  body.d48-compassdesk-active
  .date48-compass-option {
    width:100%!important;
    min-height:76px!important;
    border-radius:16px!important;
    text-align:left!important;
  }

  body.d48-compassdesk-active
  .date48-compass-flow__actions {
    display:flex!important;
    flex-wrap:wrap!important;
    gap:12px!important;
  }

  body.d48-compassdesk-active
  .date48-compass-primary,

  body.d48-compassdesk-active
  .date48-compass-next {
    max-width:100%!important;
    min-height:48px!important;
  }

  /* Left navigation */

  body.d48-compassdesk-active
  #d48-compassdesk-left {
    display:flex!important;
    flex-direction:column;
    box-sizing:border-box;

    position:fixed;
    z-index:90;

    top:0;
    bottom:0;
    left:var(--dc-edge);

    width:var(--dc-left);
    padding:28px 14px 24px;

    border-right:1px solid var(--dc-line);
    background:var(--dc-bg);
    color:var(--dc-ink);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-brand {
    display:block;
    padding:0 7px;

    text-decoration:none!important;
    color:var(--dc-ink)!important;

    font:400 36px/.95 Georgia,serif;
    letter-spacing:-.065em;
  }

  body.d48-compassdesk-active
  .d48-compassdesk-tagline {
    max-width:185px;
    margin:24px 7px 20px;

    font:700 9px/1.6 system-ui,sans-serif;
    letter-spacing:.16em;
    text-transform:uppercase;

    color:var(--dc-accent);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-nav {
    display:flex;
    flex-direction:column;
    gap:6px;

    border-top:1px solid var(--dc-line);
    padding-top:20px;
  }

  body.d48-compassdesk-active
  .d48-compassdesk-nav a {
    display:flex;
    align-items:center;
    gap:12px;

    min-height:40px;
    padding:7px 10px;

    border-radius:10px;

    color:var(--dc-ink)!important;
    text-decoration:none!important;

    font:600 13px/1.4 system-ui,sans-serif;
  }

  body.d48-compassdesk-active
  .d48-compassdesk-nav a[aria-current="page"] {
    color:#fff!important;
    background:var(--dc-accent);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-icon {
    width:22px;
    flex:0 0 22px;

    text-align:center;
    font-size:17px;
    font-weight:400;
  }

  body.d48-compassdesk-active
  .d48-compassdesk-foot {
    margin-top:auto;
    padding:17px 8px 0;

    border-top:1px solid var(--dc-line);

    font:italic 13px/1.7 Georgia,serif;
    color:var(--dc-muted);
  }

  /* Right editorial rail */

  body.d48-compassdesk-active
  #d48-compassdesk-right {
    display:block;
    box-sizing:border-box;

    position:fixed;
    top:32px;
    right:var(--dc-edge);

    width:var(--dc-right);
    max-height:calc(100vh - 56px);

    overflow:auto;
    padding:13px 5px;

    color:var(--dc-ink);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-eyebrow {
    font:700 10px/1.6 system-ui,sans-serif;
    letter-spacing:.19em;

    color:var(--dc-accent);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-righttitle {
    max-width:260px;
    margin:22px 0 12px;

    font:italic 30px/1.13 Georgia,serif;
    letter-spacing:-.035em;

    color:var(--dc-ink);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-description {
    max-width:255px;
    margin:0;

    font:13px/1.8 system-ui,sans-serif;

    color:var(--dc-muted);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-rule {
    height:1px;
    margin:24px 0;

    background:var(--dc-line);
  }

  body.d48-compassdesk-active
  .d48-compassdesk-smalltitle {
    font:700 12px system-ui,sans-serif;

    color:var(--dc-ink);
  }
}

@media (min-width:1200px) and (max-width:1399px) {
  body.d48-compassdesk-active
  .date48-compass-options {
    grid-template-columns:1fr!important;
  }

  body.d48-compassdesk-active
  .date48-compass-result h1,

  body.d48-compassdesk-active
  .date48-compass-question h1 {
    font-size:clamp(34px,3.1vw,46px)!important;
  }
}

/* Both known Date48 dark-theme attributes */

html[data-date48-theme="dark"]
body.d48-compassdesk-active,

html[data-d48-theme="dark"]
body.d48-compassdesk-active,

body.d48-compassdesk-active[data-date48-theme="dark"] {
  --dc-bg:#151014;
  --dc-paper:#21191e;
  --dc-ink:#f7edef;
  --dc-muted:#b9a8ae;
  --dc-line:#47353e;
  --dc-accent:#db89a5;
  --dc-tint:#3b2630;
}
