html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
/* DefenceWatch — visual system matched to defencewatch.in */

:root {
  --dw-blue: #1e5aa8;
  --dw-blue-dark: #154a8c;
  --dw-text: #1a1a1a;
  --dw-muted: #6b6b6b;
  --dw-line: #e6e6e6;
  --dw-bg: #ffffff;
  --dw-soft: #f5f5f5;
  --dw-serif: "Lora", Georgia, "Times New Roman", serif;
  --dw-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dw-max: 1180px;
  --dw-narrow: 760px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--dw-text);
  background: var(--dw-bg);
  font-family: var(--dw-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--dw-blue); }
h1, h2, h3, h4 { font-family: var(--dw-serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

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

.dw-container {
  width: min(100% - 2rem, var(--dw-max));
  margin-inline: auto;
}
.dw-container--narrow { width: min(100% - 2rem, var(--dw-narrow)); }

/* Header */
.dw-topbar { border-bottom: 1px solid var(--dw-line); }
.dw-topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
}
.dw-social { color: var(--dw-blue); display: inline-flex; padding: 6px; }

.dw-masthead { padding: 1.25rem 0 1rem; }
.dw-masthead__inner { display: flex; justify-content: center; }
.dw-brand { display: inline-flex; }
.dw-brand img,
.dw-brand .custom-logo {
  width: min(320px, 70vw);
  height: auto;
}
.custom-logo-link { display: inline-flex; }

.dw-nav {
  border-top: 1px solid var(--dw-line);
  border-bottom: 1px solid var(--dw-line);
  position: relative;
}
.dw-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}
.dw-nav__menu-wrap { flex: 1; }
.dw-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.35rem;
  align-items: center;
  justify-content: center;
}
.dw-nav .menu > li { position: relative; }
.dw-nav .menu > li > a {
  display: block;
  padding: .85rem 0;
  font-family: var(--dw-serif);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
}
.dw-nav .menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--dw-line);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 40;
  padding: .4rem 0;
}
.dw-nav .menu > li:hover > .sub-menu,
.dw-nav .menu > li:focus-within > .sub-menu { display: block; }
.dw-nav .sub-menu a {
  display: block;
  padding: .55rem 1rem;
  font-family: var(--dw-sans);
  font-size: .9rem;
  font-weight: 600;
}
.dw-nav .sub-menu a:hover { background: var(--dw-soft); color: var(--dw-blue); }

.dw-nav__tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.dw-nav__search-btn,
.dw-nav__drawer-btn,
.dw-nav__toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--dw-text);
  padding: .45rem;
  display: inline-flex;
  align-items: center;
}
.dw-nav__toggle { display: none; }
.dw-nav__burger {
  width: 20px; height: 2px; background: currentColor; position: relative;
}
.dw-nav__burger::before,
.dw-nav__burger::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.dw-nav__burger::before { top: -6px; }
.dw-nav__burger::after { top: 6px; }

.dw-search-panel {
  border-top: 1px solid var(--dw-line);
  background: var(--dw-soft);
  padding: .85rem 0;
}
.dw-search { display: flex; gap: .5rem; }
.dw-search__input {
  flex: 1;
  border: 1px solid var(--dw-line);
  padding: .65rem .85rem;
  font: inherit;
}
.dw-search__submit {
  background: var(--dw-blue);
  color: #fff;
  border: 0;
  padding: .65rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Breaking */
.dw-breaking {
  background: var(--dw-soft);
  border-bottom: 1px solid var(--dw-line);
}
.dw-breaking__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  overflow: hidden;
}
.dw-breaking__label {
  flex: 0 0 auto;
  font-size: .85rem;
  letter-spacing: .02em;
}
.dw-breaking__track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.dw-breaking__item {
  display: inline-block;
  font-family: var(--dw-serif);
  font-weight: 600;
  animation: dw-marquee 28s linear infinite;
}
@keyframes dw-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-30%); }
}

/* Sections */
.dw-section { padding: 1.75rem 0 1.25rem; }
.dw-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--dw-text);
  margin-bottom: 1.1rem;
  padding-bottom: .35rem;
}
.dw-section__title {
  font-size: 1.35rem;
  margin: 0;
}
.dw-section__title a:hover { color: var(--dw-blue); }
.dw-section__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.dw-btn {
  display: inline-block;
  border: 1px solid var(--dw-text);
  padding: .55rem 1.4rem;
  font-weight: 700;
  font-size: .9rem;
  background: #fff;
}
.dw-btn:hover {
  background: var(--dw-text);
  color: #fff;
}

/* Cards / rows */
.dw-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--dw-blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .55rem;
}
.dw-tag--inline {
  position: static;
  display: inline-block;
  margin-bottom: .35rem;
}
.dw-meta {
  color: var(--dw-muted);
  font-size: .82rem;
  margin: 0;
}
.dw-card { margin-bottom: 1rem; }
.dw-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--dw-soft);
  aspect-ratio: 16 / 9;
}
.dw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-card__title {
  font-size: 1.2rem;
  margin: .65rem 0 .35rem;
}
.dw-card__title a:hover { color: var(--dw-blue); }

.dw-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--dw-line);
}
.dw-row:last-child { border-bottom: 0; }
.dw-row__media {
  display: block;
  overflow: hidden;
  background: var(--dw-soft);
  aspect-ratio: 16 / 10;
}
.dw-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-row__title {
  font-size: 1rem;
  margin: 0 0 .3rem;
}

.dw-lead-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.dw-lead-grid__feature .dw-card__title { font-size: 1.45rem; }

.dw-split {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 2rem;
  align-items: start;
}
.dw-stack--tight .dw-row { padding: .7rem 0; }

.dw-rank-list { display: flex; flex-direction: column; gap: .15rem; }
.dw-rank {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--dw-line);
}
.dw-rank:last-child { border-bottom: 0; }
.dw-rank__num {
  font-family: var(--dw-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #c8c8c8;
  line-height: 1;
}
.dw-rank__title { font-size: 1rem; margin: 0 0 .3rem; }

.dw-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.dw-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dw-card-grid .dw-card__title { font-size: 1.05rem; }

/* Single / page */
.dw-single, .dw-page { padding: 1.75rem 0 3rem; min-height: 42vh; }
.dw-page__head { margin-bottom: 1.25rem; padding-bottom: .65rem; border-bottom: 2px solid var(--dw-text); }
.dw-single__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .4rem 0 .75rem; }
.dw-page .dw-single__title { margin: 0; }
.dw-page__content h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--dw-blue-dark);
}
.dw-page__content p { font-size: 1.05rem; line-height: 1.75; color: #333; }
.dw-page__content a { color: var(--dw-blue); text-decoration: underline; }
.dw-single__hero {
  margin: 1.25rem 0 1.5rem;
  background: var(--dw-soft);
}
.dw-single__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.dw-single__content { font-size: 1.05rem; line-height: 1.75; }
.dw-single__content p { margin-bottom: 1.15rem; }
.dw-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dw-line);
}
.dw-post-nav a span {
  display: block;
  color: var(--dw-muted);
  font-size: .8rem;
  margin-bottom: .25rem;
}
.dw-related { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--dw-text); }

/* Archive */
.dw-archive-head { padding: 1.75rem 0 .5rem; }
.dw-archive-head__title { font-size: 1.8rem; }
.dw-archive-list { display: flex; flex-direction: column; gap: 1.35rem; padding: 1rem 0 1.5rem; }
.dw-archive-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dw-line);
}
.dw-archive-item__media {
  display: block;
  overflow: hidden;
  background: var(--dw-soft);
  aspect-ratio: 16 / 9;
}
.dw-archive-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-archive-item__title { font-size: 1.3rem; }
.dw-excerpt { color: var(--dw-muted); margin: .5rem 0 0; }

.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 0 2.5rem;
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.navigation.pagination a,
.navigation.pagination span {
  display: inline-block;
  min-width: 2.4rem;
  text-align: center;
  padding: .45rem .7rem;
  border: 1px solid var(--dw-line);
  font-weight: 700;
}
.navigation.pagination .current {
  background: var(--dw-blue);
  border-color: var(--dw-blue);
  color: #fff;
}

/* Footer */
.dw-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--dw-line);
  background: #fafafa;
  padding: 2rem 0;
}
.dw-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.dw-footer__menu {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  font-weight: 600;
}
.dw-footer__copy { color: var(--dw-muted); font-size: .9rem; margin: 0; }

.dw-404 { padding: 3rem 0; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .dw-lead-grid,
  .dw-split,
  .dw-card-grid--4 {
    grid-template-columns: 1fr;
  }
  .dw-card-grid { grid-template-columns: 1fr 1fr; }
  .dw-archive-item { grid-template-columns: 200px 1fr; }
}

@media (max-width: 720px) {
  .dw-nav__toggle { display: inline-flex; }
  .dw-nav__drawer-btn { display: none; }
  .dw-nav__menu-wrap {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--dw-line);
    z-index: 50;
    padding: .5rem 1rem 1rem;
  }
  .dw-nav.is-open .dw-nav__menu-wrap { display: block; }
  .dw-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .dw-nav .menu > li > a { padding: .7rem 0; border-bottom: 1px solid var(--dw-line); }
  .dw-nav .menu .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding-left: .75rem;
  }
  .dw-card-grid,
  .dw-archive-item,
  .dw-post-nav,
  .dw-row {
    grid-template-columns: 1fr;
  }
  .dw-row__media { max-width: 220px; }
  .dw-breaking__inner { align-items: flex-start; flex-direction: column; padding: .65rem 0; gap: .35rem; }
}


/* drc-mobile-harden */
@media (max-width: 768px) {
  .wrap, .container, .site, .site-content, .content-area, .main, .page {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  [class*="grid"], [class*="__grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* === zizhan mobile harden fixed === */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* === mobile overflow harden (auto) === */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .wrap, .container, .site, .site-content, .content-area, main, .sp-page, .sp-container {
    max-width: 100% !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}


/* === zizhan mobile harden v2 20261130092137 === */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  *, *::before, *::after { min-width: 0; box-sizing: border-box; }
  .wrap, .container, .site, .site-content, .content-area, main,
  .sp-page, .sp-container, .entry-content, .wp-block-group,
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  [class*="hero"], .sp-hero, .hero-grid, .ps-hero {
    max-width: 100% !important;
    min-height: 0 !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}
