/* v7.76 — mobile/accessibility refinements without visual redesign. */

/* Legacy literary dossiers: strengthen muted tones that sat just below WCAG AA. */
.post-2833 { --letter-muted: #6b6058; }
.post-5303 { --hd-muted: #70665f; }
/* The Clarice editorial layout is injected after the theme styles. */
body.ndhc-page-active { --ndhc-muted: #665d55 !important; }
body.ndhc-page-active .ndhc-roadmap span { color: #6c6257; }
body.ndhc-page-active .ndhc-letter::before { color: #75614e; }
body.ndhc-page-active .ndhc-card-kicker { color: #8e3138; }
body.ndhc-page-active .ndhc-hero .ndhc-kicker { color: #d8959c; }

/* Budapeşte: small metadata and captions need slightly stronger contrast. */
body.nd-budapeste-v752-page .nd-entry-content { --bd-muted: #626d71; }

/* Footer microcopy sat just below AA on the dark footer. */
.nd-site-footer .nd-footer-heading,
.nd-site-footer .nd-footer-social b,
.nd-site-footer .nd-footer-a11y b { color: #8a847f; }

/* Sezai Karakoç: the tiny section subtitle was too pale. */
body.postid-2399 .ndkr-section small { color: #6f6963 !important; }

/* Clarice dossier: reserve the JS-inserted hero/roadmap footprint before DOM ready to prevent layout shift. */
body.ndhc-page-active:not(.ndhc-ready) .nd-entry-content::before {
  content: "";
  display: block;
  height: 500px;
}
body.ndhc-page-active.ndhc-ready .nd-entry-content::before { display: none; }
@media (max-width: 900px) {
  body.ndhc-page-active:not(.ndhc-ready) .nd-entry-content::before { height: 740px; }
}
@media (max-width: 620px) {
  body.ndhc-page-active:not(.ndhc-ready) .nd-entry-content::before { height: 900px; }
}

/* Bülent Parlak: the dossier was converted from a page to a post, so its old page-id selectors no longer hid the generic post chrome. */
body.postid-8720 .nd-single-header,
body.postid-8720 .nd-single-featured,
body.postid-8720 .nd-v3-toc { display: none !important; }
body.postid-8720 .nd-reading-shell.nd-entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.postid-8720 main#main,
body.postid-8720 article.nd-single {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Bülent Parlak: archive microcopy needs AA contrast on the warm paper surfaces. */
.post-8720 .bp-archive-row span,
.post-8720 .bp-poem summary .bp-pno,
.post-8720 .bp-poem-meta small,
.post-8720 .bp-poem-meta span { color: #62594f !important; }
.post-8720 .bp-accord-note span { color: #5f574f !important; }

@media (max-width: 760px) {
  /* Header accessibility controls must also meet the 44px touch target. */
  .nd-a11y-toggle { min-height: 44px !important; }
  .nd-a11y-font-links a { min-width: 44px !important; height: 44px !important; }
  .nd-a11y-reset-link { min-height: 44px; display: inline-flex; align-items: center; }

  /* Share controls and navigation/chip-style links should meet the 44px touch target. */
  .nd-site-footer .nd-footer-menu a,
  .nd-site-footer .nd-footer-social a,
  .nd-site-footer .nd-footer-a11y,
  body.single-post .nd-single-meta a,
  body.single-post .nd-tags a,
  body.single-post .nd-v3-toc a,
  body.single-post .nd-entry-content .nd-hannibal-sources__links a,
  body.single-post .nd-share-btn,
  body.single-post .nd-entry-content nav a,
  body.single-post .nd-v3-entry-content nav a,
  body.single-post .entry-content nav a,
  body.single-post .nd-savsat-final .nd-button,
  body.single-post .nd-savsat-final .nd-maplink {
    min-height: 44px !important;
  }

  body.single-post .nd-single-meta a,
  body.single-post .nd-v3-toc a,
  body.single-post .nd-entry-content nav a,
  body.single-post .nd-v3-entry-content nav a,
  body.single-post .entry-content nav a,
  body.single-post .nd-savsat-final .nd-button,
  body.single-post .nd-savsat-final .nd-maplink {
    display: inline-flex;
    align-items: center;
  }

  .post-5303 .nd-hannibal-sources__links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
  }

  /* Decorative generated numerals are not content and were too faint for contrast audits. */
  .post-8720 .bp-doc-frame::before,
  .post-8720 .bp-book::before,
  .post-8720 .bp-book::after { display: none !important; }
}
