/* =============================================================================
   Dynamic Tech World ToolHub - Advanced Character Counter
   Static CSS only: no frameworks, no Tailwind dependency, no external fonts.
   ============================================================================= */

:root {
  --dtw-red: #e10202;
  --dtw-red-hover: #f01414;
  --dtw-red-dark: #a30000;
  --dtw-gold: #ffb800;
  --dtw-dark: #070708;
  --dtw-dark-2: #0c0c0e;
  --dtw-surface: #111113;
  --dtw-surface-2: #17171b;
  --dtw-surface-3: #202026;
  --dtw-border: rgba(255, 255, 255, 0.09);
  --dtw-border-strong: rgba(255, 255, 255, 0.16);
  --dtw-text: #f5f5f7;
  --dtw-text-muted: #b7b7c0;
  --dtw-success: #26d07c;
  --dtw-warning: #ffb800;
  --dtw-danger: #ff5c5c;
  --dtw-info: #6ab8ff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  --shadow-glow: 0 0 0 1px rgba(225, 2, 2, 0.35), 0 14px 40px rgba(225, 2, 2, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.22s;
}

html[data-theme="light"] {
  --dtw-dark: #f7f7fb;
  --dtw-dark-2: #ffffff;
  --dtw-surface: #ffffff;
  --dtw-surface-2: #f2f2f6;
  --dtw-surface-3: #ebecf2;
  --dtw-border: rgba(16, 16, 24, 0.11);
  --dtw-border-strong: rgba(16, 16, 24, 0.18);
  --dtw-text: #141418;
  --dtw-text-muted: #5c5c68;
  --shadow-card: 0 18px 60px rgba(28, 28, 35, 0.12);
  --shadow-soft: 0 10px 28px rgba(28, 28, 35, 0.09);
  --shadow-glow: 0 0 0 1px rgba(225, 2, 2, 0.22), 0 14px 40px rgba(225, 2, 2, 0.11);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dtw-text);
  background-color: var(--dtw-dark);
  background-image:
    radial-gradient(1000px 520px at 80% -10%, rgba(225, 2, 2, 0.14), transparent 58%),
    radial-gradient(900px 500px at -10% 8%, rgba(255, 184, 0, 0.08), transparent 58%),
    linear-gradient(180deg, var(--dtw-dark), var(--dtw-dark-2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
a { color: inherit; }
a:hover { color: var(--dtw-gold); }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(225, 2, 2, 0.35); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 900px; }
.section-pad { padding-block: clamp(44px, 7vw, 86px); }
.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; }
.skip-link { position: absolute; left: 16px; top: 10px; z-index: 999; transform: translateY(-150%); padding: 10px 14px; border-radius: 999px; background: var(--dtw-red); color: #fff; font-weight: 800; text-decoration: none; transition: transform var(--speed) var(--ease); }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--dtw-gold); outline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(255, 184, 0, 0.9); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--dtw-border); background: color-mix(in srgb, var(--dtw-dark) 84%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 5px 16px rgba(225, 2, 2, 0.42)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-size: 1.13rem; font-weight: 900; letter-spacing: -0.035em; }
.brand-accent { color: var(--dtw-red); }
.brand-sub { color: var(--dtw-text-muted); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-list, .footer-links { display: flex; align-items: center; gap: 5px; padding: 0; margin: 0; list-style: none; }
.nav-list a { display: inline-flex; padding: 9px 13px; border-radius: 999px; color: var(--dtw-text-muted); font-size: 0.94rem; font-weight: 750; text-decoration: none; transition: color var(--speed), background var(--speed), transform var(--speed); }
.nav-list a:hover { color: var(--dtw-text); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
html[data-theme="light"] .nav-list a:hover { background: rgba(20, 20, 24, 0.06); }
.nav-list a.is-active { color: #fff; background: rgba(225, 2, 2, 0.18); }
html[data-theme="light"] .nav-list a.is-active { color: var(--dtw-red-dark); background: rgba(225, 2, 2, 0.10); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--dtw-border); border-radius: 12px; background: var(--dtw-surface); color: var(--dtw-text); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 999px; background: currentColor; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--dtw-border); border-radius: 999px; background: var(--dtw-surface); color: var(--dtw-text); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform var(--speed), border-color var(--speed), background var(--speed); }
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(255, 184, 0, 0.55); }
.theme-icon { line-height: 1; }

.hero { position: relative; overflow: clip; padding-top: clamp(50px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 8% -10% auto auto; width: 360px; height: 360px; border-radius: 999px; background: radial-gradient(circle, rgba(225, 2, 2, 0.22), transparent 70%); filter: blur(8px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); align-items: center; gap: clamp(24px, 5vw, 58px); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--dtw-gold); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow.small { font-size: 0.74rem; margin-bottom: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 14px; font-size: clamp(2.35rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.07em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.045em; }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.15; letter-spacing: -0.025em; }
h4 { margin-bottom: 10px; font-size: 1rem; }
.hero-subtitle { max-width: 900px; margin-bottom: 16px; color: var(--dtw-text); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 780; }
.hero-text { max-width: 760px; color: var(--dtw-text-muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform var(--speed) var(--ease), box-shadow var(--speed), background var(--speed), border-color var(--speed); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--dtw-red), var(--dtw-red-dark)); box-shadow: 0 12px 28px rgba(225, 2, 2, 0.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(225, 2, 2, 0.38); }
.btn-ghost { border-color: var(--dtw-border-strong); background: rgba(255, 255, 255, 0.03); color: var(--dtw-text); }
html[data-theme="light"] .btn-ghost { background: rgba(20, 20, 24, 0.03); }
.btn-ghost:hover { color: var(--dtw-gold); border-color: rgba(255, 184, 0, 0.7); transform: translateY(-2px); }
.btn-sponsored { border-color: rgba(255, 184, 0, 0.4); color: var(--dtw-gold); background: rgba(255, 184, 0, 0.08); }
.btn-sponsored:hover { color: var(--dtw-dark); background: var(--dtw-gold); transform: translateY(-2px); }
.hero-card { position: relative; padding: 28px; border: 1px solid var(--dtw-border); border-radius: calc(var(--radius) + 8px); background: linear-gradient(180deg, color-mix(in srgb, var(--dtw-surface) 92%, transparent), color-mix(in srgb, var(--dtw-surface-2) 94%, transparent)); box-shadow: var(--shadow-card); overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 180px; height: 180px; border-radius: 999px; background: radial-gradient(circle, rgba(255, 184, 0, 0.17), transparent 70%); }
.pulse-dot { width: 14px; height: 14px; margin-bottom: 18px; border-radius: 50%; background: var(--dtw-success); box-shadow: 0 0 0 8px rgba(38, 208, 124, 0.11), 0 0 30px rgba(38, 208, 124, 0.5); }
.hero-card-kicker { margin-bottom: 12px; color: var(--dtw-text); font-size: 1.05rem; font-weight: 900; }
.feature-list { position: relative; z-index: 1; display: grid; gap: 12px; padding: 0; margin: 0; color: var(--dtw-text-muted); list-style: none; }
.feature-list li { display: flex; gap: 10px; }
.feature-list li::before { content: "✓"; flex: 0 0 auto; color: var(--dtw-gold); font-weight: 900; }

.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading p:not(.eyebrow) { color: var(--dtw-text-muted); }
.card, .rich-card, .cta-card { border: 1px solid var(--dtw-border); border-radius: var(--radius); background: color-mix(in srgb, var(--dtw-surface) 94%, transparent); box-shadow: var(--shadow-card); }
.app-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr); gap: 20px; align-items: stretch; }
.editor-panel, .stats-panel, .limits-card { padding: clamp(18px, 3vw, 26px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-head p { margin-bottom: 0; color: var(--dtw-text-muted); font-size: 0.93rem; }
.panel-head.compact { margin-bottom: 14px; }
.save-state { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--dtw-border); border-radius: 999px; color: var(--dtw-text-muted); background: var(--dtw-surface-2); font-size: 0.78rem; font-weight: 850; }
textarea { width: 100%; min-height: 380px; resize: vertical; padding: 18px; border: 1px solid var(--dtw-border-strong); border-radius: 16px; outline: 0; background: color-mix(in srgb, var(--dtw-dark) 45%, var(--dtw-surface)); color: var(--dtw-text); font-size: 1rem; line-height: 1.7; caret-color: var(--dtw-red); transition: border-color var(--speed), box-shadow var(--speed), background var(--speed); }
textarea::placeholder { color: color-mix(in srgb, var(--dtw-text-muted) 70%, transparent); }
textarea:focus { border-color: var(--dtw-red); box-shadow: var(--shadow-glow); }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tool-btn, .mini-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border: 1px solid var(--dtw-border); border-radius: 12px; background: var(--dtw-surface-2); color: var(--dtw-text); font-weight: 850; cursor: pointer; transition: transform var(--speed), border-color var(--speed), background var(--speed), color var(--speed); }
.tool-btn:hover, .mini-btn:hover { transform: translateY(-1px); border-color: rgba(255, 184, 0, 0.55); color: var(--dtw-gold); }
.tool-btn:active, .mini-btn:active { transform: translateY(0); }
.cleanup-box { margin-top: 18px; padding: 16px; border: 1px solid var(--dtw-border); border-radius: 16px; background: color-mix(in srgb, var(--dtw-surface-2) 85%, transparent); }
.cleanup-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.mini-btn { min-height: 36px; padding: 8px 11px; font-size: 0.88rem; }
.danger-soft { border-color: rgba(255, 92, 92, 0.25); color: #ffb0b0; }
.danger-soft:hover { border-color: rgba(255, 92, 92, 0.65); color: var(--dtw-danger); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { min-width: 0; padding: 14px; border: 1px solid var(--dtw-border); border-radius: 14px; background: linear-gradient(180deg, var(--dtw-surface-2), color-mix(in srgb, var(--dtw-surface-2) 72%, var(--dtw-dark))); }
.stat-card.primary { grid-column: 1 / -1; border-color: rgba(225, 2, 2, 0.32); background: linear-gradient(135deg, rgba(225, 2, 2, 0.18), rgba(255, 184, 0, 0.08)); }
.stat-label { display: block; overflow: hidden; color: var(--dtw-text-muted); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.055em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.stat-value { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--dtw-text); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 950; letter-spacing: -0.045em; line-height: 1.1; }
.stat-card:not(.primary) .stat-value { font-size: clamp(1.08rem, 2vw, 1.48rem); }

.limits-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.limit-list { display: grid; gap: 12px; }
.limit-item { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--dtw-border); border-radius: 14px; background: color-mix(in srgb, var(--dtw-surface-2) 76%, transparent); }
.limit-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.limit-name { font-weight: 900; }
.limit-count { color: var(--dtw-text-muted); font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.progress { overflow: hidden; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--dtw-dark) 55%, var(--dtw-surface-3)); }
.progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--dtw-success); transition: width var(--speed) var(--ease), background var(--speed); }
.limit-item[data-state="near"] .progress > span { background: var(--dtw-warning); }
.limit-item[data-state="over"] .progress > span { background: var(--dtw-danger); }
.limit-note { color: var(--dtw-text-muted); font-size: 0.83rem; }
.limit-status { font-weight: 900; }
.limit-item[data-state="good"] .limit-status { color: var(--dtw-success); }
.limit-item[data-state="near"] .limit-status { color: var(--dtw-warning); }
.limit-item[data-state="over"] .limit-status { color: var(--dtw-danger); }
.sms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sms-metric { padding: 12px; border: 1px solid var(--dtw-border); border-radius: 14px; background: var(--dtw-surface-2); }
.sms-metric span { display: block; color: var(--dtw-text-muted); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.sms-metric strong { display: block; margin-top: 2px; font-size: 1.12rem; line-height: 1.2; }
.hint { margin-top: 12px; color: var(--dtw-text-muted); font-size: 0.9rem; }
.custom-limit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--dtw-border); }
.custom-limit label { display: block; color: var(--dtw-text-muted); font-size: 0.85rem; font-weight: 850; }
.custom-limit input { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--dtw-border-strong); border-radius: 12px; background: var(--dtw-surface-2); color: var(--dtw-text); }
.custom-result { margin-top: 10px; color: var(--dtw-text-muted); font-size: 0.9rem; }

.ad-wrap { display: grid; place-items: center; min-height: 0; margin-top: 24px; padding: 0; border: 0; border-radius: 16px; color: var(--dtw-text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 118px; padding: 12px; border: 1px dashed var(--dtw-border); background: color-mix(in srgb, var(--dtw-surface) 75%, transparent); }
.ad-slot:empty { display: none; }
.ad-slot:not(:empty) { display: block; max-width: 100%; overflow: hidden; margin-top: 8px; }

.content-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 20px; align-items: start; }
.rich-card { padding: clamp(20px, 4vw, 34px); }
.rich-card p, .rich-card li { color: var(--dtw-text-muted); }
.rich-card h3 { margin-top: 24px; }
.steps-list { padding-left: 1.2rem; margin: 0; }
.steps-list li + li { margin-top: 10px; }
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--dtw-border); border-radius: 16px; background: var(--dtw-surface); box-shadow: var(--shadow-soft); }
summary { padding: 17px 20px; font-weight: 900; cursor: pointer; }
summary:hover { color: var(--dtw-gold); }
details p { padding: 0 20px 18px; margin: 0; color: var(--dtw-text-muted); }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.related-card { display: grid; gap: 8px; min-height: 165px; padding: 18px; border: 1px solid var(--dtw-border); border-radius: 18px; background: var(--dtw-surface); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed); }
.related-card:hover { color: var(--dtw-text); transform: translateY(-3px); border-color: rgba(225, 2, 2, 0.4); box-shadow: var(--shadow-glow); }
.related-card span { font-size: 1.8rem; }
.related-card small { color: var(--dtw-text-muted); }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 36px); background: linear-gradient(135deg, rgba(225, 2, 2, 0.18), rgba(255, 184, 0, 0.07)), var(--dtw-surface); }
.cta-card p { max-width: 640px; margin-bottom: 0; color: var(--dtw-text-muted); }
.site-footer { padding-block: 42px 22px; border-top: 1px solid var(--dtw-border); background: color-mix(in srgb, var(--dtw-dark-2) 88%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-grid p { max-width: 560px; margin: 12px 0 0; color: var(--dtw-text-muted); }
.footer-brand { display: inline-flex; }
.footer-links { align-items: flex-end; flex-direction: column; }
.footer-links a { color: var(--dtw-text-muted); font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--dtw-gold); }
.footer-bottom { margin-top: 26px; color: var(--dtw-text-muted); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1060px) {
  .app-layout, .limits-layout, .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card.primary { grid-column: span 2; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 66px; }
  .nav-toggle { display: inline-block; order: 3; }
  .theme-toggle { margin-left: auto; }
  .primary-nav { position: fixed; inset: 66px 14px auto 14px; z-index: 101; display: none; padding: 12px; border: 1px solid var(--dtw-border); border-radius: 18px; background: var(--dtw-surface); box-shadow: var(--shadow-card); }
  body.nav-open .primary-nav { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; }
  .nav-list a { justify-content: center; padding: 12px 14px; }
  .theme-label { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  textarea { min-height: 310px; }
  .footer-grid, .cta-card { grid-template-columns: 1fr; display: grid; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { padding-inline: 16px; }
  .section-pad { padding-block: 42px; }
  .hero-actions, .toolbar, .cleanup-grid { align-items: stretch; flex-direction: column; }
  .btn, .tool-btn, .mini-btn { width: 100%; }
  .stats-grid, .related-grid { grid-template-columns: 1fr; }
  .stat-card.primary { grid-column: auto; }
  .panel-head { flex-direction: column; }
  .sms-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.3rem, 15vw, 3.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .site-header { background: rgba(7, 7, 8, 0.92); }
  .card, .rich-card, .cta-card, .hero-card { background: var(--dtw-surface); }
  textarea { background: var(--dtw-surface-2); }
}

@supports not selector(:has(*)) {
  .ad-wrap { min-height: 0; }
}

/* SEO breadcrumb */
.breadcrumb { margin-bottom: 16px; color: var(--dtw-text-muted); font-size: 0.88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: color-mix(in srgb, var(--dtw-text-muted) 55%, transparent); }
.breadcrumb a { color: var(--dtw-text-muted); font-weight: 800; text-decoration: none; }
.breadcrumb a:hover { color: var(--dtw-gold); }

/* -----------------------------------------------------------------------------
   Responsive 728x90 ad protection
   The Adsterra 728x90 creative is fixed-width. These rules scale the rendered
   banner down on smaller screens so it stays fully visible and never breaks the
   mobile layout. Ads are still loaded only by the existing ads loader/config.
   ----------------------------------------------------------------------------- */
.ad-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ad-wrap:has(.ad-728-slot:not(:empty)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}

.ad-728-slot:not(:empty) {
  width: 728px;
  max-width: none;
  min-height: 90px;
  margin-inline: auto;
  overflow: visible;
  transform: scale(1);
  transform-origin: top center;
}

.ad-728-slot:not(:empty) iframe,
.ad-728-slot:not(:empty) ins,
.ad-728-slot:not(:empty) object,
.ad-728-slot:not(:empty) embed {
  max-width: none !important;
}

@media (max-width: 780px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 112px; }
  .ad-728-slot:not(:empty) { transform: scale(0.92); }
}

@media (max-width: 720px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 105px; }
  .ad-728-slot:not(:empty) { transform: scale(0.84); }
}

@media (max-width: 660px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 98px; }
  .ad-728-slot:not(:empty) { transform: scale(0.76); }
}

@media (max-width: 600px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 90px; }
  .ad-728-slot:not(:empty) { transform: scale(0.68); }
}

@media (max-width: 540px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 83px; }
  .ad-728-slot:not(:empty) { transform: scale(0.60); }
}

@media (max-width: 480px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 76px; }
  .ad-728-slot:not(:empty) { transform: scale(0.53); }
}

@media (max-width: 420px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 70px; }
  .ad-728-slot:not(:empty) { transform: scale(0.47); }
}

@media (max-width: 370px) {
  .ad-wrap:has(.ad-728-slot:not(:empty)) { min-height: 66px; }
  .ad-728-slot:not(:empty) { transform: scale(0.42); }
}
