/* Page-view layout for advisory, case studies and guides. Base lp and c6
   components come from orlando-blog.webflow.css and the shared glass theme. */
.authority-page {
  --authority-index: #2e4fa5;
  --authority-header-height: 64px;
}

html.c6-dark .authority-page { --authority-index: #a6baff; }

.authority-page a:focus-visible,
.authority-page button:focus-visible {
  outline: 2px solid var(--authority-index);
  outline-offset: 3px;
}

.authority-skip {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 20;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  background: var(--os-bg);
  color: var(--os-heading);
}

.authority-skip:focus { transform: none; }

.authority-page .authority-header {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.authority-header .c6-seg {
  grid-column: 2;
  justify-self: center;
  width: max-content;
}

.authority-header .c6-seg a { text-decoration: none; }

.authority-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
}

.authority-header-actions .authority-language,
.authority-header-actions .authority-theme {
  min-height: 38px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.authority-header-actions .authority-theme {
  justify-content: center;
  width: 38px;
  padding: 0;
  font-size: 17px;
}

.authority-page .authority-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 9px 14px;
  border: 1px solid var(--os-line);
  border-radius: 10px;
  font-size: 14px;
}

.authority-nav-links [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.authority-wrap {
  counter-reset: authority-section;
  padding-top: 18px;
  scroll-margin-top: var(--authority-header-height);
}

.authority-page .authority-hero { text-align: left; }

.authority-page :is(.lp-h1, .lp-h2) {
  text-transform: none;
}

.authority-nav-links a { font-weight: 400; }


html[data-design="glass"] .authority-page .authority-hero:not(:has(.authority-eyebrow)) .lp-avatar { grid-row: 1/3; }
html[data-design="glass"] .authority-page .authority-hero:not(:has(.authority-eyebrow)) .lp-h1 { grid-row: 1; }
html[data-design="glass"] .authority-page .authority-hero:not(:has(.authority-eyebrow)) .lp-lede { grid-row: 2; }

.authority-eyebrow {
  grid-column: 1/-1;
  grid-row: 1;
  justify-self: start;
  padding: 5px 11px;
  font-size: 13px;
}

html[data-design="glass"] .authority-page .authority-hero:has(.authority-eyebrow) .lp-avatar { grid-row: 2/4; }
html[data-design="glass"] .authority-page .authority-hero:has(.authority-eyebrow) .lp-h1 { grid-row: 2; }
html[data-design="glass"] .authority-page .authority-hero:has(.authority-eyebrow) .lp-lede { grid-row: 3; }

.authority-page .lp-ctas { justify-content: flex-start; }

.authority-page .lp-meta,
.authority-page .lp-quote-by,
.authority-page .lp-toc-num,
.authority-page .lp-foot {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.authority-page .authority-contents {
  margin-top: 22px;
}

.authority-contents .lp-toc-title {
  min-width: 0;
  font-size: 16px;
}

.authority-page .authority-section {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--os-line);
  scroll-margin-top: calc(var(--authority-header-height) + 12px);
}

.authority-section .lp-h2 {
  font-size: 32px;
  line-height: 1.15;
}

.authority-section .lp-h2::before {
  counter-increment: authority-section;
  content: counter(authority-section, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--authority-index);
  font: 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.authority-section > p {
  margin-top: 12px;
  margin-bottom: 0;
}

.authority-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
}

.authority-page .authority-card {
  color: inherit;
  text-decoration: none;
}

.authority-card .lp-card-title { font-size: 18px; }
.authority-card:hover .lp-card-title,
.authority-card:focus-visible .lp-card-title { text-decoration: underline; }

.authority-card .authority-card-metric {
  display: block;
  margin-top: 10px;
  color: var(--os-link);
  font-size: 13px;
}

.authority-page .authority-metric {
  margin-top: 12px;
}

.authority-metric .authority-metric-value {
  margin: 4px 0;
  color: var(--os-heading);
  font-size: clamp(1.35rem, 3.3vw, 1.8rem);
  line-height: 1.25;
}

.authority-page .authority-quote {
  margin: 24px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--os-heading);
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-style: italic;
}

.authority-page .lp-quote-by {
  display: block;
  margin-top: 12px;
  font-style: normal;
}

.authority-questions { margin: 0; }

.authority-questions > div {
  padding-block: 12px;
  border-bottom: 1px solid var(--os-line);
}

.authority-questions dt { font-weight: 600; }
.authority-questions dd { margin: 4px 0 0; }
.authority-source-list { padding: 0; }

.authority-page .authority-cta {
  margin-top: 36px;
  padding: 20px;
  text-align: left;
  border-color: var(--os-line);
  background: var(--os-glass);
}

.authority-page .authority-footer { text-align: left; }

@media (min-width: 1280px) {
  .authority-page .authority-contents {
    position: fixed;
    top: 104px;
    left: calc((100% - 760px) / 2 - 264px);
    z-index: 5;
    width: 220px;
    max-height: calc(100vh - 128px);
    margin-top: 0;
    overflow-y: auto;
  }

  .authority-contents .lp-toc-list { border-top: 0; }

  .authority-contents .lp-toc-row {
    gap: 10px;
    min-width: 0;
    padding: 7px 0 7px 12px;
    border: 0;
    border-left: 2px solid var(--os-line);
    background: transparent;
  }

  .authority-contents .lp-toc-num {
    flex: 0 0 18px;
    width: auto;
  }

  .authority-contents .lp-toc-title {
    color: var(--os-link) !important;
    font-size: 14px;
    line-height: 1.35;
  }

  .authority-contents .lp-toc-row[aria-current="location"] {
    border-left-color: var(--authority-index) !important;
    background: var(--os-hover);
  }

  .authority-contents .lp-toc-row[aria-current="location"] .lp-toc-title {
    color: var(--os-heading) !important;
  }
}

@media (max-width: 767px) {
  .authority-page .authority-section {
    margin-top: 40px;
    padding-top: 22px;
  }
  .authority-section .lp-h2 { font-size: 27px; }
}

@media (max-width: 600px) {
  html[data-design="glass"] .authority-page .authority-hero:not(:has(.authority-eyebrow)) .lp-avatar { grid-row: 1; }
  html[data-design="glass"] .authority-page .authority-hero:not(:has(.authority-eyebrow)) .lp-lede { grid-row: 2; }
  html[data-design="glass"] .authority-page .authority-hero:has(.authority-eyebrow) .lp-avatar { grid-row: 2; }
  html[data-design="glass"] .authority-page .authority-hero:has(.authority-eyebrow) .lp-lede { grid-row: 3; }
  .authority-page .authority-hero .lp-h1 { align-self: center; }
  .authority-page .authority-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .authority-header .c6-seg {
    grid-column: 1;
    justify-self: start;
  }
  .authority-header .c6-seg a { padding-inline: 12px; }
  .authority-grid { grid-template-columns: 1fr; }
}
