* {
  box-sizing: border-box;
}

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

:root {
  color-scheme: dark;
  --page-bg: #151515;
  --surface: #1f1f1f;
  --surface-2: #282828;
  --surface-3: #303030;
  --text: #f3f3f0;
  --muted: #adada7;
  --soft: #d0d0ca;
  --line: #3b3b3b;
  --header-bg: #1f1f1f;
  --header-text: #f3f3f0;
  --header-muted: #d0d0ca;
  --header-line: #3b3b3b;
  --header-control-bg: #282828;
  --header-control-border: #5a5a55;
  --button-bg: #ffffff;
  --button-text: #171717;
  --shadow: rgba(0, 0, 0, 0.28);
  --ad-bg: #242424;
  --accent: #166534;
  --secondary: #b91c1c;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --surface-3: #e7e7e4;
  --text: #202020;
  --muted: #60605b;
  --soft: #3b3b37;
  --line: #d8d8d4;
  --header-bg: #f5f5f4;
  --header-text: #202020;
  --header-muted: #60605b;
  --header-line: #d8d8d4;
  --header-control-bg: #f0f0ee;
  --header-control-border: #c7c7c2;
  --button-bg: #202020;
  --button-text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.12);
  --ad-bg: #ececea;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

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

button {
  letter-spacing: 0;
}

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

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

.wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 30;
  background: var(--header-bg);
  color: var(--header-text);
}

.header-main {
  border-bottom: 1px solid var(--header-line);
}

.header-inner {
  min-height: 98px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.auth-link {
  color: var(--header-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-link:hover {
  color: var(--header-text);
}

.header-logout-form {
  margin: 0;
}

.auth-link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.header-icon-button,
.theme-toggle {
  border: 1px solid var(--header-control-border);
  border-radius: 6px;
  background: var(--header-control-bg);
  color: inherit;
  cursor: pointer;
}

.header-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 9px;
}

.header-icon-button span {
  display: block;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.theme-toggle:hover {
  background: transparent;
}

.theme-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.theme-icon-moon {
  display: none;
}

:root:not([data-theme="light"]) .theme-icon-sun {
  filter: brightness(0) invert(1);
}

:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.brand {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.brand-title {
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  color: var(--header-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.crest {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 800;
  overflow: hidden;
}

.crest-image {
  border: 1px solid var(--header-line);
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
}

.header-nav {
  background: #76230c;
  color: #ffffff;
  border-bottom: 1px solid #6b1f2a;
}

:root[data-theme="light"] .header-nav {
  background: #1f1f1f;
  border-bottom-color: #3b3b3b;
}

.header-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

.category-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-menu a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.header-nav .category-menu a.is-active,
.header-nav .category-menu a:hover {
  color: #ffffff;
}

.category-menu a.is-active,
.category-menu a:hover,
.news-link:hover,
.story-card h3 a:hover,
.latest-list a:hover,
.category-latest a:hover,
.back-link:hover {
  color: var(--secondary);
}

.latest-list,
.category-latest {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-stack {
  display: grid;
  gap: 26px;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.page-stack > * {
  min-width: 0;
  max-width: 100%;
}

.war-strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
}

.war-strip-inner {
  padding: 10px 0;
}

.war-title {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.war-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.war-stats div {
  min-height: 42px;
  border-left: 1px solid var(--line);
  padding: 0 9px;
}

.war-stats div:first-child {
  border-left: 0;
  padding-left: 0;
}

.war-stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.war-stats strong {
  display: inline-block;
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.1;
}

.war-stats em {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.lead {
  padding-top: 8px;
}

.eyebrow,
.story-body time,
.latest-list time,
.category-latest time,
.article-meta {
  color: var(--muted);
  font-size: 11px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 940px;
  font-size: 28px;
  line-height: 1.13;
}

.lead p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.main-board {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.latest-column,
.featured-column,
.ad-column,
.category-block,
.article-content {
  min-width: 0;
}

.latest-column h2,
.featured-column h2,
.block-heading h2 {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.latest-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.latest-list li,
.category-latest li {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.latest-list a,
.category-latest a {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.latest-more-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-more-link:hover {
  color: var(--text);
}

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

.story-card {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.story-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.story-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.story-card-compact h3 {
  font-size: 13px;
}

.ad-column {
  display: grid;
  gap: 18px;
}

.ad-slot {
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ad-bg);
  color: var(--text);
  padding: 22px;
}

.ad-slot-link {
  text-decoration: none;
}

.ad-slot-tall {
  min-height: 520px;
}

.ad-slot-dynamic {
  align-content: stretch;
}

.ad-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.ad-slot-tall .ad-image {
  max-height: 420px;
}

.ad-slot iframe,
.ad-slot ins {
  max-width: 100%;
}

.ad-slot span,
.ad-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: 18px;
  line-height: 1.15;
}

.category-stack {
  display: grid;
  gap: 34px;
  padding-bottom: 42px;
}

.category-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.block-heading h2 {
  margin: 0;
}

.block-heading a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.block-heading a:hover {
  color: var(--secondary);
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

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

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

.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 22px;
}

.article-board {
  padding: 26px 0 48px;
}

.article {
  padding: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--secondary);
  font-weight: 900;
}

.article h1 {
  max-width: 900px;
}

.article-summary {
  max-width: 820px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.article-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  margin: 22px 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.article-body {
  max-width: 820px;
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.78;
}

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

.article-inline-image {
  margin: 24px 0;
}

.article-inline-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
}

.related-news {
  max-width: 820px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.related-news h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
}

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

.related-item {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
  line-height: 1.25;
}

.related-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.related-item time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.read-also {
  max-width: 820px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.read-also h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.2;
}

.read-also ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.read-also a {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.read-also a:hover {
  color: var(--secondary);
}

.same-category-news {
  max-width: 820px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.same-category-news h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
}

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

.same-category-item {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
  line-height: 1.25;
}

.same-category-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.same-category-item time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.same-category-item:hover {
  color: var(--secondary);
}

.article-tags {
  max-width: 820px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.article-tags h2 {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.2;
}

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

.tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--surface-2);
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.tag-badge:hover {
  border-color: var(--secondary);
  color: var(--text);
}

.article-keywords {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.article-keywords span {
  color: var(--soft);
  font-weight: 900;
}

.comments-section {
  max-width: 820px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.comments-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
}

.comments-list {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.comment-item {
  border-top: 1px solid var(--line);
  border-left: 4px solid #22c55e;
  padding: 18px 0 18px 18px;
}

.comment-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.comment-avatar-color-0 {
  background: #0ea5e9;
}

.comment-avatar-color-1 {
  background: #14b8a6;
}

.comment-avatar-color-2 {
  background: #8b5cf6;
}

.comment-avatar-color-3 {
  background: #f97316;
}

.comment-avatar-color-4 {
  background: #ef4444;
}

.comment-avatar-color-5 {
  background: #06b6d4;
}

.comment-avatar-color-6 {
  background: #84cc16;
}

.comment-avatar-color-7 {
  background: #d946ef;
}

.comment-avatar-color-8 {
  background: #64748b;
}

.comment-avatar-color-9 {
  background: #a855f7;
}

.comment-main {
  min-width: 0;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.comment-head strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.comment-head time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.comment-item p,
.comments-empty,
.comment-login {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.65;
}

.comment-login a {
  color: var(--secondary);
  font-weight: 900;
}

.comment-reply-button {
  display: inline-flex;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
}

.comment-reply-button::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 8V4L3 11l7 7v-4h5.5c2.7 0 4.4 1.3 5.5 3.2-.4-5.1-3.1-9.2-8.8-9.2H10Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 8V4L3 11l7 7v-4h5.5c2.7 0 4.4 1.3 5.5 3.2-.4-5.1-3.1-9.2-8.8-9.2H10Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.comment-reply-button:hover {
  color: var(--secondary);
}

.comment-replies {
  display: grid;
  gap: 0;
  margin: 18px 0 0 24px;
  padding: 0;
  list-style: none;
}

.comment-item-reply {
  border-left-color: #f59e0b;
  padding-bottom: 0;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comment-reply-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 10px;
}

.comment-reply-target[hidden] {
  display: none;
}

.comment-reply-target button {
  border: 0;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0;
}

.comment-form label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--secondary);
}

.comment-notice {
  margin: -3px 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.comment-notice a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-form > button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  padding: 9px 14px;
  font-weight: 900;
}

.tag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.tag-results {
  min-width: 0;
}

.tag-article-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tag-article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.tag-article-body {
  min-width: 0;
}

.tag-article time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tag-article h2 {
  margin: 4px 0 7px;
  font-size: 18px;
  line-height: 1.22;
}

.tag-article p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.pagination a:hover {
  border-color: var(--secondary);
  color: var(--text);
}

.pagination .is-active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.pagination .pagination-ellipsis {
  border-color: transparent;
  padding-inline: 2px;
}

.archive-head {
  text-align: center;
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.archive-years a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.archive-years a:hover,
.archive-years a.is-active {
  border-color: var(--secondary);
  color: var(--text);
}

.archive-calendar > h2 {
  margin: 0 0 24px;
  color: var(--secondary);
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
}

.archive-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 42px;
}

.archive-month {
  min-width: 0;
}

.archive-month h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.archive-weekdays,
.archive-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  gap: 7px;
}

.archive-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.archive-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
}

.archive-day:not(.has-articles) {
  color: var(--muted);
}

.archive-day.has-articles {
  background: var(--surface-2);
  color: var(--text);
  outline: 1px solid var(--line);
}

.archive-day.has-articles:hover {
  background: var(--secondary);
  color: #fff;
  outline-color: var(--secondary);
}

.archive-day.is-empty {
  min-height: 28px;
}

.weather-page {
  padding-bottom: 48px;
}

.weather-hero {
  padding-top: 28px;
}

.weather-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: end;
}

.weather-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.weather-location-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.weather-location-note span,
.weather-provider {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.weather-location-note span {
  padding: 6px 9px;
}

.weather-provider {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.weather-provider span {
  color: var(--muted);
  text-transform: uppercase;
}

.weather-provider a {
  color: var(--text);
}

.weather-layout {
  display: grid;
  gap: 28px;
}

.weather-current,
.weather-day-card,
.weather-hour-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.weather-current::before,
.weather-day-card::before,
.weather-hour-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.weather-tone-clear::before {
  background: #d97706;
}

.weather-tone-cloud::before,
.weather-tone-fog::before {
  background: #64748b;
}

.weather-tone-rain::before {
  background: #0284c7;
}

.weather-tone-snow::before {
  background: #7dd3fc;
}

.weather-tone-storm::before {
  background: #b91c1c;
}

.weather-current {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px 22px 28px;
}

.weather-card-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-current h2 {
  margin: 3px 0 0;
  font-size: 44px;
  line-height: 1;
}

.weather-current p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 15px;
  font-weight: 850;
}

.weather-current time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.weather-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.weather-stat-grid div,
.weather-day-card dl div,
.weather-hour-card dl div {
  min-width: 0;
}

.weather-stat-grid dt,
.weather-day-card dt,
.weather-hour-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.weather-stat-grid dd,
.weather-day-card dd,
.weather-hour-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.weather-section {
  display: grid;
  gap: 14px;
}

.weather-daily-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.weather-day-card {
  min-width: 150px;
  padding: 14px 14px 14px 18px;
}

.weather-day-head {
  display: grid;
  gap: 2px;
}

.weather-day-head strong {
  font-size: 13px;
  line-height: 1.2;
}

.weather-day-head span,
.weather-hour-card time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.weather-day-card p {
  min-height: 36px;
  margin: 10px 0 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.weather-temp-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.weather-temp-row span {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.weather-temp-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.weather-day-card dl,
.weather-hour-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.weather-hourly-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.weather-hour-card {
  padding: 13px 13px 13px 17px;
}

.weather-hour-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1;
}

.weather-hour-card > span {
  display: block;
  min-height: 34px;
  margin: 8px 0 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--button-bg);
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.share-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.share-button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-facebook {
  background: #1877f2;
}

.share-telegram {
  background: #229ed9;
}

.share-viber {
  background: #7360f2;
}

.share-whatsapp {
  background: #25d366;
}

.share-twitter {
  background: #1da1f2;
}

.share-threads {
  background: #000;
}

.share-linkedin {
  background: #0a66c2;
}

.share-reddit {
  background: #ff4500;
}

.share-copy {
  display: flex;
  align-items: center;
  flex: 1 1 250px;
  max-width: 390px;
  min-width: 230px;
  height: 34px;
  margin-left: 4px;
}

.share-copy-input {
  min-width: 0;
  flex: 1;
  height: 34px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--surface);
  color: var(--soft);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 0 10px;
}

.share-copy-input:focus {
  outline: 1px solid var(--secondary);
  outline-offset: -1px;
}

.share-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.share-copy-button:hover {
  color: var(--secondary);
}

.share-copy-button svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.share-copy-status {
  margin-left: 6px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-page {
  max-width: 760px;
  padding: 34px 0 54px;
}

.contact-page h1 {
  margin-bottom: 18px;
}

.contact-intro {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--soft);
}

.contact-intro p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 900;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.form-notice-success {
  border-color: rgba(22, 101, 52, 0.55);
  color: #7ddc9a;
}

.form-notice-error {
  border-color: rgba(185, 28, 28, 0.58);
  color: #ff9a9a;
}

.auth-page {
  max-width: 620px;
  padding: 34px 0 58px;
}

.auth-panel h1 {
  margin: 0 0 12px;
}

.auth-panel p {
  color: var(--soft);
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.auth-form-secondary {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}

.auth-form h2 {
  margin: 0;
  font-size: 17px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--secondary);
}

.auth-form button,
.auth-form-inline button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 900;
}

.auth-form-inline {
  margin-top: 18px;
}

.auth-form-inline .secondary-button {
  background: var(--surface-3);
  color: var(--text);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 44px;
}

.auth-form .password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  padding: 0;
  transform: translateY(-50%);
}

.auth-form .password-toggle:hover,
.auth-form .password-toggle.is-visible {
  color: var(--secondary);
}

.password-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-alt {
  margin-top: 18px;
  font-size: 13px;
}

.auth-alt a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-email {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.form-error {
  border: 1px solid rgba(185, 28, 28, 0.58);
  border-radius: 8px;
  color: #ff9a9a;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.static-page {
  max-width: 860px;
  padding: 34px 0 58px;
}

.static-page h1 {
  margin-bottom: 12px;
}

.static-page-summary {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.static-page section {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 20px;
}

.static-page h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
}

.static-page p {
  margin: 0 0 13px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.72;
}

.static-page-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.static-page-info {
  display: grid;
  gap: 12px;
}

.static-info-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.static-info-item strong,
.static-info-item span,
.static-info-item a {
  display: block;
}

.static-info-item strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.static-info-item span,
.static-info-item a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.static-info-item a:hover {
  color: var(--secondary);
}

.static-info-map {
  width: min(100%, 640px);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.static-info-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.static-info-item .static-info-map-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
}

.static-info-item .static-info-map-link:hover {
  color: var(--text);
}

.static-info-icon {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.static-info-icon-address::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--secondary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.static-info-icon-id::before,
.static-info-icon-id::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
}

.static-info-icon-id::before {
  top: 9px;
}

.static-info-icon-id::after {
  top: 16px;
}

.static-info-icon-phone::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 2.9c.5-.3 1.2-.2 1.6.2l2.6 2.6c.4.4.5 1 .3 1.5l-1 2.4c1.1 2.1 2.8 3.8 5 5l2.4-1c.5-.2 1.1-.1 1.5.3l2.6 2.6c.4.4.5 1.1.2 1.6-.8 1.5-2.4 2.4-4.1 2.4C9.9 20.5 3.5 14.1 3.5 6.3c0-1.7.9-3.3 2.4-4.1l.7-.3Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 2.9c.5-.3 1.2-.2 1.6.2l2.6 2.6c.4.4.5 1 .3 1.5l-1 2.4c1.1 2.1 2.8 3.8 5 5l2.4-1c.5-.2 1.1-.1 1.5.3l2.6 2.6c.4.4.5 1.1.2 1.6-.8 1.5-2.4 2.4-4.1 2.4C9.9 20.5 3.5 14.1 3.5 6.3c0-1.7.9-3.3 2.4-4.1l.7-.3Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-directory {
  border-top: 1px solid var(--line);
  padding: 8px 0 36px;
}

.footer-directory .block-heading {
  margin-bottom: 14px;
}

.footer-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px 24px;
}

.footer-directory-region {
  min-width: 0;
}

.footer-directory-region h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.footer-directory-region h3 a,
.footer-directory-region h3 span,
.footer-directory-region li a,
.footer-directory-region li span {
  overflow-wrap: anywhere;
}

.footer-directory-region ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-directory-region li {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.footer-directory-region li span {
  color: var(--muted);
}

.footer-directory-region a:hover {
  color: var(--secondary);
}

.site-footer {
  margin-top: 35px;
  border-top: 1px solid #3b3b3b;
  background: #1f1f1f;
  color: #d0d0ca;
}

.footer-inner {
  display: grid;
  gap: 22px;
  padding: 24px 0 18px;
  color: inherit;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(520px, 100%);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-links a {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.footer-legal {
  max-width: 920px;
  color: #adada7;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-legal p {
  margin: 0;
}

.footer-legal p + p {
  margin-top: 8px;
}

.footer-copy {
  border-top: 1px solid #3b3b3b;
  color: #adada7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding-top: 14px;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }

  .brand-title {
    font-size: 28px;
  }

  .header-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .category-menu ul {
    justify-content: flex-start;
  }

  .main-board {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .ad-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot-tall {
    min-height: 250px;
  }

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

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

  .weather-current {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .wrap {
    width: min(1320px, calc(100% - 24px));
  }

  .header-inner {
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
  }

  .header-tools {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    justify-content: flex-end;
    gap: 8px;
  }

  .auth-link {
    font-size: 10px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .brand {
    grid-column: 1;
    justify-items: start;
    text-align: left;
    gap: 3px;
  }

  .brand-title {
    font-size: 21px;
  }

  .brand-subtitle {
    font-size: 9px;
    line-height: 1.2;
  }

  .header-nav-inner {
    min-height: 0;
    padding: 8px 0;
  }

  .category-menu {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-menu::-webkit-scrollbar {
    display: none;
  }

  .category-menu ul {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    gap: 14px;
    justify-content: flex-start;
  }

  .category-menu a {
    min-height: 32px;
    font-size: 11px;
    white-space: nowrap;
  }

  .page-stack {
    gap: 20px;
  }

  h1 {
    font-size: 22px;
  }

  .lead p:last-child,
  .article-summary {
    font-size: 13px;
  }

  .war-stats {
    grid-auto-columns: minmax(98px, 126px);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .main-board {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .archive-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .weather-hero-layout,
  .weather-current {
    grid-template-columns: 1fr;
  }

  .weather-provider {
    justify-self: start;
  }

  .weather-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-month h3 {
    font-size: 20px;
  }

  .latest-column {
    order: 2;
  }

  .featured-column {
    order: 1;
  }

  .article-content {
    order: 1;
  }

  .ad-column {
    order: 3;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ad-slot,
  .ad-slot-tall {
    min-height: 210px;
    padding: 18px;
  }

  .featured-grid,
  .related-grid,
  .same-category-grid,
  .category-feature-grid {
    grid-template-columns: 1fr;
  }

  .category-layout {
    gap: 14px;
  }

  .category-stack {
    gap: 26px;
    padding-bottom: 28px;
  }

  .story-card {
    gap: 8px;
  }

  .story-card h3 {
    font-size: 14px;
  }

  .tag-article {
    grid-template-columns: 1fr;
  }

  .archive-weekdays,
  .archive-days {
    grid-template-columns: repeat(7, minmax(20px, 1fr));
    gap: 5px;
  }

  .archive-day {
    min-height: 25px;
    font-size: 13px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-columns {
    gap: 20px;
  }

  .footer-directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1320px, calc(100% - 20px));
  }

  .header-actions {
    gap: 6px;
  }

  .auth-link {
    font-size: 9px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  h1 {
    font-size: 20px;
  }

  .lead {
    padding-top: 0;
  }

  .war-title {
    font-size: 9px;
    line-height: 1.35;
  }

  .war-stats {
    grid-auto-columns: minmax(88px, 112px);
  }

  .war-stats div {
    min-height: 38px;
    padding: 0 8px;
  }

  .war-stats strong {
    font-size: 14px;
  }

  .featured-grid {
    gap: 14px;
  }

  .latest-list li,
  .category-latest li {
    padding: 10px 0;
  }

  .block-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer-directory-grid {
    grid-template-columns: 1fr;
  }

  .archive-month-grid {
    grid-template-columns: 1fr;
  }

  .weather-stat-grid {
    grid-template-columns: 1fr;
  }

  .weather-current h2 {
    font-size: 38px;
  }
}
