/*
Theme Name: Porter County Martial Arts
Theme URI: https://portercountymartialarts.com
Description: Child theme of Twenty Twenty-Five for Porter County Martial Arts. Includes the Amazon tracking ID setting, one-click setup and 301 redirect tool.
Author: Porter County Martial Arts Editorial Team
Template: twentytwentyfive
Version: 1.0.0
Text Domain: pcma
*/

:root {
  --pcma-ink: #1d1f24;
  --pcma-red: #9e1b24;
  --pcma-cream: #f7f3ea;
  --pcma-line: #e4e1da;
  --pcma-muted: #4a4e57;
}

body {
  background: var(--pcma-cream);
}

a {
  color: var(--pcma-red);
}

/* Header and footer */
.dx-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--pcma-line);
}

.dx-footer {
  padding: 36px 24px;
  border-top: 1px solid var(--pcma-line);
  font-size: 14px;
  color: var(--pcma-muted);
}

/* Hero */
.dx-hero {
  padding: 48px 0 12px;
}

.dx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.dx-hero p {
  font-size: 1.15rem;
  color: var(--pcma-muted);
  max-width: 44rem;
}

/* Card grid */
.dx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.dx-card {
  background: #fff;
  border: 1px solid var(--pcma-line);
  border-radius: 16px;
  padding: 22px;
}

.dx-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.dx-card p {
  margin: 0 0 10px;
}

/* Buttons */
.dx-btn {
  display: inline-block;
  background: var(--pcma-red);
  color: #fff !important;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.dx-btn-alt {
  background: transparent;
  color: var(--pcma-red) !important;
  border: 2px solid var(--pcma-red);
}

.dx-btn-wrap {
  margin: 14px 0;
}

/* Check lists */
.dx-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.dx-checks li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--pcma-line);
}

.dx-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pcma-red);
}

/* Affiliate disclosure box */
.dx-disclose {
  font-size: 14px;
  background: #fff;
  border-left: 4px solid var(--pcma-red);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 24px;
  color: var(--pcma-muted);
}

/* Featured image fix: keep natural 3:2 proportions instead of cropping */
.single .wp-block-post-featured-image {
  max-width: 680px;
  margin: 0 auto 28px;
}

.single .wp-block-post-featured-image img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  width: 100%;
}

.wp-block-post-featured-image img {
  border-radius: 14px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--pcma-line);
  padding: 10px;
  text-align: left;
}

/* Small screens */
@media (max-width: 600px) {
  .dx-hero {
    padding-top: 28px;
  }

  .dx-card {
    padding: 18px;
  }
}

/* Long URLs and emails must not force horizontal scroll on phones */
.entry-content,
.wp-block-post-content {
  overflow-wrap: anywhere;
}
