.pd-content {
  color: var(--ink, #16392f);
  padding-bottom: clamp(3rem, 7vw, 7rem);
  min-width: 0;
}
.pd-content :is(h2, h3, p, figure, ul) { margin: 0; }
.pd-content h2 {
  color: var(--ink, #16392f);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -.04em;
  font-weight: 600;
}
.pd-content h3 { font-size: clamp(1.1rem, 2vw, 1.38rem); line-height: 1.28; letter-spacing: -.016em; }
.pd-content p { color: var(--muted, #486057); max-width: 78ch; line-height: 1.65; }
.pd-content a { text-underline-offset: .2em; }
.pd-content :is(a, input, summary):focus-visible { outline: 3px solid #a44a20; outline-offset: 3px; }
.pd-nav { display: flex; gap: .3rem 1.8rem; flex-wrap: wrap; padding: 1.1rem 0; border-bottom: 1px solid var(--line, #c4ccc4); }
.pd-nav a { color: var(--ink, #16392f); padding: .4rem 0; font-size: .9rem; font-weight: 600; }
.pd-block { padding: clamp(2.2rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line, #c4ccc4); scroll-margin-top: 5.5rem; }
.pd-block h2 + p, .pd-block .pd-pair + p { margin-top: 1rem; }
.pd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 1.65rem; }
.pd-pair > div { padding-left: 1rem; border-left: 2px solid #a6b3a6; }
.pd-pair p, .pd-question p { margin-top: .5rem; }
.pd-spec { margin-top: 1.45rem; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: clamp(.85rem, 1.5vw, 1rem); }
.pd-spec caption { text-align: left; color: var(--muted, #486057); font-size: .87rem; padding: 0 0 .9rem; }
.pd-spec :is(th, td) { padding: .8rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line, #c4ccc4); overflow-wrap: anywhere; }
.pd-spec thead th { color: #fff; background: #214a3f; font-size: .83rem; line-height: 1.4; }
.pd-spec tbody th { font-weight: 650; color: var(--ink, #16392f); }
.pd-cell-label { display: none; }
.pd-conditions { font-size: .9rem; margin-top: 1rem !important; }
.spec-source { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; line-height: 1.55; color: var(--muted); }
.spec-source small { font-size: .875rem; }
.spec-source a { margin-inline-start: .3em; color: var(--link); font-weight: 600; text-underline-offset: .15em; }
.pd-knowledge { display: grid; gap: 2rem; }
.pd-with-figure { grid-template-columns: minmax(0, 1.25fr) minmax(200px, .75fr); align-items: start; }
.pd-question { margin-top: 1.5rem; }
.pd-next { margin-top: 1.3rem; display: inline-block; color: var(--link); font-weight: 600; }
.pd-figure { min-width: 0; }
.pd-figure img { width: 100%; max-height: 355px; object-fit: contain; background: white; border: 1px solid var(--line, #c4ccc4); }
.pd-figure figcaption { font-size: .8rem; line-height: 1.5; color: var(--muted, #486057); margin-top: .4rem; }
.pd-calc-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.7rem 2rem; margin-top: 1.6rem; background: #e7ede5; padding: clamp(1.1rem, 3vw, 2.5rem); }
.pd-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pd-fields legend { font-size: 1rem; font-weight: 650; padding: 0; margin-bottom: .85rem; }
.pd-fields label { display: grid; gap: .35rem; grid-template-rows: 1fr auto; color: #1d3930; font-size: .85rem; font-weight: 600; }
.pd-field { display: flex; min-width: 0; align-items: center; border: 1px solid #93a498; background: white; padding: 0 .62rem; gap: .24rem; }
.pd-field:focus-within { outline: 2px solid #377861; outline-offset: 1px; }
.pd-field input { display: block; min-width: 0; width: 100%; padding: .6rem 0; border: none; background: transparent; font: inherit; font-size: 1rem; color: #16392f; line-height: 1.5; }
.pd-field input:focus-visible { outline: 0; }
.pd-field:has(input[aria-invalid="true"]) { border: 2px solid #923b20; }
.pd-field > span { white-space: nowrap; color: #53685d; font-weight: 500; font-size: .76rem; }
.pd-meters { background: #1b4136; padding: 1.2rem 1.5rem; color: #fafbf6; display: flex; flex-flow: column; justify-content: center; gap: .8rem; }
.pd-meters > div { display: flex; flex-wrap: wrap; gap: .3rem .65rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #547262; padding-bottom: .45rem; }
.pd-meters > div:last-child { border: 0; padding-bottom: 0; }
.pd-meters span { font-size: .88rem; }
.pd-meters strong { font-size: clamp(1.4rem, 2.8vw, 2.25rem); font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-meters small { font-size: .85rem; letter-spacing: 0; }
.pd-content .pd-error { grid-column: 1/-1; font-weight: 600; font-size: .88rem; line-height: 1.5; color: #77271b; }
.pd-error:empty { display: none; }
.pd-method { margin-top: .8rem; font-size: .9rem; }
.pd-method summary { cursor: pointer; width: fit-content; padding: .35rem 0; text-decoration: underline; text-underline-offset: .2em; }
.pd-method p { margin-top: .5rem; }
.pd-brief { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(1.35rem, 3.2vw, 2.65rem); background: #193d33; margin-top: 2.3rem; }
.pd-brief h2, .pd-brief p { color: #fbfaf3; }
.pd-brief p { margin-top: .55rem; max-width: 55ch; }
.pd-brief a { background: #ffc278; color: #1c332c; text-decoration: none; font-weight: 650; padding: .8rem 1rem; }
.pd-brief a:hover { background: #ffd198; }
.pd-sources { padding-top: 2rem; }
.pd-sources h2 { font-size: 1rem; letter-spacing: 0; }
.pd-sources ul { padding-left: 1.15rem; margin-top: .6rem; font-size: .84rem; line-height: 1.65; color: var(--muted, #486057); }
.pd-sources a { color: var(--link); overflow-wrap: anywhere; }
@media(max-width: 720px) {
  .pd-calc-layout, .pd-with-figure { grid-template-columns: minmax(0,1fr); }
  .pd-calc-layout { gap: 1rem; }
  .pd-content .pd-nav { gap: .3rem 1rem; }
  .pd-pair { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .pd-spec { display: block; }
  .pd-spec caption { display: block; }
  .pd-spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pd-spec tbody, .pd-spec tr, .pd-spec tbody th { display: block; }
  .pd-spec tbody tr { border-bottom: 1px solid var(--line, #c4ccc4); padding-bottom: .5rem; }
  .pd-spec tbody tr th { background: #e4ebe3; padding: .5rem .6rem; border: 0; font-size: .95rem; }
  .pd-spec td { display: grid; grid-template-columns: minmax(90px,.8fr) minmax(0,1.2fr); gap: .6rem; border: none; padding: .28rem .6rem; }
  .pd-cell-label { display: block; color: var(--muted, #486057); }
}
@media(max-width: 410px) {
  .pd-fields { grid-template-columns: minmax(0,1fr); }
  .pd-nav a { font-size: .8rem; }
  .pd-brief { gap: 1rem; }
}

@media (max-width: 760px), (pointer: coarse) {
  .pd-nav a, .pd-method summary, .pd-next, .pd-brief a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
  }
  .pd-field input { min-height: var(--touch-target); }
}
