/* Dhaan: the bento tiles the burning tab, method and data pages are built from. Pictures first,
   one short line each. Tokens follow the atlas pages (--dh-*). */
.dh-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.dh-tile { grid-column: span 3; min-width: 0; padding: 16px 18px; border-radius: 16px; background: var(--dh-card); border: 1px solid var(--dh-rule); display: flex; flex-direction: column; gap: 8px; }
.dh-tile.w4 { grid-column: span 4; } .dh-tile.w6 { grid-column: span 6; } .dh-tile.w8 { grid-column: span 8; } .dh-tile.w12 { grid-column: span 12; }
.dh-tile.muted { background: transparent; border-style: dashed; }
.dh-tile h2, .dh-tile h3 { margin: 0; font: 600 13px/1.3 "Space Grotesk", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--dh-dim); display: flex; align-items: center; gap: 8px; }
.dh-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--dh-acc); flex: none; }
.dh-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dh-big { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.dh-big small { font: 400 15px "Space Grotesk", sans-serif; color: var(--dh-dim); margin-left: 6px; }
.dh-line { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--dh-dim); }
.dh-line b, .dh-line a { color: var(--dh-ink); }
.dh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dh-chips li { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--dh-rule); white-space: nowrap; }
.dh-chips li b { font-variant-numeric: tabular-nums; }
.dh-fig { margin: 0; min-width: 0; } .dh-fig svg { width: 100%; height: auto; display: block; }
.dh-hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; align-items: center; }
.dh-hbar i { display: block; height: 10px; border-radius: 3px; background: var(--dh-acc); min-width: 2px; }
.dh-hbar span { display: flex; justify-content: space-between; gap: 8px; } .dh-hbar span b { font-variant-numeric: tabular-nums; }
.dh-spark { display: grid; grid-template-columns: 90px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--dh-rule); }
.dh-spark:first-of-type { border-top: 0; }
.dh-spark svg { width: 100%; height: 28px; display: block; } .dh-spark b { text-align: right; font-variant-numeric: tabular-nums; }
.dh-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 22px; }
.dh-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--dh-dim); }
.dh-points li b { color: var(--dh-ink); }
.dh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dh-dot.ok { background: #2f8f4e; } .dh-dot.warn { background: #b7861a; } .dh-dot.off { background: transparent; border: 1.5px solid var(--dh-dim); }
.dh-grid-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dh-grid-src a, .dh-grid-src span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dh-rule); font-size: 12.5px; color: var(--dh-dim); text-decoration: none; }
.dh-grid-src b { font-size: 13.5px; color: var(--dh-ink); }
.dh-months { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 10px; align-items: center; font-size: 12.5px; }
.dh-months .m { position: relative; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--dh-rule) 60%, transparent); }
.dh-months .m i { position: absolute; top: 0; bottom: 0; border-radius: 4px; } .dh-months .m i.sow { background: #5aa9c9; } .dh-months .m i.cut { background: #c9902c; }
.dh-months .head { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10.5px; color: var(--dh-dim); }
.dh-quiet { font-size: 13px; color: var(--dh-dim); line-height: 1.5; margin: 6px 0 0; }
.dh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .dh-table th, .dh-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--dh-rule); font-variant-numeric: tabular-nums; } .dh-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dh-dim); }
.dh-chart { width: 100%; height: auto; display: block; }
.dh-grid { stroke: currentColor; opacity: .12; } .dh-tick { font: 11px "Space Grotesk", sans-serif; fill: currentColor; opacity: .7; } .dh-marker { stroke: var(--dh-acc); stroke-dasharray: 3 3; }
.dh-page { max-width: 1180px; padding-top: 22px; padding-bottom: 60px; }
.dh-page > h1 { font: italic 400 clamp(34px, 5vw, 52px)/1.05 "DM Serif Display", Georgia, serif; margin: 0 0 6px; }
.dh-page > .dek { margin: 0 0 22px; font-size: 16px; color: var(--dh-dim); max-width: 62ch; line-height: 1.5; }
.dh-page section + section { margin-top: 28px; }
.dh-page .dh-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; } .dh-page .dh-sh h2 { white-space: normal; text-wrap: balance; }   /* was nowrap: on a phone a long heading pushed the whole page sideways */ .dh-page .dh-sh h2 { font: italic 400 26px/1.1 "DM Serif Display", Georgia, serif; margin: 0; } .dh-page .dh-sh p { margin: 0; font-size: 13.5px; color: var(--dh-dim); }
@media (max-width: 1000px) { .dh-tile, .dh-tile.w4 { grid-column: span 6; } .dh-tile.w8 { grid-column: span 12; } }
@media (max-width: 620px) { .dh-tile, .dh-tile.w4, .dh-tile.w6 { grid-column: span 12; } .dh-big { font-size: 34px; } .dh-months { grid-template-columns: 104px minmax(0, 1fr); font-size: 12px; } }
.dh-more { margin: 0; font-size: 13px; color: var(--dh-dim); } .dh-more summary { cursor: pointer; color: var(--dh-acc); font-weight: 600; list-style: none; } .dh-more summary::-webkit-details-marker { display: none; } .dh-more summary::after { content: " ›"; } .dh-more[open] summary::after { content: " ⌄"; } .dh-more p { margin: 6px 0 0; line-height: 1.5; }
.nw { white-space: nowrap; }
.dh-months .st { display: grid; gap: 1px; min-width: 0; } .dh-months .st span, .dh-months .st small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dh-months .st small { color: var(--dh-dim); font-size: 11px; line-height: 1.3; }

/* Bar rows (rebuilt 3 Oct 2026). Markup: <span><span>label <small>note</small></span><b>value</b></span><i style="width:N%"></i>
   One column: the label and its value on a line, the note under the label, the bar full width beneath. Words never break inside. */
.dh-hbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 13.5px; align-items: start; }
.dh-hbar > span, .dh-hbar .row > span { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 10px; }
.dh-hbar > span:first-child, .dh-hbar .row:first-child > span { margin-top: 0; }
.dh-hbar > span > span, .dh-hbar .row > span > span { min-width: 0; overflow-wrap: normal; word-break: normal; }
.dh-hbar small { display: block; font-size: 12px; line-height: 1.35; opacity: .72; font-weight: 400; margin-top: 1px; }
.dh-hbar b { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dh-hbar i { display: block; height: 6px; border-radius: 3px; background: var(--dh-acc); margin-top: 5px; min-width: 3px; max-width: 100%; }
.dh-hbar .row { display: grid; grid-template-columns: minmax(0, 1fr); }
.dh-hbar.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } .dh-hbar.cols2 .row > span { margin-top: 0; }
@media (max-width: 700px) { .dh-hbar.cols2 { grid-template-columns: minmax(0, 1fr); } }
/* a section heading and its note wrap as words, never push the page wide */
.dh-sh { flex-wrap: wrap; } .dh-sh h2, .dh-sh p { min-width: 0; } .dh-tile { min-width: 0; } .dh-chips a, .dh-grid-src a { color: inherit; }
.dh-grid-src > * { min-width: 0; overflow-wrap: break-word; }
.dh-hbar > span > span, .dh-hbar .row > span > span { display: block; }
/* every span the tiles use, defined once here (pages were defining some and missing others) */
.dh-tile.w3 { grid-column: span 3; } .dh-tile.w5 { grid-column: span 5; } .dh-tile.w7 { grid-column: span 7; } .dh-tile.w9 { grid-column: span 9; }
@media (max-width: 900px) { .dh-tile.w3, .dh-tile.w5, .dh-tile.w7, .dh-tile.w9 { grid-column: span 6; } .dh-tile.w7, .dh-tile.w9 { grid-column: span 12; } }
@media (max-width: 600px) { .dh-tile.w3, .dh-tile.w5, .dh-tile.w7, .dh-tile.w9 { grid-column: span 12; } }
.dh-hbar.nobar i { display: none; } .dh-hbar.nobar > span { padding: 7px 0; margin: 0; border-top: 1px solid var(--dh-rule); } .dh-hbar.nobar > span:first-child { border-top: 0; }
/* a caption sits clear of the card above it; source names do not squeeze */
.dh-bento + .dh-quiet, ul + .dh-quiet, .dh-grid-src + .dh-quiet, .dh-points + .dh-quiet, .dh-chips + .dh-quiet { margin-top: 14px; }
.dh-grid-src { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } @media (max-width: 420px) { .dh-grid-src { grid-template-columns: 1fr; } .dh-hbar.nobar > span { flex-wrap: wrap; } .dh-hbar.nobar b { white-space: normal; } }

/* 4 Oct 2026: a section heading wraps instead of pushing the page sideways on a phone; a long unbroken source name breaks. */
.dh-sh { flex-wrap: wrap; } .dh-sh h2 { white-space: normal; min-width: 0; text-wrap: balance; }
.dh-grid-src a, .dh-grid-src span, .dh-grid-src b { min-width: 0; overflow-wrap: anywhere; }
/* a tile whose number is withheld: a state in words where the figure would be */
.dh-state { margin: 6px 0 4px; font: 500 22px/1.15 'DM Serif Display', Georgia, serif; font-style: italic; color: var(--dh-ink); }
.dh-state + .dh-line a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* running text inside a tile or under a section never runs wider than a comfortable line, however wide the tile (8 Oct 2026, wide screens) */
.dh-line, .dh-quiet, .dh-tile > p, .dh-more p { max-width: 82ch; }
