*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  background: #fff;
  color: #222;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

.state-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  table-layout: fixed;
}

.state-table td {
  padding: 12px 8px;
  text-align: center;
  border: none;
}

.state-table tr {
  border-bottom: 1px solid #eeeeee;
}

.state-table tr:last-child {
  border-bottom: none;
}

.state-table td:first-child {
  text-align: left;
  padding-left: 0;
}

.state-table td:last-child {
  padding-right: 0;
}

.state-table a {
  color: #292929;
  text-decoration: none;
  font-weight: 500;
}

.state-table a:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  background: #fff;
}

.header-bar {
  border-bottom: 1px solid #f4f4f4;
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  min-height: 68px;

  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;

  max-width: 310px;
  margin-left: 0;

  text-decoration: none;
}

.site-logo img {
  display: block;

  width: auto;
  height: 50px;

  max-width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;

  gap: 16px;
}

.search-button,
.menu-button {
  width: 35px;
  height: 35px;

  margin: 0;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 0;

  color: #222;

  cursor: pointer;
}

.search-button svg {
  fill: none;

  stroke: currentColor;
  stroke-linecap: round;
}

.search-icon {
  width: 23px;
  height: 23px;

  stroke-width: 2;
}

.search-close-icon {
  display: none;

  width: 25px;
  height: 25px;

  stroke-width: 2;
}

.search-button[aria-expanded="true"] .search-icon {
  display: none;
}

.search-button[aria-expanded="true"] .search-close-icon {
  display: block;
}

.menu-button svg {
  fill: none;

  stroke: currentColor;
  stroke-linecap: round;
}

.menu-icon {
  width: 27px;
  height: 27px;

  stroke-width: 3;
}

.menu-close-icon {
  display: none;

  width: 25px;
  height: 25px;

  stroke-width: 2;
}

.menu-button[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.search-panel {
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-form {
  width: 100%;
  max-width: 700px;

  margin: 0 auto;
  padding: 18px 20px;

  display: flex;
  gap: 10px;
}

.search-form input {
  width: 100%;
  min-width: 0;

  padding: 11px 14px;

  border: 1px solid #ccc;
  border-radius: 4px;

  font-size: 16px;

  outline: none;
}

.search-form input:focus {
  border-color: #777;
}

.search-form button {
  padding: 11px 18px;

  background: #222;
  color: #fff;

  border: 0;
  border-radius: 4px;

  cursor: pointer;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
}

.nav-inner {
  width: 100%;
  max-width: 1180px;

  margin: 0 auto;
  padding: 14px 20px 18px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 4px;
}

.nav-inner a {
  padding: 6px 0;

  color: #222;

  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.nav-inner a:hover {
  color: #555;
}


/* Main Layout */

.page-main {
  padding: 45px 20px 70px;
}

.content-layout {
  width: 100%;
  max-width: 1180px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 780px)
    300px;

  justify-content: space-between;
  align-items: start;

  gap: 60px;
}

.breadcrumbs {
  margin: 0 0 14px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  font-size: 14px;
  line-height: 1.4;
}

.breadcrumbs a {
  color: #0018f9;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #0013cc;
}

.breadcrumb-separator {
  color: #aaa;
  font-size: 12px;
  line-height: 1;
}


.article-meta {
  margin: -6px 0 22px;
  padding-bottom: 14px;

  color: #666;

  font-size: 14px;
  line-height: 1.5;

  border-bottom: 1px solid #f4f4f4;
}

.article-meta a {
  color: #0018f9;
  text-decoration: none;
}

.article-meta a:hover {
  color: #0013cc;
}

.article-content {
  width: 100%;
}

.article-content h1 {
  margin: 0 0 18px;

  color: #111;

  font-size: 36px;
  line-height: 1.25;
}

.article-body h2 {
  margin: 28px 0 10px;

  color: #111;

  font-size: 24px;
  line-height: 1.35;
}

.article-body h3 {
  margin: 24px 0 8px;

  color: #111;

  font-size: 20px;
  line-height: 1.4;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;

  padding-left: 24px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body a {
  color: #0018f9;
  text-decoration: none;
}

.article-body a:hover {
  color: #0013cc;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.content-layout,
.article-content,
.article-body {
  min-width: 0;
  max-width: 100%;
}

.article-body table {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 18px 0 24px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  border-collapse: collapse;
  border-spacing: 0;

  font-size: 15px;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  min-width: 130px;

  padding: 9px 10px;

  border-bottom: 1px solid #eee;

  text-align: left;
  vertical-align: top;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-body th:first-child,
.article-body td:first-child {
  width: 190px;
  min-width: 190px;
  max-width: 220px;
}

.article-body th {
  background: #f7f7f7;

  color: #111;

  font-weight: 700;
}

.article-body tbody tr:last-child td,
.article-body tbody tr:last-child th {
  border-bottom: 0;
}

.article-body img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;

  margin: 24px auto;
}

.article-body figure {
  width: 100%;
  max-width: 100%;

  margin: 26px 0;
}

.article-body figure img {
  margin: 0 auto;
}

.article-body figcaption {
  margin-top: 8px;

  color: #777;

  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}


@media (max-width: 700px) {

  .article-body table {
    font-size: 14px;
  }

  .article-body th,
  .article-body td {
    min-width: 120px;
    padding: 8px 9px;
  }

  .article-body th:first-child,
  .article-body td:first-child {
    width: 165px;
    min-width: 165px;
    max-width: 190px;
  }

  .article-body img {
    margin: 20px auto;
  }

  .article-body figure {
    margin: 22px 0;
  }

}

.related-posts {
  margin-top: 38px;
}

.related-posts h2 {
  margin: 0 0 14px;

  color: #111;

  font-size: 24px;
  line-height: 1.35;
}

.related-posts ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.related-posts li + li {
  margin-top: 10px;
}

.related-posts a {

  font-weight: 600;
  text-decoration: none;
}

.related-posts a:hover {
}

.sidebar {
  width: 100%;
}

.sidebar-section + .sidebar-section {
  margin-top: 38px;
}

.sidebar-section h2 {
  margin: 0 0 12px;

  color: #111;

  font-size: 20px;
  line-height: 1.3;
}

.sidebar-section p {
  margin: 0 0 15px;

  color: #555;

  font-size: 14px;
  line-height: 1.6;
}

.popular-categories nav,
.featured-posts nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 12px;
}

.popular-categories a,
.featured-posts a {
  color: #222;

  width: fit-content;

  font-size: 15px;
  line-height: 1.45;

  text-decoration: none;
}

.popular-categories a,
.featured-posts a {
  font-weight: 600;
}

.popular-categories a:hover,
.featured-posts a:hover {
  color: #555;
}

.category-posts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 12px;
}

.category-posts a {
  width: fit-content;

  color: #222;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;

  text-decoration: none;
}

.category-posts a:hover {
  color: #555;
}

.site-footer {
  padding: 28px 20px 22px;

  background: #fff;

  border-top: 1px solid #f4f4f4;

  text-align: center;
}

.footer-links {
  margin-bottom: 14px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 8px 22px;
}

.footer-links a {
  color: #444;

  font-size: 14px;

  text-decoration: none;
}

.footer-links a:hover {
  color: #111;
}

.copyright {
  margin: 0;

  color: #777;

  font-size: 13px;
}

@media (max-width: 900px) {

  .content-layout {
    max-width: 780px;

    grid-template-columns: 1fr;

    gap: 45px;
  }

}

@media (max-width: 700px) {

  .header-inner {
    min-height: 62px;

    padding: 0 12px;
  }

  .site-logo {
    max-width: 220px;
  }

  .site-logo img {
    height: 40px;
  }

  .header-actions {
    gap: 12px;
  }

  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-main {
    padding: 32px 20px 50px;
  }

  .content-layout {
    gap: 40px;
  }

  .breadcrumbs {
    margin-bottom: 12px;

    font-size: 13px;
  }

  .article-content h1 {
    font-size: 30px;
  }

  .article-body h2,
  .related-posts h2 {
    font-size: 22px;
  }

  .sidebar-section + .sidebar-section {
    margin-top: 32px;
  }

  .footer-links {
    gap: 7px 16px;
  }

}

@media (max-width: 420px) {

  body {
    font-size: 15px;
  }

  .site-logo {
    max-width: 190px;
  }

  .site-logo img {
    height: 38px;
  }

  .page-main {
    padding: 28px 16px 45px;
  }

  .article-content h1 {
    font-size: 28px;
  }

  .search-form {
    padding: 15px;
  }

}

.related-posts ul {
  margin: 0;
  padding-left: 18px;
}

.related-posts li {
  margin: 6px 0;
  padding-left: 0;
}

.related-posts a {
  color: inherit;
}

.related-posts ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
  list-style-position: outside;
}

.related-posts li {
  margin: 6px 0;
  padding-left: 0;
}

.related-posts a {
  color: inherit;
}

.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.article-body table > thead,
.article-body table > tbody,
.article-body table > tfoot {
  display: table;
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

.article-body th,
.article-body td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-body th,
.article-body td {
  min-width: 130px;
}

.article-body th:first-child,
.article-body td:first-child {
  width: 190px;
  min-width: 190px;
  max-width: 220px;
}

@media (max-width: 700px) {

  .article-body th,
  .article-body td {
    min-width: 120px;
  }

  .article-body th:first-child,
  .article-body td:first-child {
    width: 165px;
    min-width: 165px;
    max-width: 190px;
  }

}

/* Desktop width/alignment refinement */
@media (min-width: 901px) {
  .header-inner,
  .nav-inner,
  .content-layout {
    max-width: 960px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 640px) 260px;
    gap: 60px;
  }
}


/* Requested category, sidebar, and related-link updates */
.category-intro {
  margin: 0 0 24px;
  color: #333;
  line-height: 1.7;
}

.category-post {
  margin: 0 0 22px;
}

.category-post h2 {
  margin: 0 0 6px;
  color: #111;
  font-size: 20px;
  line-height: 1.4;
}

.category-post h2 a {
  font-size: inherit;
  font-weight: 700;
}

.category-post p {
  margin: 0;
  color: #444;
  line-height: 1.65;
}

.popular-categories nav {
  gap: 0;
  align-items: stretch;
}

.popular-categories a {
  width: 100%;
  padding: 10px 0;
}

.popular-categories a + a {
  border-top: 1px solid #eee;
}

.related-posts a {
  color: #0018f9;
}

.related-posts a:hover {
  color: #0013cc;
}
