/* Dishco Additional CSS — migrated from Customizer post #46 so we can maintain it in theme. */
/* =========================
   GLOBAL BLOG STYLING
   ========================= */

/* Make full site background pure white */
body,
.site,
.wp-site-blocks {
  background: #ffffff !important;
}
/* Fonts loaded via wp_enqueue_scripts in functions.php */

h1, h2 {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: #111;
}

/* Hero Title (H1) */
h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

/* Section Title (H2) */
h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

body,
p,
li,
button,
input,
label,
figcaption {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

/* Don't force DM Sans onto inline bits inside headings (marks/spans/links) */
h1 span, h2 span, h3 span,
h1 a, h2 a, h3 a,
h1 mark, h2 mark, h3 mark,
.wp-block-heading span,
.wp-block-heading a,
.wp-block-heading mark {
  font-family: inherit !important;
  font-weight: inherit !important;
}
/* =========================
   BLOG SHELL – LAYOUT
   ========================= */

.d-blog {
  max-width: 1120px;      /* center + constrain content */
  margin: 0 auto;
  padding: 48px 16px 80px;
}

/* extra safety: if the outer block is a group, center it too */
.d-blog > .wp-block-group {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   FONTS
   ========================= */

/* Body text stays on your theme font (DM Sans etc.) */
.d-blog,
.d-blog p,
.d-blog li,
.d-blog .d-hero__meta {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Blog headings use Inter */
.d-blog h1,
.d-blog h2,
.d-blog h3,
.d-blog h4,
.d-hero__title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* =========================
   CATEGORY FILTER
   ========================= */

.d-blog__filter {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.d-blog__categories select {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
}

/* =========================
   HERO – DISHCO STYLE
   ========================= */

.d-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 24px 0 40px;
}

/* On narrow screens, stack hero content */
@media (max-width: 900px) {
  .d-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.d-hero__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

/* Meta row above hero title */
.d-hero__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

/* Big red hero title */
.d-hero__title {
  margin: 10px 0 8px;
  line-height: 1.1;
  font-size: clamp(26px, 3.4vw, 34px);
  color: #333333;           /* near-black titles */
}

.d-hero__title a {
  text-decoration: none;
  color: inherit;
}

.d-hero__excerpt {
  font-size: 15px;
  opacity: 0.9;
  max-width: 420px;
}

/* hero image */
.d-hero__image-col {
  display: flex;
  justify-content: flex-end;
}

.d-hero__image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 24px;
  padding: 0;
  background: none;
  object-fit: cover;
}

/* Read more → pill button */
.d-blog .wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.d-blog .wp-block-post-excerpt__more-link:hover {
  background: #58CC02;
  border-color: #58CC02;
  color: #ffffff;
}

/* =========================
   3-CARD ROW
   ========================= */

.d-cards-query {
  margin-top: 16px;
}

.d-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.d-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.d-card__image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
}

.d-card__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.d-card__title {
  font-size: 15px;
  line-height: 1.2;
  margin-top: 3px;
}

.d-card__title a {
  text-decoration: none;
  color: #111827;
}

/* vertically center text + media in all home sections */
.d-home__section .wp-block-columns,
.d-home__hero .wp-block-columns {
  display: flex;
  align-items: center;      /*  *:first-child,
.d-home__hero-text > *:first-child {
  margin-top: 0 !important;
}
.d-home__section-copy,
.d-home__hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* extra insurance */
}



/* =========================
   LIST SECTION
   ========================= */

.d-list__heading {
  margin-top: 24px;
  margin-bottom: 10px;
}

.d-list__heading p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

/* each row */
.d-list__item {
  margin-bottom: 18px;
  gap: 18px;
}

.d-list__image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.d-list__text {
  gap: 4px;
}

.d-list__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.d-list__title {
  font-size: 16px;
  line-height: 1.2;
  margin: 2px 0;
}

.d-list__title a {
  text-decoration: none;
  color: #111827;
}

/* =========================
   PAGINATION
   ========================= */

.d-pagination {
  gap: 8px;
}

.d-pagination .page-numbers,
.d-pagination .wp-block-query-pagination-previous,
.d-pagination .wp-block-query-pagination-next {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 13px;
  text-decoration: none;
}

.d-pagination .page-numbers.current {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 920px) {
  .d-hero {
    flex-direction: column;
    gap: 32px;
  }

  .d-hero__text-col,
  .d-hero__image-col {
    flex-basis: 100% !important;
  }

  .d-cards {
    grid-template-columns: 1fr;
  }

  .d-list__item {
    flex-direction: column;
  }
}
/* =========================
   SINGLE POST – DUOLINGO STYLE
   ========================= */

/* Outer shell for the single post template */
.d-post {
  max-width: 880px;  /* slightly wider content column */
  margin: 0 auto;
  padding: 64px 16px 96px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

/* Center the hero area (title + meta + top image) */
.d-post-hero {
  text-align: center;
  margin-bottom: 40px;
}

/* Category / meta line above the title */
.d-post-hero__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
  margin-bottom: 10px;
}

/* Big green title like Duolingo */
.d-post-hero__title {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: #22c55e; /* swap later to your Dishco green if you want */
  margin: 4px 0 8px;
}

.d-post-hero__title a {
  color: inherit;
  text-decoration: none;
}

/* Optional short dek/subtitle line under the title */
.d-post-hero__subtitle {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 20px;
}

/* Top hero image block */
.d-post-hero__image {
  margin-top: 24px;
}

.d-post-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* =========================
   POST BODY CONTENT
   ========================= */

.d-post-content {
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

/* Paragraph spacing */
.d-post-content p {
  margin: 0 0 1.4em;
}

/* Headings inside the article */
.d-post-content h2 {
  font-size: 20px;
  margin: 2.4em 0 0.8em;
}

.d-post-content h3 {
  font-size: 17px;
  margin: 2em 0 0.6em;
}

/* Lists */
.d-post-content ul,
.d-post-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}

/* Links in the body */
.d-post-content a {
  color: #22c55e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================
   IMAGES INSIDE THE POST
   ========================= */

/* Any image block inside the post body should have rounded corners */
.d-post-content .wp-block-image img,
.single-post .wp-block-image img {
  border-radius: 24px;
  overflow: hidden;
  display: block;
}

/* Wide / full alignments still span wide, but keep rounding */
.d-post-content .wp-block-image.alignwide img,
.d-post-content .wp-block-image.alignfull img {
  width: 100%;
}

/* Center captions nicely */
.d-post-content .wp-block-image figcaption {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  margin-top: 6px;
}

/* =========================
   TABLE OF CONTENTS STYLE (optional)
   ========================= */

/* If you ever add a “Table of contents” section like Duolingo */
.d-post-toc {
  border-radius: 16px;
  background: #f9fafb;
  padding: 16px 18px;
  margin: 32px 0 24px;
  font-size: 13px;
}

.d-post-toc__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 10px;
}

.d-post-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-post-toc li + li {
  margin-top: 4px;
}

.d-post-toc a {
  color: #111827;
  text-decoration: none;
}

.d-post-toc a:hover {
  text-decoration: underline;
}

/* =========================
   SINGLE POST – RESPONSIVE
   ========================= */

@media (max-width: 720px) {
  .d-post {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .d-post-hero__title {
    font-size: 24px;
  }
}
/* =========================
   SINGLE POST – DUOLINGO STYLE
   ========================= */

.d-post {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 16px 96px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

/* Title + excerpt + meta */

.d-post__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  color: #22c55e; /* Dishco green – tweak if needed */
  margin: 0 0 8px;
}

.d-post__excerpt {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 20px;
  font-size: 16px;
  color: #374151;
}

.d-post__meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 32px;
}

/* Hero image section */

.d-post__hero {
  margin-bottom: 40px;
}

.d-post__hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
}

/* Body content */

.d-post__content {
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

.d-post__content p {
  margin-bottom: 1.2em;
}

.d-post__content h2,
.d-post__content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

/* Make images inside the post rounded */

.d-post__content .wp-block-image img,
.d-post__content img {
  border-radius: 24px;
}

/* Divider before related section */

.d-post__divider {
  margin: 56px 0 40px;
  border-color: #e5e7eb;
  width: 100%;      /* fill the content column */
  max-width: none;  /* override any theme max-width */
}

/* =========================
   RELATED ARTICLES – DUOLINGO STYLE
   ========================= */

.d-post__related {
  margin-top: 8px;
}

.d-post__related-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin: 0 0 24px;
}

/* Make the Query Loop act like a 3-column card grid */

.d-related-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Individual related card */

.d-related-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 16px 16px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12); /* soft Duolingo-style shadow */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-related-card__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.d-related-card__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  gap: 6px;
}

.d-related-card__title {
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}

.d-related-card__title a {
  text-decoration: none;
  color: #111827;
}

/* Hover state – slight lift like Duolingo cards */

.d-related-card:hover {
  /* keep cards aligned; just enhance the shadow on hover */
  transform: none;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .d-post {
    padding-top: 40px;
  }

  .d-related-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}
/* =========================
   FINAL OVERRIDES
   ========================= */

/* Make the content column a bit wider on desktop */
.wp-block-group.d-post {
  max-width: 880px !important;  /* tweak this number if you want narrower/wider */
}

/* Force the divider to match the content width */
.d-post__divider {
  width: 100% !important;
  max-width: none !important;
  border-color: #e5e7eb;
}

/* Fix extra spacing / misalignment in the related articles row */
.d-related-query .wp-block-post {
  margin: 0 !important;          /* remove default block margin */
}

/* Make sure all related cards stretch to the same height */
.d-related-query .wp-block-post-template {
  align-items: stretch;
}

.d-related-card {
  height: 100%;
}
/* =========================
   AUTHOR ARCHIVE – DUOLINGO STYLE
   ========================= */

.d-author {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 16px 96px;
}

/* Hero */

.d-author__hero {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}

.d-author__avatar,
.d-author__avatar img {
  width: 180px;
  height: 180px;
  border-radius: 32px;
  object-fit: cover;
  display: block;
}

.d-author__hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d-author__name {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  color: #22c55e; /* Dishco green */
  margin: 0;
}

.d-author__bio {
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  color: #374151;
}

/* Divider */

.d-author__divider {
  margin: 32px 0 24px;
  border-color: #e5e7eb;
  width: 100%;
  max-width: none;
}

/* Posts list (re-using your d-list styles) */

.d-author__posts {
  margin-top: 4px;
}

.d-author__row {
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}

.d-author__row:last-child {
  border-bottom: none;
}

/* Tight, square-ish thumbs on the left */
.d-author__row .d-list__image img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
}

/* Make sure rows behave nicely in the Query Loop */
.d-author__query .wp-block-post {
  margin: 0 !important;
}

/* Responsive */

@media (max-width: 780px) {
  .d-author__hero {
    flex-direction: column;
    text-align: center;
  }

  .d-author__hero-text {
    align-items: center;
  }

  .d-author__row {
    flex-direction: column;
  }

  .d-author__row .d-list__image img {
    width: 100%;
    height: auto;
  }
}
/* =========================
   AUTHOR ARCHIVE – HEADER
   ========================= */

.d-author {
  max-width: 880px;        /* similar width to single posts */
  margin: 0 auto;
  padding: 64px 16px 96px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

.d-author__header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

/* Avatar */
.d-author__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
}

/* Name + bio stack */
.d-author__hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d-author__hero-text .wp-block-post-author-name {
  font-size: 24px;
  font-weight: 800;
  color: #22c55e;          /* Dishco green */
}

.d-author__hero-text .wp-block-post-author-biography {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 460px;
}

/* “Latest from the Dishco blog” heading reuse */
.d-author .wp-block-separator {
  margin: 24px 0 32px;
}

/* =========================
   AUTHOR ARCHIVE – POST LIST
   (same vibe as bottom of category page)
   ========================= */

.d-author__query .wp-block-post-template {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Each post row: image left, text right */
.d-author__query .wp-block-post-template > li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* Thumbnail */
.d-author__query .wp-block-post-featured-image img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
}

/* Meta + title */
.d-author__query .wp-block-post-date,
.d-author__query .wp-block-post-author-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.d-author__query .wp-block-post-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 4px 0 0;
}

.d-author__query .wp-block-post-title a {
  text-decoration: none;
  color: #111827;
}

/* Pagination spacing */
.d-author__query .wp-block-query-pagination {
  margin-top: 32px;
}

/* =========================
   AUTHOR ARCHIVE – RESPONSIVE
   ========================= */

@media (max-width: 720px) {
  .d-author__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-author__query .wp-block-post-template > li {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .d-author__query .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
  }
}
/* Remove underline from author link */
.wp-block-post-author__content a,
.wp-block-author-name a,
.d-post__meta a {
    text-decoration: none !important;
}

/* Optional: underline on hover only (cleaner UI) */
.wp-block-post-author__content a:hover,
.wp-block-author-name a:hover,
.d-post__meta a:hover {
    text-decoration: underline;
}
/* =========================
   AUTHOR ARCHIVE – LAYOUT
   ========================= */

.d-author {
  max-width: 880px;        /* nice wide column */
  margin: 0 auto;
  padding: 72px 16px 96px;
}

/* Make the list of posts a vertical stack of rows */
.d-author__query .wp-block-post-template {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Each post row */
.d-author__query .wp-block-post {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Left column image */
.d-author__image img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 24px;
}

/* Right column text */
.d-author__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Date + title styling can piggyback your existing blog styles,
   but here are safe defaults in case: */
.d-author__text .wp-block-post-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.d-author__text .wp-block-post-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.d-author__text .wp-block-post-title a {
  text-decoration: none;
  color: #111827;
}

/* Make sure nothing gets squeezed on small screens */
@media (max-width: 720px) {
  .d-author__query .wp-block-post {
    flex-direction: column;
  }

  .d-author__image img {
    width: 100%;
    height: auto;
  }
}

/* =========================================
   HOME LANDING PAGE LAYOUT
   ========================================= */

.d-home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 16px 96px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

/* Space between sections */
.d-home__section {
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Hero gets a bit more breathing room */
.d-home__hero {
  margin-top: 0;
  padding-top: 32px;
  padding-bottom: 56px;
}

/* All sections use a 2-column layout */
.d-home__section .wp-block-columns,
.d-home__hero .wp-block-columns {
  gap: 56px;
  align-items: center;
}

/* Text column */
.d-home__section .wp-block-column:first-child,
.d-home__hero .wp-block-column:first-child {
  flex-basis: 50%;
}

/* Reverse layout: swap columns visually on desktop */
.d-home__section--reverse .wp-block-columns {
  flex-direction: row-reverse;
}

/* Headings */
.d-home h1,
.d-home h2 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.d-home h1 {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 16px;
}

.d-home h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 12px;
}

.d-home p {
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

/* Accent span for colored words */
.d-accent {
  color: #3FA800; /* or your Dishco accent color */
}

/* Media (images/videos) */
.d-home__section img,
.d-home__section video,
.d-home__hero img,
.d-home__hero video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .d-home {
    padding-top: 40px;
    padding-bottom: 72px;
  }

  .d-home__section .wp-block-columns,
  .d-home__hero .wp-block-columns {
    flex-direction: column;
    gap: 32px;
  }

  .d-home__section--reverse .wp-block-columns {
    flex-direction: column; /* no reverse on mobile */
  }

  .d-home__section {
    padding-top: 48px;
    padding-bottom: 48px;
    margin-top: 0;
  }
}

/* Home: remove white card behind media */
.d-home__hero-media-inner,
.d-home__section-media-inner {
  background: transparent;   /* no white */
  padding: 0;                /* no extra spacing */
  border-radius: 0;          /* square edges */
  box-shadow: none;          /* remove card shadow */
}

/* Keep a subtle shadow on the actual phone image/video if you like */
.d-home__hero-media-inner img,
.d-home__section-media-inner img {
  background: transparent;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Videos: no rounded corners so they don't get cropped */
.d-home__hero-media-inner video,
.d-home__section-media-inner video {
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18); /* optional */
  background: transparent;
}
/* Home: remove any white card behind images */
.d-home .wp-block-image,
.d-home .wp-block-group.d-home__hero-media-inner,
.d-home .wp-block-group.d-home__section-media-inner {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Make sure the actual images are clean too */
.d-home .wp-block-image img {
  display: block;
  background: transparent !important;
  border-radius: 0;          /* change to e.g. 24px if you WANT rounded phones */
}
/* Remove white card + radius + shadow from home media */

.d-home__hero-media,
.d-home__hero-media-inner,
.d-home__section-media,
.d-home__section-media-inner,
.d-home__hero-media .wp-block-image,
.d-home__section-media .wp-block-image {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Make sure the actual image/video has no card styling either */
.d-home__hero-media img,
.d-home__hero-media video,
.d-home__section-media img,
.d-home__section-media video {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* ---------------------------------
   "We're Almost Live" callout card
   --------------------------------- */

.d-callout {
  background: #fff3dc;             /* soft cream */
  border-radius: 40px;
  padding: 56px 64px;
  margin-top: 72px;
}

/* Make the inner columns line up like your mock */
.d-callout .wp-block-columns {
  align-items: center;
  gap: 48px;
  margin-bottom: 0;                 /* remove extra bottom gap */
}

/* Text side */
.d-callout h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.d-callout p {
  font-size: 16px;
  line-height: 1.6;
}

/* Image side */
.d-callout .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .d-callout {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .d-callout .wp-block-columns {
    flex-direction: column;
    gap: 24px;
  }
}

/* FINAL OVERRIDE: home media should NOT have a card container */
.d-home__section img,
.d-home__section video,
.d-home__hero img,
.d-home__hero video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;          /* no rounded corners */
  box-shadow: none !important;          /* no card shadow */
  background: transparent !important;   /* no white behind */
  object-fit: contain;                  /* avoid weird cropping on videos */
}
/* Home: shrink media a bit on mobile */
@media (max-width: 768px) {
  .d-home__hero-media img,
  .d-home__hero-media video,
  .d-home__section-media img,
  .d-home__section-media video {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Desktop: vertically center the text inside the LEFT column */
@media (min-width: 901px) {

  /* Make the left column a flex container */
  .d-home__section .wp-block-columns > .wp-block-column:first-child,
  .d-home__hero .wp-block-columns > .wp-block-column:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* <-- vertical centering of text */
  }

  /* Optional: make sure the column stretches to match the phone's height */
  .d-home__section .wp-block-columns,
  .d-home__hero .wp-block-columns {
    align-items: stretch;
  }
}
/* =======================
   GLOBAL PAGE BACKGROUND
   ======================= */
body {
  background: #ffffff;
}

/* =======================
   HEADER
   ======================= */

.d-site-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f1f1;
  padding: 16px 24px;
  z-index: 50;
}

.d-site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Make inner header flex even if editor strips flex settings */
.d-site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.d-site-header__logo img {
  height: 38px;
  width: auto;
}

/* Nav + CTA */
.d-site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.d-site-header__link {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 15px;
}

.d-site-header__link a {
  text-decoration: none;
  color: #111827;
}

.d-site-header__link a:hover {
  color: #3FA800;
}

/* CTA button */
.d-site-header__buttons {
  margin: 0;
}

.d-site-header__cta .wp-block-button__link {
  border-radius: 999px;
  padding: 8px 20px;
  background: #58CC02;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.d-site-header__cta .wp-block-button__link:hover {
  background: #ff5252;
}

/* =======================
   FOOTER
   ======================= */

.d-site-footer {
  border-top: 1px solid #f1f1f1;
  padding: 32px 24px 40px;
  background: #ffffff;
}

.d-site-footer__top,
.d-site-footer__bottom {
  max-width: 1120px;
  margin: 0 auto;
}

.d-site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.d-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d-site-footer__logo img {
  height: 40px;
  width: auto;
}

.d-site-footer__powered {
  margin: 0;
  font-size: 14px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #111827;
}

.d-site-footer__powered-mark {
  font-weight: 600;
}

/* Divider */
.d-site-footer__divider {
  max-width: 1120px;
  margin: 16px auto 24px;
  border-width: 0;
  height: 1px;
  background: #e5e7eb;
}

/* Bottom row */
.d-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.d-site-footer__copy {
  margin: 0;
  font-size: 13px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #4b5563;
}

.d-site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.d-site-footer__links p {
  margin: 0;
}

.d-site-footer__links a {
  text-decoration: none;
  color: #111827;
}

.d-site-footer__links a:hover {
  color: #3FA800;
}

/* =======================
   RESPONSIVE HEADER/FOOTER
   ======================= */

@media (max-width: 720px) {
  .d-site-header__inner {
    flex-direction: row;
    align-items: center;
  }

  .d-site-header__nav {
    gap: 16px;
  }

  .d-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-site-footer__links {
    gap: 16px;
  }
}
/* Blog hero title = Inter + red */
.d-hero__title,
.d-hero__title a {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  color: #333333 !important;
  letter-spacing: -0.02em;
}
/* ---------------------------------------
   BLOG: fix stray horizontal scrolling
   --------------------------------------- */

/* Make sure nothing in the blog area can be wider than the screen */
.d-blog,
.d-blog * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Hero image / columns: keep them inside the viewport on mobile */
@media (max-width: 900px) {
  .d-blog .wp-block-columns {
    margin-left: 0;
    margin-right: 0;
  }

  .d-hero__image img {
    width: 100%;
    height: auto;
  }
}

/* Absolute safety net: no horizontal scroll at all */
html,
body {
  overflow-x: hidden;
}
/* ---------------------------------------
   BLOG SINGLE POST — Title Color Override
   --------------------------------------- */

/* Main post title on single blog pages */
.single-post .wp-block-post-title {
  color: #333333 !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
}

/* Allow hover color if needed (optional) */
.single-post .wp-block-post-title:hover {
  color: #333333 !important;
}
/* Remove rounded corners from the header logo image */
.wp-block-site-logo img,
.wp-block-site-logo,
.wp-site-blocks header img {
    border-radius: 0 !important;
    overflow: visible !important;
}
/* Visible SEO H1 under header */
body.home h1.d-home__seo-title,
h1.d-home__seo-title,
.d-home__seo-title {
  position: static !important;
  width: auto !important;
  max-width: 42rem;
  height: auto !important;
  padding: 12px 20px 8px !important;
  margin: 8px auto 12px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  left: auto !important;
  top: auto !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: #333333 !important;
  text-align: center;
  pointer-events: auto !important;
}



/* Force Inter for homepage hero headings on all devices */
.d-home h1,
.d-home h2 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
}

/* Make hero & section media smaller on mobile */
@media (max-width: 768px) {
  .d-home__hero-media img,
  .d-home__hero-media video,
  .d-home__section-media img,
  .d-home__section-media video {
    max-width: 280px;       /* tweak: 260–320px if you want */
    margin: 0 auto;         /* center in column */
    display: block;
  }

  .d-home__section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ============================
   HOMEPAGE: headings = Inter (match articles)
   ============================ */

body.home h1,
body.home h2,
body.home h3,
body.home .wp-block-heading,
body.home .d-home h1,
body.home .d-home h2 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
  color: #333333;
}

/* Keep homepage body copy on DM Sans; don't paint every descendant Inter */
body.home .d-home__hero-text p,
body.home .d-home__section p {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
}

/* =========================================
   HOMEPAGE: SMALLER MEDIA ON MOBILE
   ========================================= */
@media (max-width: 768px) {

  body.home .d-home__hero-media img,
  body.home .d-home__hero-media video,
  body.home .d-home__section-media img,
  body.home .d-home__section-media video {
    width: auto !important;          /* override width:100% */
    max-width: 260px !important;     /* tweak: 240–300px as you like */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home .d-home__section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-top: 0 !important;
  }
}
/* =========================================
   Author page styling (name in Inter + red)
   ========================================= */

/* Main author name */
.d-author .wp-block-post-author-name {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 36px);
  color: #333333;
}

/* Make sure it's not inheriting theme green link color */
.d-author .wp-block-post-author-name a {
  color: #fe3336;
  text-decoration: none;
}

.d-author .wp-block-post-author-name a:hover {
  color: #fe3336;
}

/* Optional: headings on the author page (like 'Latest from our Dishco author') */
.d-author h1,
.d-author h2,
.d-author h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #111827;
}


/* ============================
   DISHCO HOME SPACING v2
   ============================ */
body.home .d-home__section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
body.home .d-home__section + .d-home__section {
  /* keep stack breathing; padding already on each */
}
body.home .entry-content > .d-home__section:first-of-type,
body.home .wp-block-post-content > .d-home__section:first-of-type {
  padding-top: 24px !important;
}
@media (max-width: 900px) {
  body.home .d-home__section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}


/* ============================
   HOME FEATURE TITLES (not H2)
   Artificial heading look after demotion
   ============================ */
body.home p.d-home__feature-title,
body.home .d-home__feature-title,
.d-home__feature-title {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  font-size: clamp(28px, 3.4vw, 36px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #333333 !important;
  text-wrap: balance;
}

body.home .d-home__feature-title mark,
body.home p.d-home__feature-title mark,
.d-home__feature-title mark {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  background: transparent !important;
  color: #fe3336 !important;
}

body.home .d-home__feature-title em,
.d-home__feature-title em {
  font-style: italic;
  font-weight: inherit;
}


/* Tools hub */
.d-tools-hub { padding: 1rem 0 3rem; }
.d-tools-hub__title {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #333;
  margin: 0.35rem 0 0.75rem;
  text-align: center;
}
.d-tools-hub__intro {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
}
.d-tools-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.d-tools-hub__list > li {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  line-height: 1.45;
  color: #374151;
}
.d-tools-hub__list > li a {
  color: var(--dishco-green, #4CAF50);
  text-decoration: none;
  font-weight: 600;
}
.d-tools-hub__list > li a:hover { text-decoration: underline; }
.d-articles__tools-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}
.d-articles__tools-pill:hover { background: #dcfce7; }
.d-articles__filter { text-align: center; }
.d-articles__tools-wrap { text-align: center; margin-top: 0.5rem; }
