/* dynorexal.com — console toolbench (cool gray / green) */
:root {
  --bg: #e8edeb;
  --panel: #f4f7f5;
  --ink: #1a2420;
  --muted: #5a6b63;
  --line: #9aada3;
  --line-hard: #3d5248;
  --accent: #1f7a4d;
  --accent-soft: #d4e8dc;
  --chip: #cfe0d6;
  --warn: #8a5a12;
  --max: 1040px;
  --radius: 3px;
  --font: "IBM Plex Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
  --soft: var(--panel);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #dfe8e3 0%, var(--bg) 180px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(61, 82, 72, 0.04) 23px,
      rgba(61, 82, 72, 0.04) 24px
    );
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #145c38;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* —— console-top —— */
.console-top {
  border-bottom: 2px solid var(--line-hard);
  background: #f0f5f2;
  position: sticky;
  top: 0;
  z-index: 40;
}

.console-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.nav-desktop {
  display: none;
  margin-left: auto;
  gap: 0.85rem;
  font-size: 0.92rem;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav-desktop a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  margin-left: auto;
  border: 1px solid var(--line-hard);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--accent-soft);
}

.console-tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.55rem;
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.fake-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-hard);
  background: #fff;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius);
  color: var(--muted);
  min-width: min(100%, 220px);
  user-select: none;
}

.fake-search .prompt {
  color: var(--accent);
  font-weight: 700;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-chips a {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
}

.tool-chips a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

#mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  background: #eaf1ed;
  padding: 0.35rem 0.85rem 0.65rem;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

#mobile-nav a:last-child {
  border-bottom: 0;
}

/* —— ads —— */
.ads-slot {
  max-width: var(--max);
  margin: 0.75rem auto 0;
  padding: 0 0.75rem;
}

.ads-slot .ads-wrap {
  border-radius: var(--radius) !important;
  border-color: var(--line) !important;
  background: var(--panel) !important;
}

/* —— panels —— */
.console-panels {
  width: min(100% - 1.5rem, var(--max));
  margin: 0.85rem auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.panel {
  border: 2px solid var(--line-hard);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: 3px 3px 0 rgba(61, 82, 72, 0.12);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.panel-head .status {
  color: var(--accent);
  font-weight: 700;
}

.panel h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.panel h2 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.15rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.55rem;
}

.panel h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.02rem;
}

.panel p {
  margin: 0 0 0.75rem;
}

.panel .lead {
  font-size: 1.02rem;
  color: #24332c;
}

.meta-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.shot-grid figure {
  margin: 0;
  border: 1px solid var(--line-hard);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-grid figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #eef3f0;
}

.check-list {
  list-style: none;
  margin: 0.5rem 0 0.85rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  border-bottom: 1px dashed var(--line);
}

.check-list li::before {
  content: "▸";
  position: absolute;
  left: 0.15rem;
  color: var(--accent);
  font-family: var(--mono);
}

.peer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.peer-links a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-hard);
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.peer-links a:hover {
  background: #b8d4c4;
}

.faq details {
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 0.45rem;
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 0.45rem 0 0.2rem;
  color: #2c3a34;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--line-hard);
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn:hover {
  background: #145c38;
}

.btn.ghost {
  background: var(--panel);
  color: var(--ink) !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.err-box {
  border: 2px solid var(--line-hard);
  background: var(--panel);
  padding: 1.5rem 1.2rem;
  margin: 1.5rem auto;
  max-width: var(--max);
  width: min(100% - 1.5rem, var(--max));
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(61, 82, 72, 0.12);
}

.err-box h1 {
  margin-top: 0;
}

.page-main {
  width: min(100% - 1.5rem, var(--max));
  margin: 0.85rem auto 2.5rem;
}

.page-main .panel h1 {
  font-size: 1.45rem;
}

.site-footer {
  border-top: 2px solid var(--line-hard);
  background: #e2ebe6;
  padding: 1.4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.1rem;
}

.site-footer h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-family: var(--mono);
  color: var(--accent);
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

@media (min-width: 760px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  #mobile-nav,
  #mobile-nav.open {
    display: none;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .panel {
    padding: 1.15rem 1.35rem 1.35rem;
  }
}

/* SEO keyword highlight */
strong.kw, .kw{color:var(--accent,#c45c26);font-weight:700}
mark.kw{background:rgba(196,92,38,.12);color:inherit;padding:0 .15em;border-radius:3px}

/* --- full image display (no crop) --- */
/* Content screenshots: show full image, no crop */
main img:not(#ads img):not(.brand img),
.bento-tile img,
.bento-tiles img,
.bento-grid img,
.bento-tile-tall img,
.bento-mosaic img,
.bento-pair img,
.bento-hot img,
figure img,
.cine-frame img,
.cine-frame .cine-shot,
.cine-shot,
.tl-item img,
.tl-media img,
.folio-reader img,
.folio-figure img,
.console-panels img,
.zig-section img,
.cascade-hero img,
.shot-row img,
.shot-card img,
.shot-grid img,
.shot img,
.featured img,
.mag-shot img,
.rail-main img,
.band-media img,
.sidebar-main img,
.mod-card img,
.stack-figure img,
.stack-fig img,
.split-hero img,
.split-media img,
.split-visual img,
.compare-card img,
.prose img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  display: block;
  background: #f0f0f0;
}
.cine-frame,
.split-visual,
.bento-tile-tall,
.bento-tile,
.bento-tiles figure,
.tl-media,
.tl-item figure,
.folio-figure,
.shot-row figure,
.shot-card,
.shot-grid figure,
.featured figure,
.zig-section figure,
.console-panels figure,
.folio-reader figure,
.band-media,
.split-media,
.stack-figure,
.stack-fig,
.mod-card,
.compare-card {
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
}
.cine-frame {
  display: block !important;
  position: relative !important;
}
.cine-frame::after,
.split-visual::after {
  display: none !important; /* gradient overlay was hiding lower part of screenshots */
}
.cine-band {
  position: relative !important;
  background: rgba(8, 9, 13, 0.92);
}
/* keep ad icons + logo square */
#ads img {
  width: 65px !important;
  height: 65px !important;
  max-width: 65px !important;
  max-height: 65px !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  position: static !important;
}
.brand img {
  width: 36px !important;
  height: 36px !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
}
/* --- end full image display --- */
