:root {
  --primary-rgb: 255, 119, 37;
  --border-rgb: 237, 233, 239;
  --muted-rgb: 247, 245, 249;
  --link-color: #FF7725;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --list-indent: var(--space-2xl);
  --list-spacing: var(--space-lg);
}

.dark {
  --primary-rgb: 204, 94, 29;
  --border-rgb: 255, 255, 255;
  --muted-rgb: 71, 66, 90;
}

.hidden {
  display: none;
}

.section-details {
  margin-bottom: var(--space-lg);
}

.section-summary {
  list-style: none;
}

.section-summary::-webkit-details-marker {
  display: none;
}

.section-heading {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1.4;
  font-weight: bold;
}

.section-heading>span {
  flex: 1;
}

h2.section-heading {
  font-size: var(--heading-h2);
}

h3.section-heading {
  font-size: var(--heading-h3);
}

h4.section-heading {
  font-size: var(--heading-h4);
}

h5.section-heading {
  font-size: var(--heading-h5);
}

h6.section-heading {
  font-size: var(--heading-h6);
}

.fold-indicator {
  width: 1em;
  height: 1em;
  margin-right: var(--space-sm);
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
  flex-shrink: 0;
  color: inherit;
}

.section-details[open] > summary .fold-indicator {
  transform: rotate(90deg);
}

.section-summary {
  border-bottom: 1px solid rgb(var(--border-rgb));
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-details {
  padding-top: var(--space-lg)
}

.section-details:not([open]) .section-summary {
  opacity: 0.5;
}

/* Table of Contents */
.table-of-contents {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgb(var(--border-rgb));
  border-bottom: 1px solid rgb(var(--border-rgb));
}

.table-of-contents-title {
  font-weight: bold;
  margin: 0;
  margin-bottom: var(--space-md);
  line-height: 1.4;
  font-size: var(--heading-h2);
}

.table-of-contents li {
  list-style: none;
  padding-left: var(--space-sm);
}


/* Links */
.bogam-link,
.table-of-contents a,
.section-number {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}

/* Topic article */
.topic-article {
  overflow-wrap: break-word;
}

.topic-content {
  line-height: 1.8;
}

.topic-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--space-xs);
}

.redirection-banner {
  border-left: var(--blockquote-border) solid rgba(var(--primary-rgb), var(--opacity-strong));
  background: rgba(var(--muted-rgb), var(--opacity-medium));
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: var(--space-xs);
}

/* Lists */
.topic-article ul,
.topic-article ol {
  padding-left: var(--list-indent);
  margin: var(--space-sm) 0;
}

.topic-article .table-of-contents > ul,
.topic-article .table-of-contents > ol {
  padding-left: 0;
  margin: 0;
}

.topic-article .table-of-contents ul {
  list-style: none;
}

.topic-article ul {
  list-style: disc;
}

.topic-article ol {
  list-style: decimal;
}

.topic-article li {
  margin: var(--space-sm) 0;
  line-height: var(--line-height-content);
}

.topic-article ul ul,
.topic-article ol ol,
.topic-article ul ol,
.topic-article ol ul {
  margin: var(--space-sm) 0;
  padding-left: var(--nested-indent);
}

/* Paragraphs */
.topic-article p {
  margin: var(--space-sm) 0;
  line-height: var(--line-height-content);
}

.topic-article p:first-child {
  margin-top: 0;
}

.topic-article p:last-child {
  margin-bottom: 0;
}

/* Text formatting */
.underline {
  text-decoration: underline;
}


/* Page Title */
.page-title h1 {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: normal;
  border-bottom: 1px solid rgb(var(--border-rgb));
  margin-bottom: var(--space-sm);
}

/* Footer */
footer .container {
  border-top: 1px solid rgb(var(--border-rgb));
  padding-top: var(--space-2xl);
}

/* Responsive Colors */
.bogam-color {
  color: var(--foreground);
}

/* Buttons inside topic articles */
.bogam-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  padding: 0.5rem 1rem;
  background-color: rgb(var(--primary-rgb));
  color: white;
}