/* BrainON Author Notes — compact editorial hub matching Designer Tools. */

.author-notes-page {
  position: relative;
  overflow: hidden;
  padding: 0 0 76px;
  background: #e9e9e9;
  color: #222;
}

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

.an-hero {
  position: relative;
  isolation: isolate;
  min-height: 276px;
  padding: 30px 8px 28px;
  overflow: visible;
}

.an-hero::before {
  position: absolute;
  z-index: -4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background: #dedede;
  box-shadow: inset 0 -1px 0 rgb(34 34 34 / 7%);
  content: "";
  transform: translateX(-50%);
}

.an-hero-copy {
  position: relative;
  z-index: 6;
  max-width: 690px;
}

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

.an-title {
  margin: 4px 0 20px;
  color: #222;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: clamp(48px, 5.1vw, 68px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .96;
}

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

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

.an-hero-motto {
  position: absolute;
  z-index: 7;
  top: 32px;
  right: 360px;
  display: block;
  width: 195px;
  pointer-events: none;
  user-select: none;
  transform: rotate(-1deg);
}

.an-hero-motto img {
  display: block;
  width: 100%;
  height: auto;
}

.an-hero-still-life {
  position: absolute;
  z-index: 3;
  top: -2px;
  right: calc((100vw - 100%) / -2);
  display: block;
  width: 468px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.an-hero-motto,
.an-hero-still-life,
.an-hero-branch {
  mix-blend-mode: normal;
}

.an-hero-branch {
  position: absolute;
  z-index: 2;
  top: -2px;
  left: calc((100vw - 100%) / -2);
  display: block;
  width: 125px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.an-content-plane {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  width: 100vw;
  height: 78px;
  background: #e9e9e9;
  pointer-events: none;
  transform: translateX(-50%);
}

.an-list {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 11px;
  margin: 30px 0 0;
}

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

.an-item:hover {
  border-color: #d2cbc7;
  box-shadow: 0 8px 22px rgb(34 34 34 / 7%);
}

.an-trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 142px 24px;
  width: 100%;
  height: 104px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 11px 18px;
  border: 0;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.an-trigger:hover,
.an-trigger:focus-visible {
  background: #fdfcfc;
}

.an-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px rgb(203 51 64 / 40%);
  outline: 0;
}

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

.an-type-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

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

.an-heading {
  display: block;
  min-width: 0;
}

.an-item-title {
  display: -webkit-box;
  overflow: hidden;
  color: #282525;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.an-teaser {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #6a6461;
  font-family: Academy, Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-date {
  color: #655f5c;
  font-family: Academy, Georgia, serif;
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.an-chevron {
  position: relative;
  width: 22px;
  height: 22px;
  color: #a52934;
}

.an-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);
}

.an-trigger[aria-expanded="true"] .an-chevron::before {
  transform: rotate(225deg);
}

.an-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}

.an-item.is-open .an-panel,
.an-trigger[aria-expanded="true"] + .an-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.an-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.an-copy {
  padding: 8px 26px 24px 70px;
  border-top: 1px solid #eee9e6;
  color: #45413f;
  font-family: AvenirReg, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.an-copy-main p {
  margin: 14px 0 18px;
  padding: 0;
}

.an-read,
.an-share-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 20px;
  border-radius: 6px;
  background: #cb3340;
  box-shadow: 0 5px 14px rgb(203 51 64 / 15%);
  color: #fff;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.an-read:hover,
.an-read:focus-visible,
.an-share-button:hover,
.an-share-button:focus-visible {
  background: #a92732;
  box-shadow: 0 7px 18px rgb(169 39 50 / 20%);
  color: #fff;
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.an-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;
}

.an-practice strong {
  display: block;
  margin: 0 0 3px;
  color: #a52934;
  font-family: AvenirMed, Arial, sans-serif;
  font-weight: 700;
}

.an-practice p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
}

.an-tip-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: #b72a35;
}

.an-share {
  position: relative;
  z-index: 8;
  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%);
}

.an-share-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border-radius: 50%;
  background: #f7eeee;
  color: #a52934;
}

.an-share-copy strong,
.an-share-copy span {
  display: block;
}

.an-share-copy strong {
  margin-bottom: 3px;
  color: #222;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.an-share-copy span {
  color: #6d6763;
  font-family: AvenirReg, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.an-share-button {
  min-width: 154px;
}

@media (max-width: 1180px) {
  .an-hero-copy { max-width: 620px; }
  .an-intro { max-width: 590px; }
  .an-hero-motto { right: 320px; width: 175px; }
  .an-hero-still-life { width: 415px; }
  .an-hero-branch { width: 108px; }
}

@media (max-width: 980px) {
  .an-hero { min-height: 250px; }
  .an-hero-copy { max-width: 540px; }
  .an-intro { max-width: 520px; font-size: 17px; }
  .an-hero-motto { right: 250px; width: 160px; }
  .an-hero-still-life { top: 16px; width: 330px; }
  .an-hero-branch { display: none; }
  .an-trigger { grid-template-columns: 34px minmax(0, 1fr) 116px 22px; gap: 12px; }
  .an-item-title { font-size: 19px; }
}

@media (max-width: 820px) {
  .author-notes-page { padding-bottom: 48px; }
  .an-wrap { width: min(100% - 24px, 680px); }
  .an-hero { min-height: 0; padding: 22px 2px 18px; }
  .an-title { margin: 3px 0 12px; font-size: 43px; }
  .an-intro { max-width: none; font-size: 16px; line-height: 1.55; }
  .an-hero-copy { max-width: none; }
  .an-hero-still-life,
  .an-hero-branch,
  .an-content-plane { display: none; }
  .an-hero-motto {
    position: relative;
    top: auto;
    right: auto;
    width: 148px;
    margin: -30px 3px -5px auto;
    transform: rotate(-1deg);
  }
  .an-list { margin-top: 10px; }
  .an-trigger {
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    height: auto;
    min-height: 82px;
    gap: 11px;
    padding: 11px 13px;
  }
  .an-type-icon { width: 27px; height: 27px; }
  .an-type-icon img { width: 27px; height: 27px; }
  .an-item-title { font-size: 18px; line-height: 1.25; }
  .an-teaser { font-size: 14px; }
  .an-date {
    grid-column: 2 / 3;
    grid-row: 2;
    margin-top: -4px;
    font-size: 12px;
    text-align: left;
  }
  .an-chevron { grid-column: 3; grid-row: 1 / 3; }
  .an-copy,
  .an-copy-with-practice {
    display: block;
    padding: 4px 16px 20px 54px;
  }
  .an-practice { margin-top: 18px; }
  .an-share {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }
  .an-share-icon { width: 42px; height: 42px; padding: 10px; }
  .an-share-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 390px) {
  .an-title { font-size: 39px; }
  .an-hero-motto { width: 138px; margin-top: -34px; }
  .an-copy,
  .an-copy-with-practice { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .an-item,
  .an-chevron::before,
  .an-panel,
  .an-read,
  .an-share-button { transition: none !important; }
}
