/* Reset */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Root */
:root {
  --font-primary: "Source Serif 4", serif;
  --font-secondary: "DM Sans", sans-serif;

  --bg-white: #ffffff;
  --bg-light: #fafafa;

  --color-brand: #1a8917;
  --color-text-dark: #1a1a1a;
  --color-text-dark-200: #292929;
  --color-text-gray: #6b6b6b;
  --color-border: #e5e7eb;

  --gutter-x: 1.6rem;

  font-size: 62.5%; /* 1rem = 10px */
}

/* General */
html {
  scroll-behavior: smooth;
}

body,
input,
::placeholder {
  font-family: var(--font-secondary);
}

body {
  font-size: 1.6rem;
  color: var(--color-text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

/* Container */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-x);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 2rem;
  color: inherit;
  font-weight: 600;
  border: solid 1px var(--color-border);
  border-radius: 9999px;
  padding: 1.2rem 1.6rem;
}

.btn:hover {
  background-color: var(--bg-light);
}

.btn.btn-full {
  width: 100%;
}

/* Header */
.header {
  padding-block: 1.6rem;
  border-top: solid 1px var(--color-border);
  border-bottom: solid 1px var(--color-border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .container .col:nth-child(2) {
  width: 320px;
}

.header__logo a {
  font-size: 2.2rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.header__search .form-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.6rem;
  background-color: var(--bg-light);
  border-radius: 9999px;
  max-width: 320px;
  width: 100%;
  border: solid 1px var(--color-border);
}

.header__search i {
  color: var(--color-text-gray);
  font-size: 1.6rem;
}

.header__search input[type="search"] {
  height: 42px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.4rem;
  width: 100%;
}

.header__menu ul {
  list-style: none;
  display: flex;
  flex-direction: flex-end;
  gap: 2.4rem;
}

.header__menu a,
.language-switcher__button,
.language-switcher__link {
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  color: var(--color-text-gray);
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  border-left: solid 1px var(--color-border);
  padding-left: 2rem;
}

.language-switcher__button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.language-switcher__list {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;

  min-width: 16rem;

  padding: 0.8rem 0;
  margin: 0;

  list-style: none;

  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;

  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem);

  transition: 0.2s ease;

  z-index: 100;
}

.language-switcher--open .language-switcher__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher__item {
  margin: 0;
}

.language-switcher__link {
  display: block;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
}

.language-switcher__link:hover {
  background: var(--bg-light);
}

.language-switcher__item--active .language-switcher__link {
  font-weight: 700;
}

/* Book Details */
.book-details .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  padding-block: 5.6rem;
}

.cover-book {
  padding: 1rem;
  border: solid 1px var(--color-border);
  margin-bottom: 1.6rem;
}

.cover-book,
.cover-book img {
  border-radius: 0.6rem;
}

.cover-book img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
}

.book-category {
  text-transform: uppercase;
  color: var(--color-brand);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1.6rem;
  font-size: 1.2rem;
}

.book-details h1 {
  font-size: 4.4rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0.8rem 0 0.4rem;
}

.book-details h2 {
  font-size: 2rem;
  line-height: 1.75rem;
  font-style: italic;
  color: var(--color-text-gray);
  font-weight: 500;
  margin-bottom: 2rem;
}

.book-details__metainfo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.book-details__metainfo__card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background-color: var(--bg-light);
  padding: 1.2rem;
  border-radius: 0.8rem;
  border: solid 1px var(--color-border);
}

.book-details__metainfo__card strong {
  font-size: 1.2rem;
  color: var(--color-text-gray);
  font-weight: 400;
}

.book-details__metainfo__card span {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.book-details__description p {
  font-size: 1.7rem;
  font-family: var(--font-secondary);
  line-height: 1.8;
  max-width: 672px;
  margin-bottom: 3.2rem;
}

.book-details h3 {
  font-size: 2.2rem;
  margin-bottom: 1.6rem;
}

.book-details__summary-list {
  list-style: none;
  border-radius: 1.2rem;
  border-bottom: none;
  columns: 2;
  column-gap: 2rem;
}

.book-details__summary-list li {
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  color: var(--color-text-dark-200);
  border-left: solid 1px var(--color-border);
}

.book-details__summary-list li span {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Book Summaries */
.book-summaries {
  border-top: solid 1px var(--color-border);
  padding-block: 4.8rem;
}

.book-summaries h2 {
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
}

.book-summaries p {
  font-size: 1.4rem;
  color: var(--color-text-dark-200);
}

.book-summaries__loop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 3.2rem;
}

.summary-card a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: solid 1px var(--color-border);
  border-radius: 1.2rem;
  padding: 2rem;
  color: inherit;
  height: 100%;
}

.summary-card a:hover {
  background-color: var(--bg-light);
}

.summary-card a h3 {
  display: block;
  font-size: 1.1rem;
  color: var(--color-text-gray);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}

.summary-card a h4 {
  font-size: 1.7rem;
  line-height: 1.375;
  margin-bottom: 0.4rem;
}

.summary-card a p {
  font-size: 1.4rem;
  color: var(--color-text-gray);
  line-height: 1.625;
}

/* Book Blog */
.book-blog {
  border-top: solid 1px var(--color-border);
  padding-block: 4.8rem;
  background-color: var(--bg-light);
}

.book-blog h2 {
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
}

.book-blog p {
  font-size: 1.4rem;
  color: var(--color-text-dark-200);
}

.book-blog__loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3.2rem;
}

.blog-card {
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--bg-white);
  border: solid 1px var(--color-border);
}

.blog-card:hover {
  background-color: var(--bg-light);
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card figure {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all ease 300ms;
}

.blog-card div {
  padding: 2rem;
}

.blog-card strong {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.6rem;
  line-height: 1.375;
  margin-bottom: 1.2rem;
}

.blog-card span {
  font-size: 1.2rem;
  color: var(--color-text-gray);
}

/* Footer */
.footer {
  padding-block: 2.4rem;
  border-top: solid 1px var(--color-border);
  background-color: var(--bg-white);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.footer__brand a {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-dark);
  letter-spacing: -0.025em;
}

.footer__menu ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.footer__menu a {
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  color: var(--color-text-gray);
}

.footer__menu a:hover {
  color: var(--color-text-dark);
}

.footer__copy {
  font-size: 1.3rem;
  color: var(--color-text-gray);
}

/* Archive Header */
.archive-header {
  padding-block: 4rem;
  border-bottom: solid 1px var(--color-border);
}

.archive-header__label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
  margin-bottom: 0.8rem;
}

.archive-header__title {
  font-size: 3.6rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.archive-header__description {
  font-size: 1.6rem;
  color: var(--color-text-gray);
  margin-bottom: 2.4rem;
}

.archive-header__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.archive-header__nav a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 9999px;
  border: solid 1px var(--color-border);
  text-decoration: none;
  color: var(--color-text-gray);
  transition: all 0.2s ease;
}

.archive-header__nav a:hover,
.archive-header__nav li.active a {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: #fff;
}

/* Archive Loop */
.archive-loop {
  padding-block: 4.8rem;
}

.archive-section {
  padding-block: 4rem;
  border-bottom: solid 1px var(--color-border);
}

.archive-section:last-child {
  border-bottom: none;
}

.archive-section h2 {
  font-size: 2.4rem;
  margin-bottom: 2.4rem;
}

.archive-empty {
  font-size: 1.5rem;
  color: var(--color-text-gray);
  padding-block: 2.4rem;
}

.archive-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.archive-pagination .nav-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 9999px;
  border: solid 1px var(--color-border);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--color-text-gray);
  transition: all 0.2s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: #fff;
}

/* Book Card */
.book-cards-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.book-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: solid 1px var(--color-border);
  border-radius: 1.2rem;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.book-card a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.book-card__cover {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.book-card a:hover .book-card__cover img {
  transform: scale(1.04);
}

.book-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  color: var(--color-border);
  font-size: 4rem;
}

.book-card__info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.book-card__category {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
}

.book-card__title {
  font-size: 1.6rem;
  line-height: 1.3;
  font-family: var(--font-primary);
  margin-top: 0.4rem;
}

.book-card__author {
  font-size: 1.3rem;
  color: var(--color-text-gray);
  margin-top: auto;
  padding-top: 0.8rem;
}

/* Single Summary */
.single-summary {
  padding-block: 4.8rem;
}

.single-summary {
  padding-block: 0;
}

.single-summary__header {
  margin-bottom: 4rem;
}

.single-summary__book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
  margin-bottom: 1.6rem;
}

.single-summary h1 {
  font-size: 3.6rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.single-summary__chapter {
  font-size: 1.6rem;
  color: var(--color-text-gray);
  font-style: italic;
}

.single-summary__content p {
  font-size: 1.7rem;
  line-height: 1.8;
  font-family: var(--font-secondary);
  margin-bottom: 2.4rem;
}

.single-summary__content h2,
.single-summary__content h3 {
  margin-top: 3.2rem;
  margin-bottom: 1.6rem;
}

.summary-more {
  border-top: solid 1px var(--color-border);
}

/* Single Post */
.single-post__hero {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.single-post__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.single-post {
  padding-block: 4rem 0;
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.single-post__reading-time {
  font-size: 1.3rem;
  color: var(--color-text-gray);
}

.single-post h1 {
  font-size: 3.6rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.single-post__date {
  display: block;
  font-size: 1.3rem;
  color: var(--color-text-gray);
  margin-bottom: 3.2rem;
}

.single-post__content p {
  font-size: 1.7rem;
  line-height: 1.8;
  font-family: var(--font-secondary);
  margin-bottom: 2.4rem;
}

.single-post__content h2,
.single-post__content h3 {
  margin-top: 3.2rem;
  margin-bottom: 1.6rem;
}

.related-posts {
  border-top: solid 1px var(--color-border);
}

/* Amazon CTA */
.amazon-cta {
  padding-block: 3.2rem;
  border-top: solid 1px var(--color-border);
  border-bottom: solid 1px var(--color-border);
  background-color: var(--bg-light);
}

.amazon-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.amazon-cta p {
  font-size: 1.6rem;
  font-family: var(--font-primary);
  font-style: italic;
}

.amazon-cta__btn {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  white-space: nowrap;
}

.amazon-cta__btn:hover {
  background-color: #157013;
  border-color: #157013;
}

/* Search */
.search-header {
  padding-block: 4rem;
  border-bottom: solid 1px var(--color-border);
}

.search-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1.6rem;
}

.search-header h1 em {
  color: var(--color-brand);
  font-style: normal;
}

.search-header__form {
  margin-top: 2.4rem;
  max-width: 480px;
}

/* 404 */
.not-found {
  padding-block: 6.4rem;
  text-align: center;
  border-bottom: solid 1px var(--color-border);
}

.not-found__header {
  margin-bottom: 3.2rem;
}

.not-found__code {
  display: block;
  font-size: 12rem;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: 1.6rem;
}

.not-found h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.not-found p {
  font-size: 1.6rem;
  color: var(--color-text-gray);
}

.not-found__search {
  max-width: 480px;
  margin-inline: auto;
}

/* Page */
.page-content {
  padding-block: 5.6rem;
}

.page-content .container {
  max-width: 720px;
}

.page-content__title {
  font-size: 3.6rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 3.2rem;
  padding-bottom: 2.4rem;
  border-bottom: solid 1px var(--color-border);
}

.page-content__body p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-text-dark-200);
}

.page-content__body h2 {
  font-size: 2.4rem;
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}

.page-content__body h3 {
  font-size: 2rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1199px) {
  .book-cards-loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-details .container {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 991px) {
  .book-blog__loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-summaries__loop {
    grid-template-columns: 1fr;
  }

  .book-details__metainfo {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-details__summary-list {
    columns: 1;
  }

  .header .container {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .header .container .col:nth-child(2) {
    width: 100%;
    order: 3;
  }

  .single-post__hero {
    height: 260px;
  }

  .amazon-cta .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .book-details .container {
    grid-template-columns: 1fr;
  }

  .cover-book img {
    height: 240px;
  }

  .book-cards-loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-blog__loop {
    grid-template-columns: 1fr;
  }

  .book-details h1 {
    font-size: 3rem;
  }

  .archive-header__title {
    font-size: 2.8rem;
  }

  .single-summary h1,
  .single-post h1 {
    font-size: 2.8rem;
  }

  .not-found__code {
    font-size: 8rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .book-cards-loop {
    grid-template-columns: 1fr;
  }

  .book-details__metainfo {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__navigation {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .archive-header__title {
    font-size: 2.4rem;
  }

  .single-post__hero {
    height: 200px;
  }
}

/* Reading Progress Bar */
.reading-progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-brand);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Single Layout (2 colunas: main + sidebar) */
.single-layout {
  padding-block: 4.8rem;
}

.single-layout .container {
  max-width: 1140px;
}

.single-layout__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5.6rem;
  align-items: start;
}

.single-layout__sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* Sidebar Widgets */
.sidebar-widget {
  border: solid 1px var(--color-border);
  border-radius: 1.2rem;
  overflow: hidden;
}

.sidebar-widget__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-gray);
  padding: 1.2rem 1.6rem;
  border-bottom: solid 1px var(--color-border);
  background-color: var(--bg-light);
}

/* Sidebar — Book Widget */
.sidebar-book {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-book__cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}

.sidebar-book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sidebar-book__title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  text-decoration: none;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.sidebar-book__author {
  font-size: 1.3rem;
  color: var(--color-text-gray);
}

.sidebar-book__cta {
  margin-top: 0.8rem;
  width: 100%;
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  font-size: 1.3rem;
}

.sidebar-book__cta:hover {
  background-color: #157013;
  border-color: #157013;
}

/* Sidebar — TOC Widget */
.sidebar-widget--toc .toc-widget {
  padding: 1.2rem 1.6rem;
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-list li {
  counter-increment: toc-counter;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.toc-list li::before {
  content: counter(toc-counter);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand);
  min-width: 1.6rem;
}

.toc-list__link {
  font-size: 1.3rem;
  color: var(--color-text-gray);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.toc-list__link:hover {
  color: var(--color-text-dark);
}

/* Sidebar — Categories Widget */
.sidebar-widget--categories .sidebar-categories {
  list-style: none;
  padding: 0.8rem 0;
}

.sidebar-categories li a {
  display: block;
  padding: 0.7rem 1.6rem;
  font-size: 1.4rem;
  color: var(--color-text-dark-200);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.sidebar-categories li a:hover {
  background-color: var(--bg-light);
  color: var(--color-brand);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: 3.2rem;
  border-top: solid 1px var(--color-border);
  margin-top: 3.2rem;
}

.post-navigation__prev,
.post-navigation__next {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.4rem;
  color: var(--color-text-gray);
  max-width: 48%;
  transition: color 0.2s ease;
}

.post-navigation__prev:hover,
.post-navigation__next:hover {
  color: var(--color-brand);
}

.post-navigation__prev span,
.post-navigation__next span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-navigation__next {
  margin-left: auto;
  text-align: right;
  flex-direction: row-reverse;
}

/* Post Author */
.post-author {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 2.4rem;
  background-color: var(--bg-light);
  border-radius: 1.2rem;
  border: solid 1px var(--color-border);
  margin-top: 4rem;
}

.post-author__avatar img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.post-author__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.post-author__bio {
  font-size: 1.4rem;
  color: var(--color-text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Archive Layout com Sidebar */
.archive-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.archive-sidebar {
  position: sticky;
  top: 2rem;
}

.archive-sidebar .sidebar-widget {
  border: none;
  border-radius: 0;
  overflow: visible;
}

.archive-sidebar .sidebar-widget__title {
  background: none;
  border: none;
  padding: 0 0 1.2rem;
  font-size: 1.2rem;
}

.archive-sidebar__nav ul {
  list-style: none;
}

.archive-sidebar__nav li a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1.4rem;
  color: var(--color-text-gray);
  text-decoration: none;
  border-bottom: solid 1px var(--color-border);
  transition: color 0.15s ease;
}

.archive-sidebar__nav li a:hover,
.archive-sidebar__nav li.active a {
  color: var(--color-brand);
  font-weight: 600;
}

.archive-main {
  min-width: 0;
}

.archive-section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: solid 1px var(--color-border);
  margin-top: 4rem;
}

.archive-section-title:first-child {
  margin-top: 0;
}

/* Homepage Sections */
.home-section {
  padding-block: 5.6rem;
  border-bottom: solid 1px var(--color-border);
}

.home-section--light {
  background-color: var(--bg-light);
}

.home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.2rem;
}

.home-section__header h2 {
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

.home-summaries-loop {
  grid-template-columns: repeat(3, 1fr);
}

/* Mobile Menu */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 3.6rem;
  height: 3.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.header__hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: 9999px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.header__hamburger--open .header__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger--open .header__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.header__hamburger--open .header__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 360px;
  height: 100dvh;
  background: var(--bg-white);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu--open {
  transform: translateX(0);
}

.mobile-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.menu-open .mobile-menu__overlay {
  display: block;
}

.mobile-menu__inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.mobile-menu__close {
  align-self: flex-end;
  background: none;
  border: solid 1px var(--color-border);
  border-radius: 9999px;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--color-text-gray);
}

.mobile-menu__nav ul {
  list-style: none;
}

.mobile-menu__nav a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  border-bottom: solid 1px var(--color-border);
}

.mobile-menu__nav a:hover {
  color: var(--color-brand);
}

/* Fix: 404 search centered */
.not-found__search {
  display: flex;
  justify-content: center;
}

.not-found__search .header__search {
  width: 100%;
  max-width: 480px;
}

.not-found__search .form-row {
  max-width: 100%;
}

/* Responsive — novas seções */
@media (max-width: 1199px) {
  .single-layout__inner {
    grid-template-columns: 1fr 240px;
    gap: 4rem;
  }

  .archive-layout {
    grid-template-columns: 200px 1fr;
    gap: 3.2rem;
  }

  .home-summaries-loop {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .header__hamburger {
    display: flex;
  }

  .header__navigation {
    display: none;
  }

  .single-layout__inner {
    grid-template-columns: 1fr;
  }

  .single-layout__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
  }

  .archive-sidebar__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .archive-sidebar__nav li a {
    border-bottom: none;
    border: solid 1px var(--color-border);
    border-radius: 9999px;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }

  .home-summaries-loop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .single-layout__sidebar {
    grid-template-columns: 1fr;
  }

  .home-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-author {
    flex-direction: column;
  }
}
