/* My Dog Arena — standalone base (no parent theme) */

:root {
  --primary: #D97706;
  --secondary: #1E293B;
  --tertiary: #F59E0B;
  --neutral: #64748B;
  --surface: #F8FAFC;
  --surface-2: #EEF2F6;
  --ink: #0F172A;
  --white: #FFFFFF;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.mda-page {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--surface);
  overflow-x: clip;
}

/* Breadcrumb (shared) */
.mda-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 0.85rem;
}

.mda-breadcrumb a {
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
}

.mda-breadcrumb a:hover {
  color: var(--primary);
}

/* Generic CMS content (page.php / index.php) */
.mda-content {
  padding: 1.5rem 0 4rem;
}

.mda-content__inner {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.mda-content__head {
  margin-bottom: 1.25rem;
}

.mda-content__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--secondary);
  margin: 0;
  line-height: 1.15;
}

.mda-content__title a {
  color: inherit;
  text-decoration: none;
}

.mda-content__title a:hover {
  color: var(--primary);
}

.mda-content__article {
  background: #fff;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.mda-content__body > *:first-child {
  margin-top: 0;
}

.mda-content__body > *:last-child {
  margin-bottom: 0;
}

.mda-content__body h2,
.mda-content__body h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--secondary);
  line-height: 1.25;
}

.mda-content__body h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.65rem;
}

.mda-content__body h3 {
  font-size: 1.1rem;
  margin: 1.35rem 0 0.5rem;
}

.mda-content__body p,
.mda-content__body li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #475569;
}

.mda-content__body p {
  margin: 0 0 1rem;
}

.mda-content__body ul,
.mda-content__body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.mda-content__body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mda-content__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-weight: 700;
  color: var(--secondary) !important;
  text-decoration: none !important;
}

.mda-content__more:hover {
  color: var(--primary) !important;
}

.navigation.pagination {
  margin-top: 1.5rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--secondary);
}

.navigation.pagination .current {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* Footer — all views (was front-only) */
.mda-footer {
  background: #0F172A !important;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 3rem 0 1.75rem;
  font-size: 0.9rem;
}

.mda-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.mda-footer .brand__name {
  color: #FFFFFF !important;
}

.mda-footer .brand__tag {
  color: rgba(255, 255, 255, 0.5) !important;
}

.mda-footer__about {
  margin-top: 1rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.68) !important;
  line-height: 1.6;
}

.mda-footer h4 {
  color: #FFFFFF !important;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem !important;
  font-weight: 700 !important;
}

.mda-footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.mda-footer li,
.mda-footer p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.mda-footer a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
}

.mda-footer a:hover {
  color: #F59E0B !important;
}

.mda-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.mda-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5) !important;
}

.mda-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.mda-footer__legal a {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600;
}

.mda-footer__legal a:hover {
  color: #F59E0B !important;
}

@media (max-width: 900px) {
  .mda-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mda-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav for any MDA view */
@media (max-width: 720px) {
  body.mda-site .nav-toggle {
    display: grid;
  }

  body.mda-site .nav {
    display: none;
  }

  body.mda-site .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
    z-index: 70;
    gap: 0.85rem;
  }

  body.mda-site .site-header {
    position: sticky;
  }

  body.mda-site .site-header__inner {
    position: relative;
  }
}
