/* Minimal overrides for markdown-like content rendered inside Ashley theme. */

.mil-markdown p {
  margin: 0 0 20px;
}

.mil-markdown p:last-child {
  margin-bottom: 0;
}

.mil-markdown ul {
  margin: 0 0 20px;
  padding-left: 18px;
  list-style: disc;
}

.mil-markdown li {
  margin: 0 0 10px;
}

.mil-markdown li:last-child {
  margin-bottom: 0;
}

.mil-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 0 0.35em;
  border-radius: 0.35em;
  background: rgba(0, 0, 0, 0.06);
}

/* Footer logo sizing */
.hadox-footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hadox-footer-logo img {
  height: 40px !important;
  width: auto !important;
  max-width: 260px !important;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hadox-footer-logo img {
    height: 34px !important;
  }
}

/* Text-only cards for research/platform showcase */
.hadox-showcase-card {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 18px;
  padding: 36px 22px;
  margin-bottom: 30px;
}

.hadox-showcase-card:before {
  border-radius: 18px;
}

/* Home: replace stock/AI photos with geometric Ashley-like art */
.hadox-about-art {
  height: 0;
  padding-bottom: 160%;
  border-radius: 24px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(0, 0, 0, 0.08), transparent 55%),
    radial-gradient(900px 500px at 70% 45%, rgba(255, 122, 0, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.015));
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.hadox-about-art:before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.06) 0px,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px,
      transparent 22px
    );
  transform: rotate(8deg);
  opacity: 0.30;
}

.hadox-about-art:after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  opacity: 0.7;
}

/* Contact forms (Ashley-compatible, minimal) */
.hadox-contact-form input,
.hadox-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hadox-contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.hadox-contact-form input:focus,
.hadox-contact-form textarea:focus {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 255, 255, 1);
}

.hadox-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.72);
}

.hadox-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.hadox-form-alert {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.hadox-form-alert--ok {
  background: rgba(0, 0, 0, 0.03);
}

.hadox-form-alert--err {
  background: rgba(255, 0, 0, 0.06);
  border-color: rgba(255, 0, 0, 0.15);
}

/* Case study: chips, tabs, KPI, and modal */
.hadox-client-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hadox-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.72);
}

.hadox-chip a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hadox-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hadox-chip--active {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.10);
}

.hadox-chip__count {
  opacity: 0.65;
  font-size: 12px;
  margin-left: 6px;
}

.hadox-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hadox-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.78);
}

.hadox-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: rgb(255, 122, 0);
}

.hadox-article h2,
.hadox-article h3,
.hadox-article h4 {
  margin-top: 26px;
}

.hadox-article p {
  margin-top: 10px;
}

.hadox-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hadox-tab-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.78);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hadox-tab-btn.is-active {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.10);
}

.hadox-tab-panel {
  display: none;
}

.hadox-tab-panel.is-active {
  display: block;
}

.hadox-proof-sheet {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

.hadox-proof-sheet img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.hadox-proof-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(246, 245, 242, 0.82);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.hadox-proof-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 122, 0, 0.10);
  color: rgba(0, 0, 0, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.hadox-kpi {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hadox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hadox-modal[aria-hidden="true"] {
  display: none;
}

.hadox-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hadox-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: #f6f5f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 26px 22px;
}

.hadox-modal__dialog h3 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.15;
}

.hadox-modal__dialog p {
  font-size: 14px;
  line-height: 1.55;
}

.hadox-modal__dialog .mil-mb-30 {
  margin-bottom: 18px !important;
}

.hadox-modal__dialog .mil-mb-15 {
  margin-bottom: 10px !important;
}

.hadox-modal__dialog label.hadox-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.72);
}

.hadox-modal__dialog input,
.hadox-modal__dialog textarea,
.hadox-modal__dialog select {
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.hadox-modal__dialog textarea {
  min-height: 110px;
  resize: vertical;
}

.hadox-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

html.hadox-modal-open,
html.hadox-modal-open body {
  overflow: hidden;
}

/* Home hero: large brand mark on the right (desktop) */
.mil-banner {
  position: relative;
  overflow: hidden;
}

.mil-banner .hadox-hero-logo {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 38vw);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 30px 90px rgba(0, 0, 0, 0.55));
}

.mil-banner .hadox-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.mil-banner .mil-banner-content {
  z-index: 2;
}

@media (max-width: 1200px) {
  .mil-banner .hadox-hero-logo {
    right: 5vw;
    width: min(440px, 44vw);
    opacity: 0.75;
  }
}

@media (max-width: 992px) {
  .mil-banner .hadox-hero-logo {
    display: none;
  }
}
