/*
Theme Name: Daymuse
Theme URI: https://www.daymuse.com/
Author: Hiro (for Daymuse)
Description: Custom WordPress theme recreating the Daymuse Drupal 7 design at 80-90% fidelity. Based on the 2026-10-09 theme survey.
Version: 1.0.45
License: GNU General Public License v2 or later
Text Domain: daymuse
*/

/* ============ Design tokens ============ */
:root {
  --dm-coral: #F2836B;
  --dm-coral-hover: #f3846b;
  --dm-text: #635656;
  --dm-teal-h1: #63A69F;
  --dm-teal-h2: #59958F;
  --dm-teal-h3: #4F857F;
  --dm-link: #CD2C24;
  --dm-link-hover: #F2836B;
  --dm-body-link: #B82820;
  --dm-tan: #DACA9B;
  --dm-meta: #C2B48A;
  --dm-cta: #A4231D;
  --dm-cta-hover: #D75650;
  --dm-cta-text: #faffff;
  --dm-quote: #F2E1AC;
  --dm-cream: #fcf9ee;
  --dm-breadcrumb: #f7f7f7;
  --dm-tag-bg: #f5f5f5;
  --dm-rule: #eeeeee;
  --dm-font-head: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  --dm-font-body: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  --dm-max-width: 72em;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--dm-font-body);
  font-size: 1.35em;
  line-height: 1.65;
  color: var(--dm-text);
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.site-nav, .dm-button, button, .dm-label {
  font-family: var(--dm-font-head);
}
h1 { font-size: 2.0em; color: var(--dm-teal-h1); text-align: center; font-weight: 500; }
h2 { font-size: 1.75em; color: var(--dm-teal-h2); font-weight: 500; }
h3 { font-size: 1.35em; color: var(--dm-teal-h3); font-weight: 500; }
h4 { font-size: 1.5em; color: var(--dm-teal-h3); font-weight: 500; }
h5 { font-size: 1.4em; color: var(--dm-teal-h3); }
a { color: var(--dm-link); }
a:hover { color: var(--dm-link-hover); }
.entry-content a { color: var(--dm-body-link); text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }
.entry-content p { text-indent: 0; }
hr, .dm-hr {
  border: 0;
  border-top: 2px dashed var(--dm-tan);
  margin: 2em 0;
}
blockquote {
  position: relative;
  font-style: italic;
  padding: 0 2em;
  margin: 2em 0;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.4em;
  font-size: 4em;
  color: var(--dm-quote);
  font-family: var(--dm-font-head);
}
img { max-width: 100%; height: auto; }

/* ============ Layout ============ */
.dm-container {
  max-width: var(--dm-max-width);
  margin: 0 auto;
  padding: 0 1.5em;
}
.dm-main { background: #fff; padding: 2em 0 4em; }
body.home .dm-main { background: #fff; padding: 0; }

/* ============ Header ============ */
.site-header {
  background: #f9f9f9;
  box-shadow: 0 0 20px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .dm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 70em;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 32px; width: auto; max-width: none; display: block; }
/* Hamburger toggle - hidden on desktop */
.dm-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  flex-shrink: 0;
}
.dm-menu-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dm-link);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6em;
}
.site-nav a {
  font-family: var(--dm-font-head);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--dm-link);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--dm-coral-hover); }
.site-nav .current-menu-item a,
.site-nav .current-page-ancestor a { border-bottom-color: var(--dm-link); }

/* ============ Buttons ============ */
.dm-button, .wp-block-button__link {
  display: inline-block;
  background: var(--dm-cta);
  color: var(--dm-cta-text) !important;
  font-family: var(--dm-font-head);
  font-weight: 600;
  padding: 0.8em 1.8em;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.dm-button:hover, .wp-block-button__link:hover {
  background: var(--dm-cta-hover);
  color: var(--dm-cta-text) !important;
}
.dm-pill {
  display: inline-block;
  background: rgba(0,0,0,.65);
  color: #fff !important;
  border-radius: 14px;
  padding: 0.5em 1.4em;
  font-family: var(--dm-font-head);
  text-decoration: none !important;
}
.dm-pill::after { content: " \2192"; }

/* ============ Breadcrumb ============ */
.dm-breadcrumb {
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  font-family: var(--dm-font-head);
  font-size: 0.75em;
  padding: 0.6em 0;
  color: #999;
}
.dm-breadcrumb-inner {
  max-width: var(--dm-max-width);
  margin: 0 auto;
  padding: 0 1.5em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-breadcrumb a { color: var(--dm-coral-hover); text-decoration: none; }

/* ============ Footer ============ */
.site-footer {
  background: var(--dm-coral);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  padding: 2.5em 0 1.5em;
}
.site-footer .dm-container { max-width: 70em; }
.dm-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 1.5em;
}
.dm-social { display: flex; gap: 0.7em; margin-top: 1em; align-items: center; }
.dm-social a.dm-logo-link {
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.dm-social a.dm-logo-link img { display: block; }
.dm-social a:not(.dm-logo-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--dm-link);
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1em;
}
.dm-nap { text-align: right; font-family: var(--dm-font-head); font-size: 0.95em; }
.dm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.35);
  padding-top: 1em;
  display: flex;
  justify-content: space-between;
  font-family: var(--dm-font-head);
  font-size: 0.85em;
}
.dm-footer-bottom a { color: var(--dm-link); }
.dm-footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2em;
}
.dm-footer-bottom ul li { display: inline; margin: 0; }

/* ============ Blog / archive ============ */
.dm-post-row {
  display: flex;
  gap: 1.5em;
  padding: 1.5em 0;
  border-bottom: 2px dashed var(--dm-tan);
}
.dm-post-row .dm-thumb { flex: 0 0 200px; }
.dm-post-meta { color: var(--dm-meta); font-style: italic; font-size: 0.9em; }
.dm-tags { margin: 2em 0; text-align: center; }
.dm-tags a {
  display: inline-block;
  background: var(--dm-tag-bg);
  border: 1px solid var(--dm-rule);
  border-radius: 3px;
  padding: 0.25em 0.8em;
  margin: 0.2em;
  font-family: var(--dm-font-head);
  font-size: 0.8em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dm-text);
}
.dm-byline {
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--dm-rule);
  border-bottom: 1px solid var(--dm-rule);
  padding: 1em 0;
  margin: 2em 0;
}
.dm-byline img.avatar { border-radius: 50%; vertical-align: middle; }

/* ============ Project single ============ */
.dm-project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
  gap: 1em;
  margin: 2em 0;
}
.dm-project-meta .dm-meta-item { font-family: var(--dm-font-head); }
.dm-project-meta .dm-meta-label {
  font-weight: 600;
  color: var(--dm-teal-h3);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

/* ============ Contact form ============ */
.dm-contact-grid { display: grid; gap: 2em; }
.wpforms-container label,
.dm-label {
  font-family: var(--dm-font-head) !important;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}
.wpforms-container .wpforms-required-label { color: var(--dm-link) !important; }
.wpforms-container fieldset { border-top: 2px dashed var(--dm-tan); }

/* ============ Author archive ============ */
.dm-author-header {
  display: flex; gap: 1.5em; align-items: center;
  margin: 2em 0; padding: 1.5em;
  background: #f9f9f9; border-radius: 8px;
}
.dm-author-header img { border-radius: 50%; }
.dm-author-header h1 { margin: 0 0 0.5em; }
.dm-author-bio { color: #666; margin: 0; }

/* ============ Homepage ============ */
.dm-hero { text-align: center; padding: 4em 0; background: #fff; }
.dm-hero h1 { font-size: 2.1em; margin-bottom: 0.5em; font-weight: 500; }
.dm-hero h1 a { color: var(--dm-link); text-decoration: none; }
.dm-hero-sub { font-size: 1.2em; max-width: 700px; margin: 0 auto 1.5em; }
.dm-hero-img, .dm-section-img { max-width: 100%; height: auto; margin: 2em auto; display: block; }
.dm-hero h2 { font-size: 1.5em; margin: 1.5em 0 0.5em; color: #4F857F; font-weight: 500; }
.dm-cta-button {
  display: inline-block;
  background: #A4231D;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 0.9em 2em;
  border-radius: 4px;
  text-decoration: none !important;
  font-family: var(--dm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}
.dm-cta-button:hover { background: #D75650; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.dm-hero-tagline { font-size: 0.85em; color: #777; margin-top: 1em; font-style: italic; }
.dm-stats-band { text-align: center; padding: 2em 0; background: #f9f9f9; }
.dm-stats-band h3 { font-size: 1.3em; color: #666; }
.dm-home-blog {
  padding: 4em 0;
  background: url('https://dev.daymuse.com/wp-content/uploads/2026/10/bg-blog.jpg') center/cover;
  color: #fff;
}
.dm-home-blog h1 { text-align: center; }
.dm-home-blog h1 { text-align: center; margin-bottom: 0.25em; }
.dm-home-blog h1 a { color: #fff; }
.dm-section-sub { text-align: center; color: #ddd; font-size: 1.1em; margin-top: 0; font-style: italic; }
.dm-blog-featured { margin: 2em auto 3em; max-width: 800px; }
.dm-featured-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.95); border-radius: 8px; overflow: hidden; color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dm-featured-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); transform: translateY(-2px); }
.dm-featured-card:hover .dm-featured-summary { color: #333; }
.dm-featured-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.dm-featured-text { padding: 1.5em 2em; }
.dm-featured-text h3 { margin-top: 0; margin-bottom: 0.3em; font-size: 1.4em; font-weight: 500; color: var(--dm-link); }
.dm-featured-text .dm-post-date { color: #777; font-size: 0.85em; margin: 0 0 0.8em; }
.dm-featured-text .dm-post-date .fa { margin-right: 0.3em; }
.dm-featured-summary { color: #333; }
.dm-blog-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin: 2em 0;
}
.dm-blog-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.95); border-radius: 8px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease; color: #333;
}
.dm-blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); transform: translateY(-2px); }
.dm-blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.dm-blog-card h4 { padding: 0.8em 1em 0; margin: 0 0 0.2em; font-size: 0.9em; font-weight: 500; line-height: 1.3; color: var(--dm-link); }
.dm-blog-card .dm-post-date { padding: 0 1em 1em; margin: 0; font-size: 0.75em; color: #777; }
.dm-blog-card .dm-post-date .fa { margin-right: 0.3em; }
@media (max-width: 900px) {
  .dm-featured-card { grid-template-columns: 1fr; }
  .dm-blog-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dm-blog-cards { grid-template-columns: 1fr; }
}
.dm-cta-center { text-align: center; margin: 2em 0; }
.dm-get-started { background: #f5f5f5; padding: 4em 0; }
.dm-get-started h1 { text-align: center; margin-bottom: 1em; }
.rtecenter { text-align: center; }
.rteright { text-align: right; }
.dm-get-started .rtecenter img { margin: 3em auto; display: block; }
/* Center inline images in page content */
.page .entry-content img, .single .entry-content img {
  display: block; margin-left: auto; margin-right: auto;
}
/* Social media icons - clean FA rendering */
.social-links { text-align: center; }
.dm-social-icon {
  display: inline-block; width: 2.8em; height: 2.8em; border-radius: 50%;
  background: #A4231D; color: #fff !important;
  text-decoration: none !important; margin: 0 0.35em;
  font-size: 1.1em; transition: background 0.3s ease;
  vertical-align: middle; text-align: center; line-height: 2.8em;
  padding: 0 !important; border: none;
}
.dm-social-icon:hover { background: #D75650; color: #fff !important; }
.dm-social-icon .fa { vertical-align: middle; line-height: inherit; }
/* Fix WPForms button size */
.wpforms-container .wpforms-submit-container { text-align: center; }
.wpforms-container button[type="submit"], .wpforms-container .wpforms-submit {
  font-size: 1em !important; line-height: 1.4 !important;
  min-height: 3em;
}
/* WPForms submit button - match site red buttons */
.wpforms-container button[type="submit"], .wpforms-container .wpforms-submit {
  background: #A4231D !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 0.9em 2em !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--dm-font-head) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1em !important;
}
.wpforms-container button[type="submit"]:hover, .wpforms-container .wpforms-submit:hover {
  background: #D75650 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
/* WPForms section headers */
.wpforms-container .wpforms-section-title,
.wpforms-field-html h3.wpforms-section-title {
  font-size: 1.4em !important; color: #4F857F !important; font-weight: 600 !important;
  margin: 2em 0 0.3em !important; padding-top: 1.5em !important;
  border-top: 2px solid #4F857F !important; font-family: var(--dm-font-head);
}
.wpforms-container .wpforms-section-desc,
.wpforms-field-html p.wpforms-section-desc {
  color: #666 !important; font-size: 0.95em !important; margin: 0 0 1.5em !important;
  font-style: italic;
}
/* Date picker for launch date field */
.wpforms-field-launch-date input[type="date"] {
  cursor: pointer; line-height: 1.5 !important; padding: 0.5em !important;
  height: auto !important; min-height: 2.8em;
}
/* Hire form section headers via CSS (WPForms Lite doesn't render HTML fields) */
#wpforms-261-field_1-container::before {
  content: "Who are you?"; display: block;
  font-size: 1.4em; color: #4F857F; font-weight: 600; font-family: var(--dm-font-head);
  margin: 0 0 1.5em; padding-top: 0.8em; border-top: 2px solid #4F857F;
}
#wpforms-261-field_5-container::before {
  content: "Timeline"; display: block;
  font-size: 1.4em; color: #4F857F; font-weight: 600; font-family: var(--dm-font-head);
  margin: 1em 0 1.5em; padding-top: 0.8em; border-top: 2px solid #4F857F;
}
#wpforms-261-field_8-container::before {
  content: "Background information"; display: block;
  font-size: 1.4em; color: #4F857F; font-weight: 600; font-family: var(--dm-font-head);
  margin: 1em 0 1.5em; padding-top: 0.8em; border-top: 2px solid #4F857F;
}
#wpforms-261-field_15-container::before {
  content: "Project information"; display: block;
  font-size: 1.4em; color: #4F857F; font-weight: 600; font-family: var(--dm-font-head);
  margin: 1em 0 1.5em; padding-top: 0.8em; border-top: 2px solid #4F857F;
}
.dm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; margin: 2em 0; }
.dm-cta-link { color: var(--dm-coral); font-weight: bold; }
.dm-faq { max-width: 800px; margin: 2em auto; }
.dm-faq-item { border-bottom: 1px solid #ddd; }
.dm-faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1em 0; font-size: 1.1em; font-family: var(--dm-font-head);
  cursor: pointer; color: var(--dm-coral);
}
.dm-faq-answer { display: none; padding: 0 0 1em; }
.dm-faq-item.open .dm-faq-answer { display: block; }
.dm-clients-band { text-align: center; padding: 4em 0; background: #fff; }
@media (max-width: 768px) {
  .dm-two-col { grid-template-columns: 1fr; }
}

/* ============ Bylines ============ */
.dm-byline {
  text-align: center;
  margin: 2em 0;
  font-family: var(--dm-font-head);
}
.dm-byline-text { display: inline; }
.dm-byline-author { font-weight: bold; }
.dm-byline-author a { color: var(--dm-coral); text-decoration: none; }
.dm-byline-dates { color: #666; }
.dm-byline-dates::before { content: " — "; }

/* ============ Project meta ============ */
.dm-project-hero, .dm-featured { text-align: center; margin: 1.5em 0; }
.dm-project-hero img, .dm-featured img { display: inline-block; max-width: 100%; height: auto; }
.dm-project-meta {
  display: block !important;
  margin: 2em 0;
}
.dm-meta-row {
  display: grid !important;
  width: 100% !important;
  clear: both !important;
  gap: 1.5em;
  margin-bottom: 1.5em;
}
.dm-meta-row-2col { grid-template-columns: 1fr 1fr !important; }
.dm-meta-row-3col { grid-template-columns: 1fr 1fr 1fr !important; }
.dm-meta-item { font-size: 0.9em; }
.dm-meta-label { font-weight: bold; font-family: var(--dm-font-head); display: block; margin-bottom: 0.5em; }
.dm-meta-label .fa { margin-right: 0.4em; color: var(--dm-coral); }
.dm-meta-list { list-style: none; margin: 0; padding: 0; }
.dm-meta-list li { margin: 0.3em 0; }
.dm-meta-list .fa { margin-right: 0.5em; width: 1.2em; }
.dm-icon-green { color: #28a745 !important; }
.dm-meta-list .fa-code { color: #0366d6; }
.dm-meta-list .fa-laptop { color: #6c757d; }
@media (max-width: 600px) {
  .dm-meta-row-2col, .dm-meta-row-3col { grid-template-columns: 1fr; }
}

/* ============ Code blocks ============ */
pre, .codeblock {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85em;
  line-height: 1.5;
  padding: 1.2em 1.5em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #333;
}
pre code, .codeblock code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
/* Inline code */
p code, li code, td code {
  background: #f0ebe0;
  color: #8B1A1A;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ============ Unified listing (cards) ============ */
.dm-listing-header { text-align: center; margin-bottom: 2em; }
.dm-listing-header .page-title { margin-bottom: 0.4em; }
.dm-listing-desc { max-width: 640px; margin: 0 auto 1.5em; color: #555; }
/* Wider content area for listings */
.dm-container:has(.dm-card-grid) { max-width: 1200px; padding-left: 2em; padding-right: 2em; }
.dm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin-bottom: 2.5em;
}
.dm-card {
  background: #fff;
  border: 1px solid #e8e0cc;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.dm-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: translateY(-2px); }
.dm-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.dm-card-body { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; flex: 1; }
.dm-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f5f0e1;
  border-radius: 3px;
  padding: 0.25em 0.7em;
  font-size: 0.78em;
  font-family: var(--dm-font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6f52;
  margin-bottom: 0.7em;
}
.dm-card-title { margin: 0 0 0.5em; font-size: 1.15em; line-height: 1.3; }
.dm-card-title a { color: #8B1A1A; text-decoration: none; }
.dm-card-title a:hover { text-decoration: underline; }
.dm-card-excerpt { font-size: 0.92em; color: #555; }
.dm-card-excerpt p { margin: 0; }
.dm-pagination { text-align: center; margin: 2em 0; font-family: var(--dm-font-head); }
.dm-pagination .page-numbers { padding: 0.4em 0.8em; margin: 0 0.2em; border: 1px solid var(--dm-tan); border-radius: 4px; text-decoration: none; }
.dm-pagination .page-numbers.current { background: var(--dm-coral); border-color: var(--dm-coral); color: #fff; }
@media (max-width: 44em) { .dm-card-grid { grid-template-columns: 1fr; } }
.dm-blog-layout { display: flex; gap: 2em; }
.dm-blog-main { flex: 0 0 72%; }
.dm-blog-sidebar { flex: 0 0 26%; }
.dm-blog-intro { text-align: center; margin-bottom: 2em; }
.dm-blog-post { margin-bottom: 2.5em; padding-bottom: 2em; border-bottom: 1px solid var(--dm-tan); }
.dm-date-badge {
  display: inline-block;
  background: #f5f0e1;
  border-radius: 4px;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-family: var(--dm-font-head);
  margin-bottom: 0.8em;
}
.dm-date-badge .fa { margin-right: 0.4em; }
.dm-blog-post .entry-title { margin: 0 0 0.6em 0; font-size: 1.4em; }
.dm-blog-post .entry-title a { color: #8B1A1A; text-decoration: none; }
.dm-blog-post .entry-title a:hover { text-decoration: underline; }
.dm-post-image { margin: 1em 0; }
.dm-post-image img { width: 100%; height: auto; }
.dm-blog-sidebar .dm-widget { margin-bottom: 2em; }
.dm-blog-sidebar .dm-widget h3 { font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.dm-blog-sidebar .dm-widget ul { list-style: none; margin: 0; padding: 0; }
.dm-blog-sidebar .dm-widget ul li { margin-bottom: 0.4em; }
@media (max-width: 44em) {
  .dm-blog-layout { flex-direction: column; }
  .dm-blog-main, .dm-blog-sidebar { flex: none; }
}

/* ============ Project filter ============ */
.dm-filter { margin: 1.5em 0; display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }
.dm-filter-label { font-family: var(--dm-font-head); font-weight: 700; margin-right: 0.5em; }
.dm-filter-pill {
  display: inline-block;
  padding: 0.4em 1em;
  border: 1px solid var(--dm-tan);
  border-radius: 2em;
  font-family: var(--dm-font-head);
  font-size: 0.85em;
  text-decoration: none !important;
  color: var(--dm-teal-dark);
}
.dm-filter-pill:hover { border-color: var(--dm-coral); color: var(--dm-link); }
.dm-filter-pill.active { background: var(--dm-coral); border-color: var(--dm-coral); color: #fff !important; }

/* ============ CTA buttons ============ */
a.but-cta, .but-cta {
  display: inline-block;
  background: #A4231D;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  font-family: var(--dm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.9em 2em;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
a.but-cta:hover, .but-cta:hover {
  background: #D75650;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ============ Responsive ============ */
@media (max-width: 44em) {
  body { font-size: 87.5%; }
  .dm-container { padding-left: 1.2em; padding-right: 1.2em; }
  /* Hamburger menu */
  .dm-menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f9f9f9;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 99;
    overflow: visible;
  }
  .site-header { position: relative; }
  .site-header.menu-open .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5em 0;
  }
  .site-nav li { border-bottom: 1px solid #eee; }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: block;
    padding: 0.9em 1.5em;
    border-bottom: none;
  }
  .site-nav a:hover { background: #f0f0f0; }
  /* Hamburger to X animation */
  .site-header.menu-open .dm-menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.menu-open .dm-menu-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header.menu-open .dm-menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .dm-footer-top { flex-direction: column; }
  .dm-nap { text-align: left; }
  .dm-post-row { flex-direction: column; }
  .dm-post-row .dm-thumb { flex: none; }
}
@media (min-width: 70em) {
  .site-logo img { height: 44px; }
  .dm-container { padding-left: 15%; padding-right: 15%; }
  .site-header .dm-container,
  .site-footer .dm-container { padding-left: 1.5em; padding-right: 1.5em; }
}

/* ============ Sitemap page ============ */
.dm-sitemap-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin: 2em 0;
}
.dm-sitemap-section h2 {
  font-size: 1.2em;
  border-bottom: 2px solid var(--dm-coral);
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}
.dm-sitemap-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dm-sitemap-section li {
  margin: 0.4em 0;
  line-height: 1.4;
}
@media (max-width: 44em) {
  .dm-sitemap-columns { grid-template-columns: 1fr; }
}

/* ============ YouTube video embed (responsive 16:9) ============ */
.dm-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5em 0;
}
.dm-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ Guide series pages (auto-populating) ============ */
.dm-guide-listing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin: 2em 0 3em;
}
@media (max-width: 44em) {
  .dm-guide-listing { grid-template-columns: 1fr; }
}
