:root {
  --front-bg: #f6f2eb;
  --front-surface: rgba(255, 255, 255, .88);
  --front-ink: #18201c;
  --front-muted: #677168;
  --front-border: rgba(54, 64, 56, .12);
  --front-soft: #efe7da;
  --front-warm: #c97942;
  --front-deep: #1f2a24;
  --front-shadow: 0 22px 60px rgba(30, 36, 31, .10);
  --front-shadow-sm: 0 12px 34px rgba(30, 36, 31, .08);
}

html {
  scroll-behavior: smooth;
}

.front-body {
  min-height: 100vh;
  color: var(--front-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(201, 121, 66, .18), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(70, 95, 81, .16), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, var(--front-bg) 46%, #f8faf7 100%);
  font-family: Aptos, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.tracking-tight {
  letter-spacing: -.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(54, 64, 56, .10);
  background: rgba(255, 252, 246, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--front-deep), #465f51);
  box-shadow: var(--front-shadow-sm);
  font-size: .85rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-subtitle {
  color: var(--front-muted);
  font-size: .78rem;
}

.navbar .nav-link {
  border-radius: 999px;
  color: var(--front-muted);
  font-weight: 650;
  padding-inline: .9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--front-ink);
  background: rgba(31, 42, 36, .08);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--front-deep);
}

.section-eyebrow {
  color: #8a7963;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-section {
  overflow: hidden;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--front-muted);
  box-shadow: 0 10px 28px rgba(30, 36, 31, .06);
}

.status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #3fb069;
  box-shadow: 0 0 0 .22rem rgba(63, 176, 105, .14);
}

.hero-card,
.surface-card,
.article-card,
.auth-card {
  background: var(--front-surface);
  border-radius: 2rem;
  box-shadow: var(--front-shadow);
}

.category-card,
.post-card {
  border-radius: 1.6rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--front-shadow);
}

.category-cloud {
  padding: .85rem;
  border: 1px solid rgba(54, 64, 56, .10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 24px rgba(30, 36, 31, .04);
}

.category-cloud__list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.category-cloud__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2rem;
  padding: .34rem .62rem;
  border: 1px solid rgba(31, 42, 36, .10);
  border-radius: 999px;
  color: #49534c;
  background: rgba(255, 255, 255, .82);
  text-decoration: none;
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.category-cloud__item:hover,
.category-cloud__item.is-active {
  transform: translateY(-1px);
  border-color: rgba(201, 121, 66, .24);
  background: rgba(255, 248, 239, .72);
}

.category-cloud__item span {
  font-size: .85rem;
  font-weight: 600;
}

.category-cloud__item small {
  color: var(--front-muted);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}

.post-card-cover {
  min-height: 14rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.cover-soft {
  background: linear-gradient(135deg, #1f2a24, #526a5c 56%, #c97942);
}

.cover-mid {
  background: linear-gradient(135deg, #252a22, #705338 58%, #d7a05f);
}

.cover-alt {
  background: linear-gradient(135deg, #14231d, #325146 56%, #7ba37f);
}

.meta-dot {
  color: #c3b7a5;
}

.post-cover img {
  max-height: 28rem;
  object-fit: cover;
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6.5rem;
}

.sidebar-card {
  border-radius: 1.5rem;
}

.toc-link,
.related-link,
.footer-link {
  color: var(--front-muted);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.toc-link {
  display: block;
  border-radius: .9rem;
  padding: .6rem .75rem;
  font-size: .92rem;
}

.toc-link:hover {
  color: var(--front-ink);
  background: rgba(31, 42, 36, .07);
}

.toc-link--child {
  padding-left: 1.4rem;
}

.related-link {
  display: block;
  border: 1px solid var(--front-border);
  border-radius: 1rem;
  padding: .85rem .95rem;
  background: #fff;
  font-size: .92rem;
}

.related-link:hover,
.footer-link:hover {
  color: var(--front-ink);
}

.training-series-card {
  padding: 1.5rem;
  border: 1px solid rgba(54, 64, 56, .10);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--front-shadow-sm);
}

.training-series-count {
  align-self: flex-start;
  padding: .45rem .7rem;
  border: 1px solid rgba(31, 42, 36, .10);
  border-radius: 999px;
  color: var(--front-muted);
  background: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.training-lesson-list {
  display: grid;
  gap: .65rem;
}

.training-lesson-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(54, 64, 56, .10);
  border-radius: 1rem;
  color: var(--front-ink);
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.training-lesson-item:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 121, 66, .28);
  background: rgba(255, 248, 239, .72);
}

.training-lesson-step {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--front-deep);
  font-size: .82rem;
  font-weight: 800;
}

.training-lesson-copy {
  display: grid;
  gap: .15rem;
}

.training-lesson-copy small {
  color: var(--front-muted);
}

.training-lesson-arrow {
  color: var(--front-warm);
  font-size: 1.2rem;
  font-weight: 800;
}

.training-nav {
  padding: 1.1rem;
  border: 1px solid rgba(54, 64, 56, .10);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .70);
}

.training-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.training-nav-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 5rem;
  padding: .9rem;
  border: 1px solid rgba(54, 64, 56, .10);
  border-radius: 1rem;
  color: var(--front-ink);
  background: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.training-nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 121, 66, .28);
  background: rgba(255, 248, 239, .72);
}

.training-nav-link--next {
  justify-content: flex-end;
  text-align: right;
}

.training-nav-link small {
  display: block;
  color: var(--front-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.training-nav-link strong {
  display: block;
  margin-top: .15rem;
  line-height: 1.35;
}

.training-nav-arrow {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--front-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.article-prose {
  color: #2f3a34;
  font-size: 1.04rem;
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose p,
.article-prose li {
  line-height: 1.95;
}

.article-prose p {
  margin-bottom: 1rem;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  color: var(--front-ink);
  font-weight: 800;
  letter-spacing: -.03em;
}

.article-prose h2 {
  margin-top: 2.6rem;
  margin-bottom: .9rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.article-prose h3 {
  margin-top: 2rem;
  margin-bottom: .7rem;
  font-size: 1.45rem;
}

.article-prose a {
  color: #86532f;
  font-weight: 700;
}

.article-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: .25rem solid var(--front-warm);
  border-radius: 1rem;
  background: #fff8ef;
  color: #53483b;
}

.article-prose pre {
  padding: 1rem;
  border-radius: 1rem;
  color: #edf6ef;
  background: #16201b;
  overflow: auto;
}

.article-prose code {
  border-radius: .45rem;
  padding: .12rem .35rem;
  color: #6b4327;
  background: #f4e6d4;
}

.article-prose pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.rating-panel {
  display: grid;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--front-border);
  border-radius: 1.25rem;
  background: rgba(246, 242, 235, .74);
}

.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.rating-star {
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--front-border);
  border-radius: 1rem;
  color: #c7baaa;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}

.rating-star:hover,
.rating-star.is-active {
  transform: translateY(-1px);
  color: #d28a25;
  border-color: rgba(210, 138, 37, .45);
}

.rating-star:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.author-card {
  padding: 1.15rem;
  border: 1px solid rgba(201, 121, 66, .20);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 247, 237, .9)),
    radial-gradient(circle at top right, rgba(201, 121, 66, .16), transparent 34%);
}

.author-card-content {
  align-items: flex-start;
}

.author-avatar {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 5.5rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, var(--front-deep), var(--front-warm));
  box-shadow: var(--front-shadow-sm);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .03em;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card-copy {
  min-width: 0;
}

.comments-panel {
  padding: 1.5rem;
  border: 1px solid rgba(54, 64, 56, .11);
  border-top: .25rem solid rgba(201, 121, 66, .30);
  border-radius: 1.65rem;
  background: rgba(250, 247, 241, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

.comment-card {
  padding: 1rem;
  border: 1px solid var(--front-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 36, 31, .05);
}

.comment-card--reply {
  background: #fbf8f2;
}

.comment-body {
  margin-top: .85rem;
  color: #344039;
  line-height: 1.85;
  white-space: pre-line;
}

.comment-action {
  border: 0;
  padding: 0;
  color: var(--front-muted);
  background: transparent;
  font-size: .9rem;
  font-weight: 800;
}

.comment-action:hover,
.comment-action.is-active {
  color: var(--front-ink);
}

.comment-replies {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(201, 121, 66, .25);
}

.alert-inline {
  display: none;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font-size: .95rem;
  font-weight: 700;
}

.alert-inline.is-visible {
  display: block;
}

.alert-inline.is-success {
  color: #17633a;
  border-color: #b8e5c8;
  background: #edf9f1;
}

.alert-inline.is-error {
  color: #9b2525;
  border-color: #f0c0c0;
  background: #fff0f0;
}

.alert-inline.is-info {
  color: #255f91;
  border-color: #bfd9ef;
  background: #eef7ff;
}

.ad-slot {
  margin-bottom: 1rem;
}

.ad-slot-placeholder {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem;
  border: 1px dashed rgba(54, 64, 56, .22);
  border-radius: 1.25rem;
  color: var(--front-muted);
  background: rgba(255, 255, 255, .72);
}

.ad-slot-placeholder strong {
  color: var(--front-ink);
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(54, 64, 56, .12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--front-shadow);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__button {
  white-space: nowrap;
}

.auth-card {
  max-width: 48rem;
}

.account-menu-card,
.account-panel {
  border-radius: 1.65rem;
  background: var(--front-surface);
}

.account-avatar {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  place-items: center;
  border-radius: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--front-deep), var(--front-warm));
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-profile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.account-avatar-wrap {
  position: relative;
  display: inline-grid;
}

.account-avatar-edit-button {
  position: absolute;
  right: -.25rem;
  bottom: .35rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--front-deep);
  box-shadow: var(--front-shadow-sm);
  font-size: .9rem;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}

.account-avatar-edit-button:hover {
  transform: translateY(-1px) scale(1.04);
  background: var(--front-warm);
}

.account-nav-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.account-avatar--nav {
  width: 1.65rem;
  height: 1.65rem;
  flex-basis: 1.65rem;
  border-radius: 999px;
  font-size: .72rem;
}

.account-avatar--menu {
  width: 7.25rem;
  height: 7.25rem;
  flex-basis: 7.25rem;
  border-radius: 50%;
  font-size: 2.35rem;
  box-shadow: var(--front-shadow-sm);
}

.account-menu-link {
  display: grid;
  gap: .1rem;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--front-muted);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.account-menu-link:hover,
.account-menu-link.is-active {
  color: var(--front-ink);
  border-color: rgba(201, 121, 66, .20);
  background: #fff8ef;
}

.account-note,
.account-preference-card,
.notification-history-item {
  padding: 1.25rem;
  border: 1px solid var(--front-border);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .72);
}

.account-switch {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--front-border);
  border-radius: 1.1rem;
  background: #fff;
}

.account-switch .form-check-input {
  margin-left: -2.25rem;
  margin-top: .25rem;
}

.account-single-line-textarea {
  overflow-x: auto;
  resize: none;
  white-space: pre;
}

.notification-history-item.is-unread {
  border-color: rgba(201, 121, 66, .28);
  background: #fff8ef;
}

.account-avatar-modal {
  border-radius: 1.75rem;
  background: #fffdf8;
}

.avatar-dropzone {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 2rem;
  border: 2px dashed rgba(31, 42, 36, .24);
  border-radius: 1.5rem;
  background: rgba(246, 242, 235, .74);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.avatar-dropzone:hover,
.avatar-dropzone.is-dragging {
  border-color: rgba(201, 121, 66, .78);
  background: #fff8ef;
  transform: translateY(-1px);
}

.avatar-dropzone-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--front-deep), var(--front-warm));
  font-size: 2rem;
  font-weight: 800;
}

.avatar-crop-workspace {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.avatar-crop-frame {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 2rem;
  background:
    linear-gradient(45deg, rgba(31, 42, 36, .08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(31, 42, 36, .08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(31, 42, 36, .08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(31, 42, 36, .08) 75%);
  background-position: 0 0, 0 .75rem, .75rem -.75rem, -.75rem 0;
  background-size: 1.5rem 1.5rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), var(--front-shadow-sm);
  cursor: grab;
  touch-action: none;
}

.avatar-crop-frame.is-dragging {
  cursor: grabbing;
}

.avatar-crop-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

.avatar-crop-guides {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: inherit;
  box-shadow: inset 0 0 0 999px rgba(24, 32, 28, .05);
  pointer-events: none;
}

.avatar-crop-guides::before,
.avatar-crop-guides::after {
  content: "";
  position: absolute;
  inset: 0;
}

.avatar-crop-guides::before {
  background: linear-gradient(
    to right,
    transparent 33.1%,
    rgba(255, 255, 255, .58) 33.1%,
    rgba(255, 255, 255, .58) 33.6%,
    transparent 33.6%,
    transparent 66.2%,
    rgba(255, 255, 255, .58) 66.2%,
    rgba(255, 255, 255, .58) 66.7%,
    transparent 66.7%
  );
}

.avatar-crop-guides::after {
  background: linear-gradient(
    to bottom,
    transparent 33.1%,
    rgba(255, 255, 255, .58) 33.1%,
    rgba(255, 255, 255, .58) 33.6%,
    transparent 33.6%,
    transparent 66.2%,
    rgba(255, 255, 255, .58) 66.2%,
    rgba(255, 255, 255, .58) 66.7%,
    transparent 66.7%
  );
}

.avatar-crop-ratio {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 42, 36, .72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  pointer-events: none;
}

.footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(54, 64, 56, .10);
  background:
    radial-gradient(circle at top left, rgba(201, 121, 66, .12), transparent 26%),
    rgba(255, 252, 246, .78);
}

.empty-state {
  display: grid;
  gap: .65rem;
}

.pagination .page-link {
  color: var(--front-ink);
  border-color: var(--front-border);
}

.pagination .page-link:hover {
  background: #fff8ef;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .author-card {
    padding: 1rem 1.15rem;
  }

  .author-card-content {
    align-items: stretch;
    min-height: 8.75rem;
  }

  .author-avatar {
    width: 8.75rem;
    height: 8.75rem;
    flex-basis: 8.75rem;
    border-radius: 1.7rem;
    font-size: 1.65rem;
  }

  .author-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: .3rem;
  }
}

@media (max-width: 991.98px) {
  .sidebar-stack {
    position: static;
  }

  .training-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .avatar-crop-workspace {
    grid-template-columns: 1fr;
  }

  .comments-panel {
    padding: 1rem;
  }

  .comment-replies {
    padding-left: .8rem;
  }

  .cookie-consent {
    align-items: flex-start;
    flex-direction: column;
  }
}
