:root {
  --blue: #245f8f;
  --blue-soft: #e8f2f8;
  --blue-ink: #173f61;
  --red: #b94a4d;
  --red-soft: #f8eaea;
  --ink: #17202a;
  --muted: #66717f;
  --line: #dce3ea;
  --surface: #ffffff;
  --soft: #f6f8fa;
  --paper: #fbfcfd;
  --shadow: 0 16px 35px rgba(24, 47, 66, 0.08);
  --radius: 5px;
  --admin-radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.topline {
  background: var(--blue-ink);
  color: #f6fbff;
  font-size: 0.86rem;
}

.topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__text small {
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu > a {
  color: #263442;
  font-weight: 650;
}

.nav-menu > a:hover {
  color: var(--blue);
}

.search-form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search-form input {
  width: 190px;
  border: 0;
  padding: 10px 12px;
  outline: none;
}

.search-form button,
.newsletter-form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.flash-wrap {
  margin-top: 16px;
}

.alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.alert-success {
  background: #edf8f0;
  color: #23633a;
  border-color: #cfe8d6;
}

.alert-error {
  background: var(--red-soft);
  color: #883234;
  border-color: #efd0d0;
}

.home-hero {
  padding: 30px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.12), rgba(16, 25, 35, 0.76));
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 38px;
  color: #fff;
}

.hero-slide h1,
.article-hero h1 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-slide p,
.article-hero p,
.page-header p {
  max-width: 720px;
  font-size: 1.08rem;
}

.slider-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slider-dots button.is-active {
  width: 24px;
  background: #fff;
}

.hero-aside,
.side-block,
.admin-panel,
.auth-card,
.contact-panel,
.prose-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(24, 47, 66, 0.05);
}

.hero-aside {
  padding: 22px;
}

.hero-aside h2,
.side-block h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.compact-article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.compact-article:last-child {
  border-bottom: 0;
}

.compact-article img {
  width: 86px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.compact-article strong {
  display: block;
  line-height: 1.35;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(36, 95, 143, 0.16);
  background: rgba(232, 242, 248, 0.92);
  color: var(--blue-ink);
  padding: 5px 9px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 44px 0;
}

.section-soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.page-header h1,
.admin-title h1 {
  margin: 4px 0 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 2rem;
}

.section-head--compact {
  margin-top: 38px;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-link {
  color: var(--blue);
  font-weight: 750;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 47, 66, 0.05);
}

.article-card__image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.article-card__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.article-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.article-card p {
  margin: 0;
  color: #485564;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.category-strip a,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.category-strip a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 86px;
}

.category-strip img {
  width: 64px;
  height: 86px;
  object-fit: cover;
}

.category-strip a > span {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.category-strip small,
.category-card small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.newsletter-band {
  background: var(--blue-ink);
  color: #fff;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.newsletter-inner p {
  margin-bottom: 0;
  color: #dbe8f1;
}

.newsletter-form {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.newsletter-form input {
  width: 290px;
  border: 0;
  padding: 13px 14px;
}

.page-header {
  padding: 56px 0 34px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  display: grid;
  grid-template-rows: 180px 1fr;
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-card p {
  margin: 0;
  color: #4d5a67;
}

.article-hero {
  padding: 34px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 42px;
  padding: 42px 0;
  align-items: start;
}

.article-body {
  min-width: 0;
  font-size: 1.06rem;
}

.article-body h2,
.article-body h3 {
  line-height: 1.2;
  margin-top: 34px;
}

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

.article-body img {
  margin: 24px 0;
  border-radius: var(--radius);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-block {
  padding: 18px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.share-row a,
.filter-row a,
.pagination a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: var(--blue);
  font-weight: 700;
}

.comments {
  border-top: 1px solid var(--line);
}

.comment {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.comment__head strong {
  color: var(--ink);
}

.comment__children {
  margin-left: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.link-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-weight: 750;
  cursor: pointer;
}

.form,
.admin-form {
  display: grid;
  gap: 16px;
}

.form label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: #324251;
  font-weight: 700;
}

.form input,
.form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-inline-form input,
.reply-admin-form input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline-color: var(--blue);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: var(--blue);
}

.btn-danger {
  border-color: var(--red);
  background: var(--red);
}

.btn-small {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.reply-note {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.contact-grid,
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.contact-panel,
.prose-note {
  padding: 22px;
}

.prose {
  font-size: 1.08rem;
}

.site-footer {
  background: #142334;
  color: #dce7ef;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.brand--footer .brand__text small,
.site-footer p {
  color: #b9c8d5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  color: #b9c8d5;
}

.footer-bottom__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.site-footer .footer-credit {
  color: #fff;
  display: inline;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.site-footer .footer-credit:hover {
  color: #8fd3ff;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.pagination a.is-active,
.filter-row a.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 20px;
}

/* Admin */
.admin-page {
  min-height: 100vh;
  background: #f3f6f8;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 22px;
  background: #13293d;
  color: #fff;
}

.admin-sidebar .brand__text small {
  color: #bfd0df;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.admin-nav a {
  border-radius: var(--radius);
  padding: 11px 12px;
  color: #d7e4ef;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.admin-main {
  margin-left: 260px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.admin-topbar span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-content {
  padding: 28px;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.admin-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-panel__head h2,
.admin-panel h2 {
  margin: 0 0 12px;
}

.admin-panel--narrow {
  max-width: 760px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #405161;
  font-size: 0.86rem;
  text-transform: uppercase;
}

td small {
  display: block;
  color: var(--muted);
}

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

.actions form {
  display: inline-flex;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf1f4;
  color: #435466;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-published,
.status-approved,
.status-active {
  background: #e6f5ea;
  color: #23633a;
}

.status-pending {
  background: #fff5dc;
  color: #8a5b00;
}

.status-rejected,
.status-inactive {
  background: var(--red-soft);
  color: #8d3437;
}

.status-draft {
  background: #e8edf2;
  color: #445464;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.category-overview__intro,
.category-overview__stats,
.category-create-card,
.category-directory,
.empty-state {
  border: 1px solid var(--admin-panel-border);
  border-radius: var(--admin-radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 36, 51, 0.04);
}

.category-overview__intro {
  padding: 22px;
  border-left: 4px solid var(--blue);
}

.category-overview__intro h2,
.category-create-card__head h2,
.category-directory__toolbar h2 {
  margin: 4px 0 0;
  line-height: 1.14;
}

.category-overview__intro p,
.category-create-card__head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.category-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.category-overview__stats div {
  padding: 18px;
  border-right: 1px solid #e5ebf0;
  border-bottom: 1px solid #e5ebf0;
}

.category-overview__stats div:nth-child(2n) {
  border-right: 0;
}

.category-overview__stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.category-overview__stats span,
.category-preview small,
.category-row__main small,
.category-row__main em,
.category-row__counts,
.category-search span {
  color: var(--muted);
}

.category-overview__stats strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-ink);
  font-size: 1.65rem;
  line-height: 1;
}

.category-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.category-create-panel {
  position: sticky;
  top: 92px;
}

.category-create-card,
.category-directory {
  padding: 18px;
}

.category-create-card__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ebf0;
}

.category-create-form,
.category-edit-form {
  display: grid;
  gap: 13px;
}

.category-create-form label,
.category-edit-form label,
.category-search {
  display: grid;
  gap: 6px;
  color: #324251;
  font-weight: 750;
}

.category-search {
  width: min(320px, 100%);
}

.category-search span {
  font-size: 0.82rem;
  font-weight: 800;
}

.category-search input,
.category-create-form input,
.category-create-form textarea,
.category-edit-form input,
.category-edit-form textarea {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--admin-panel-border);
  border-radius: var(--admin-radius);
  background: var(--admin-field-bg);
  padding: 10px 11px;
  color: var(--ink);
  outline-color: var(--blue);
}

.category-create-form textarea,
.category-edit-form textarea {
  resize: vertical;
}

.color-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-control input[type="color"] {
  width: 54px;
  min-height: 36px;
  padding: 2px;
  cursor: pointer;
}

.color-control span,
.category-preview span,
.category-row__color {
  background: var(--category-color, var(--blue));
}

.color-control span {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(19, 41, 61, 0.14);
  border-radius: var(--admin-radius);
}

.category-preview {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--admin-panel-border);
  border-left: 4px solid var(--category-color, var(--blue));
  border-radius: var(--admin-radius);
  background: #fbfcfd;
  padding: 12px;
}

.category-preview span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: var(--admin-radius);
}

.category-preview strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.category-preview small {
  line-height: 1.2;
}

.category-directory {
  min-width: 0;
}

.category-directory__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5ebf0;
}

.category-directory__list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.category-row {
  border: 1px solid #dce3ea;
  border-radius: var(--admin-radius);
  background: #fff;
  overflow: hidden;
}

.category-row[open] {
  border-color: var(--category-color, var(--blue));
  box-shadow: 0 12px 24px rgba(20, 36, 51, 0.06);
}

.category-row__summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(190px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  list-style: none;
  cursor: pointer;
}

.category-row__summary::-webkit-details-marker {
  display: none;
}

.category-row__summary:hover {
  background: #f9fbfd;
}

.category-row__color {
  width: 28px;
  height: 44px;
  border-radius: var(--admin-radius);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}

.category-row__main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.category-row__main strong,
.category-row__main small,
.category-row__main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-row__main strong {
  color: #1d2a36;
  font-size: 1.02rem;
  line-height: 1.25;
}

.category-row__main em {
  font-style: normal;
  font-size: 0.88rem;
}

.category-row__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.82rem;
}

.category-row__counts span {
  min-width: 88px;
  border: 1px solid #e5ebf0;
  border-radius: var(--admin-radius);
  background: #f8fafc;
  padding: 6px 8px;
  text-align: center;
}

.category-row__counts strong {
  display: block;
  color: var(--blue-ink);
  font-size: 1rem;
  line-height: 1;
}

.category-row__toggle {
  border: 1px solid var(--admin-panel-border);
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 7px 10px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 850;
}

.category-row[open] .category-row__toggle {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.category-row__panel {
  border-top: 1px solid #e5ebf0;
  background: #f8fafc;
  padding: 16px;
}

.category-edit-form {
  grid-template-columns: minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(220px, 1.4fr) 96px;
  align-items: end;
}

.category-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.category-row__actions form {
  display: inline-flex;
}

.empty-state {
  margin-top: 16px;
  padding: 28px;
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.editor-side {
  position: sticky;
  top: 92px;
}

.check-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.check-line input {
  width: auto;
}

.preview-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.wysiwyg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 9px;
  cursor: pointer;
}

.wysiwyg-toolbar button.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.wysiwyg-surface {
  min-height: 420px;
  padding: 18px;
  outline: none;
  font-weight: 400;
}

.wysiwyg-surface.is-source {
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  color: #263442;
}

.wysiwyg-surface img {
  max-width: 100%;
  border-radius: var(--radius);
}

.admin-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 70px auto;
  gap: 10px;
}

.comment-admin-list {
  display: grid;
  gap: 14px;
}

.comment-admin {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.reply-admin-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #eef4f8;
}

.auth-shell {
  width: min(440px, calc(100% - 32px));
}

.auth-card {
  padding: 28px;
}

.auth-card h1 {
  margin-bottom: 4px;
}

.admin-page {
  --admin-bg: #eef2f5;
  --admin-sidebar-bg: #102538;
  --admin-sidebar-ink: #d8e4ee;
  --admin-panel-border: #d5dde5;
  --admin-field-bg: #fbfcfd;
  background:
    linear-gradient(90deg, rgba(36, 95, 143, 0.05), transparent 360px),
    var(--admin-bg);
}

.admin-page .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--admin-radius);
}

.admin-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(185, 74, 77, 0.18), transparent 220px),
    var(--admin-sidebar-bg);
}

.admin-sidebar .brand {
  width: 100%;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
  gap: 4px;
}

.admin-nav a {
  border-radius: var(--admin-radius);
  border-left: 3px solid transparent;
  color: var(--admin-sidebar-ink);
  font-weight: 700;
}

.wysiwyg-color {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
  min-height: 32px;
  border: 1px solid #cfd9e2;
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 4px 7px;
  color: #243342 !important;
  font-size: 0.8rem;
  font-weight: 700 !important;
}

.wysiwyg-color input {
  width: 28px !important;
  min-height: 22px !important;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.wysiwyg-color .editor-icon {
  width: 16px;
  height: 16px;
}

.admin-nav a:hover {
  border-left-color: var(--red);
}

.admin-main {
  min-height: 100vh;
}

.admin-topbar {
  min-height: 66px;
  border-bottom-color: var(--admin-panel-border);
  background: rgba(251, 252, 253, 0.96);
  box-shadow: 0 8px 22px rgba(20, 36, 51, 0.04);
}

.admin-content {
  width: min(1440px, 100%);
}

.admin-title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-panel-border);
}

.admin-title h1 {
  font-size: 1.85rem;
}

.admin-panel,
.stat-card,
.comment-admin,
.auth-card {
  border-color: var(--admin-panel-border);
  border-radius: var(--admin-radius);
  box-shadow: 0 10px 26px rgba(20, 36, 51, 0.05);
}

.admin-panel {
  background: rgba(255, 255, 255, 0.98);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  background: #fff;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.stat-card:nth-child(2)::before,
.stat-card:nth-child(3)::before {
  background: var(--red);
}

.stat-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.admin-page .btn {
  border-radius: var(--admin-radius);
  min-height: 36px;
  padding: 8px 13px;
  box-shadow: none;
}

.admin-page .btn-light {
  border-color: var(--admin-panel-border);
  background: #f8fafc;
}

.admin-page .btn-light:hover {
  background: #eef4f8;
}

.admin-page .btn-danger {
  border-color: #a94144;
}

.admin-page .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-page .filter-row a,
.admin-page .pagination a,
.admin-page .status {
  border-radius: var(--admin-radius);
}

.admin-page .filter-row a {
  padding: 8px 11px;
  background: #fff;
}

.admin-page table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-page th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-panel-border);
  background: #f6f8fa;
  color: #526274;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.admin-page td {
  padding: 13px 12px;
  border-bottom-color: #e5ebf0;
}

.admin-page tbody tr:hover td {
  background: #f9fbfd;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  border-radius: var(--admin-radius);
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-inline-form input,
.reply-admin-form input {
  min-height: 39px;
  border-color: var(--admin-panel-border);
  background: var(--admin-field-bg);
}

.admin-form textarea {
  resize: vertical;
}

.form-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.editor-side {
  display: grid;
  gap: 14px;
}

.preview-image {
  border-radius: var(--admin-radius);
}

.wysiwyg {
  border-color: var(--admin-panel-border);
  border-radius: var(--admin-radius);
  background: #fff;
}

.wysiwyg-toolbar {
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-bottom-color: var(--admin-panel-border);
  background: #eef3f7;
}

.wysiwyg-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding-right: 8px;
  border-right: 1px solid #d2dbe4;
}

.wysiwyg-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select {
  min-height: 32px;
  border-color: #cfd9e2;
  border-radius: var(--admin-radius);
  background: #fff;
  color: #243342;
  font-size: 0.86rem;
  font-weight: 700;
}

.wysiwyg-toolbar button {
  display: inline-grid;
  min-width: 34px;
  place-items: center;
  padding: 6px;
}

.editor-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action {
  min-width: 38px;
  padding-inline: 9px;
}

.icon-action .editor-icon {
  width: 17px;
  height: 17px;
}

.wysiwyg-toolbar button:hover,
.wysiwyg-toolbar select:hover {
  border-color: var(--blue);
}

.wysiwyg-toolbar button.is-active {
  background: var(--blue);
  color: #fff;
}

.wysiwyg-surface {
  min-height: 520px;
  padding: 24px;
  color: #1e2a35;
  font-size: 1.02rem;
  line-height: 1.75;
}

.wysiwyg-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(36, 95, 143, 0.16);
}

.wysiwyg-surface h2,
.wysiwyg-surface h3,
.wysiwyg-surface h4 {
  line-height: 1.2;
}

.wysiwyg-surface blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}

.wysiwyg-surface figure {
  margin: 22px 0;
}

.wysiwyg-surface figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.wysiwyg-surface table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.wysiwyg-surface th,
.wysiwyg-surface td {
  border: 1px solid var(--admin-panel-border);
  padding: 9px 10px;
}

.wysiwyg-surface th {
  background: #f1f5f8;
}

.wysiwyg-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--admin-panel-border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
}

.wysiwyg.is-fullscreen {
  position: fixed;
  inset: 14px;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 25, 40, 0.28);
}

.wysiwyg.is-fullscreen .wysiwyg-surface {
  min-height: 0;
  overflow: auto;
}

.editor-fullscreen-open {
  overflow: hidden;
}

body.editor-fullscreen-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 24, 38, 0.58);
}

.admin-inline-form {
  align-items: end;
}

.wysiwyg {
  position: relative;
}

.wysiwyg-toolbar {
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, #fbfcfd, #eef3f7);
  box-shadow: 0 1px 0 rgba(16, 37, 56, 0.04);
}

.wysiwyg-group--format {
  min-width: 220px;
}

.wysiwyg-toolbar select {
  min-width: 112px;
}

.wysiwyg-toolbar button:hover,
.wysiwyg-toolbar select:hover {
  background: #f8fbfd;
}

.wysiwyg-panels {
  background: #f8fafc;
}

.wysiwyg-panel {
  border-bottom: 1px solid var(--admin-panel-border);
  padding: 10px;
  animation: panel-in 0.14s ease-out;
}

.wysiwyg-panel__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) auto auto;
  gap: 10px;
  align-items: end;
}

.wysiwyg-panel__grid--table {
  grid-template-columns: 110px 110px minmax(170px, 1fr) auto;
}

.wysiwyg-panel label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #405161;
  font-size: 0.8rem;
  font-weight: 750;
}

.wysiwyg-panel input[type="text"],
.wysiwyg-panel input[type="url"],
.wysiwyg-panel input[type="number"] {
  min-height: 34px;
  border: 1px solid #cfd9e2;
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 7px 9px;
}

.wysiwyg-panel .check-line {
  align-self: center;
  margin-top: 20px;
}

.wysiwyg-surface th,
.wysiwyg-surface td {
  min-width: 90px;
  height: 36px;
}

.wysiwyg.is-fullscreen .wysiwyg-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}

.wysiwyg.is-fullscreen .wysiwyg-panels {
  position: sticky;
  top: 51px;
  z-index: 2;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .article-hero__grid,
  .content-layout,
  .contact-grid,
  .prose-grid,
  .form-shell,
  .category-overview,
  .category-workspace,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .category-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-side {
    position: static;
  }

  .category-create-panel {
    position: static;
  }

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

  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .topline {
    display: none;
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .search-form,
  .newsletter-form,
  .search-page-form {
    width: 100%;
    flex-direction: column;
    border: 0;
    overflow: visible;
  }

  .search-form input,
  .newsletter-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .hero-slider {
    min-height: 470px;
  }

  .hero-slide__content {
    padding: 24px;
  }

  .article-grid,
  .article-grid--three,
  .category-grid,
  .stats-grid,
  .footer-grid,
  .form-row,
  .admin-inline-form,
  .reply-admin-form,
  .category-overview__stats,
  .category-row__summary,
  .category-edit-form,
  .wysiwyg-panel__grid,
  .wysiwyg-panel__grid--table {
    grid-template-columns: 1fr;
  }

  .category-directory__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-search {
    width: 100%;
  }

  .category-row__counts {
    justify-content: flex-start;
  }

  .wysiwyg-panel .check-line {
    margin-top: 0;
  }

  .section-head,
  .admin-title,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-content {
    padding: 18px 12px;
  }

  .article-hero h1,
  .hero-slide h1 {
    font-size: 2.1rem;
  }

  .comment__children {
    margin-left: 8px;
    padding-left: 10px;
  }
}

/* Magazine template skin */
body:not(.admin-page):not(.auth-page) {
  background: #f3f3f3;
  color: #111;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body:not(.admin-page):not(.auth-page) .container {
  width: min(1120px, calc(100% - 32px));
}

body:not(.admin-page):not(.auth-page) .site-header {
  position: sticky;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
}

body:not(.admin-page):not(.auth-page) .topline {
  background: #050505;
  color: #fff;
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}

body:not(.admin-page):not(.auth-page) .topline__inner {
  min-height: 35px;
}

body:not(.admin-page):not(.auth-page) .topline__links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

body:not(.admin-page):not(.auth-page) .topline__inner > span:not(.topline__date):not(.topline__links) {
  display: none;
}

body:not(.admin-page):not(.auth-page) .topline a {
  color: #fff;
  margin: 0;
}

body:not(.admin-page):not(.auth-page) .masthead {
  display: flex;
  justify-content: center;
  padding: 14px 0 12px;
}

body:not(.admin-page):not(.auth-page) .masthead .brand {
  gap: 10px;
  text-align: left;
}

body:not(.admin-page):not(.auth-page) .masthead .brand__mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.admin-page):not(.auth-page) .masthead .brand__text strong {
  color: #050505;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .masthead .brand__text strong::first-letter {
  color: #e50b20;
}

body:not(.admin-page):not(.auth-page) .masthead .brand__text small {
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  background: #e50b20;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
}

body:not(.admin-page):not(.auth-page) .nav-bar {
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  background: #fff;
  position: relative;
}

body:not(.admin-page):not(.auth-page) .nav {
  justify-content: center;
  min-height: 46px;
}

body:not(.admin-page):not(.auth-page) .nav-menu {
  gap: 0;
  justify-content: center;
  width: 100%;
}

body:not(.admin-page):not(.auth-page) .nav-menu > a {
  color: #111;
  padding: 15px 13px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .nav-menu > a:hover {
  color: #e50b20;
}

body:not(.admin-page):not(.auth-page) .search-form {
  margin-left: auto;
  border: 0;
  border-left: 1px solid #ececec;
  border-radius: 0;
}

body:not(.admin-page):not(.auth-page) .search-form input {
  width: 160px;
  padding: 12px 13px;
  font-size: 0.88rem;
}

body:not(.admin-page):not(.auth-page) .search-form button,
body:not(.admin-page):not(.auth-page) .newsletter-form button {
  background: #e50b20;
  font-weight: 900;
  text-transform: uppercase;
}

.headline-strip {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.headline-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 18px 0;
}

.headline-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.headline-item img {
  width: 90px;
  height: 64px;
  object-fit: cover;
}

.headline-item small {
  color: #d70d20;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.headline-item strong {
  display: block;
  color: #111;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.22;
}

body:not(.admin-page):not(.auth-page) .flash-wrap {
  margin-top: 0;
}

body:not(.admin-page):not(.auth-page) .home-hero {
  padding: 34px 0 24px;
}

body:not(.admin-page):not(.auth-page) .hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
}

body:not(.admin-page):not(.auth-page) .hero-slider {
  min-height: 460px;
  border-radius: 0;
  box-shadow: none;
}

body:not(.admin-page):not(.auth-page) .hero-slide::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.86));
}

body:not(.admin-page):not(.auth-page) .hero-slide__content {
  padding: 30px;
}

body:not(.admin-page):not(.auth-page) .hero-slide h1,
body:not(.admin-page):not(.auth-page) .article-hero h1 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 950;
  line-height: 1.08;
}

body:not(.admin-page):not(.auth-page) .hero-slide p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

body:not(.admin-page):not(.auth-page) .hero-aside {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page):not(.auth-page) .hero-aside h2 {
  margin: 0;
  border-bottom: 2px solid #111;
  padding-bottom: 9px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .hero-aside .compact-article {
  position: relative;
  display: block;
  min-height: 136px;
  overflow: hidden;
  border: 0;
  background: #111;
}

body:not(.admin-page):not(.auth-page) .hero-aside .compact-article img {
  width: 100%;
  height: 150px;
  border-radius: 0;
  object-fit: cover;
  opacity: 0.82;
}

body:not(.admin-page):not(.auth-page) .hero-aside .compact-article span {
  position: absolute;
  inset: auto 14px 12px 14px;
  color: #fff;
}

body:not(.admin-page):not(.auth-page) .hero-aside .compact-article strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

body:not(.admin-page):not(.auth-page) .hero-aside .compact-article small {
  color: rgba(255, 255, 255, 0.78);
}

body:not(.admin-page):not(.auth-page) .section {
  padding: 36px 0;
}

body:not(.admin-page):not(.auth-page) .section-soft,
body:not(.admin-page):not(.auth-page) .page-header,
body:not(.admin-page):not(.auth-page) .article-hero {
  background: #fff;
  border-block: 1px solid #ececec;
}

body:not(.admin-page):not(.auth-page) .section-head {
  align-items: center;
  border-bottom: 1px solid #dedede;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

body:not(.admin-page):not(.auth-page) .section-head h2,
body:not(.admin-page):not(.auth-page) .page-header h1 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .eyebrow {
  color: #e50b20;
  font-size: 0.72rem;
  font-weight: 950;
}

body:not(.admin-page):not(.auth-page) .section-link {
  color: #e50b20;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .badge {
  border: 0;
  border-radius: 0;
  background: #e50b20;
  color: #fff;
  padding: 4px 7px;
  font-size: 0.66rem;
  font-weight: 950;
}

body:not(.admin-page):not(.auth-page) .article-grid {
  gap: 22px;
}

body:not(.admin-page):not(.auth-page) .article-card,
body:not(.admin-page):not(.auth-page) .category-card,
body:not(.admin-page):not(.auth-page) .category-strip a,
body:not(.admin-page):not(.auth-page) .side-block,
body:not(.admin-page):not(.auth-page) .comment,
body:not(.admin-page):not(.auth-page) .contact-panel,
body:not(.admin-page):not(.auth-page) .prose-note {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.admin-page):not(.auth-page) .article-card__image {
  position: relative;
  display: block;
  overflow: hidden;
}

body:not(.admin-page):not(.auth-page) .article-card__image img {
  height: 220px;
  transition: transform 0.25s ease;
}

body:not(.admin-page):not(.auth-page) .article-card:hover .article-card__image img {
  transform: scale(1.03);
}

body:not(.admin-page):not(.auth-page) .article-card__body {
  gap: 8px;
  padding: 14px 0 0;
}

body:not(.admin-page):not(.auth-page) .article-card h3 {
  color: #111;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.24;
}

body:not(.admin-page):not(.auth-page) .article-card p {
  color: #5f5f5f;
  font-size: 0.92rem;
  line-height: 1.5;
}

body:not(.admin-page):not(.auth-page) .meta {
  color: #6d6d6d;
  font-size: 0.74rem;
  font-weight: 700;
}

body:not(.admin-page):not(.auth-page) .category-strip {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

body:not(.admin-page):not(.auth-page) .category-strip a {
  grid-template-columns: 92px minmax(0, 1fr);
  border: 1px solid #ececec;
}

body:not(.admin-page):not(.auth-page) .category-strip img {
  width: 92px;
}

body:not(.admin-page):not(.auth-page) .newsletter-band {
  background: #111;
}

body:not(.admin-page):not(.auth-page) .newsletter-form {
  border-radius: 0;
}

body:not(.admin-page):not(.auth-page) .page-header {
  padding: 48px 0 30px;
}

body:not(.admin-page):not(.auth-page) .content-layout {
  grid-template-columns: minmax(0, 740px) 330px;
}

body:not(.admin-page):not(.auth-page) .article-hero__grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

body:not(.admin-page):not(.auth-page) .article-hero img {
  border-radius: 0;
  box-shadow: none;
}

body:not(.admin-page):not(.auth-page) .sidebar {
  gap: 26px;
}

body:not(.admin-page):not(.auth-page) .side-block {
  padding: 0;
}

body:not(.admin-page):not(.auth-page) .side-block h3 {
  border-bottom: 2px solid #111;
  padding-bottom: 9px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .compact-article {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

body:not(.admin-page):not(.auth-page) .compact-article img {
  width: 92px;
  height: 70px;
  border-radius: 0;
}

body:not(.admin-page):not(.auth-page) .compact-article strong {
  color: #111;
  font-size: 0.84rem;
  font-weight: 950;
}

body:not(.admin-page):not(.auth-page) .site-footer {
  background: #080808;
  color: #cfcfcf;
  margin-top: 30px;
}

body:not(.admin-page):not(.auth-page) .footer-grid {
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

body:not(.admin-page):not(.auth-page) .site-footer h4 {
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.admin-page):not(.auth-page) .site-footer a:hover {
  color: #e50b20;
}

body:not(.admin-page):not(.auth-page) .footer-bottom {
  border-top: 0;
}

@media (max-width: 980px) {
  body:not(.admin-page):not(.auth-page) .headline-strip__inner,
  body:not(.admin-page):not(.auth-page) .hero-grid,
  body:not(.admin-page):not(.auth-page) .article-hero__grid,
  body:not(.admin-page):not(.auth-page) .content-layout {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.auth-page) .nav {
    justify-content: space-between;
  }

  body:not(.admin-page):not(.auth-page) .nav-menu {
    align-items: stretch;
  }

  body:not(.admin-page):not(.auth-page) .nav-menu > a {
    padding: 12px 0;
  }

  body:not(.admin-page):not(.auth-page) .search-form {
    border-left: 0;
    margin-left: 0;
  }

  body:not(.admin-page):not(.auth-page) .nav-menu {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body:not(.admin-page):not(.auth-page) .topline__inner,
  body:not(.admin-page):not(.auth-page) .topline__links {
    gap: 10px;
  }

  body:not(.admin-page):not(.auth-page) .masthead {
    justify-content: flex-start;
    padding: 12px 0;
  }

  body:not(.admin-page):not(.auth-page) .masthead .brand__mark {
    width: 34px;
    height: 34px;
  }

  body:not(.admin-page):not(.auth-page) .masthead .brand__text strong {
    font-size: 1.08rem;
  }

  body:not(.admin-page):not(.auth-page) .masthead .brand__text small {
    padding: 4px 9px;
    font-size: 0.58rem;
  }

  body:not(.admin-page):not(.auth-page) .headline-strip__inner,
  body:not(.admin-page):not(.auth-page) .article-grid,
  body:not(.admin-page):not(.auth-page) .article-grid--three,
  body:not(.admin-page):not(.auth-page) .category-strip,
  body:not(.admin-page):not(.auth-page) .category-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.auth-page) .hero-slider {
    min-height: 420px;
  }

  body:not(.admin-page):not(.auth-page) .hero-slide__content {
    padding: 24px;
  }

  body:not(.admin-page):not(.auth-page) .newsletter-inner,
  body:not(.admin-page):not(.auth-page) .contact-grid,
  body:not(.admin-page):not(.auth-page) .prose-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page):not(.auth-page) .newsletter-form {
    display: grid;
  }

  body:not(.admin-page):not(.auth-page) .newsletter-form input {
    width: 100%;
  }
}
