
:root {
  --dq-ink:#172033;
  --dq-muted:rgba(23,32,51,.76);
  --dq-paper:#fbf7ef;
  --dq-card:#fffdf8;
  --dq-accent:#c8ff3d;
  --dq-line:rgba(23,32,51,.2);
  --dq-border:1px solid var(--dq-line);
  --dq-strong-border:2px solid var(--dq-ink);
  --dq-shadow:8px 8px 0 var(--dq-ink);
  --dq-container:1120px;
  --dq-radius:1.25rem;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body.dq-site{margin:0;background:linear-gradient(rgba(23,32,51,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(23,32,51,.035) 1px,transparent 1px),var(--dq-paper);background-size:28px 28px;color:var(--dq-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;line-height:1.65;overflow-x:hidden} img{max-width:100%;height:auto;display:block} a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.2em}.screen-reader-text{position:absolute;left:-9999px}.screen-reader-text:focus{left:1rem;top:1rem;z-index:9999;background:var(--dq-accent);border:var(--dq-strong-border);padding:.75rem 1rem}.dq-container{width:min(var(--dq-container),calc(100% - 40px));margin-inline:auto}.dq-header{position:sticky;top:0;z-index:50;border-bottom:var(--dq-border);background:rgba(251,247,239,.94);backdrop-filter:blur(10px)}.dq-header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:1rem}.dq-brand{font-size:clamp(1.15rem,2vw,1.7rem);font-weight:950;letter-spacing:-.055em;text-decoration:none}.dq-menu{display:flex;align-items:center;gap:inherit;list-style:none;margin:0;padding:0}.dq-menu li{margin:0}.dq-nav{display:flex;align-items:center;gap:clamp(1rem,2.4vw,2rem);font-size:.98rem;font-weight:800}.dq-nav a{text-decoration:none}.dq-nav a:hover{text-decoration:underline}.dq-mobile-menu{display:none}.dq-mobile-menu summary{list-style:none;cursor:pointer;border:var(--dq-strong-border);border-radius:.5rem;padding:.55rem .8rem;font-weight:900}.dq-mobile-menu summary::-webkit-details-marker{display:none}.dq-nav--mobile{display:grid;gap:0;padding:1rem 0}.dq-nav--mobile .dq-menu{display:grid;gap:0}.dq-nav--mobile a{display:block;border-top:var(--dq-border);padding:1rem 0}.dq-main{min-height:65vh}.dq-section{padding-block:clamp(2.5rem,7vw,5.5rem)}.dq-label{margin:0 0 1rem;color:rgba(23,32,51,.65);font-size:.75rem;font-weight:950;letter-spacing:.22em;text-transform:uppercase}.dq-meta{color:rgba(23,32,51,.62);font-size:.9rem;font-weight:700}.dq-small{font-size:.82rem;color:rgba(23,32,51,.62)}h1,h2,h3{margin:0;font-weight:950;letter-spacing:-.055em;color:var(--dq-ink);line-height:.96}h1{font-size:clamp(3rem,7vw,5.8rem);max-width:12.5ch}h2{font-size:clamp(2rem,4vw,3.6rem);max-width:13ch}h3{font-size:clamp(1.25rem,2vw,1.8rem);line-height:1.04;max-width:18ch}.dq-lede{max-width:720px;margin:1.35rem 0 0;font-size:clamp(1.1rem,1.8vw,1.35rem);line-height:1.55;color:var(--dq-muted)}.dq-actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2rem}.dq-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.85rem 1.1rem;border:var(--dq-strong-border);border-radius:.55rem;font-weight:950;text-decoration:none;line-height:1.1}.dq-button--primary{background:var(--dq-accent);box-shadow:3px 3px 0 var(--dq-ink)}.dq-button--ghost{background:transparent}.dq-button--full{width:100%}.dq-hero,.dq-tool-layout,.dq-lead-layout,.dq-about-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:clamp(2rem,5vw,4rem);align-items:center}.dq-visual-card,.dq-tool-card,.dq-founder-card,.dq-takeaway,.dq-cta-panel,.dq-start-card{border:var(--dq-strong-border);border-radius:var(--dq-radius);background:var(--dq-card);padding:clamp(1rem,3vw,1.5rem)}.dq-visual-card,.dq-tool-card{box-shadow:var(--dq-shadow)}.dq-image-placeholder{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;border:var(--dq-border);border-radius:1rem;background:linear-gradient(135deg,#f3eadf 25%,transparent 25%),linear-gradient(225deg,#f3eadf 25%,transparent 25%),linear-gradient(45deg,#f3eadf 25%,transparent 25%),linear-gradient(315deg,#f3eadf 25%,#fffdf8 25%);background-size:32px 32px;color:rgba(23,32,51,.55);font-weight:900}.dq-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:1rem}.dq-mini-grid a,.dq-pill-row a{border:var(--dq-border);border-radius:.75rem;background:#fff;padding:.75rem;font-weight:900;text-decoration:none}.dq-card-grid{display:grid;gap:1rem;margin-top:1.5rem}.dq-card-grid--four{grid-template-columns:repeat(4,minmax(0,1fr))}.dq-card-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.dq-card,.dq-post-card{display:block;min-width:0;border:var(--dq-border);border-radius:var(--dq-radius);background:var(--dq-card);padding:1.25rem;text-decoration:none;box-shadow:0 1px 2px rgba(23,32,51,.06)}.dq-card:hover,.dq-post-card:hover{border-color:var(--dq-ink);box-shadow:4px 4px 0 var(--dq-ink)}.dq-card span{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:var(--dq-border);border-radius:999px;background:var(--dq-paper);font-weight:950;margin-bottom:1rem}.dq-card p,.dq-post-card p,.dq-featured p,.dq-entry-content p,.dq-entry-content li,.dq-story p{color:var(--dq-muted)}.dq-featured{display:grid;grid-template-columns:.95fr 1.05fr;gap:0;border:var(--dq-strong-border);border-radius:var(--dq-radius);overflow:hidden;background:var(--dq-card);box-shadow:var(--dq-shadow)}.dq-featured__media{background:#f3eadf}.dq-featured__media img{width:100%;height:100%;object-fit:cover}.dq-featured__copy{padding:clamp(1.5rem,4vw,3rem)}.dq-check-list{display:grid;gap:.65rem;list-style:none;margin:1.25rem 0;padding:0}.dq-check-list li{border:var(--dq-border);border-radius:.75rem;background:#fff;padding:.75rem .9rem;font-weight:800}.dq-post-card{overflow:hidden;padding:0}.dq-post-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-bottom:var(--dq-border)}.dq-post-card div{padding:1.1rem}.dq-page-hero .dq-pill-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}.dq-article{padding-block:clamp(2.5rem,7vw,5.5rem)}.dq-article-hero{max-width:900px;margin-inline:auto}.dq-article-hero h1{max-width:13ch}.dq-feature-image{margin:2rem 0 0}.dq-feature-image img{width:100%;border:var(--dq-strong-border);border-radius:var(--dq-radius)}.dq-reading-column{max-width:760px;margin:clamp(2rem,5vw,4rem) auto 0}.dq-takeaway{margin-bottom:2rem}.dq-takeaway h2{font-size:1.35rem;letter-spacing:-.035em;max-width:none}.dq-entry-content{font-size:18px;line-height:1.7}.dq-entry-content>*{max-width:760px}.dq-entry-content h2{font-size:clamp(2rem,3vw,3rem);margin-top:3.5rem;margin-bottom:1rem}.dq-entry-content h3{font-size:clamp(1.45rem,2vw,2rem);margin-top:2.25rem;margin-bottom:.75rem}.dq-entry-content p{margin:0 0 1.25rem}.dq-entry-content ul,.dq-entry-content ol{margin:1.25rem 0;padding-left:1.4rem}.dq-entry-content table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:1.5rem 0;background:#fff}.dq-entry-content th,.dq-entry-content td{border:var(--dq-border);padding:.75rem;text-align:left}.dq-entry-content blockquote{border-left:8px solid var(--dq-ink);background:var(--dq-card);padding:1rem;margin:1.5rem 0}.dq-cta-panel{margin-top:3rem}.dq-related{display:grid;grid-template-columns:minmax(220px,.35fr) 1fr;gap:clamp(1.5rem,4vw,3rem);border-top:var(--dq-border)}.dq-start-card{display:grid;grid-template-columns:1fr minmax(240px,.35fr);gap:1.5rem;align-items:center;box-shadow:var(--dq-shadow)}.dq-founder-card img{width:100%;border-radius:1rem;object-fit:cover;max-height:420px}.dq-founder-card h2{margin-top:1rem;font-size:1.7rem;max-width:none}.dq-tool-card h2{font-size:1.7rem;max-width:none}.dq-fake-form{display:grid;gap:1rem}.dq-fake-form label{display:grid;gap:.45rem;font-size:.9rem;font-weight:950}.dq-fake-form span{display:block;height:48px;border:var(--dq-border);border-radius:.55rem;background:#fff}.dq-pagination{margin-top:2rem}.dq-pagination .nav-links{display:flex;flex-wrap:wrap;gap:.5rem}.dq-pagination a,.dq-pagination span{border:var(--dq-border);background:#fff;padding:.5rem .75rem;text-decoration:none;font-weight:900}.dq-footer{margin-top:clamp(4rem,8vw,6rem);background:var(--dq-ink);color:var(--dq-paper)}.dq-footer__inner{display:grid;grid-template-columns:1.4fr 1fr;gap:2rem;padding-block:2.4rem}.dq-footer__brand{font-size:1.3rem;font-weight:950;margin:0}.dq-footer__text{max-width:520px;color:rgba(251,247,239,.75);font-size:.95rem}.dq-footer__links .dq-menu{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.dq-footer__links{display:block;grid-template-columns:repeat(2,1fr);gap:.75rem;text-align:right;font-weight:800}.dq-footer__links a{color:var(--dq-paper);text-decoration:none}
@media (max-width: 900px){.dq-nav--desktop{display:none}.dq-mobile-menu{display:block}.dq-mobile-menu[open]{position:absolute;top:.7rem;right:20px;width:min(360px,calc(100vw - 40px));border:var(--dq-strong-border);border-radius:.75rem;background:var(--dq-card);padding:.75rem 1rem;box-shadow:var(--dq-shadow)}.dq-mobile-menu[open] summary{border:0;padding:.25rem 0}.dq-hero,.dq-tool-layout,.dq-lead-layout,.dq-about-hero,.dq-featured,.dq-related,.dq-start-card{grid-template-columns:1fr}.dq-card-grid--four,.dq-card-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}.dq-featured__media img{max-height:360px}.dq-footer__inner{grid-template-columns:1fr}.dq-footer__links{text-align:left}}
@media (max-width: 640px){body.dq-site{font-size:17px;background-size:24px 24px}.dq-container{width:min(100% - 32px,var(--dq-container))}.dq-section{padding-block:2.4rem}h1{font-size:clamp(2.65rem,13vw,4rem);max-width:100%}h2{font-size:clamp(1.9rem,9vw,3rem);max-width:100%}.dq-lede{font-size:1.08rem}.dq-actions,.dq-button{width:100%}.dq-button--ghost{width:100%}.dq-card-grid--four,.dq-card-grid--three{grid-template-columns:1fr}.dq-visual-card,.dq-tool-card{box-shadow:4px 4px 0 var(--dq-ink)}.dq-entry-content{font-size:17px}.dq-related{border-top:0}.dq-footer__links .dq-menu{grid-template-columns:1fr}.dq-header__inner{padding-block:.8rem}.dq-brand{font-size:1.2rem}}

/* Link visibility fix: article text links use muted teal only.
   Scoped to real reading text so buttons, nav items, cards and CTA links are not affected. */
.dq-entry-content p a:not(.dq-button):not(.wp-block-button__link),
.dq-entry-content li a:not(.dq-button):not(.wp-block-button__link),
.dq-entry-content td a:not(.dq-button):not(.wp-block-button__link),
.dq-entry-content blockquote a:not(.dq-button):not(.wp-block-button__link),
.dq-story p a:not(.dq-button):not(.wp-block-button__link),
.dq-story li a:not(.dq-button):not(.wp-block-button__link) {
  color: #1f6f68;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
}

.dq-entry-content p a:not(.dq-button):not(.wp-block-button__link):hover,
.dq-entry-content li a:not(.dq-button):not(.wp-block-button__link):hover,
.dq-entry-content td a:not(.dq-button):not(.wp-block-button__link):hover,
.dq-entry-content blockquote a:not(.dq-button):not(.wp-block-button__link):hover,
.dq-story p a:not(.dq-button):not(.wp-block-button__link):hover,
.dq-story li a:not(.dq-button):not(.wp-block-button__link):hover {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
  text-decoration-color: #1f6f68;
  background: transparent;
}

/* Explicit button/nav/card protection so text-link styling never bleeds into CTA buttons. */
.dq-button,
.dq-button:hover,
.wp-block-button__link,
.wp-block-button__link:hover,
.dq-nav a,
.dq-footer__links a,
.dq-card,
.dq-post-card,
.dq-pill-row a {
  text-decoration: none;
  background-clip: border-box;
}

/* Consolidated fixes requested after rebuild
   1. Article hero centred rather than left-panel feeling
   2. Footer links on separate lines
   3. Keep article links visibly coloured without affecting buttons
   4. Remove any inherited panel background from single article hero
*/
.single-post .dq-single,
.single-post .dq-article,
.single-post .dq-article-hero {
  background: transparent !important;
}

.single-post .dq-article {
  width: min(1040px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.single-post .dq-article-hero {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.single-post .dq-article-hero .dq-label,
.single-post .dq-article-hero .dq-meta {
  text-align: center;
}

.single-post .dq-article-hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(3rem, 6vw, 6.25rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.single-post .dq-article-hero .dq-lede {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .dq-feature-image {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .dq-reading-column {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer menu: one link per line */
.dq-footer__links,
.dq-footer__links .dq-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: .55rem !important;
  align-items: flex-end;
  text-align: right;
}

.dq-footer__links li,
.dq-footer__links a {
  display: block;
  width: auto;
  white-space: normal;
}

@media (max-width: 900px) {
  .dq-footer__links,
  .dq-footer__links .dq-menu {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .single-post .dq-article {
    width: min(100% - 32px, 1040px);
  }

  .single-post .dq-article-hero {
    text-align: left;
  }

  .single-post .dq-article-hero .dq-label,
  .single-post .dq-article-hero .dq-meta {
    text-align: left;
  }

  .single-post .dq-article-hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    text-align: left;
  }
}


/* Advice Hub featured guide image fix: scoped only to this one section so other thumbnails/cards are untouched */
.dq-featured-guide-card .dq-featured-guide-media {
  background: #f3eadf;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.dq-featured-guide-card .dq-featured-guide-image-wrap {
  overflow: hidden;
  border: var(--dq-border);
  border-radius: 1rem;
  background: #ffffff;
}

.dq-featured-guide-card .dq-featured-guide-image-wrap img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  display: block;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  .dq-featured-guide-card .dq-featured-guide-media {
    padding: 1rem;
  }
}

/* Primary navigation dropdown: More Guides */
.dq-nav--desktop .menu-item-has-children {
  position: relative;
}

.dq-nav--desktop .menu-item-has-children > a::after {
  content: "";
}

.dq-nav--desktop .sub-menu {
  position: absolute;
  top: calc(100% + .85rem);
  right: 0;
  z-index: 80;
  width: min(280px, calc(100vw - 40px));
  margin: 0;
  padding: .65rem;
  list-style: none;
  border: var(--dq-border);
  border-radius: 1rem;
  background: var(--dq-card);
  box-shadow: 0 12px 32px rgba(23,32,51,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dq-nav--desktop .menu-item-has-children:hover > .sub-menu,
.dq-nav--desktop .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dq-nav--desktop .sub-menu a {
  display: block;
  padding: .72rem .85rem;
  border-radius: .75rem;
  font-weight: 850;
  white-space: normal;
}

.dq-nav--desktop .sub-menu a:hover,
.dq-nav--desktop .sub-menu a:focus {
  background: var(--dq-paper);
  text-decoration: none;
}

.dq-nav--mobile .sub-menu {
  list-style: none;
  margin: 0 0 0 1rem;
  padding: 0;
}

.dq-nav--mobile .sub-menu a {
  font-size: .95rem;
  color: var(--dq-muted);
  padding-left: .75rem;
}

/* Full category landing template */
.dq-category-template {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.dq-category-template .dq-section {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.dq-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.dq-category-hero h1 {
  max-width: 900px;
}

.dq-category-hero__cta,
.dq-category-support__panel,
.dq-empty-state {
  border: var(--dq-border);
  border-radius: var(--dq-radius);
  background: var(--dq-card);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.dq-category-hero__cta h2,
.dq-category-support__panel h2,
.dq-empty-state h2 {
  max-width: none;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.05;
}

.dq-category-hero__cta p,
.dq-category-support__panel p,
.dq-empty-state p {
  color: var(--dq-muted);
}

.dq-category-hero__cta .dq-button {
  margin-top: 1.25rem;
}

.dq-category-pills {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.dq-category-pills .dq-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.dq-category-pills .dq-pill-row a {
  border-radius: 999px;
  background: var(--dq-card);
  padding: .55rem .9rem;
}

.dq-category-featured {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  overflow: hidden;
  border: var(--dq-strong-border);
  border-radius: var(--dq-radius);
  background: var(--dq-card);
  box-shadow: 7px 7px 0 var(--dq-ink);
}

.dq-category-featured__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #f3eadf;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.dq-category-featured__media a {
  display: flex;
  width: 100%;
  text-decoration: none;
}

.dq-category-featured__media img,
.dq-category-featured__media .dq-image-placeholder {
  width: 100%;
  height: auto;
  align-self: center;
  border: var(--dq-border);
  border-radius: 1rem;
  background-color: #fff;
  object-fit: contain;
}

.dq-category-featured__copy {
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.dq-category-featured__copy h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.dq-category-featured__copy h2 a {
  text-decoration: none;
}

.dq-category-featured__copy h2 a:hover {
  color: #1f6f68;
}

.dq-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.dq-section-heading h2 {
  max-width: 900px;
}

.dq-category-card .dq-read-link {
  display: inline-block;
  margin-top: .85rem;
  color: #1f6f68;
  font-weight: 950;
  text-decoration: none;
}

.dq-category-card .dq-read-link:hover {
  text-decoration: underline;
}

.dq-category-support {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
}

.dq-category-support__panel ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--dq-muted);
}

.dq-category-support__panel li {
  margin-bottom: .65rem;
}

.dq-faq-list {
  display: grid;
  gap: 1.05rem;
}

.dq-faq-list h3 {
  max-width: none;
  font-size: 1.05rem;
  letter-spacing: -.025em;
}

.dq-faq-list p {
  margin: .25rem 0 0;
  font-size: .95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .dq-category-hero,
  .dq-category-featured,
  .dq-category-support {
    grid-template-columns: 1fr;
  }

  .dq-category-featured {
    box-shadow: 4px 4px 0 var(--dq-ink);
  }
}

@media (max-width: 640px) {
  .dq-category-template {
    padding-block: 2.25rem;
  }

  .dq-category-hero h1,
  .dq-category-featured__copy h2,
  .dq-section-heading h2 {
    max-width: 100%;
  }

  .dq-category-pills .dq-pill-row a {
    font-size: .92rem;
  }
}

/* Homepage hero image: scoped only to the right-hand homepage visual card */
.dq-home .dq-visual-card .dq-home-hero-image{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:center;
  border:var(--dq-border);
  border-radius:1rem;
}

/* Final consolidated fixes, 2026-05-21
   Scoped fixes for footer legal links, More Guides URLs and Advice Hub image size. */
.dq-footer__links .dq-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: .55rem !important;
  align-items: flex-end !important;
  grid-template-columns: none !important;
}

.dq-footer__links .dq-menu li,
.dq-footer__links .dq-menu a {
  display: block;
  line-height: 1.35;
}

.dq-featured--hub.dq-featured-guide-card {
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: center;
}

.dq-featured--hub .dq-featured-guide-media {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.dq-featured--hub .dq-featured-guide-image-wrap {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.dq-featured--hub .dq-featured-guide-image-wrap img,
.dq-featured--hub .dq-featured-guide-image {
  width: 100%;
  height: auto !important;
  max-height: 340px !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
}

.dq-featured--hub .dq-featured__copy {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
  .dq-footer__links .dq-menu {
    align-items: flex-start !important;
  }

  .dq-featured--hub.dq-featured-guide-card {
    grid-template-columns: 1fr;
  }

  .dq-featured--hub .dq-featured-guide-image-wrap {
    max-width: 560px;
  }

  .dq-featured--hub .dq-featured-guide-image-wrap img,
  .dq-featured--hub .dq-featured-guide-image {
    max-height: 360px !important;
  }
}


.dq-card-excerpt {
  margin-top: 0.75rem;
  color: rgba(23, 32, 51, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.dq-post-card .dq-card-excerpt,
.dq-category-card .dq-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dq-featured .dq-card-excerpt,
.dq-category-featured .dq-card-excerpt {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
}


/* Alignment reset after restoring card excerpts
   Keeps article cards, featured guide blocks and the homepage feature aligned. */
.dq-card-grid {
  align-items: stretch;
}

.dq-card,
.dq-post-card {
  height: 100%;
}

.dq-post-card {
  display: flex;
  flex-direction: column;
}

.dq-post-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.dq-post-card h3,
.dq-category-card h3 {
  max-width: none;
}

.dq-post-card .dq-card-excerpt,
.dq-category-card .dq-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.95em;
}

.dq-post-card .dq-read-link,
.dq-category-card .dq-read-link {
  margin-top: auto;
}

.dq-featured {
  align-items: center;
}

.dq-featured--home {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.dq-featured--home .dq-featured__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.dq-featured--home .dq-featured__media img {
  width: 100%;
  max-width: 430px;
  max-height: 340px;
  height: auto !important;
  object-fit: contain !important;
  border: var(--dq-border);
  border-radius: 1rem;
  background: #fff;
}

.dq-featured--home .dq-featured__copy {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
  .dq-featured--home .dq-featured__media img {
    max-width: 560px;
    max-height: 360px;
  }
}


/* About page spacing refinements */
.dq-about .dq-about-hero--tight {
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.dq-about .dq-about-story {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

.dq-about .dq-about-story-title {
  margin-bottom: 1.25rem;
}

.dq-about .dq-about-lesson {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.dq-about .dq-about-lesson h2 {
  margin-bottom: 1.25rem;
}

.dq-about .dq-about-lesson p {
  margin: 0;
}

/* More Guides safety fix: parent is a dropdown button, not a broken link */
.dq-more-guides__toggle{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:800;
  padding:0;
  cursor:pointer;
}
.dq-more-guides__toggle:hover,
.dq-more-guides__toggle:focus{
  text-decoration:underline;
  text-underline-offset:.2em;
}
.dq-nav--desktop .menu-item-has-children > .dq-more-guides__toggle::after{
  content:"";
}
.dq-nav--mobile .dq-more-guides__toggle{
  width:100%;
  display:block;
  text-align:left;
  border-top:var(--dq-border);
  padding:1rem 0;
}
.dq-nav--mobile .dq-more-guides > .sub-menu{
  display:block;
}

/* 404, search and empty-state pages */
.dq-error-page,
.dq-search-page{
  padding-block:clamp(2.5rem,7vw,5.5rem);
}
.dq-error-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(260px,.55fr);
  gap:clamp(1.5rem,5vw,4rem);
  align-items:center;
}
.dq-error-hero h1,
.dq-search-page .dq-page-hero h1{
  max-width:12ch;
  font-size:clamp(3.4rem,9vw,7.5rem);
  line-height:.9;
}
.dq-error-search{
  display:flex;
  gap:.75rem;
  margin-top:2rem;
  max-width:760px;
}
.dq-error-search input[type="search"]{
  min-height:52px;
  flex:1;
  min-width:0;
  border:var(--dq-strong-border);
  border-radius:.65rem;
  background:#fff;
  color:var(--dq-ink);
  padding:.8rem 1rem;
  font:inherit;
  font-weight:650;
}
.dq-error-search input[type="search"]::placeholder{
  color:rgba(23,32,51,.48);
}
.dq-error-hero__card,
.dq-empty-state{
  border:var(--dq-strong-border);
  border-radius:var(--dq-radius);
  background:var(--dq-card);
  padding:clamp(1.25rem,3vw,2rem);
  box-shadow:var(--dq-shadow);
}
.dq-error-code{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1;
  border:var(--dq-strong-border);
  border-radius:1.25rem;
  background:var(--dq-accent);
  color:var(--dq-ink);
  font-size:clamp(3rem,8vw,6rem);
  font-weight:950;
  letter-spacing:-.08em;
  line-height:1;
  box-shadow:4px 4px 0 var(--dq-ink);
}
.dq-error-hero__card p{
  margin:1.25rem 0 0;
  color:var(--dq-muted);
}
.dq-error-routes h2{
  max-width:none;
}
.dq-error-route-card{
  height:100%;
}
.dq-empty-state--search{
  max-width:760px;
  margin-inline:auto;
}
.dq-empty-state h2,
.dq-empty-state--search h2{
  max-width:none;
}
.dq-read-link{
  display:inline-block;
  margin-top:1rem;
  color:#1f6f68;
  font-weight:950;
  text-decoration:none;
}
.dq-read-link:hover,
.dq-read-link:focus{
  text-decoration:underline;
}
@media (max-width:900px){
  .dq-error-hero{
    grid-template-columns:1fr;
  }
  .dq-error-hero__card{
    max-width:520px;
  }
}
@media (max-width:640px){
  .dq-error-page,
  .dq-search-page{
    padding-block:2.4rem;
  }
  .dq-error-hero h1,
  .dq-search-page .dq-page-hero h1{
    max-width:100%;
    font-size:clamp(2.8rem,13vw,4.4rem);
  }
  .dq-error-search{
    flex-direction:column;
  }
  .dq-error-search .dq-button{
    width:100%;
  }
}
