/* BrainON Designer Tools — editorial v2 */

/* Tools navigation mirrors the existing Publish submenu. */
.unified-site .navbar-nav > li.nav-tools-item { position: relative; }

@media (min-width: 992px) and (hover: hover) {
  .unified-site .navbar-default .navbar-nav > .nav-tools-item:hover > a {
    color: #cb3340;
    border-bottom-color: #cb3340;
  }
  .unified-site .nav-tools-item:hover > .nav-submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

@media (min-width: 992px) {
  .unified-site .navbar-default .navbar-nav > .nav-tools-item:focus-within > a {
    color: #cb3340;
    border-bottom-color: #cb3340;
  }
  .unified-site .nav-tools-item:focus-within > .nav-submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

.unified-site .nav-tools-toggle { display: none; }

@media (max-width: 991px) {
  .unified-site .nav-tools-item { position: relative; }
  .unified-site .nav-tools-item > a { padding-right: 64px; padding-left: 64px; }
  .unified-site .nav-tools-item.is-open > .nav-submenu {
    max-height: 104px;
    padding: 4px 0 6px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .unified-site .nav-tools-toggle {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 10px;
    display: block;
    width: 48px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .unified-site .nav-tools-toggle::before {
    position: absolute;
    top: 15px;
    left: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: 65% 65%;
    transition: transform .18s ease;
  }
  .unified-site .nav-tools-item.is-open > .nav-tools-toggle::before { transform: rotate(225deg); }
  .unified-site .nav-tools-toggle:focus-visible { outline: 2px solid #cb3340 !important; outline-offset: -5px !important; }
}

.designer-tools-page {
  position: relative;
  overflow: hidden;
  padding: 0 0 76px;
  background: #f0f0f0;
  color: #222;
}

.designer-tools-page::before {
  position: absolute;
  top: 24px;
  right: -85px;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(203 51 64 / 10%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dt-wrap { width: min(1110px, calc(100% - 40px)); margin: 0 auto; }

.dt-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  align-items: center;
  padding: 48px 8px 36px;
}

.dt-hero-copy { max-width: 760px; }

.dt-eyebrow {
  position: relative;
  margin: 0 0 12px;
  padding-left: 14px;
  color: #5b5552;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dt-eyebrow::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 3px;
  background: #cb3340;
  content: "";
}

.dt-title {
  margin: 0 0 14px;
  color: #222;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: clamp(44px, 5.5vw, 67px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
}

.dt-title-italic {
  color: #b72a35;
  font-family: PlayfairIta, Georgia, serif;
  font-weight: 400;
}

.dt-intro {
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: #4d4947;
  font-family: AvenirReg, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

.dt-hero-aside {
  position: relative;
  min-height: 148px;
  padding: 16px 10px 10px 26px;
  border-left: 1px solid rgb(34 34 34 / 10%);
}

.dt-hand-note {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0 0 10px;
  color: #5c484a;
  font-family: Bulgatti, PlayfairIta, Georgia, serif;
  font-size: 31px;
  line-height: 1.12;
  transform: rotate(-4deg);
}

.dt-hand-note::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 112px;
  height: 2px;
  background: #cb3340;
  content: "";
  transform: rotate(-5deg);
  transform-origin: right center;
}

.dt-mini-note {
  display: inline-block;
  margin: 0 0 0 62px;
  padding: 9px 12px;
  border-left: 3px solid #bd8a24;
  background: #f3dfad;
  color: #4a4036;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .025em;
  line-height: 1.35;
  transform: rotate(1.5deg);
}

.dt-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 6px;
}

.dt-filter {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid #d8d4d1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
  color: #3f3b39;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dt-filter:hover,
.dt-filter:focus-visible {
  border-color: #cb3340;
  color: #9f2631;
  outline: 0;
  transform: translateY(-1px);
}

.dt-filter.is-active {
  border-color: #cb3340;
  background: #cb3340;
  box-shadow: 0 5px 14px rgb(203 51 64 / 15%);
  color: #fff;
}

.dt-filter[hidden] { display: none !important; }

.dt-list {
  position: relative;
  display: grid;
  gap: 11px;
  margin: 0;
  transition: height .34s cubic-bezier(.2,.7,.2,1);
}

.dt-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #ded9d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(34 34 34 / 5%);
  transform-origin: center top;
  transition: box-shadow .25s ease, border-color .25s ease, opacity .2s ease, transform .2s ease;
}

.dt-item:hover { border-color: #d2cbc7; box-shadow: 0 8px 22px rgb(34 34 34 / 7%); }
.dt-item[hidden] { display: none !important; }
.dt-item.dt-filter-exit { opacity: 0; transform: scale(.985); }
.dt-item.dt-filter-enter { opacity: 0; transform: translateY(12px) scale(.99); }
.dt-list.dt-is-filtering { pointer-events: none; }

.dt-trigger {
  display: grid;
  grid-template-columns: 34px 116px minmax(0, 1fr) 24px;
  width: 100%;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dt-trigger:hover,
.dt-trigger:focus-visible { background: #fdfcfc; }
.dt-trigger:focus-visible { box-shadow: inset 0 0 0 2px rgb(203 51 64 / 40%); outline: 0; }

.dt-type-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #b72a35;
}

.dt-type-icon svg,
.dt-tip-icon svg,
.dt-share-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dt-badge {
  display: inline-flex;
  width: 112px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 5px;
  background: #f2dfe1;
  color: #8e202a;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dt-badge-dark { background: #222; color: #fff; }
.dt-badge-gray { background: #dedede; color: #222; }
.dt-badge-warm { background: #f3dfad; color: #7c1c25; }

.dt-item-title {
  color: #282525;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.dt-chevron { position: relative; width: 22px; height: 22px; color: #a52934; }
.dt-chevron::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: 65% 65%;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.dt-trigger[aria-expanded="true"] .dt-chevron::before { transform: rotate(225deg); }

.dt-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.dt-item.is-open .dt-panel,
.dt-trigger[aria-expanded="true"] + .dt-panel { grid-template-rows: 1fr; opacity: 1; }
.dt-panel-inner { min-height: 0; overflow: hidden; }

.dt-copy {
  padding: 6px 20px 22px 62px;
  border-top: 1px solid #eee9e6;
  color: #45413f;
  font-family: AvenirReg, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.dt-copy p { margin: 14px 0 0; padding: 0; }
.dt-copy strong { color: #8f222c; font-family: AvenirMed, Arial, sans-serif; font-weight: 700; }

.dt-copy-with-practice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 28px;
  align-items: start;
}

.dt-practice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding: 17px 18px;
  border-radius: 7px;
  background: #fff0c9;
  color: #51453b;
}
.dt-practice-soft { background: #f7eeee; }
.dt-practice strong { display: block; margin: 0 0 3px; color: #a52934; }
.dt-practice p { margin: 0; font-size: 14px; line-height: 1.55; }
.dt-tip-icon { display: inline-flex; width: 34px; height: 34px; color: #b72a35; }

.dt-share {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid #ded9d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(34 34 34 / 4%);
}
.dt-share-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border-radius: 50%;
  background: #f7eeee;
  color: #a52934;
}
.dt-share-copy strong,
.dt-share-copy span { display: block; }
.dt-share-copy strong { margin-bottom: 3px; color: #222; font-family: PlayfairSmBold, Georgia, serif; font-size: 17px; font-weight: 500; }
.dt-share-copy span { color: #6d6763; font-family: AvenirReg, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.dt-share-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid #cb3340;
  border-radius: 5px;
  background: #cb3340;
  color: #fff !important;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 13px;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.dt-share-button:hover,
.dt-share-button:focus-visible { border-color: #a92934; background: #a92934; color: #fff !important; transform: translateY(-1px); outline: 0; }
.dt-share-button span { font-size: 18px; line-height: 1; }

@media (max-width: 900px) {
  .dt-hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .dt-hand-note { font-size: 27px; }
  .dt-copy-with-practice { grid-template-columns: 1fr; gap: 0; }
  .dt-practice { max-width: 520px; }
}

@media (max-width: 767px) {
  .designer-tools-page { padding-bottom: 54px; }
  .dt-wrap { width: min(100% - 28px, 1110px); }
  .dt-hero { display: block; padding: 36px 0 26px; }
  .dt-title { font-size: 43px; }
  .dt-intro { font-size: 17px; line-height: 1.62; }
  .dt-hero-aside { min-height: 0; margin-top: 24px; padding: 8px 0 0 18px; }
  .dt-hand-note { margin-bottom: 12px; font-size: 25px; }
  .dt-mini-note { margin-left: 118px; }
  .dt-filterbar { gap: 8px; padding: 0; }
  .dt-filter { min-width: 0; padding: 8px 15px; }
  .dt-trigger { grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 6px 11px; padding: 12px 13px; }
  .dt-type-icon { grid-column: 1; grid-row: 1 / span 2; width: 27px; height: 27px; }
  .dt-badge { grid-column: 2; grid-row: 1; width: max-content; min-width: 0; }
  .dt-item-title { grid-column: 2; grid-row: 2; font-size: 18px; }
  .dt-chevron { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .dt-copy { padding: 2px 15px 19px 54px; font-size: 15px; }
  .dt-copy-with-practice { display: block; }
  .dt-practice { margin-top: 18px; }
  .dt-share { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .dt-share-icon { width: 42px; height: 42px; }
  .dt-share-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 390px) {
  .dt-title { font-size: 39px; }
  .dt-mini-note { margin-left: 78px; }
  .dt-copy { padding-left: 16px; }
  .dt-practice { grid-template-columns: 32px minmax(0, 1fr); padding: 14px; }
  .dt-tip-icon { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-panel,
  .dt-chevron::before,
  .dt-item,
  .dt-filter,
  .dt-share-button,
  .unified-site .nav-tools-toggle::before { transition: none !important; }
}
