/* Deliberately isolated from the home page and interactive guide tools. */
.dif-blog .dif-post--detail {
  --dif-detail-header-height: 69px;
  --dif-detail-nav-height: 58px;
  max-width: 1120px;
  margin-inline: auto;
}
.dif-blog:has(.dif-post--detail) .dif-page { padding-top: 36px; }
.dif-blog .dif-post--detail .dif-breadcrumb { max-width: none; margin-bottom: 22px; font-size: 12px; }
.dif-blog .dif-post--detail > .dif-post__hero,
.dif-blog .dif-post--detail > .dif-post__hero--image { display: block; width: 100%; max-width: none; }
.dif-blog .dif-post--detail .dif-post__masthead { max-width: 100%; }
.dif-blog .dif-post--detail .dif-post__eyebrow { margin-bottom: 10px; font-size: 11px; font-weight: 650; letter-spacing: .09em; }
.dif-blog .dif-post--detail .dif-post-title { max-width: 980px; margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.16; overflow-wrap: normal; }
.dif-blog .dif-post--detail .dif-meta { margin-top: 14px; font-size: 13px; }
.dif-blog .dif-post--detail .dif-post__hero-media { margin: 26px 0 0; overflow: hidden; border-radius: 16px; background: var(--dif-fill-quiet); }
.dif-blog .dif-post--detail .dif-post__hero--image .dif-feature { display: block; width: 100%; height: auto; max-height: 440px; aspect-ratio: 2.6 / 1; object-fit: contain; margin: 0; border-radius: 0; }
.dif-blog .dif-post--detail > .dif-post__layout { display: block; width: 100%; max-width: none; margin-top: 34px; }
.dif-blog .dif-post--detail .dif-content { min-width: 0; max-width: 720px; margin-top: 0; font-size: 16px; line-height: 1.7; }
.dif-blog .dif-post--detail .dif-content h2 { padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--dif-line); font-size: 24px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.dif-blog .dif-post--detail .dif-content h3 { font-size: 20px; font-weight: 650; }
.dif-blog .dif-post--detail .dif-answer-card { padding: 0 0 28px; background: transparent; border: 0; border-bottom: 1px solid var(--dif-line); border-radius: 0; box-shadow: none; }
.dif-blog .dif-post--detail .dif-answer-card__verdict { padding: 0; border: 0; color: var(--dif-carbon); font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.dif-blog .dif-post--detail .dif-answer-card__meta { margin-top: 10px; font-size: 12px; font-weight: 500; }
.dif-blog .dif-post--detail .dif-answer-card__summary { max-width: none; margin-top: 18px; font-size: 17px; line-height: 1.7; }
.dif-blog .dif-post--detail .dif-answer-brief { margin: 26px 0; padding: 0; }
.dif-blog .dif-post--detail .dif-answer-brief__label { font-size: 11px; font-weight: 650; }
.dif-blog .dif-post--detail .dif-answer-brief ol { display: grid; gap: 12px; padding-left: 20px; font-size: 14px; }
.dif-blog .dif-post--detail .dif-answer-brief li + li { margin-top: 0; }
.dif-blog .dif-post--detail .dif-content table { border-radius: 12px; background: var(--dif-surface); font-size: 14px; }
.dif-blog .dif-post--detail .dif-content :is(h2, h3, .dif-answer-card, .dif-answer-brief) { scroll-margin-top: calc(var(--dif-detail-header-height) + var(--dif-detail-nav-height) + 24px); }
.dif-detail-nav { position: sticky; top: var(--dif-detail-header-height); z-index: 11; display: flex; gap: 26px; height: var(--dif-detail-nav-height); margin-top: 16px; overflow-x: auto; border-bottom: 1px solid var(--dif-line); background: var(--dif-bg); scrollbar-width: thin; }
.dif-detail-nav a { display: flex; flex: 0 0 auto; align-items: center; border-bottom: 2px solid transparent; color: var(--dif-muted); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.dif-detail-nav a[aria-current] { border-bottom-color: var(--dif-carbon); color: var(--dif-carbon); }
.dif-detail-nav a:hover { color: var(--dif-carbon); }
.dif-detail-nav a:focus-visible { outline: 2px solid var(--dif-action); outline-offset: -3px; }
.dif-blog .dif-post--detail .dif-detail-rail { margin-top: 36px; padding: 26px; border: 1px solid var(--dif-line); border-radius: 16px; background: var(--dif-surface); box-shadow: 0 6px 24px rgba(30, 35, 31, .07); }
.dif-blog .dif-detail-rail > h2 { margin: 10px 0; font-size: 25px; font-weight: 650; line-height: 1.25; }
.dif-detail-rail > p { color: var(--dif-muted); font-size: 14px; line-height: 1.6; }
.dif-detail-rail__eyebrow { font-size: 11px !important; font-weight: 650; letter-spacing: .09em; }
.dif-detail-rail__action { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 12px; border-radius: 10px; background: var(--dif-action); color: var(--dif-on-dark); font-size: 14px; font-weight: 650; text-decoration: none; }
.dif-blog .dif-post--detail .dif-detail-rail .dif-guide-take { margin: 0; padding: 0; border: 0; background: transparent; }
.dif-blog .dif-post--detail .dif-detail-rail .dif-guide-take h2 { margin: 8px 0 10px; font-size: 25px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.dif-blog .dif-post--detail .dif-detail-rail .dif-guide-take > p:not([data-take-status]):not(.dif-guide-take__eyebrow) { color: var(--dif-muted); font-size: 14px; line-height: 1.6; }
.dif-blog .dif-post--detail .dif-detail-rail label { font-size: 13px; font-weight: 600; }
.dif-blog .dif-post--detail .dif-detail-rail textarea { font-size: 14px; }
.dif-blog .dif-post--detail .dif-guide-take [data-take-form] > button { background: var(--dif-action); }
.dif-blog .dif-post--detail .dif-detail-rail .dif-guide-take [data-take-form] > button { width: 100%; min-height: 50px; justify-content: center; border-radius: 10px; font-weight: 750; }
.dif-blog .dif-post--detail .dif-guide-take [data-take-form] > button:hover { filter: brightness(.92); }
.dif-blog .dif-post--detail .dif-detail-rail [data-take-result] { font-size: 15px; line-height: 1.65; }
.dif-blog .dif-post--detail .dif-detail-rail [data-take-result] h3 { font-size: 21px; }
.dif-blog .dif-post--detail > .dif-article-footer { max-width: 680px; }
.dif-detail-mobile { display: none; }
.dif-detail-dialog { width: min(560px, 100%); max-height: 90dvh; margin: auto auto 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 20px 20px 0 0; background: var(--dif-surface); color: var(--dif-carbon); }
.dif-detail-dialog::backdrop { background: rgba(20, 26, 22, .5); }
.dif-detail-dialog__close { display: block; min-height: 44px; margin: 0 0 16px auto; padding: 8px 12px; border: 1px solid var(--dif-line); border-radius: 999px; background: transparent; color: var(--dif-carbon); font: 600 14px/1.4 var(--dif-font); cursor: pointer; }
html.dif-detail-modal-open { overflow: hidden; }
/* A single mobile action avoids competing with Garage's floating invitation. */
body:has(.dif-post--detail.dif-detail-ready) > .dif-guide-garage-sticky { display: none; }
@media (min-width: 980px) {
  .dif-blog .dif-post--detail.dif-detail-ready > .dif-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(36px, 5vw, 76px); align-items: start; }
  .dif-blog .dif-post--detail .dif-detail-rail { position: sticky; top: calc(var(--dif-detail-header-height) + var(--dif-detail-nav-height) + 20px); max-height: calc(100dvh - var(--dif-detail-header-height) - var(--dif-detail-nav-height) - 40px); overflow-y: auto; overscroll-behavior: contain; margin-top: 0; }
}
@media (max-width: 979px) {
  .dif-blog:has(.dif-post--detail) .dif-page { padding-top: 24px; }
  .dif-blog .dif-post--detail .dif-post__hero--image .dif-feature { aspect-ratio: 2 / 1; }
  .dif-blog .dif-post--detail.dif-detail-has-sheet .dif-detail-rail { display: none; }
  .dif-detail-mobile { position: fixed; z-index: 40; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--dif-line); background: var(--dif-surface); }
  .dif-detail-mobile > span { max-width: 150px; font-size: 13px; font-weight: 600; line-height: 1.4; }
  .dif-detail-mobile button, .dif-detail-mobile a { flex: 0 0 auto; min-height: 50px; margin: 0; padding: 13px 20px; border: 0; border-radius: 10px; background: var(--dif-action); color: var(--dif-on-dark); font: 750 15px/1.4 var(--dif-font); box-shadow: 0 3px 8px rgba(29, 36, 32, .14); cursor: pointer; }
  .dif-detail-mobile button:hover, .dif-detail-mobile a:hover { filter: brightness(.92); }
  .dif-detail-mobile button:focus-visible, .dif-detail-dialog__close:focus-visible { outline: 3px solid var(--dif-action); outline-offset: 3px; }
  .dif-blog .dif-post--detail .dif-detail-dialog .dif-guide-take { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 600px) {
  .dif-blog .dif-post--detail .dif-post-title { font-size: 28px; }
  .dif-blog .dif-post--detail .dif-post__hero-media { margin-top: 22px; border-radius: 12px; }
  .dif-blog .dif-post--detail .dif-answer-card__verdict { font-size: 23px; }
  .dif-blog .dif-post--detail .dif-content h2 { font-size: 22px; }
  .dif-detail-nav { gap: 22px; }
}
@media print {
  .dif-detail-nav, .dif-detail-rail, .dif-detail-mobile, .dif-detail-dialog { display: none !important; }
  .dif-blog .dif-post--detail.dif-detail-ready > .dif-post__layout { display: block; }
}
