/* src/v2/sites/static/brands/the_mirror.css
   Archetype: constructivist samizdat. Black/red/ivory, diagonal
   rules, slab-condensed Cyrillic headlines, typewriter marks. */

[data-brand="the_mirror"] {
  --tm-rule: 4px solid var(--color-text);
  --tm-mono: var(--font-mono, 'IBM Plex Mono'), ui-monospace, monospace;
}

[data-brand="the_mirror"] body { background: var(--color-bg); color: var(--color-text); }

[data-brand="the_mirror"] .tm-masthead {
  position: relative; background: var(--color-text); color: var(--color-bg);
  padding: 1.5rem 0 1rem; overflow: hidden;
}
[data-brand="the_mirror"] .tm-diagonal {
  position: absolute; top: 0; left: -5%; width: 110%; height: 100%;
  background: linear-gradient(115deg, transparent 45%, var(--color-accent) 45%, var(--color-accent) 55%, transparent 55%);
  opacity: 0.85; pointer-events: none;
}
[data-brand="the_mirror"] .tm-masthead-inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  padding: 0 1rem; display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 1rem;
}
[data-brand="the_mirror"] .tm-brand {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem); line-height: 0.9;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--color-bg);
}
[data-brand="the_mirror"] .tm-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
[data-brand="the_mirror"] .tm-nav-link {
  font-family: var(--tm-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-bg);
}
[data-brand="the_mirror"] .tm-nav-link:hover { color: var(--color-accent); }

[data-brand="the_mirror"] .tm-container {
  max-width: 1180px; margin: 0 auto; padding: 2rem 1rem;
}

[data-brand="the_mirror"] .tm-heavy-rule { border: none; border-top: var(--tm-rule); margin: 1.5rem 0; }

[data-brand="the_mirror"] .tm-kicker {
  display: inline-block; background: var(--color-accent); color: #fff;
  font-family: var(--tm-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem; text-transform: uppercase; margin-bottom: 0.6rem;
}

[data-brand="the_mirror"] .tm-lede {}
[data-brand="the_mirror"] .tm-lede-headline {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.08;
  text-transform: uppercase; letter-spacing: -0.01em;
  max-width: 900px;
}
[data-brand="the_mirror"] .tm-lede-headline a:hover { color: var(--color-accent); }
[data-brand="the_mirror"] .tm-lede-excerpt {
  max-width: 780px; font-family: var(--font-body); font-size: 1.125rem;
  line-height: 1.55; margin-top: 0.75rem;
}

[data-brand="the_mirror"] .tm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem;
}
[data-brand="the_mirror"] .tm-card {
  border-top: 2px solid var(--color-text); padding-top: 0.85rem;
}
[data-brand="the_mirror"] .tm-stamp {
  font-family: var(--tm-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-secondary); margin-bottom: 0.4rem;
}
[data-brand="the_mirror"] .tm-card-headline {
  font-family: var(--font-headline); font-weight: 700;
  font-size: 1.125rem; line-height: 1.2; text-transform: uppercase;
  letter-spacing: -0.005em; margin-bottom: 0.4rem;
}
[data-brand="the_mirror"] .tm-card-headline a:hover { color: var(--color-accent); }
[data-brand="the_mirror"] .tm-card-excerpt { font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 900px) { [data-brand="the_mirror"] .tm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { [data-brand="the_mirror"] .tm-grid { grid-template-columns: 1fr; } }

[data-brand="the_mirror"] .tm-article { max-width: 760px; margin: 0 auto; }
[data-brand="the_mirror"] .tm-article-headline {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.08;
  text-transform: uppercase; margin: 0.2rem 0 1rem;
}
[data-brand="the_mirror"] .tm-article-rubric {
  font-family: var(--tm-mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 1rem;
}
/* Duotone red/black imagery — design 2026-04-23 */
[data-brand="the_mirror"] .tm-article-figure {
  margin: 1.5rem 0;
  position: relative;
  isolation: isolate;
  filter: grayscale(1) contrast(1.15);
}
[data-brand="the_mirror"] .tm-article-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--color-accent);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}
[data-brand="the_mirror"] .tm-article-figure figcaption {
  position: relative; z-index: 1;
  padding-top: 0.4rem;
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

/* Claim/reality CSS split on article body — design 2026-04-23 */
[data-brand="the_mirror"] .tm-article-body > p:first-of-type {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  border-left: 4px solid var(--color-accent);
}
[data-brand="the_mirror"] .tm-article-body > p:first-of-type::before {
  content: "ЗАЯВЛЕНИЕ";
  display: block;
  color: var(--color-accent);
  font-family: var(--tm-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
[data-brand="the_mirror"] .tm-article-body > p:first-of-type + p::before {
  content: "ПРОВЕРКА";
  display: block;
  color: var(--color-accent);
  font-family: var(--tm-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  [data-brand="the_mirror"] .tm-article-body > p:first-of-type {
    padding: 1rem;
    border-left-width: 3px;
  }
}

/* Homepage lede split — design 2026-04-23 */
[data-brand="the_mirror"] .tm-lede-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1rem;
}
[data-brand="the_mirror"] .tm-lede-claim {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 1.5rem;
  border-right: 2px solid var(--color-accent);
}
[data-brand="the_mirror"] .tm-lede-claim .tm-lede-headline,
[data-brand="the_mirror"] .tm-lede-claim .tm-lede-headline a { color: var(--color-bg); }
[data-brand="the_mirror"] .tm-lede-reality { padding: 1.5rem 0; }
[data-brand="the_mirror"] .tm-kicker-inverse {
  background: var(--color-text);
  color: var(--color-bg);
}
@media (max-width: 760px) {
  [data-brand="the_mirror"] .tm-lede-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  [data-brand="the_mirror"] .tm-lede-claim {
    border-right: none;
    border-bottom: 2px solid var(--color-accent);
  }
}
[data-brand="the_mirror"] .tm-article-body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; }
[data-brand="the_mirror"] .tm-article-body p { margin-bottom: 1.15rem; }
[data-brand="the_mirror"] .tm-article-body blockquote {
  font-family: var(--tm-mono); font-size: 1rem; line-height: 1.55;
  border-left: 4px solid var(--color-accent); padding: 0.75rem 1rem;
  margin: 1.5rem 0; background: rgba(200,16,46,0.06);
}
[data-brand="the_mirror"] .tm-article-body a { color: var(--color-accent); text-decoration: underline; }

[data-brand="the_mirror"] .tm-sources { margin-top: 2rem; padding-top: 1rem; border-top: var(--tm-rule); }
[data-brand="the_mirror"] .tm-sources-title {
  font-family: var(--tm-mono); text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
[data-brand="the_mirror"] .tm-sources-list li { font-size: 0.875rem; margin-bottom: 0.35rem; }
[data-brand="the_mirror"] .tm-sources-list a { color: var(--color-accent); text-decoration: underline; }

[data-brand="the_mirror"] .tm-rubric-header {}
[data-brand="the_mirror"] .tm-rubric-title {
  font-family: var(--font-headline); font-weight: 700;
  text-transform: uppercase; font-size: 2rem; letter-spacing: -0.01em;
}

[data-brand="the_mirror"] .tm-about { max-width: 720px; margin: 0 auto; }
[data-brand="the_mirror"] .tm-about-title {
  font-family: var(--font-headline); font-weight: 700; text-transform: uppercase;
  font-size: 2rem; margin-bottom: 1rem;
}
[data-brand="the_mirror"] .tm-about-body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; }

[data-brand="the_mirror"] .tm-footer { margin-top: 3rem; background: var(--color-text); color: var(--color-bg); }
[data-brand="the_mirror"] .tm-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; padding-bottom: 1rem;
  font-family: var(--tm-mono); font-size: 0.75rem; letter-spacing: 0.08em;
}
[data-brand="the_mirror"] .tm-footer-brand { text-transform: uppercase; color: var(--color-bg); }

/* ── Pagination ─────────────────────────────────────────────────
   Constructivist pagination: heavy 2px ink-black ruleline, monospace
   numerals, current page slams to red-on-ivory. Diagonal red wedge
   on current page echoes .tm-diagonal masthead motif. */
[data-brand="the_mirror"] .pagination {
  padding: 1.5rem 0 2.5rem;
  gap: 0;
  border-top: var(--tm-rule);
  border-bottom: 2px solid var(--color-text);
  margin-top: 2rem;
}
[data-brand="the_mirror"] .pagination-link {
  border: none;
  border-right: 1px solid var(--color-text);
  border-radius: 0;
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 2.75rem;
  height: 2.75rem;
  background: var(--color-bg);
  color: var(--color-text);
}
[data-brand="the_mirror"] .pagination-link:first-child {
  border-left: 1px solid var(--color-text);
}
[data-brand="the_mirror"] .pagination-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
[data-brand="the_mirror"] .pagination-current {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}
[data-brand="the_mirror"] .pagination-disabled {
  opacity: 0.3;
  background: var(--color-bg);
}
[data-brand="the_mirror"] .pagination-ellipsis {
  font-family: var(--tm-mono);
  color: var(--color-secondary);
  padding: 0 0.5rem;
  align-self: center;
  letter-spacing: 0.1em;
}
