/* Pillar pages: ED avoidance, economics, early entry, payment */
.pl-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pl-toc a { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--teal); background: var(--teal-mist); border: 1px solid #c7e0db; border-radius: 999px; padding: 6px 14px; }
.pl-toc a:hover { background: var(--teal-soft); color: var(--navy); }
.pl-sec { padding: 40px 0 8px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pl-sec > h2 { margin-bottom: .35em; }
.pl-sec > .lede, .pl-sec > .pl-intro { max-width: 46em; color: var(--ink-soft); }
.pl-intro { font-size: 1.05rem; line-height: 1.6; }
.pl-sub { font-family: var(--sans); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 26px 0 10px; }

.pl-stats { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 640px) { .pl-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pl-stats.three { grid-template-columns: repeat(3, 1fr); } .pl-stats.four { grid-template-columns: repeat(4, 1fr); } }
.pl-stat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.pl-stat .pl-num { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--navy); font-weight: 500; }
.pl-stat .pl-lbl { display: block; font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
.pl-stat .pl-basis { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }

.pl-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.pl-card h3 { margin-bottom: .4em; }
.pl-card h4 { margin: 0 0 .3em; }
.pl-card > :last-child { margin-bottom: 0; }
.pl-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 760px) { .pl-cards.two { grid-template-columns: 1fr 1fr; } .pl-cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pl-cards.three { grid-template-columns: repeat(3, 1fr); } }

.pl-list { margin: 8px 0 14px; padding-left: 20px; }
.pl-list li { margin-bottom: 6px; }
.pl-plain { list-style: none; padding: 0; margin: 8px 0 14px; }
.pl-plain li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.pl-plain li:last-child { border-bottom: 0; }


.pl-range { display: inline-block; font-weight: 650; color: var(--navy); }

.pl-acc { margin: 12px 0; display: grid; gap: 10px; }
.pl-acc details { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(18,48,74,.05); }
.pl-acc summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; font-weight: 650; color: var(--navy); position: relative; line-height: 1.35; }
.pl-acc summary::-webkit-details-marker { display: none; }
.pl-acc summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.pl-acc details[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.pl-acc summary:hover { background: var(--teal-mist); border-radius: var(--radius-sm); }
.pl-acc summary .pl-sum-sub { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.pl-acc .pl-acc-body { padding: 2px 16px 16px; border-top: 1px solid var(--line-soft); }
.pl-acc .pl-acc-body > :first-child { margin-top: 12px; }
.pl-acc .pl-acc-body > :last-child { margin-bottom: 0; }
.pl-kv { margin: 10px 0 0; }
.pl-kv dt { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-top: 12px; }
.pl-kv dd { margin: 3px 0 0; color: var(--ink-soft); }

.pl-tablewrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #fff; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.pl-table th { text-align: left; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--teal-mist); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pl-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pl-table tr:last-child td { border-bottom: 0; }

.pl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pl-filter button { font: inherit; font-size: 14px; font-weight: 600; color: var(--teal); background: #fff; border: 1px solid #c7e0db; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.pl-filter button:hover { background: var(--teal-mist); }
.pl-filter button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.pl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.pl-tools .search { max-width: 340px; }
.pl-count { font-size: 14px; color: var(--muted); }
.pl-acc [hidden], .pl-cards [hidden] { display: none !important; }

.pl-flow { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 16px 0; counter-reset: pl; }
@media (min-width: 760px) { .pl-flow { grid-template-columns: repeat(3, 1fr); } }
.pl-flow > div { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px 14px 48px; position: relative; counter-increment: pl; }
.pl-flow > div::before { content: counter(pl); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pl-flow h4 { margin-bottom: .2em; }
.pl-flow p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.pl-end { padding-bottom: 24px; }
.pl-acc .pl-plain .pl-range { margin-right: 2px; }
.pl-mini { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 14px 0 4px; }
.pl-rung-sum { color: var(--ink-soft); max-width: 46em; margin: 0 0 8px; }
.pl-cons, .pl-ev, .pl-st { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; vertical-align: middle; white-space: nowrap; }
.pl-cons.high { background: var(--warm-soft); color: var(--warm); }
.pl-cons.medium { background: #f5ead6; color: #7a5a2c; }
.pl-cons.low { background: var(--teal-mist); color: var(--teal); }
.pl-ev.solid { background: var(--teal); color: #fff; }
.pl-ev.mixed { background: var(--teal-soft); color: var(--teal); }
.pl-ev.thin { background: #f5ead6; color: #7a5a2c; }
.pl-ev.none { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.pl-st { background: var(--sand-2); color: var(--ink-soft); }
.pl-st.ended { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.pl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.pl-type-chip { font-size: 14px; color: var(--muted); }
.pl-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.pl-legend li { line-height: 1.5; }
.pl-link { text-decoration: none; color: var(--teal); }
.pl-link:hover { background: var(--teal-soft); }
.pl-pilot { margin-top: 14px; background: var(--warm-soft); border-radius: var(--radius-sm); }
.pl-pilot > summary { cursor: pointer; padding: 10px 14px; font-weight: 650; color: var(--navy); }
.pl-pilot .pl-acc-body { border-top: 0; }
.pl-nf, .pl-nf-inline { margin-top: 14px; }
.pl-nf summary, .pl-nf-inline summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.pl-nf-list { max-height: 420px; overflow-y: auto; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); }
.pl-nf-list li { margin-bottom: 6px; }
.pl-empty { color: var(--muted); padding: 12px 0; }
.pl-group[hidden] { display: none !important; }
.source-card .sc-how { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.source-card .sc-item:first-child .sc-how { margin-top: 0; }

@media (min-width: 900px) {
  .pl-sec { padding: 28px 0 4px; }
  .pl-sub { margin: 18px 0 8px; }
  .pl-toc { margin: 12px 0 0; }
  .pl-stats { margin: 12px 0; }
}

@media (min-width: 900px) {
  .pl-acc .pl-acc-body :where(p, li, dd) { max-width: 1000px; }
}
.dm-doc .dm-empty { padding: 20px 24px; }
