/* --------------------------------------------------------------------------
   Header
-------------------------------------------------------------------------- */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 24px;
}

.site-logo {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.header-search {
  flex: 1 1 auto;
  width: 100%;
  max-width: 480px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.search-field {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.2;
}

.search-field::placeholder {
  color: var(--color-text-muted);
}

.search-field:focus,
.language-switcher:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
  outline: none;
}

.search-submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-submit:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.language-switcher {
  height: 40px;
  min-width: 132px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Sidebar
-------------------------------------------------------------------------- */

.sidebar-section-title {
  padding: 10px 20px 4px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sidebar-nav {
  margin: 0;
  padding: 4px 0 8px;
  list-style: none;
}

.sidebar-nav a {
  display: block;
  padding: 6px 20px;
  border-left: 3px solid transparent;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.15;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: var(--color-bg-hover);
}

.sidebar-nav a.active {
  border-left-color: var(--color-primary);
  background: var(--color-bg-hover);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   News Card
-------------------------------------------------------------------------- */

.news-card {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.news-card:hover {
  background: var(--color-bg-card);
}

.news-card-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  margin-right: 16px;
  border-radius: 4px;
  object-fit: cover;
}

.news-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.news-card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-card-meta {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Page Content
-------------------------------------------------------------------------- */

.page-shell {
  max-width: 100%;
}

.page-header {
  margin-bottom: 20px;
}

.page-title,
.entry-title {
  margin: 0;
  color: var(--color-text);
  font-size: 30px;
  line-height: 1.2;
}

.archive-description,
.page-content,
.entry-content {
  color: var(--color-text);
}

.archive-description {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.page-content--single,
.entry-content {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 16px;
  line-height: 1.75;
}

.page-content--single > *:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

.page-content--single h2,
.entry-content h2 {
  margin: 28px 0 12px;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.3;
}

.page-content--single p,
.entry-content p {
  margin: 0 0 16px;
}

.page-links {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}
