/*
Theme Name: Zbrodnia Dnia
Theme URI: https://zbrodniadnia.pl
Author: Zbrodnia Dnia
Description: Customowy motyw dla serwisu Zbrodnia Dnia: homepage, artykuly, CTA, grafiki naglowka i konfiguracja przez Customizer.
Version: 1.6.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: zbrodnia-dnia
*/

:root {
  --bg: #030506;
  --line: #33414a;
  --text: #f7f7f5;
  --red: #ff2b1e;
  --glow: rgba(255, 43, 30, .32);
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Impact, "Arial Narrow", Arial, sans-serif;
  --font-menu: Arial, Helvetica, sans-serif;
  --body-size: 16px;
  --menu-size: 12px;
  --hero-title-size: 48px;
  --section-title-size: 24px;
  --card-title-size: 15px;
  --article-title-size: 46px;
  --article-text-size: 14px;
  --why-text-size: 12px;
  --step-icon-size: 34px;
  --layout-small-text-size: 13px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(112, 10, 4, .26), transparent 30rem),
    linear-gradient(180deg, #010101, #050708 38%, #010101);
  font-family: var(--font-body);
  font-size: var(--body-size);
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.panel {
  border: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 43, 30, .08), transparent 22rem),
    linear-gradient(180deg, rgba(12, 22, 29, .95), rgba(3, 8, 11, .96));
  box-shadow: none;
}

.site-panel,
.homepage,
.article-template,
.page-template {
  overflow: hidden;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(2, 6, 9, .72);
}

.header-banner {
  width: 100%;
  background: #010304;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-banner a,
.header-banner img {
  display: block;
}

.header-banner img {
  width: 100%;
  max-height: clamp(120px, 22vw, 280px);
  object-fit: cover;
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: clamp(72px, 8vw, 112px);
  height: clamp(72px, 8vw, 112px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.brand span,
.mechanism-copy h2,
.article-body section > h2 {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 25px;
  margin-left: auto;
  font-size: var(--menu-size);
  font-weight: 700;
  font-family: var(--font-menu);
}

.nav-links ul {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #d9dee1;
}

.nav-links a:hover {
  color: white;
}

.nav-cta,
.button,
.ghost-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height, 40px);
  border-radius: 4px;
  border: 1px solid var(--button-bg, #ff5a4f);
  color: var(--button-text, white);
  background: linear-gradient(180deg, var(--button-bg, #fb382d), var(--button-bg-end, #b7180c));
  box-shadow: 0 0 18px var(--glow);
  font-size: var(--button-font-size, var(--menu-size));
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  font-family: var(--font-menu);
  padding: 0 var(--button-padding, 22px);
}

.nav-cta {
  min-width: 154px;
}

.hero {
  min-height: clamp(420px, 62vh, 680px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 7vw, 96px);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-copy {
  width: min(540px, 68%);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, var(--hero-title-size));
  line-height: 1.08;
  font-weight: 900;
}

.hero p,
.mechanism-copy p,
.protocol p,
.site-footer p,
.article-body p,
.article-cta p,
.article-next p,
.page-content {
  color: #edf1f3;
  line-height: 1.65;
}

.hero p {
  margin: 0 0 22px;
  max-width: 520px;
  font-size: 15px;
}

.button {
  min-width: 290px;
}

.button-small {
  min-width: 218px;
}

.hero small {
  display: block;
  width: 290px;
  margin-top: 12px;
  color: #d8dee2;
  text-align: center;
  font-size: 11px;
}

.latest {
  padding: clamp(34px, 5vw, 64px) clamp(20px, 6vw, 76px);
  background: rgba(4, 10, 14, .64);
}

.latest h2,
.why h2,
.empty-state h2 {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.case-card {
  min-height: 214px;
  overflow: hidden;
  border: 1px solid #223039;
  border-radius: 6px;
  background: linear-gradient(180deg, #111b21, #071015);
}

.case-card img,
.case-card-placeholder {
  width: 100%;
  height: clamp(118px, 14vw, 190px);
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
}

.case-card-placeholder {
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 43, 30, .18), transparent 7rem),
    linear-gradient(135deg, #101b22, #03080b);
}

.case-card h3 {
  margin: 13px 13px 12px;
  font-size: var(--card-title-size);
  line-height: 1.35;
  font-weight: 900;
}

.case-card a {
  display: block;
  margin: 0 13px 14px;
  color: #e3e7e9;
  font-size: 12px;
  font-weight: 700;
}

.case-card a:hover {
  color: white;
}

.mechanism-strip {
  display: grid;
  grid-template-columns: .55fr 1fr;
  min-height: 260px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.mechanism-copy {
  padding: clamp(28px, 5vw, 64px);
  background: rgba(0,0,0,.26);
}

.mechanism-copy h2,
.protocol h2,
.site-footer h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.mechanism-copy p {
  margin: 0 0 18px;
  font-size: 13px;
}

.attack-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.flow-step {
  width: 72px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.flow-step span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  box-shadow: 0 0 14px rgba(255,43,30,.2);
}

.flow-step b {
  font-size: 14px;
}

.flow-step strong {
  font-size: 11px;
}

.flow-arrow {
  color: #9ca8af;
}

.protocol {
  display: grid;
  grid-template-columns: 1fr 270px;
  align-items: center;
  padding: clamp(42px, 6vw, 76px) clamp(24px, 7vw, 96px);
  background:
    radial-gradient(circle at 76% 46%, rgba(255,255,255,.08), transparent 14rem),
    linear-gradient(180deg, #081219, #070d10);
}

.protocol p {
  max-width: 465px;
  margin: 0 0 14px;
  font-size: 14px;
}

.protocol img {
  width: 225px;
  justify-self: center;
  filter: drop-shadow(0 28px 34px rgba(0,0,0,.75));
}

.checks {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: #eef1f2;
  font-size: 13px;
  line-height: 1.8;
}

.checks li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 9px;
}

.why {
  padding: clamp(28px, 5vw, 54px) clamp(20px, 6vw, 76px);
  background: #101820;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: var(--why-text-size);
  font-weight: 800;
}

.why-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  color: #edf1f3;
}

.why-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.why-grid b {
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}

.home-final {
  padding: 24px 20px 26px;
  text-align: center;
  background: linear-gradient(90deg, #870b02, #ba1d0e, #760900);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, calc(var(--section-title-size) + 6px));
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 56px) clamp(20px, 6vw, 76px);
  background: #060b0e;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  font-size: 13px;
}

.ghost-button {
  min-width: 124px;
  border-color: var(--button-bg, #44545f);
  box-shadow: none;
}

.article-layout,
.page-layout,
.archive-layout {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px) 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a7b0b5;
  font-size: 11px;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: white;
}

.article-header h1,
.page-header h1,
.archive-header h1 {
  margin: 34px 0 18px;
  font-size: clamp(30px, 5vw, var(--article-title-size));
  line-height: 1.14;
  font-weight: 900;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #a7b0b5;
  font-size: 11px;
  font-weight: 700;
}

.article-hero-image {
  width: 100%;
  height: clamp(190px, 34vw, 285px);
  margin: 22px 0 18px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}

.article-lead {
  margin: 0;
  color: #f5f7f8;
  font-size: calc(var(--article-text-size) + 4px);
  line-height: 1.65;
  font-weight: 800;
}

.article-body,
.article-blocks,
.page-content {
  margin-top: 26px;
}

.article-blocks > * + *,
.article-body section,
.article-body > * + *,
.page-content > * + * {
  margin-top: 20px;
}

.article-body h2,
.article-cta h2,
.article-next h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 17px;
  line-height: 1.25;
  text-transform: uppercase;
}

.article-body p,
.page-content p {
  margin: 0 0 14px;
  font-size: var(--article-text-size);
  line-height: 1.75;
}

.article-body ul,
.page-content ul {
  color: #edf1f3;
  font-size: 13px;
  line-height: 1.85;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid #35434b;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}

.article-cta p,
.article-next p {
  margin: 0;
  color: #dce3e6;
  font-size: 13px;
  line-height: 1.65;
}

.article-cta .button {
  min-width: 260px;
}

.article-next {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: end;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.article-next .ghost-button {
  margin-top: 15px;
}

.article-next img {
  width: 150px;
  height: 104px;
  border: 1px solid #26343c;
  border-radius: 5px;
  object-fit: cover;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-list .case-card {
  min-height: 0;
}

.pagination {
  margin-top: 28px;
  color: #dce3e6;
  font-size: 13px;
}

.security-hero {
  min-height: clamp(480px, 64vh, 720px);
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.security-hero-inner {
  width: min(1180px, calc(100vw - 80px));
}

.security-label {
  margin: 30px 0 10px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.security-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
  text-transform: uppercase;
}

.security-subtitle {
  max-width: 740px;
  margin: 22px 0 28px;
  color: #f4f5f5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 800;
}

.security-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: #dce3e6;
  text-transform: uppercase;
  font-size: 12px;
}

.security-meta img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.security-meta strong,
.security-meta small {
  display: block;
}

.security-content {
  width: min(1180px, calc(100vw - 80px));
}

.case-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 42px;
  border: 1px solid #343b3f;
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}

.case-icon,
.panel-heading-icon {
  color: var(--red);
  font-size: 48px;
  line-height: 1;
}

.case-icon {
  display: grid;
  place-items: center;
}

img.case-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.case-box h2,
.steps-section h2,
.list-panel h2,
.security-cta h2,
.related-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: var(--section-title-size);
  text-transform: uppercase;
}

.case-box p,
.step-card p,
.list-panel li,
.security-cta p {
  color: #eef1f2;
  line-height: 1.7;
}

.steps-section {
  margin-top: 28px;
}

.steps-section h2 span {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--red);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  display: grid;
  gap: 10px;
}

.step-card b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
}

.step-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid #485057;
  border-radius: 50%;
  color: white;
  font-size: var(--step-icon-size);
}

img.step-icon {
  object-fit: contain;
  padding: 16px;
}

.step-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 14px;
}

.step-card p {
  margin: 0;
  font-size: var(--layout-small-text-size);
}

.list-panel {
  margin-top: 26px;
  padding: 28px 34px;
  border: 1px solid #293239;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}

.list-panel h2 {
  display: flex;
  gap: 14px;
  align-items: center;
}

.panel-heading-icon {
  font-size: 30px;
}

img.panel-heading-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.list-panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-panel li::before {
  content: "×";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 12px;
}

.list-panel li {
  font-size: var(--layout-small-text-size);
}

.defense-panel li::before {
  content: "✓";
  border-color: #05d45d;
  color: #05d45d;
}

.security-cta {
  display: grid;
  grid-template-columns: minmax(260px, 440px) auto;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 43, 30, .35);
  background:
    linear-gradient(90deg, rgba(110, 4, 0, .55), rgba(12, 8, 8, .94)),
    radial-gradient(circle at 12% 50%, rgba(255,43,30,.3), transparent 16rem);
}

.security-cta:has(> img) {
  grid-template-columns: minmax(120px, 180px) minmax(280px, 1fr) auto;
}

.security-cta img {
  max-height: 150px;
  object-fit: contain;
}

.security-cta h2 {
  max-width: 520px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.04;
}

.security-cta p {
  max-width: 440px;
  font-size: clamp(15px, 1.5vw, 18px);
}

.security-cta .button {
  width: auto;
  min-width: 220px;
  max-width: 100%;
  justify-self: end;
  padding-right: 28px;
  padding-left: 28px;
  white-space: nowrap;
}

.related-section {
  margin-top: 30px;
}

.related-section > h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--red);
}

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

.selected-articles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.selected-articles-section {
  margin-top: 42px;
}

.selected-articles-section .related-card {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 16px;
  border-color: #303a42;
}

.selected-articles-section .related-card img,
.selected-articles-section .related-card .case-card-placeholder {
  width: 100%;
  height: clamp(136px, 12vw, 176px);
}

.selected-articles-section .related-card h3 {
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.16;
}

.selected-articles-section .related-card a:last-child {
  display: inline-block;
  margin-top: 4px;
}

.related-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid #262e35;
  border-radius: 4px;
  background: linear-gradient(180deg, #14191d, #090d10);
}

.related-card img,
.related-card .case-card-placeholder {
  width: 120px;
  height: 92px;
  object-fit: cover;
  border-radius: 3px;
}

.related-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.related-card a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.zbrodnia-media-field {
  margin-bottom: 16px;
}

.zbrodnia-media-preview {
  display: block;
  width: 100%;
  max-height: 160px;
  margin: 0 0 8px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  object-fit: contain;
  background: #11191e;
}

.global-footer {
  padding: 24px clamp(20px, 6vw, 76px) 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #050607;
}

.global-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1.4fr;
  gap: 34px;
}

.footer-brand-block img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

.footer-brand-block h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 26px;
}

.global-footer p,
.footer-links a {
  color: #c8ced2;
  font-size: 13px;
}

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

.footer-links h3,
.footer-newsletter h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 14px;
}

.footer-newsletter form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 56px;
  margin-top: 12px;
  max-width: 520px;
}

.footer-newsletter input {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  border: 1px solid #232c32;
  border-radius: 4px 0 0 4px;
  color: white;
  background: #15191d;
  padding: 0 18px;
  font-size: 16px;
}

.footer-newsletter .button {
  width: 56px;
  min-width: 56px;
  min-height: 46px;
  padding: 0;
  border-radius: 0 4px 4px 0;
  font-size: 18px;
  line-height: 1;
}

.footer-newsletter input + .button {
  margin-left: -1px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #8f989e;
  font-size: 12px;
}

.single-post .saboxplugin-wrap,
.single-post .simple-author-box,
.single-post .author-box,
.single-post .post-author,
.single-post .entry-author,
.single-post .author-info,
.single-post .about-author,
.single-post .abh_box,
.single-post .wp-block-post-author,
.single-post .m-a-box,
.single-post .molongui-author-box,
.single-post .pp-author-boxes-wrapper,
.single-post .security-content [class*="author" i],
.single-post .security-content [id*="author" i],
.single-post .security-content [class*="redaktor" i],
.single-post .security-content [id*="redaktor" i],
.single-post .security-content [class*="bio" i],
.single-post .security-content [id*="bio" i] {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  transform: translateY(90px);
  padding: 12px 15px;
  border: 1px solid #ff4b3f;
  border-radius: 5px;
  color: white;
  background: #11191e;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  transition: transform .24s ease;
  font-size: 13px;
  font-weight: 800;
}

.toast.show {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    min-height: 86px;
  }

  .mechanism-strip {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .related-grid,
  .selected-articles-grid,
  .global-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-panel ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-cta {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .security-cta:has(> img) {
    grid-template-columns: 120px minmax(220px, 1fr);
  }

  .security-cta:has(> img) .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: 100%;
    padding-top: 0;
  }

  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nav-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .topbar.open .nav-links {
    display: grid;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding: 42px 24px;
    background-position: center;
  }

  .hero-copy {
    width: 100%;
  }

  .button,
  .hero small {
    width: 100%;
    min-width: 0;
  }

  .latest,
  .mechanism-copy,
  .protocol,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-layout,
  .page-layout,
  .archive-layout {
    width: min(100vw - 40px, 620px);
  }

  .mechanism-strip,
  .protocol,
  .site-footer,
  .article-cta,
  .article-next {
    grid-template-columns: 1fr;
  }

  .attack-flow {
    flex-wrap: wrap;
  }

  .protocol img {
    margin-top: 20px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-hero-inner,
  .security-content {
    width: min(100vw - 40px, 620px);
  }

  .case-box,
  .security-cta,
  .related-card {
    grid-template-columns: 1fr;
  }

  .security-cta:has(> img) {
    grid-template-columns: 1fr;
  }

  .security-cta .button,
  .security-cta:has(> img) .button {
    grid-column: auto;
    justify-self: start;
    white-space: normal;
  }

  .steps-grid,
  .list-panel ul,
  .related-grid,
  .selected-articles-grid,
  .global-footer-grid {
    grid-template-columns: 1fr;
  }

  .related-card img,
  .related-card .case-card-placeholder {
    width: 100%;
    height: 170px;
  }

  .footer-newsletter form {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .footer-newsletter .button {
    width: 52px;
    min-width: 52px;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .article-header h1,
  .page-header h1,
  .archive-header h1 {
    font-size: 31px;
  }

  .home-final {
    font-size: 24px;
  }

  .topbar {
    gap: 12px;
  }

  .nav-links,
  .nav-links ul {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }

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

  .article-cta .button {
    min-width: 0;
    width: 100%;
  }
}
