/* Shared reading and related-project refinements; existing page identity stays in control. */
:where(main,.wrap,.measure) :where(h1,h2,h3){overflow-wrap:break-word;text-wrap:balance;}
:where(main,.wrap,.measure) :where(p,li){text-wrap:pretty;}
:where(main,.wrap,.measure) :where(img,iframe){max-width:100%;}
:where(.two-col,.cols-2,.split,.grid,.p-grid,.offer-grid,.phase-grid)>*{min-width:0;}
:where(.prose,.prose-flow,.answer,.depth-copy,.narrow,.chapter--document .measure)>p{max-inline-size:75ch;line-height:1.9;}
:where(.prose,.prose-flow,.answer,.depth-copy,.narrow)>p+p{margin-block-start:1.1em;}
:where(.prose,.prose-flow,.answer,.depth-copy,.narrow)>h3{margin-block:2rem .8rem;}
:where(.mpfig,.mp,.masterplan,.master-plan,.masterplan-plate) img{object-fit:contain;height:auto;max-height:none;}
.dl-related-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.4rem!important;list-style:none!important;padding:0!important;margin-block:1.75rem!important;}
.dl-related-grid>.dl-related-card{display:flex;flex-direction:column;min-width:0;padding:1.3rem!important;border:1px solid rgba(202,169,125,.28)!important;background:#201c18!important;border-radius:8px!important;color:#f5eee3!important;}
.dl-related-grid>.dl-related-card a,.dl-related-grid>.dl-related-card strong,.dl-related-grid>.dl-related-card h3{color:#f5eee3!important;font-size:1.15rem;line-height:1.65;text-decoration:none;}
.dl-related-grid>.dl-related-card>span,.dl-related-grid>.dl-related-card>p{display:block;color:#dccbb7!important;margin-block:.7rem 0;line-height:1.8;font-size:1rem;}
.dl-related-image{display:block;width:100%;aspect-ratio:16/10;height:auto!important;object-fit:cover;margin:0 0 1.15rem;border-radius:4px;}
.dl-related-grid>.dl-related-card:focus-within{outline:2px solid #d5b38a;outline-offset:4px;}
.dl-related-grid>.dl-related-card a:hover{text-decoration:underline;text-underline-offset:.25em;}
.relsec .p-grid,.relsec .p-grid-sm{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;align-items:stretch;}
.relsec .pcard{height:100%;overflow:hidden;}
.relsec .pcard-img{aspect-ratio:16/10;height:auto;min-height:0;}
.relsec .pcard-body{padding:1.25rem;}
.relsec .pcard h3{font-size:1.15rem;line-height:1.6;}
:where(.offer-body,.pcard-body,.port-body,.ph-body)>p{line-height:1.8;}
:where(.relation-list,.related-flow){gap:1.5rem;}
:where(.tbl-wrap,.table-scroll,.table-wrap){max-width:100%;overflow:auto;overscroll-behavior-inline:contain;}
@media(max-width:950px){.dl-related-grid,.relsec .p-grid,.relsec .p-grid-sm{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){.dl-related-grid,.relsec .p-grid,.relsec .p-grid-sm{grid-template-columns:minmax(0,1fr)!important;gap:1.25rem!important;}.dl-related-grid>.dl-related-card{padding:1.1rem!important;}.dl-related-image{aspect-ratio:16/9;}:where(.prose,.prose-flow,.answer,.depth-copy,.narrow,.chapter--document .measure)>p{line-height:1.9;}}
@media(prefers-reduced-motion:reduce){.dl-related-grid *{scroll-behavior:auto;transition:none;}}

.dl-map-heading{position:static;inset:auto;z-index:auto;display:block;width:auto;height:auto;background:none;backdrop-filter:none;border:0;padding:0;box-shadow:none;}
.dl-phase-map{display:flex;align-items:center;gap:.6rem;min-height:44px;margin-block:.75rem;color:inherit;text-underline-offset:4px;font-size:.95rem;line-height:1.7;}
.dl-phase-map svg{flex:0 0 20px;}
.dl-phase-map:focus-visible{outline:2px solid currentColor;outline-offset:4px;}

.dl-related-grid>.dl-related-card>a{display:block;min-width:0;overflow-wrap:break-word;}
