:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;

  --text: #1f2937;
  --text-strong: #0f172a;
  --text-soft: #334155;
  --text-muted: #6b7280;
  --text-olive: #2f3b20;
  --text-olive-soft: #4a5a2f;
  --text-brand-strong: #4f7f0b;
  --muted: var(--text-muted);

  --line: #e5e7eb;
  --line-soft: #e6ebdf;
  --line-input: #cbd5e1;
  --line-cool: #e2e8f0;
  --line-brand: #dce8c4;
  --line-brand-soft: #dbe8c1;

  --brand: #77ae13;
  --brand-2: #93c737;
  --brand-surface: #f8fcea;
  --brand-surface-soft: #f7faef;
  --brand-surface-2: #f3f9e7;

  --danger-bg: #fef2f2;
  --danger: #991b1b;
  --success-bg: #ecfdf5;
  --success: #166534;

  --gray-100: #f3f4f6;

  --tag-accent: #fd5304;
  --tag-light: #fff5f1;
  --warm: #f2b300;
  --warm-2: #ffca3a;
  --warm-text: #352800;

  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-glass-soft: rgba(255, 255, 255, 0.7);
  --surface-alt: #f8fafc;
  --surface-muted: #e8ebf0;
  --surface-hover: #eff8dc;
  --surface-brand-hover: #eef8d8;
  --surface-brand-3: #ecf5db;
  --surface-danger-soft: #fdf2f2;
  --surface-danger-soft-hover: #fde8e8;
  --surface-panel: #f8faf5;
  --surface-panel-muted: #f6f8fa;

  --line-danger: #fecaca;
  --line-success: #bbf7d0;
  --line-muted: #d6dae1;
  --line-dashed: #94a3b8;
  --line-search: #cfd8c2;
  --line-card: #edf2e6;
  --line-brand-tint: #e6efcf;
  --line-panel: #e1ebcf;
  --line-panel-accent: #9ecb4d;
  --line-panel-ok: #b8d58a;
  --line-panel-muted: #dce3ea;
  --line-danger-soft: #e8b5b5;

  --text-neutral: #3f3f46;
  --text-strongest: #16181d;
  --text-body: #242630;
  --text-link-dark: #191c21;
  --text-brand-deep: #233013;
  --text-admin: #55635f;
  --text-admin-meta: #5f6b76;
  --text-panel: #8ec63a;
  --text-panel-heading: #36383d;
  --text-panel-sub: #7b7d82;
  --text-panel-body: #35373d;
  --text-action: #25331d;
  --text-action-ok: #345412;
  --text-danger-soft: #9b1c1c;
  --text-gray-600: #475569;

  --danger-strong: #b91c1c;
  --danger-bright: #ef4444;

  --shadow-black-10: rgba(0, 0, 0, 0.1);
  --shadow-brand-24: rgba(80, 117, 18, 0.24);
  --shadow-brand-15: rgba(80, 117, 18, 0.15);
  --shadow-brand-08: rgba(70, 95, 21, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1400px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.logo {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a,
.auth-block a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.main-nav a:hover,
.auth-block a:hover {
  background: var(--surface-hover);
}

.auth-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

main.container {
  padding: 24px 0 48px;
}

.page-head {
  margin: 8px 0 24px;
}

.page-head h1 {
  margin: 0 0 8px;
}

.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head-row-left {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.muted,
.meta {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 14px;
}

.cards.compact {
  gap: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

.card a {
  color: var(--text-strong);
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--line-danger);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--line-success);
}

.form-wrap {
  max-width: 720px;
}

.form {
  display: grid;
  gap: 14px;
}

.tag-picker {
  display: grid;
  gap: 8px;
  width: 100%;
}

.tag-picker label {
  margin: 0;
}

.tag-dropdown {
  width: 100%;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  background: var(--surface);
}

.tag-dropdown-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text-strong);
}

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

.tag-dropdown[open] .tag-dropdown-summary {
  border-bottom: 1px solid var(--line-cool);
}

.tag-dropdown-panel {
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.tag-dropdown-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line-cool);
}

.tag-option.is-hidden {
  display: none;
}

.tag-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.tag-option span {
  font-weight: 500;
}

.form-inline {
  margin-top: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  width: fit-content;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--shadow-brand-24);
  filter: brightness(1.02);
}

.btn-small {
  padding: 6px 10px;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-strong), var(--danger-bright));
}

.btn-accent {
  background: linear-gradient(135deg, #fd5304, #ff8a00);
  color: var(--surface);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f24a00, #ff7c00);
  color: var(--surface);
  border-color: transparent;
}

.btn-muted {
  background: var(--gray-100);
  color: var(--text-soft);
  border: 1px solid var(--line-muted);
  box-shadow: none;
}

.btn-muted:hover {
  background: var(--surface-muted);
  box-shadow: none;
}

.btn-warm {
  background: linear-gradient(135deg, var(--warm), var(--warm-2));
  color: var(--warm-text);
}

.btn-warm:hover {
  background: linear-gradient(135deg, #e2a600, #f4ba22);
  color: #2d2200;
  border-color: transparent;
}

.btn-link {
  background: none;
  color: var(--danger-strong);
  padding: 0;
}

.inline-form {
  display: inline;
}

.empty {
  border: 1px dashed var(--line-dashed);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface-glass-soft);
}

.post-full {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.post-content {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 22px;
}

.post-content .toastui-editor-contents {
  font-size: 17px;
  line-height: 1.7;
}

.post-images {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.post-image-item {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

.post-image-item img {
  width: 100%;
  aspect-ratio: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.selectable-image span {
  font-size: 14px;
}

.comments {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.section-page-post .comments .form {
  margin-bottom: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.comment-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.post-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-top-actions {
  margin: 0 0 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-home-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 18px;
  /* border-bottom: 1px solid var(--line); */
  margin-bottom: 14px;
}

.news-home-brand {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: min(380px, 28vw);
  width: min(380px, 28vw);
  height: auto;
  overflow: visible;
}

.news-home-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
}

.news-home-head h1 {
  margin: 0;
  font-size: 46px;
  letter-spacing: 0.8px;
  line-height: 1;
}

.news-home-head p {
  margin: 10px 0 0;
  color: var(--text-neutral);
  font-size: 18px;
}

.news-home-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-home-login-btn {
  text-decoration: none;
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.news-home-login-btn:hover {
  background: transparent;
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.news-home-login-btn::before {
  content: "";
  width: 28px;
  height: 28px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527f0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.news-home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(460px, 100%);
}

.news-search-mode-toggle {
  border: 1px solid transparent;
  background: var(--brand-surface-soft);
  color: var(--text-olive-soft);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  height: 32px;
  min-width: 72px;
  padding: 0 10px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.news-search-mode-toggle:hover {
  border-color: var(--brand);
}

.news-home-search-field {
  position: relative;
  flex: 1;
}

.news-home-search-badge {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid transparent;
  background: var(--brand-surface-soft);
  color: var(--text-olive-soft);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  height: 28px;
  min-width: 72px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.news-search-mode-toggle.is-tag-pill,
.news-home-search-badge.is-tag-pill {
  background: var(--tag-light);
  color: var(--tag-accent);
}

.news-search-mode-toggle.is-tag-pill:hover {
  border-color: var(--tag-accent);
}

.news-home-search input {
  width: 100%;
  height: 50px;
  font-size: 18px;
  padding: 8px 56px 8px 90px;
  border-radius: 14px;
  border: 1px solid var(--line-search);
}

.news-home-search input::placeholder {
  font-size: 16px;
}

.news-home-search-field > button {
  width: 38px;
  height: 38px;
  right: 6px;
  top: 6px;
  position: absolute;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.news-home-search-field > button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.news-home-search-field > button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.news-tag-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  background: var(--surface);
  border: 1px solid var(--line-search);
  border-radius: 12px;
  box-shadow: 0 10px 20px var(--shadow-black-10);
  padding: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.news-tag-suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-soft);
}

.news-tag-suggest-item:hover {
  background: var(--tag-light);
  color: var(--tag-accent);
}

.news-tag-suggest-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.news-tag-suggest-empty {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.news-home-tabs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.news-home-active-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -10px 0 18px;
}

.news-active-tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--tag-accent);
  background: var(--tag-light);
  border: 1px solid rgba(253, 83, 4, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
}

.news-active-tag-close {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: var(--tag-accent);
  background: rgba(253, 83, 4, 0.14);
  font-size: 14px;
  line-height: 0;
  font-weight: 700;
  flex: 0 0 16px;
}

.news-home-tabs a {
  text-decoration: none;
  color: var(--text-olive);
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--brand-surface);
}

.news-home-tabs a.is-active,
.news-home-tabs a:hover {
  background: var(--brand);
  color: var(--surface);
}

.news-home-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.news-home-main {
  display: grid;
  gap: 26px;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(260px, 48%) 1fr;
  gap: 24px;
  border-radius: 12px;
  align-items: stretch;
  padding: 16px;
  transition: 0.3s box-shadow ease-out;
}
.news-item:hover {
  box-shadow: 0 0 16px 1px var(--shadow-black-10);
}

.news-item-media {
  display: flex;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-card);
  height: 100%;
  min-height: 320px;
}

.news-item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item-media img,
.news-item-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.news-item-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--gray-100);
}

.news-item-cat {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.news-item h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 30px;
}

.news-item h2 a {
  color: var(--text-strongest);
  text-decoration: none;
}

.news-item-stats {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-like-btn,
.news-like-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.news-like-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.news-like-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.news-like-btn.is-active {
  color: var(--brand);
}

.news-like-btn.is-active [data-like-count],
.news-like-btn.is-active .news-stat-icon {
  color: var(--brand);
}

.news-like-btn.is-active .news-stat-icon path {
  fill: currentColor;
  stroke: currentColor;
}

.news-like-btn .news-stat-icon path,
.news-like-link .news-stat-icon path {
  transition:
    fill 0.18s ease,
    stroke 0.18s ease,
    color 0.18s ease;
}

.news-like-text {
  font-weight: 600;
}

.news-like-link:hover {
  color: var(--brand);
}

.news-like-btn-strong {
  border: 1px solid var(--line-brand-soft);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--brand-surface);
}

.news-like-btn.news-like-btn-strong {
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.news-like-btn.news-like-btn-strong:hover,
.news-like-link.news-like-btn-strong:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.news-stat-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.news-item-excerpt {
  margin: 0;
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-owner-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-item-edit-btn {
  margin-top: 2px;
}

.admin-shell .news-item-owner-actions {
  margin-top: 18px;
  gap: 8px;
}

.admin-shell .news-item-owner-actions .btn {
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
  transform: none;
  filter: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-shell .news-item-owner-actions .btn:hover {
  box-shadow: none;
  transform: none;
  filter: none;
}

.admin-shell .news-item-owner-actions .btn-accent {
  background: var(--surface);
  color: var(--text-body);
  border: 1px solid var(--line-input);
}

.admin-shell .news-item-owner-actions .btn-accent:hover {
  background: var(--surface-alt);
  color: var(--text-strong);
  border-color: var(--line-muted);
}

.admin-shell .news-item-owner-actions .btn-danger {
  background: var(--surface);
  color: var(--danger-strong);
  border: 1px solid var(--line-danger);
}

.admin-shell .news-item-owner-actions .btn-danger:hover {
  background: var(--surface-danger-soft);
  border-color: var(--line-danger-soft);
}

.news-item-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  text-decoration: none;
  color: var(--surface);
  background: var(--brand);
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.news-item-more:hover {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.news-item-more-arrow {
  transition: transform 0.18s ease;
}

.news-item-more:hover .news-item-more-arrow,
.news-item-more:focus-visible .news-item-more-arrow {
  transform: translateX(3px);
}

.news-item-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-item-tag {
  font-size: 12px;
  line-height: 1.2;
  background: linear-gradient(90deg, #fd5304 0%, #ff8a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-decoration: none;
}

.feed-load-zone {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
}

.feed-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line-brand);
  border-top-color: var(--brand);
  animation: feed-spin 0.9s linear infinite;
}

@keyframes feed-spin {
  to {
    transform: rotate(360deg);
  }
}

.news-home-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.news-home-side {
  position: sticky;
  top: 36px;
  align-self: start;
}

.news-home-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-home-side li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-home-side a {
  text-decoration: none;
  color: var(--text-link-dark);
  line-height: 1.45;
  font-size: 16px;
}

.auth-page {
  max-width: 620px;
  margin: 0 auto;
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
}

.auth-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 88px;
  margin: 8px 0 14px;
}

.auth-back {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line-brand-soft);
  background: var(--brand-surface);
  color: var(--text-olive);
  border-radius: 999px;
  width: min(520px, 100%);
  padding: 14px 16px;
  font-weight: 700;
  margin-top: 30px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px var(--shadow-brand-15);
  background: var(--surface-brand-hover);
}

.auth-back.auth-back-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  margin-top: 18px;
}

.auth-back.auth-back-icon svg {
  width: 24px;
  height: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px 18px 16px;
  width: min(468px, 100%);
  margin: 0 auto;
  box-shadow: 0 10px 24px var(--shadow-brand-08);
  text-align: center;
}

.auth-card h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

.auth-card .form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.auth-card .form .btn {
  margin-top: 12px;
  width: 100%;
}

.auth-switch {
  margin: 26px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand-surface);
  border: 1px solid var(--line-brand-tint);
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--text-brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.auth-verify-text {
  margin: 0 0 8px;
}

.auth-verify-form {
  margin-top: 8px;
}

.auth-code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.auth-code-input {
  height: 54px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-input);
  border-radius: 12px;
}

.auth-code-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(119, 174, 19, 0.14);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--surface);
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--brand-surface-2) 0%, var(--surface-brand-3) 100%);
  border-right: 1px solid var(--line-brand);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-brand {
  text-decoration: none;
  color: var(--text-brand-deep);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.admin-nav a {
  text-decoration: none;
  color: var(--text-olive);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.admin-nav a:hover {
  background: var(--brand-surface);
  border-color: var(--line-brand-soft);
  transform: translateX(2px);
}

.admin-nav a.is-active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.admin-user {
  margin-top: auto;
  border-top: 1px solid var(--line-brand);
  padding-top: 12px;
}

.admin-user p {
  margin: 0 0 6px;
  color: var(--text-admin);
  font-weight: 700;
}

.admin-user-role {
  margin: 0 0 8px;
  color: var(--text-admin-meta);
  font-size: 14px;
}

.admin-logout-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  margin-top: 6px;
  background: transparent;
  border: 1px dashed var(--danger-bright);
  color: var(--danger-bright);
  box-shadow: none;
}

.admin-logout-btn:hover {
  background: transparent;
  border-color: var(--danger-strong);
  color: var(--danger-strong);
  transform: none;
  box-shadow: none;
  filter: none;
}

.admin-main {
  padding: 24px;
}

.admin-main .page-head {
  margin-top: 0;
}

.admin-main .cards {
  gap: 16px;
}

.admin-main .card {
  border-color: var(--line-soft);
  border-radius: 16px;
}

.admin-main .card h2 a,
.admin-main .card h3 a {
  text-decoration: none;
}

.admin-main .card.is-card-link {
  cursor: pointer;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-main .card.is-card-link:hover {
  box-shadow: 0 8px 20px var(--shadow-black-10);
  transform: translateY(-1px);
}

.admin-main .meta {
  color: var(--text-admin-meta);
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.admin-tabs a {
  text-decoration: none;
  color: var(--text-olive);
  background: var(--brand-surface);
  border: 1px solid var(--line-brand-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tabs a.is-active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.admin-tab-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 12px;
}

.admin-tabs a.is-active .admin-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.admin-moderation-filters {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}

.admin-filter-group {
  display: grid;
  gap: 8px;
}

.admin-filter-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-admin-meta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-moderation-filters .admin-tabs {
  margin: 0;
}

.admin-moderation-filters .admin-tabs a {
  background: var(--surface);
  border-color: var(--line-input);
  color: var(--text-body);
}

.admin-moderation-filters .admin-tabs a.is-active {
  background: var(--surface-brand-3);
  border-color: var(--line-panel-accent);
  color: var(--text-brand-deep);
}

.admin-moderation-filters .admin-tab-count {
  background: var(--surface-alt);
}

.admin-moderation-filters .admin-tabs a.is-active .admin-tab-count {
  background: var(--surface);
}

.admin-moderation-card {
  padding: 14px 16px;
}

.admin-moderation-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-moderation-card-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.admin-request-status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--line-input);
  background: var(--surface-alt);
  color: var(--text-soft);
}

.admin-request-status.is-pending {
  border-color: var(--line-brand-soft);
  background: var(--brand-surface);
  color: var(--text-brand-deep);
}

.admin-request-status.is-approved {
  border-color: var(--line-success);
  background: var(--success-bg);
  color: var(--success);
}

.admin-request-status.is-rejected {
  border-color: var(--line-danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.admin-moderation-meta {
  margin: 0 0 8px;
  font-size: 14px;
}

.admin-moderation-main {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.admin-moderation-reason {
  margin: 0 0 10px;
}

.admin-moderation-actions {
  margin-top: 6px;
  gap: 8px;
}

.admin-moderation-actions .btn {
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
  transform: none;
  filter: none;
}

.admin-moderation-actions .btn-danger {
  background: var(--danger-bg);
  color: var(--danger-strong);
  border: 1px solid var(--line-danger);
}

.admin-moderation-actions .btn-danger:hover {
  background: var(--surface-danger-soft-hover);
  border-color: var(--line-danger-soft);
}

.admin-moderation-reviewed {
  margin: 10px 0 0;
}

.admin-main .section-post-card h3 {
  font-size: 28px;
  line-height: 1.25;
}

.admin-main .section-list-head h2 {
  font-size: 28px;
  line-height: 1.25;
}

.admin-tag-card h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.tags-cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.tag-card-compact {
  padding: 12px 14px;
  border-radius: 12px;
}

.tag-card-compact h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.tag-card-compact .meta {
  margin: 0 0 8px;
  font-size: 14px;
}

.tag-card-compact .btn {
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 14px;
}

.tags-tabs a {
  background: #fff8e2;
  border-color: #f2db9e;
  color: #5a4300;
}

.tags-tabs a.is-active {
  background: linear-gradient(135deg, var(--warm), var(--warm-2));
  border-color: #f0be35;
  color: var(--warm-text);
}

.tags-tabs .admin-tab-count {
  background: rgba(255, 255, 255, 0.55);
}

.tags-search-form {
  width: min(860px, 100%);
}

.profile-post-card {
  padding: 12px 14px;
  border-radius: 12px;
}

.profile-post-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.25;
}

.profile-post-actions {
  margin-top: 10px;
}

.section-page {
  display: grid;
  gap: 18px;
}

.section-hero {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px;
}

.section-hero-label {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.section-hero h1 {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.1;
}

.section-hero-description {
  margin: 10px 0 0;
  color: var(--text-olive);
}

.section-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.section-layout-post {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.section-layout-post > .section-posts,
.section-layout-post > .news-home-side {
  min-width: 0;
}

.section-page-post .news-home-side {
  margin-top: 0;
  align-self: start;
}

.section-page-post .section-hero,
.section-page-post .section-posts,
.section-page-post .comments,
.section-page-post .news-home-side {
  border: none;
  box-shadow: none;
}

.section-page-post .section-hero,
.section-page-post .section-posts,
.section-page-post .comments {
  padding-left: 0;
  padding-right: 0;
}

.section-page-post .section-posts {
  padding-top: 0;
  box-shadow: 0 0 16px 1px var(--shadow-black-10);
  padding: 2% 3%;
  margin-bottom: 1%;
}

.section-page-post .section-hero {
  padding-top: 0;
}

.section-page-post .comment-item {
  border-top: none;
  padding-top: 0;
}

.section-page-post .comment-list {
  gap: 14px;
}

.section-page-post .comment-item {
  background: var(--surface-panel);
  border: 1px solid var(--line-panel);
  border-left: 4px solid var(--line-panel-accent);
  border-radius: 12px;
  padding: 12px 14px;
}

.section-page-post .comment-item .meta {
  margin: 0 0 8px;
  font-size: 14px;
}

.section-page-post .comment-item p:last-child {
  margin: 0;
  line-height: 1.5;
}

.section-page-post .comments {
  margin-top: 12px;
  box-shadow: 0 0 16px 1px var(--shadow-black-10);
  border-radius: 16px;
  background: var(--surface);
  padding: 2%;
  padding-top: 1%;
  margin-bottom: 1%;
}

.comments-login-link,
.comments-login-link:visited {
  color: var(--brand);
  text-decoration: none;
}

.comments-login-link:hover {
  color: var(--text-panel);
  text-decoration: none;
}

.post-tools-head {
  margin-bottom: 14px;
}

.section-page-post {
  margin-top: 0;
  gap: 0;
}

.post-back-btn {
  margin: 12px auto 14px;
}

.post-back-btn-soft {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  border: 1px solid transparent;
  color: var(--surface);
  font-weight: 700;
  font-size: 14px;
  box-shadow: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.post-back-btn-soft:hover {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--brand);
  transform: none;
  box-shadow: none;
  filter: none;
}

.post-back-btn-bottom {
  margin-top: 16px;
}

.post-neighbor-nav {
  margin-top: 20px;
  border: none;
  box-shadow: 0 0 16px 1px var(--shadow-black-10);
  border-radius: 16px;
  background: var(--surface);
  padding: 2%;
  margin-bottom: 1%;
}

.section-page-post .post-neighbor-nav {
  max-width: 1000px;
}

.post-neighbor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.post-neighbor-item {
  text-decoration: none;
  color: var(--text-panel-heading);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.post-neighbor-item-next {
  align-items: flex-end;
  text-align: right;
}

.post-neighbor-item-empty {
  visibility: hidden;
}

.post-neighbor-label {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--text-panel-sub);
}

.post-neighbor-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-panel-body);
}

.section-page-post .section-hero h1 {
  max-width: 1000px;
  line-height: 1.2;
  font-size: 28px;
}

.post-hero-tags {
  margin-bottom: 8px;
}

.post-engagement {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.post-engagement-title {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.post-engagement-stats {
  margin: 0;
  justify-content: flex-end;
}

.post-bottom-row {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-inline-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-page-post .post-inline-actions .btn {
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
  transform: none;
  filter: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.section-page-post .post-inline-actions .btn:hover {
  box-shadow: none;
  transform: none;
  filter: none;
}

.section-page-post .post-inline-actions .btn-accent {
  background: var(--surface);
  color: var(--text-body);
  border: 1px solid var(--line-input);
}

.section-page-post .post-inline-actions .btn-accent:hover {
  background: var(--surface-alt);
  color: var(--text-strong);
  border-color: var(--line-muted);
}

.section-page-post .post-inline-actions .btn-danger {
  background: var(--surface);
  color: var(--danger-strong);
  border: 1px solid var(--line-danger);
}

.section-page-post .post-inline-actions .btn-danger:hover {
  background: var(--surface-danger-soft);
  border-color: var(--line-danger-soft);
}

.post-bottom-row .post-back-btn {
  margin: 0;
}

.post-bottom-row .post-engagement {
  margin-left: auto;
}

.comment-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-item-head .meta {
  margin: 0;
}

.comment-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-danger);
  color: var(--danger-strong);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.comment-delete-btn svg {
  width: 16px;
  height: 16px;
}

.comment-delete-btn:hover {
  background: var(--surface-danger-soft);
  border-color: var(--line-danger-soft);
}

.section-page-post .section-hero .meta,
.section-page-post .section-hero .section-hero-description,
.section-page-post .section-posts,
.section-page-post .comments {
  max-width: 1000px;
}

.post-neighbor-item:hover .post-neighbor-label {
  color: var(--brand);
}

.section-actions {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.section-actions h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.section-actions .btn {
  width: 100%;
}

.section-actions .action-btn {
  border: 1px solid var(--line-brand-soft);
  background: var(--brand-surface);
  color: var(--text-action);
  box-shadow: none;
}

.section-actions .action-btn:hover {
  background: var(--surface-brand-hover);
  box-shadow: none;
}

.section-actions .action-btn-edit {
  border-color: var(--line-panel-ok);
  color: var(--text-action-ok);
}

.section-actions .action-btn-request {
  border-color: var(--line-panel-muted);
  background: var(--surface-panel-muted);
  color: var(--text-soft);
}

.section-actions .action-btn-delete {
  border-color: var(--line-danger-soft);
  background: var(--surface-danger-soft);
  color: var(--text-danger-soft);
}

.section-actions .action-btn-delete:hover {
  background: var(--surface-danger-soft-hover);
}

.section-actions .action-btn-back {
  margin-top: 20px;
}

.section-action-form {
  margin-top: 10px;
}

.section-posts {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
}

.section-posts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-posts-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-posts-count {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-surface-2);
  border: 1px solid var(--line-brand);
  color: var(--text-brand-strong);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-post-card h3 {
  margin: 0 0 6px;
  font-size: 34px;
}

.section-post-card p {
  margin: 0;
}

.sections-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.section-list-card {
  border-color: var(--line-soft);
  padding: 18px;
}

.section-list-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.section-list-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.section-visibility-badge {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--brand-surface-2);
  border: 1px solid var(--line-brand);
  color: var(--text-brand-strong);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-visibility-badge.is-private {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.section-list-description {
  margin: 8px 0 12px;
  color: var(--text-soft);
}

.section-list-description-empty {
  color: var(--line-dashed);
}

.section-list-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-gray-600);
}

.section-list-search {
  width: min(520px, 100%);
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.section-list-search label {
  margin: 0;
}

.section-list-admin-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-list-admin-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
}

.section-list-admin-links a:hover {
  color: var(--brand);
}

.post-hero-images {
  margin: 0 0 14px;
  grid-template-columns: 1fr;
}

.news-item-body {
  position: relative;
}

.author-link {
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-item-author {
  order: -1;
  margin-right: auto;
  margin-left: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.news-item-author:hover,
.news-item-author:focus-visible {
  text-decoration: underline;
}

.section-hero {
  position: relative;
}

.post-author-link {
  display: inline-flex;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  opacity: .9;
}

.post-author-link:hover,
.post-author-link:focus-visible {
  color: var(--text-strongest);
  border-bottom-style: solid;
  opacity: 1;
}

.post-meta-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.post-meta-divider {
  color: currentColor;
}

.author-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 20, 20, .58);
}

.author-modal {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.author-modal h2 { margin: 0 0 10px; }
.author-modal p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.author-modal-avatar, .author-admin-avatar, .author-edit-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}
.author-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 40px;
  font-weight: 800;
}
.author-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.has-modal { overflow: hidden; }
.author-admin-card { display: grid; grid-template-columns: 80px 1fr; gap: 18px; }
.author-admin-avatar { width: 80px; height: 80px; font-size: 28px; }
.author-edit-avatar { margin-top: 8px; }

@media (max-width: 520px) {
  .author-modal { grid-template-columns: 1fr; text-align: center; }
  .author-modal-avatar { margin: 0 auto; }
}

.post-hero-images .post-image-item img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

@media (max-width: 840px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .news-home-head {
    flex-direction: column;
    align-items: stretch;
  }

  .news-home-head h1 {
    font-size: 34px;
  }

  .news-home-head p {
    font-size: 18px;
  }

  .news-home-logo {
    width: 100%;
    height: auto;
    max-height: 84px;
  }

  .news-home-brand {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .news-home-tabs {
    gap: 10px;
  }

  .news-home-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item-media {
    height: 240px;
    min-height: 0;
  }

  .news-item-cat {
    font-size: 14px;
  }

  .news-item h2 {
    font-size: 28px;
  }

  .news-item-excerpt {
    font-size: 18px;
  }

  .news-item-more {
    font-size: 13px;
  }

  .news-home-side h2 {
    font-size: 28px;
  }

  .news-home-side a {
    font-size: 18px;
  }

  .news-home-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .news-home-search {
    width: 100%;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-page {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 12px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 14px;
  }

  .page-head-row {
    align-items: flex-start;
  }

  .section-layout {
    grid-template-columns: 1fr;
  }

  .section-actions {
    position: static;
  }

  .section-layout-post {
    grid-template-columns: 1fr;
  }

  .post-neighbor-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .post-neighbor-item-next {
    text-align: left;
  }

  .post-neighbor-item {
    min-height: 0;
    gap: 12px;
  }

  .post-neighbor-label {
    font-size: 13px;
  }

  .post-neighbor-title {
    font-size: 15px;
  }

  .section-hero h1 {
    font-size: 32px;
  }
}
