.docs__section {
  padding: 80px 0;
  overflow: hidden;
}
@media (width >= 1280px) {
  .docs__section {
    padding: 120px 0;
  }
}
.docs__container {
  max-width: 1440px;
  margin: 0 auto;
}

.docs-hero {
  padding: 48px 0 60px;
  text-align: center;
}
@media (width >= 1280px) {
  .docs-hero {
    padding: 96px 0 80px;
  }
}
.docs-hero__title {
  font: var(--mat-sys-display-large);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  margin-bottom: 16px;
}

.docs-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (width >= 1024px) {
  .docs-layout {
    flex-direction: row;
  }
}

.docs-sidebar {
  flex: 0 0 280px;
  position: relative;
}
@media (width < 1024px) {
  .docs-sidebar {
    flex: none;
    width: 100%;
  }
}

.docs-main {
  flex: 1;
  min-width: 0;
}

.docs-toc {
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--wsu-layout-divider-color);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
@media (width < 1024px) {
  .docs-toc {
    position: relative;
    top: 0;
  }
}
.docs-toc__title {
  color: var(--md-sys-color-secondary);
  font: var(--mat-sys-headline-large);
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wsu-layout-divider-color);
}
.docs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-toc__list ul {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0;
}
.docs-toc__item {
  margin: 8px 0;
}
.docs-toc__link {
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  transition: color 0.2s ease;
}
.docs-toc__link:hover {
  color: var(--md-sys-color-secondary);
}

.docs-section {
  background-color: var(--md-sys-color-surface);
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--wsu-layout-divider-color);
}
.docs-section h2 {
  color: var(--md-sys-color-secondary);
  font: var(--mat-sys-headline-large);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wsu-layout-divider-color);
}
.docs-section h3 {
  color: var(--md-sys-color-on-surface);
  font-size: 1.35rem;
  margin: 28px 0 16px;
  font-weight: 600;
}
.docs-section h4 {
  color: var(--md-sys-color-on-surface);
  font-size: 1.1rem;
  margin: 20px 0 12px;
  font-weight: 600;
  opacity: 0.9;
}
.docs-section p {
  line-height: 1.7;
  margin-bottom: 16px;
}
.docs-section ul,
.docs-section ol {
  margin: 16px 0;
  padding-left: 24px;
}
.docs-section ul li,
.docs-section ol li {
  margin: 8px 0;
  line-height: 1.6;
}
.docs-section a {
  color: var(--md-sys-color-secondary);
  text-decoration: none;
}
.docs-section a:hover {
  text-decoration: underline;
}

.docs-method {
  border: 1px solid var(--wsu-layout-divider-color);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  background-color: var(--md-sys-color-surface-container);
}
.docs-method__header {
  background-color: var(--md-sys-color-primary-container);
  padding: 16px 20px;
  border-bottom: 1px solid var(--wsu-layout-divider-color);
}
.docs-method__name {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--md-sys-color-secondary);
}
.docs-method__body {
  padding: 24px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
.docs-table th,
.docs-table td {
  border: 1px solid var(--wsu-layout-divider-color);
  padding: 12px 16px;
  text-align: left;
}
.docs-table th {
  background-color: var(--md-sys-color-primary-container);
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}
.docs-table tr:nth-child(even) {
  background-color: var(--md-sys-color-surface-container);
}
.docs-table code {
  background-color: var(--md-sys-color-surface-container);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.docs-code {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--wsu-layout-divider-color);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.6;
}
.docs-code code {
  background: none;
  padding: 0;
}

code {
  background-color: var(--md-sys-color-surface-container);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.docs-callout {
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid;
}
.docs-callout h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.docs-callout p:last-child {
  margin-bottom: 0;
}
.docs-callout ul {
  margin-bottom: 0;
}
.docs-callout--example {
  background-color: rgba(134, 207, 255, 0.1);
  border-left-color: var(--md-sys-color-secondary);
}
.docs-callout--warning {
  background-color: rgba(241, 193, 0, 0.1);
  border-left-color: var(--wsu-accent-color);
}
.docs-callout--error {
  background-color: rgba(255, 180, 171, 0.1);
  border-left-color: var(--md-sys-color-error);
}
.docs-callout--info {
  background-color: rgba(179, 200, 228, 0.1);
  border-left-color: var(--md-sys-color-primary);
}

.docs-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.docs-badge--required {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-error);
}
.docs-badge--optional {
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  opacity: 0.8;
}
.docs-badge--return {
  background-color: rgba(241, 193, 0, 0.2);
  color: var(--wsu-accent-color);
}

.docs-constant {
  display: inline-block;
  background-color: var(--md-sys-color-surface-container);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.875rem;
}

.docs-contact {
  background: linear-gradient(135deg, var(--md-sys-color-secondary-container), var(--md-sys-color-surface-container));
  border: 1px solid var(--md-sys-color-secondary);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}
.docs-contact h3 {
  color: var(--md-sys-color-secondary);
  margin: 0 0 12px;
}
.docs-contact p {
  margin-bottom: 8px;
}
.docs-contact p:last-child {
  margin-bottom: 0;
}
.docs-contact a {
  color: var(--wsu-accent-color);
  font-weight: 500;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--wsu-accent-color);
  color: var(--wsu-accent-text-color);
  border: none;
  border-radius: 4px;
  font-family: var(--mat-sys-display-large-font);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.docs-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}
.docs-btn:active {
  transform: translateY(0);
}
.docs-btn--secondary {
  background-color: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-primary);
}

.docs-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.docs-popup.active {
  display: flex;
}
.docs-popup__content {
  background-color: var(--md-sys-color-surface);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wsu-layout-divider-color);
}
.docs-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: var(--md-sys-color-primary-container);
  border-bottom: 1px solid var(--wsu-layout-divider-color);
}
.docs-popup__header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface);
  border: none;
  padding: 0;
}
.docs-popup__close {
  background: none;
  border: none;
  color: var(--md-sys-color-on-surface);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.docs-popup__close:hover {
  opacity: 1;
}
.docs-popup__body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.docs-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--wsu-layout-divider-color);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 1rem;
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}
.docs-search::placeholder {
  color: var(--md-sys-color-on-surface);
  opacity: 0.5;
}
.docs-search:focus {
  outline: none;
  border-color: var(--md-sys-color-secondary);
}

.docs-popup-table {
  width: 100%;
  border-collapse: collapse;
}
.docs-popup-table th,
.docs-popup-table td {
  border: 1px solid var(--wsu-layout-divider-color);
  padding: 12px 16px;
  text-align: left;
}
.docs-popup-table thead {
  background-color: var(--md-sys-color-primary-container);
  position: sticky;
  top: 0;
}
.docs-popup-table thead th {
  font-weight: 600;
}
.docs-popup-table tbody tr {
  transition: background-color 0.15s ease;
}
.docs-popup-table tbody tr:nth-child(even) {
  background-color: var(--md-sys-color-surface-container);
}
.docs-popup-table tbody tr:hover {
  background-color: var(--md-sys-color-secondary-container);
}

.docs-loading {
  text-align: center;
  padding: 24px;
  font-style: italic;
  color: var(--md-sys-color-on-surface);
  opacity: 0.7;
}

.docs-error {
  color: var(--md-sys-color-error);
  padding: 16px;
  border-left: 4px solid var(--md-sys-color-error);
  background-color: rgba(255, 180, 171, 0.1);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

@media (width < 768px) {
  .docs-hero__title {
    font-size: 2rem;
    letter-spacing: 0.15rem;
  }
  .docs-section {
    padding: 24px;
  }
  .docs-section h2 {
    font-size: 1.5rem;
  }
  .docs-table {
    font-size: 0.85rem;
  }
  .docs-table th,
  .docs-table td {
    padding: 8px 12px;
  }
  .docs-code {
    font-size: 0.8rem;
    padding: 12px 16px;
  }
  .docs-method__name {
    font-size: 1rem;
  }
  .docs-method__body {
    padding: 16px;
  }
}