.documents-page {
  min-height: 100vh;
  color: #f2f2f4;
  background: #08090b;
  font-family: "DM Sans", sans-serif;
}
.documents-page a:focus-visible { outline: 2px solid rgba(255,255,255,.82); outline-offset: 3px; }
.documents-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  width: min(1480px, calc(100% - 80px));
  min-height: 64px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px auto 0;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(53,54,58,.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.documents-brand { display: inline-flex; align-items: center; gap: 10px; color: #f5f6f8; text-decoration: none; white-space: nowrap; }
.documents-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.documents-brand span { font: 400 22px/.9 "Woblen", sans-serif; letter-spacing: .02em; transform: translate(3px, 4px); }
.documents-header nav { display: flex; align-items: center; gap: 8px; }
.documents-header nav a,
.documents-footer > a:last-child {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.18);
  font-size: 15px;
  text-decoration: none;
  transition: background .18s ease;
}
.documents-header nav a:hover,
.documents-footer > a:last-child:hover { background: rgba(255,255,255,.27); }
.documents-main { width: min(1320px, calc(100% - 80px)); margin: 0 auto; padding: 72px 0 50px; }
.documents-intro { max-width: 880px; margin: 0 auto 36px; }
.documents-eyebrow { color: #a8abb3; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.documents-intro h1 { margin: 15px 0 13px; color: #f4f4f6; font: 400 clamp(36px, 4vw, 58px)/1.12 "OFont 10369", sans-serif; }
.documents-intro > p { max-width: 820px; margin: 0; color: #c6c8ce; font-size: 16px; line-height: 1.7; }
.documents-demo-note { display: grid; gap: 7px; margin-top: 24px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(115deg, rgba(85,88,96,.34), rgba(28,29,33,.7)); }
.documents-demo-note strong { color: #f5f6f8; font-size: 15px; }
.documents-demo-note span { color: #b7bac2; font-size: 13px; line-height: 1.65; }
.documents-layout { display: grid; grid-template-columns: minmax(220px, 275px) minmax(0,1fr); align-items: start; gap: 24px; }
.documents-sidebar,
.documents-content { min-width: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 26px; background: linear-gradient(145deg, rgba(43,45,50,.84), rgba(19,20,23,.92)); }
.documents-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 19px 14px; scrollbar-color: #52545a transparent; }
.documents-sidebar-title { margin: 2px 9px 12px; color: #8f929b; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.documents-category { margin-top: 15px; }
.documents-category:first-of-type { margin-top: 0; }
.documents-category-title { display: block; margin: 0 9px 6px; color: #e4e5e8; font-size: 13px; font-weight: 600; text-decoration: none; }
.documents-nav-link { display: block; padding: 7px 9px; border-radius: 10px; color: #aeb1b9; font-size: 12px; line-height: 1.4; text-decoration: none; transition: color .16s ease, background .16s ease; }
.documents-nav-link:hover,
.documents-nav-link.is-active { color: #fff; background: rgba(255,255,255,.09); }
.documents-content { padding: clamp(22px, 4vw, 44px); }
.documents-content h2 { margin: 0 0 14px; color: #f0f0f3; font: 400 clamp(23px, 2.3vw, 31px)/1.2 "OFont 10369", sans-serif; }
.documents-content h3 { margin: 29px 0 9px; color: #ececf0; font: 400 20px/1.35 "OFont 10369", sans-serif; }
.documents-content p,
.documents-content li { color: #c8cad0; font-size: 14px; line-height: 1.72; }
.documents-content p { margin: 0 0 13px; }
.documents-content ul { display: grid; gap: 7px; margin: 10px 0 18px; padding-left: 21px; }
.documents-content li::marker { color: #aeb1b9; }
.documents-content .documents-index-title { margin-bottom: 8px; }
.documents-content .documents-index-intro { margin-bottom: 27px; color: #aeb2bb; }
.documents-group { padding-top: 21px; scroll-margin-top: 100px; }
.documents-group + .documents-group { margin-top: 27px; border-top: 1px solid rgba(255,255,255,.09); }
.documents-group h3 { margin: 0 0 13px; font: 400 21px/1.3 "OFont 10369", sans-serif; }
.documents-article { padding: 23px 0 25px; scroll-margin-top: 104px; }
.documents-article + .documents-article { border-top: 1px solid rgba(255,255,255,.08); }
.documents-article-title { margin: 0 0 7px; color: #e9eaed; font-size: 17px; font-weight: 600; line-height: 1.4; }
.documents-content .documents-article-meta { margin: 0 0 17px; color: #8f929b; font-size: 12px; line-height: 1.5; }
.documents-article-body h5 { margin: 22px 0 8px; color: #e4e5e8; font: 400 17px/1.4 "OFont 10369", sans-serif; }
.documents-article-body h5:first-child { margin-top: 0; }
.documents-article:last-child { padding-bottom: 0; }
.documents-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.documents-card { display: flex; min-height: 90px; box-sizing: border-box; flex-direction: column; gap: 8px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; color: inherit; background: rgba(255,255,255,.035); text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.documents-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.documents-card small { color: #8d919a; font-size: 11px; }
.documents-card strong { color: #e9eaed; font-size: 14px; font-weight: 500; line-height: 1.4; }
.documents-back { display: inline-flex; margin-bottom: 19px; color: #aeb2bb; font-size: 13px; text-decoration: none; }
.documents-back:hover { color: #fff; }
.documents-article-meta { margin: -3px 0 22px !important; color: #8f929b !important; font-size: 12px !important; }
.documents-missing { text-align: center; }
.documents-footer { display: flex; width: min(1320px, calc(100% - 80px)); align-items: center; justify-content: space-between; gap: 20px; margin: 40px auto 0; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); }
.documents-footer p { max-width: 560px; margin: 0; color: #858891; font-size: 11px; line-height: 1.55; }
.documents-footer > a:last-child { min-height: 36px; padding-inline: 15px; font-size: 12px; }
@media (max-width: 820px) {
  .documents-header { width: calc(100% - 32px); }
  .documents-main { width: calc(100% - 32px); padding-top: 54px; }
  .documents-layout { grid-template-columns: 1fr; }
  .documents-sidebar { position: static; max-height: none; }
  .documents-sidebar-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 8px; }
  .documents-footer { width: calc(100% - 32px); }
}
@media (max-width: 540px) {
  .documents-header { top: 8px; min-height: 56px; margin-top: 8px; padding: 6px 12px; }
  .documents-brand { gap: 6px; }
  .documents-brand img { width: 34px; height: 34px; }
  .documents-brand span { font-size: 17px; }
  .documents-header nav { gap: 5px; }
  .documents-header nav a { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .documents-main { padding-top: 42px; }
  .documents-intro h1 { font-size: 36px; }
  .documents-intro > p { font-size: 14px; }
  .documents-demo-note { padding: 15px; }
  .documents-sidebar,
  .documents-content { border-radius: 20px; }
  .documents-sidebar { padding: 14px 10px; }
  .documents-sidebar-links { grid-template-columns: 1fr; }
  .documents-content { padding: 22px 17px; }
  .documents-card-grid { grid-template-columns: 1fr; }
  .documents-content p,
  .documents-content li { font-size: 13px; }
  .documents-footer { align-items: flex-start; flex-direction: column; }
}

/* Use the same icon rail, sizing, spacing, and hover labels as the profile page. */
.documents-shell {
  display: grid;
  width: calc(100% - 80px);
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: stretch;
  gap: 34px;
  margin: 0 auto;
  padding: 40px 0 34px;
}
.documents-header {
  position: sticky;
  top: 40px;
  z-index: 20;
  align-self: start;
  display: flex;
  width: 64px;
  height: calc(100vh - 80px);
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 12px 8px;
  overflow: visible;
  isolation: isolate;
  box-sizing: border-box;
  border: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.documents-header > .documents-brand {
  display: flex;
  width: 46px;
  height: 61px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0;
  border-radius: 14px;
}
.documents-header > .documents-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.documents-header > .documents-brand span { display: none; }
.documents-header > .documents-brand::after { display: block; width: 36px; height: 1px; flex: none; background: rgba(255,255,255,.32); content: ""; }
.documents-sidebar {
  position: static;
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.documents-rail-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: flex-start;
  width: 46px;
  height: 46px;
  min-height: 46px;
  flex: none;
  align-items: center;
  gap: 11px;
  padding: 0 0 0 46px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #a6a9b1;
  background: transparent;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: width .28s cubic-bezier(.2,.75,.25,1), background-color .2s, color .2s;
}
.documents-rail-icon { position: absolute; top: 50%; left: 11px; display: grid; width: 24px; height: 24px; place-items: center; transform: translateY(-50%); }
.documents-rail-link .documents-rail-icon { min-width: 24px; max-width: none; overflow: visible; opacity: 1; }
.documents-rail-icon svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.documents-rail-label { max-width: 0; flex: none; overflow: hidden; color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: max-width .28s cubic-bezier(.2,.75,.25,1), opacity .16s ease; }
.documents-rail-link:hover,
.documents-rail-link:focus-visible { z-index: 2; width: 220px; justify-content: flex-start; border-radius: 15px; color: #f4f4f6; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-rail-link:hover .documents-rail-label,
.documents-rail-link:focus-visible .documents-rail-label { max-width: 220px; opacity: 1; transition-delay: .06s; }
.documents-rail-link.is-active { border-color: transparent; border-radius: 20px; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-header > .documents-brand { align-self: center; margin-inline: auto; }
.documents-header > .documents-brand img { margin-inline: auto; }
.documents-sidebar { gap: 4px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.documents-sidebar::-webkit-scrollbar { display: none; }
.documents-rail-label { margin-left: -1px; }
.documents-rail-icon img,
.documents-rail-icon svg { display: block; width: 24px; height: 24px; filter: brightness(0) saturate(100%) invert(70%); }
.documents-rail-link:hover .documents-rail-icon img,
.documents-rail-link:focus-visible .documents-rail-icon img,
.documents-rail-link.is-active .documents-rail-icon img,
.documents-rail-link:hover .documents-rail-icon svg,
.documents-rail-link:focus-visible .documents-rail-icon svg,
.documents-rail-link.is-active .documents-rail-icon svg { filter: brightness(0) invert(1); }
.documents-rail-link:hover,
.documents-rail-link:focus-visible { width: var(--expanded-width,220px); }
.documents-rail-link.is-active:hover,
.documents-rail-link.is-active:focus-visible { border-radius: 20px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (hover:hover) and (min-height:760px) { .documents-sidebar { overflow: visible; } }
@media (hover:none), (max-height:759px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: 46px; }
  .documents-rail-link:hover .documents-rail-label,
  .documents-rail-link:focus-visible .documents-rail-label { max-width: 0; opacity: 0; }
}
@media (max-width:820px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,220px), calc(100vw - 90px)); }
}
@media (max-width:620px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,210px), calc(100vw - 76px)); }
}
.documents-rail-link.is-active .documents-rail-icon { color: #fff; }
.documents-page-body { min-width: 0; }
.documents-main { width: 100%; max-width: none; margin: 0; padding: 0 0 50px; }
.documents-footer { width: 100%; }
.documents-layout { display: block; }

@media (max-width: 820px) {
  .documents-shell { width: calc(100% - 32px); grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 16px 0 30px; }
  .documents-header { top: 16px; width: 58px; height: calc(100vh - 32px); padding: 12px 6px; }
  .documents-header > .documents-brand { height: 55px; gap: 14px; }
  .documents-sidebar { overflow: hidden; }
  .documents-rail-link { width: 46px; }
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(220px, calc(100vw - 90px)); }
  .documents-main { padding: 8px 0 40px; }
}
@media (max-width: 620px) {
  .documents-shell { width: calc(100% - 24px); grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0 24px; }
  .documents-header { top: 12px; width: 52px; height: calc(100vh - 24px); padding: 12px 4px; }
  .documents-header > .documents-brand { height: 55px; gap: 14px; }
  .documents-rail-link { width: 44px; }
  .documents-rail-icon { left: 10px; }
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(210px, calc(100vw - 76px)); }
  .documents-main { padding: 8px 0 32px; }
}

/* Match the profile page's sticky, expanding rail on the left. */
.documents-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: stretch;
  gap: 34px;
  width: min(1920px, calc(100vw - 80px));
  margin: 0 auto;
  padding: 40px 0 34px;
}
.documents-header {
  position: sticky;
  top: 40px;
  z-index: 20;
  display: flex;
  width: 64px;
  height: calc(100vh - 80px);
  min-height: 0;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 12px 8px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.documents-brand {
  position: relative;
  display: flex;
  width: 46px;
  height: 61px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 14px;
}
.documents-brand img { width: 42px; height: 42px; }
.documents-brand span { display: none; }
.documents-brand::after { width: 36px; height: 1px; flex: none; background: rgba(255,255,255,.32); content: ""; }
.documents-header nav {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  overflow: visible;
}
.documents-header nav a.documents-rail-link {
  position: relative;
  z-index: 1;
  display: flex;
  width: 46px;
  min-height: 46px;
  height: 46px;
  flex: none;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 0 46px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: #a6a9b1;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: width .28s cubic-bezier(.2,.75,.25,1), background-color .2s, color .2s;
}
.documents-rail-link img,
.documents-rail-link svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  filter: brightness(0) invert(.72);
}
.documents-rail-link svg { fill: currentColor; filter: none; }
.documents-rail-link span { max-width: 0; overflow: hidden; opacity: 0; transition: opacity .16s ease, max-width .25s ease; }
.documents-header nav a.documents-rail-link:hover,
.documents-header nav a.documents-rail-link:focus-visible {
  z-index: 2;
  width: 220px;
  border-radius: 15px;
  color: #f4f4f6;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.documents-rail-link:hover span,
.documents-rail-link:focus-visible span { max-width: 150px; opacity: 1; transition-delay: .06s; }
.documents-page-body { min-width: 0; }
.documents-main { width: 100%; max-width: none; margin: 0; padding: 40px 0 50px; }
.documents-footer { width: 100%; }
.documents-demo-note { display: none; }

@media (max-width: 820px) {
  .documents-shell { grid-template-columns: 58px minmax(0, 1fr); gap: 16px; width: calc(100% - 32px); margin-inline: auto; padding: 24px 0 30px; }
  .documents-header { top: 16px; width: 58px; height: calc(100vh - 32px); padding-inline: 6px; }
  .documents-main { width: 100%; padding: 30px 0 40px; }
  .documents-footer { width: 100%; }
}
@media (max-width: 620px) {
  .documents-shell { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; width: calc(100% - 24px); padding: 20px 0 30px; }
  .documents-header { top: 12px; width: 52px; height: calc(100vh - 24px); padding-inline: 4px; }
  .documents-header nav a.documents-rail-link { width: 44px; }
  .documents-rail-link img,
  .documents-rail-link svg { left: 10px; }
  .documents-header nav a.documents-rail-link:hover,
  .documents-header nav a.documents-rail-link:focus-visible { width: 210px; }
  .documents-main { padding: 24px 0 32px; }
  .documents-intro h1 { font-size: clamp(27px, 7vw, 36px); }
}

/* Match the profile content layout and keep every document section in the left menu. */
.documents-shell {
  display: grid;
  width: min(1540px, 100%);
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 3.3vw, 56px);
  padding: 42px clamp(40px, 4vw, 66px) 34px;
}
.documents-header {
  position: sticky;
  top: 40px;
  display: flex;
  width: auto;
  height: calc(100vh - 80px);
  min-height: 550px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.documents-header > .documents-brand {
  display: flex;
  width: max-content;
  height: 50px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  gap: 10px;
  padding: 0 12px;
}
.documents-header > .documents-brand img { width: 42px; height: 42px; filter: none !important; }
.documents-header > .documents-brand span { display: inline; font-size: 22px; }
.documents-header > .documents-brand::after { display: none; }
.documents-sidebar {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 108px);
  padding: 0 12px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-color: #52545a transparent;
}
.documents-sidebar-title {
  margin: 0 12px 12px;
  color: #a9adb6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: none;
  white-space: nowrap;
}
.documents-category { display: grid; gap: 5px; margin-top: 12px; }
.documents-category:first-of-type { margin-top: 0; }
.documents-category-title {
  display: flex;
  min-height: 45px;
  align-items: center;
  margin: 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.documents-nav-link {
  display: flex;
  min-height: 45px;
  align-items: center;
  padding: 4px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #a6a9b1;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.documents-category-title:hover,
.documents-nav-link:hover,
.documents-nav-link.is-active {
  color: #f4f4f6;
  background: rgba(255,255,255,.055);
}
.documents-intro {
  display: block;
  max-width: none;
  margin: 0 0 28px;
}
.documents-intro h1 {
  margin: 10px 0 -3px;
  color: #fafafb;
  font: 400 clamp(30px, 3.6vw, 46px)/1.12 "OFont 10369", sans-serif;
  letter-spacing: -.012em;
}
.documents-intro > p {
  max-width: none;
  margin: 0;
  color: #DFDFDF;
  font: 400 calc(clamp(13px, 1vw, 15px) + 2px)/1.7 "DM Sans", sans-serif;
}
.documents-layout { display: block; }
.documents-content { padding: clamp(22px, 3vw, 38px); }

@media (max-width: 820px) {
  .documents-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 24px 30px;
  }
  .documents-header {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  .documents-sidebar {
    position: static;
    max-height: 310px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(43,45,50,.84), rgba(19,20,23,.92));
  }
  .documents-sidebar-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .documents-category { margin-top: 12px; }
  .documents-intro h1 { font-size: clamp(30px, 5vw, 42px); }
}
@media (max-width: 540px) {
  .documents-shell { padding: 20px 16px 24px; }
  .documents-header > .documents-brand { padding-inline: 4px; }
  .documents-sidebar-links { grid-template-columns: 1fr; }
  .documents-intro > p { font-size: 14px; }
  .documents-content { padding: 22px 17px; }
}

/* Final profile-rail overrides for the documents navigation. */
.documents-shell { width: calc(100% - 80px); grid-template-columns: 64px minmax(0,1fr); align-items: stretch; gap: 34px; margin: 0 auto; padding: 40px 0 34px; }
.documents-header { position: sticky; top: 40px; z-index: 20; align-self: start; display: flex; width: 64px; height: calc(100vh - 80px); min-height: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; margin: 0; padding: 12px 8px; overflow: visible; isolation: isolate; box-sizing: border-box; border: 0; border-radius: 9999px; background: rgba(255,255,255,.05); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-header > .documents-brand { display: flex; width: 46px; height: 61px; flex: none; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; padding: 0; border-radius: 14px; }
.documents-header > .documents-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.documents-header > .documents-brand span { display: none; }
.documents-header > .documents-brand::after { display: block; width: 36px; height: 1px; flex: none; background: rgba(255,255,255,.32); content: ""; }
.documents-sidebar { position: static; display: flex; width: 100%; min-height: 0; flex: 1; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.documents-rail-link { position: relative; z-index: 1; display: flex; align-self: flex-start; width: 46px; height: 46px; min-height: 46px; flex: none; align-items: center; gap: 11px; padding: 0 0 0 46px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; color: #a6a9b1; background: transparent; text-align: left; text-decoration: none; white-space: nowrap; transition: width .28s cubic-bezier(.2,.75,.25,1), background-color .2s, color .2s; }
.documents-rail-icon { position: absolute; top: 50%; left: 11px; display: grid; width: 24px; height: 24px; place-items: center; transform: translateY(-50%); }
.documents-rail-icon svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.documents-rail-label { max-width: 0; flex: none; overflow: hidden; color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: max-width .28s cubic-bezier(.2,.75,.25,1), opacity .16s ease; }
.documents-rail-link:hover, .documents-rail-link:focus-visible { z-index: 2; width: 220px; justify-content: flex-start; border-radius: 15px; color: #f4f4f6; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-rail-link:hover .documents-rail-label, .documents-rail-link:focus-visible .documents-rail-label { max-width: 220px; opacity: 1; transition-delay: .06s; }
.documents-rail-link.is-active { border-color: transparent; border-radius: 20px; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-page-body { min-width: 0; }
.documents-main { width: 100%; max-width: none; margin: 0; padding: 0 0 50px; }
.documents-footer { width: 100%; }
.documents-layout { display: block; }
@media (max-width: 820px) {
  .documents-shell { width: calc(100% - 32px); grid-template-columns: 58px minmax(0,1fr); gap: 16px; padding: 16px 0 30px; }
  .documents-header { top: 16px; width: 58px; height: calc(100vh - 32px); padding: 12px 6px; }
  .documents-header > .documents-brand { height: 55px; gap: 14px; }
  .documents-rail-link:hover, .documents-rail-link:focus-visible { width: min(220px, calc(100vw - 90px)); }
  .documents-main { padding: 8px 0 40px; }
}
@media (max-width: 620px) {
  .documents-shell { width: calc(100% - 24px); grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 12px 0 24px; }
  .documents-header { top: 12px; width: 52px; height: calc(100vh - 24px); padding: 12px 4px; }
  .documents-header > .documents-brand { height: 55px; gap: 14px; }
  .documents-rail-icon { left: 10px; }
  .documents-rail-link:hover, .documents-rail-link:focus-visible { width: min(210px, calc(100vw - 76px)); }
  .documents-main { padding: 8px 0 32px; }
}

/* Keep the document rail in sync with the cabinet rail sizing and behavior. */
.documents-sidebar { gap: 4px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.documents-sidebar::-webkit-scrollbar { display: none; }
.documents-rail-link:hover,
.documents-rail-link:focus-visible { width: var(--expanded-width,220px); }
.documents-rail-label { margin-left: -1px; }
@media (hover:hover) and (min-height:760px) { .documents-sidebar { overflow: visible; } }
@media (hover:none), (max-height:759px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: 46px; }
  .documents-rail-link:hover .documents-rail-label,
  .documents-rail-link:focus-visible .documents-rail-label { max-width: 0; opacity: 0; }
}
@media (max-width:820px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,220px), calc(100vw - 90px)); }
}
@media (max-width:620px) {
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,210px), calc(100vw - 76px)); }
}

/* Match the fixed, glass-backed rail used by the profile page. */
.documents-shell { grid-template-columns: 64px minmax(0,1fr); }
.documents-page-body { grid-column: 2; }
.documents-header-glass { display: none; }
.documents-header { position: fixed; top: 40px; right: auto; bottom: 40px; left: 40px; z-index: 20; width: 64px; height: calc(100vh - 80px); min-height: 0; padding: 9px 8px 25px; overflow: visible; border: 0; border-radius: 9999px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-sizing: border-box; }
.documents-header > .documents-brand { width: 46px; height: 61px; gap: 18px; align-self: center; margin-inline: auto; }
.documents-header > .documents-brand img { width: 42px; height: 42px; margin-inline: auto; }
.documents-sidebar { width: 100%; flex: 1; align-items: center; gap: 4px; margin-top: 10px; overflow-x: visible; overflow-y: visible; }
.documents-rail-link { width: 46px; height: 46px; min-height: 46px; flex: none; padding: 0 0 0 46px; border: 1px solid transparent; border-radius: 14px; }
.documents-rail-icon { top: 50%; left: 11px; width: 24px; height: 24px; transform: translateY(-50%); }
.documents-rail-icon img { display: block; width: 24px; height: 24px; object-fit: contain; filter: brightness(0) saturate(100%) invert(70%); }
.documents-rail-link:hover .documents-rail-icon img,
.documents-rail-link:focus-visible .documents-rail-icon img,
.documents-rail-link.is-active .documents-rail-icon img { filter: brightness(0) invert(1); }
.documents-rail-link:hover,
.documents-rail-link:focus-visible { width: var(--expanded-width,220px); border-radius: 15px; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.documents-rail-link.is-active { border: 2px solid rgba(255,255,255,.1); border-radius: 15px; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
.documents-rail-link.is-active:hover,
.documents-rail-link.is-active:focus-visible { border-color: transparent; border-radius: 20px; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
.documents-rail-label { margin-left: -1px; }
@media (max-width:820px) {
  .documents-header-glass { top: 16px; bottom: 16px; left: 16px; width: 58px; border-radius: 20px; }
  .documents-header { top: 16px; bottom: 16px; left: 16px; width: 58px; height: calc(100vh - 32px); min-height: 0; padding: 7px 6px 25px; border-radius: 20px; }
  .documents-header > .documents-brand { width: 44px; height: 55px; gap: 18px; }
  .documents-header > .documents-brand img { width: 36px; height: 36px; }
  .documents-rail-link { width: 44px; height: 44px; min-height: 44px; }
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,220px), calc(100vw - 90px)); }
}
@media (max-width:620px) {
  .documents-header-glass { top: 12px; bottom: 12px; left: 12px; width: 52px; border-radius: 18px; }
  .documents-header { top: 12px; bottom: 12px; left: 12px; width: 52px; height: calc(100vh - 24px); min-height: 0; padding: 5px 4px 25px; border-radius: 18px; }
  .documents-header > .documents-brand { width: 42px; height: 55px; }
  .documents-rail-link { width: 42px; height: 42px; min-height: 42px; }
  .documents-rail-icon { left: 10px; }
  .documents-rail-link:hover,
  .documents-rail-link:focus-visible { width: min(var(--expanded-width,210px), calc(100vw - 76px)); }
}
.documents-rail-link:hover .documents-rail-label,
.documents-rail-link:focus-visible .documents-rail-label { max-width: 340px; }

/* Override the general header-link pill styles for the profile-style document rail. */
.documents-header nav.documents-sidebar > a.documents-rail-link {
  box-sizing: border-box;
  align-self: flex-start;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  padding: 0 0 0 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #a6a9b1;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.documents-header nav.documents-sidebar > a.documents-rail-link:hover,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible {
  z-index: 2;
  width: var(--expanded-width, 220px);
  justify-content: flex-start;
  padding-left: 46px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #f4f4f6;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: width .28s cubic-bezier(.2,.75,.25,1), background-color .2s, color .2s;
}
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active {
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.documents-header nav.documents-sidebar > a.documents-rail-link .documents-rail-label {
  display: block;
  flex: none;
  max-width: 0;
  opacity: 0;
  transition: max-width .28s cubic-bezier(.2,.75,.25,1), opacity .16s ease;
}
.documents-header nav.documents-sidebar > a.documents-rail-link:hover .documents-rail-label,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible .documents-rail-label {
  max-width: 220px;
  opacity: 1;
  transition-delay: .06s;
}
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active:hover,
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active:focus-visible {
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
@media (max-width:820px) {
  .documents-header nav.documents-sidebar > a.documents-rail-link { width:44px; min-width:44px; flex-basis:44px; height:44px; min-height:44px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible { width:min(var(--expanded-width,220px),calc(100vw - 90px)); }
}
@media (max-width:620px) {
  .documents-header nav.documents-sidebar > a.documents-rail-link { width:42px; min-width:42px; flex-basis:42px; height:42px; min-height:42px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible { width:min(var(--expanded-width,210px),calc(100vw - 76px)); }
}
.documents-header {
  isolation: isolate;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.documents-header::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  content: "";
  pointer-events: none;
}
.documents-header > .documents-brand,
.documents-header > .documents-sidebar { position: relative; z-index: 1; }
.documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-icon { left: 11px; }
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active > .documents-rail-icon { left: 10px; }
.documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-icon > img { position: static; inset: auto; transform: none; }
.documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-label { transition: max-width .28s cubic-bezier(.2,.75,.25,1), opacity .16s ease; }
.documents-header nav.documents-sidebar > a.documents-rail-link,
.documents-header nav.documents-sidebar > a.documents-rail-link:hover,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible,
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active,
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active:hover,
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active:focus-visible {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  transform: none;
  transition: width .28s cubic-bezier(.2,.75,.25,1), background-color .2s, color .2s;
}
@media (max-width:820px) {
  .documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-icon { left: 10px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active > .documents-rail-icon { left: 9px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link,
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active:focus-visible { height:44px; min-height:44px; max-height:44px; }
}
@media (max-width:620px) {
  .documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-icon { left: 9px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active > .documents-rail-icon { left: 8px; }
  .documents-header nav.documents-sidebar > a.documents-rail-link,
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link.is-active:focus-visible { height:42px; min-height:42px; max-height:42px; }
}
.documents-header-glass {
  display: none;
}

/* Match the large right-hand documents panel to the profile's assets card. */
.documents-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(12px, calc(3.6vw - 10px), 30px);
  padding-top: 30px;
  border: 0;
  border-radius: 40px;
  background: linear-gradient(to top,rgba(22,23,26,.84) 0%,rgba(25,26,30,.84) 55%,rgba(29,30,34,.84) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
@media (min-width: 821px) {
  .documents-content { padding-left: 30px; }
}
.documents-panel-rays {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 450px;
  overflow: hidden;
  border-radius: inherit;
  opacity: .35 !important;
  mix-blend-mode: screen;
  transform: none !important;
  pointer-events: none;
}
.documents-content > .documents-article { position: relative; z-index: 1; }
.documents-content > .documents-article:first-of-type { padding-top: 0; }
.documents-page-loader { z-index: 1000; }
.documents-page-loader.page-loader--done { pointer-events: none; }
.documents-load-error { position: relative; z-index: 1; margin: 0; color: #c8cad0; font-size: 14px; }
.documents-header > .documents-brand img { filter: brightness(0) invert(1); }
.documents-header nav.documents-sidebar > a.documents-rail-link > .documents-rail-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: rgba(236,239,246,.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}
.documents-header nav.documents-sidebar > a.documents-rail-link:hover > .documents-rail-number,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible > .documents-rail-number,
.documents-header nav.documents-sidebar > a.documents-rail-link.is-active > .documents-rail-number { color: #fff; }
.documents-content .documents-article-title {
  color: rgba(248,249,252,.92);
  font-family: "OFont 10369", sans-serif;
  font-size: calc(clamp(16px,1.4vw,21px) + 5px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.documents-content .documents-article-body p,
.documents-content .documents-article-body li {
  color: #DFDFDF;
  font-family: "DM Sans", sans-serif;
  font-size: calc(clamp(13px,1vw,15px) + 2px);
  line-height: 1.55;
}
.documents-content .documents-article-meta {
  color: rgba(223,223,223,.68) !important;
  font: 400 13px/1.5 "DM Sans", sans-serif !important;
}
.documents-content .documents-article-body h5 {
  color: rgba(248,249,252,.92);
  font: 400 clamp(16px,1.4vw,21px)/1.2 "OFont 10369", sans-serif;
}
.documents-header > .documents-brand img { width: 42px; height: 42px; }
.documents-header > .documents-brand img { transition: transform .14s ease; }
.documents-header > .documents-brand.is-returning img { transform: scale(.76); }
.documents-header > .documents-brand::after { display: block !important; width: 36px; height: 1px; flex: none; background: rgba(255,255,255,.32); content: ""; }
.documents-header > .documents-brand {
  width: 46px;
  height: 46px;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font: 500 13px/1 "DM Sans", sans-serif;
  transition: background-color .2s, color .2s;
}
.documents-header > .documents-brand span { display: block; font: inherit; transform: none; }
.documents-header > .documents-brand img {
  display: block;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1) !important;
  transition: transform .14s ease;
}
.documents-header > .documents-brand.is-returning img { transform: scale(.76); }
.documents-header > .documents-brand::after { display: none !important; content: none; }
.documents-header > .documents-brand:hover,
.documents-header > .documents-brand:focus-visible { background: rgba(255,255,255,.08); }
@media (max-width: 820px) {
  .documents-header > .documents-brand { width: 44px; height: 44px; }
}
@media (max-width: 620px) {
  .documents-header > .documents-brand { width: 42px; height: 42px; font-size: 12px; }
}

/* Extend the assets-card rays softly onto the page background. */
.documents-content { overflow: visible; }
.documents-content > .documents-panel-rays { overflow: visible; transform: translateY(-600px) !important; }
/* Keep document text 30px from every panel edge on all screen sizes. */
.documents-content { padding: 30px !important; }
/* Bring the rail 4px closer to the top and bottom edges at every breakpoint. */
.documents-header-glass { top: 40px; bottom: 40px; }
.documents-header { top: 40px; bottom: auto; height: auto; }
@media (max-width: 820px) {
  .documents-header-glass { display: none; }
  .documents-header { top: 16px; bottom: auto; height: auto; }
}
@media (max-width: 620px) {
  .documents-header-glass { display: none; }
  .documents-header { top: 12px; bottom: auto; height: auto; }
}
.documents-header > .documents-sidebar {
  align-self: flex-start;
  width: min(420px, calc(100vw - 80px));
  min-height: 0;
  margin-top: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: none;
  touch-action: pan-y;
}
.documents-header > .documents-sidebar::-webkit-scrollbar { display: none; }
.documents-header > .documents-sidebar > .documents-rail-link { pointer-events: auto; }

/* Let each rail label use the measured width of its full title. */
.documents-header nav.documents-sidebar > a.documents-rail-link:hover,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible {
  width: min(var(--expanded-width, 220px), calc(100vw - 96px));
}
.documents-header nav.documents-sidebar > a.documents-rail-link:hover > .documents-rail-label,
.documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible > .documents-rail-label {
  max-width: var(--expanded-label-width, 220px);
}
@media (max-width:820px) {
  .documents-header > .documents-sidebar { width: calc(100vw - 48px); }
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible { width:min(var(--expanded-width,220px),calc(100vw - 90px)); }
}
@media (max-width:620px) {
  .documents-header > .documents-sidebar { width: calc(100vw - 24px); }
  .documents-header nav.documents-sidebar > a.documents-rail-link:hover,
  .documents-header nav.documents-sidebar > a.documents-rail-link:focus-visible { width:min(var(--expanded-width,210px),calc(100vw - 76px)); }
}


/* Match the cabinet rail: fit its items when possible, then scroll inside the canopy. */
.documents-shell { align-items:start; }
.documents-header {
  position:sticky!important;
  top:40px!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  height:calc(100vh - 80px)!important;
  max-height:none!important;
  align-self:start!important;
}
.documents-header > .documents-sidebar {
  flex:1 1 0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media (max-width:820px) {
  .documents-header { top:16px!important; height:calc(100vh - 32px)!important; }
  .documents-header > .documents-sidebar { max-height:none; }
}
@media (max-width:620px) {
  .documents-header { top:12px!important; height:calc(100vh - 24px)!important; }
  .documents-header > .documents-sidebar { max-height:none; }
}

/* Keep the document rail within the document area so it stops at the final article. */
.documents-header-glass { display:none!important; }
.documents-header {
  position:sticky!important;
  top:40px!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  height:calc(100vh - 80px)!important;
  max-height:none!important;
  align-self:start!important;
  box-sizing:border-box!important;
  margin-bottom:50px!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.documents-header > .documents-sidebar {
  flex:1 1 0;
  min-height:0;
  max-height:none;
  overflow-y:auto;
}
@media (max-width:820px) {
  .documents-header { top:16px!important; height:calc(100vh - 32px)!important; margin-bottom:40px!important; }
}
@media (max-width:620px) {
  .documents-header { top:12px!important; height:calc(100vh - 24px)!important; margin-bottom:32px!important; }
}
