/* ─────────────────────────────────────────────────────────
   Disability benefits directory (/disability-benefits-directory).

   Rides on the guide foundation: this page loads styles.css,
   pages.css, campaign-pages.css, action-cards.css, mobile.css
   and the two dtc-guide stylesheets, so headings, disclosures,
   notes and buttons are the DTC guide's. Only the program card
   grid, the jurisdiction filter and the province record below
   are specific to this page. Shared tokens only.
   ───────────────────────────────────────────────────────── */

/* ── Program cards: one nationwide or workplace program each ── */
.ds-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0 0;padding:0;list-style:none}
.ds-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:20px;border:1px solid var(--rule-2);border-top:3px solid var(--link);border-radius:12px;background:var(--raise)}
.ds-card>h3{margin:0;font-size:1.25rem;line-height:1.25}
.ds-card>p{margin:0;font-size:1rem;line-height:1.55}
/* Type-qualified `.ds-card>p` above would otherwise win on specificity. */
.ds-card>.ds-card__tag{font-family:var(--font-mono);font-size:.8125rem;font-weight:700;line-height:1.5;letter-spacing:.02em;text-transform:uppercase;color:var(--ink-2)}
.ds-card__links{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:auto}
.ds-card__links a{display:inline-block;min-height:44px;padding:10px 0;font-size:.875rem;line-height:1.5;text-underline-offset:.2em}
.ds-card .action-card__cta{margin-top:auto}

/* ── Jurisdiction filter: native buttons, same pill as the
      take-action jump row. Hidden until the script runs. ──── */
.ds-filter{margin:20px 0 8px}
.ds-filter__label{margin:0 0 10px;font-size:.875em;font-weight:700;color:var(--ink-2)}
.ds-filter__row{display:flex;flex-wrap:wrap;gap:8px 10px}
.dtc-guide .ds-filter__row button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--rule-2);border-radius:999px;background:var(--raise);font-family:var(--font-mono);font-size:.8125em;font-weight:700;line-height:1.3;color:var(--ink)}
.dtc-guide .ds-filter__row button:hover{border-color:var(--link);color:var(--link)}
.dtc-guide .ds-filter__row button[aria-pressed="true"]{border-color:var(--link);background:var(--badge);color:var(--link)}
.ds-filter__status{margin:12px 0 0;font-size:.875em;color:var(--ink-2)}

/* ── One jurisdiction record per disclosure ───────────────── */
.ds-prov__badge{display:inline-block;margin:0;padding:4px 10px;border-radius:999px;background:var(--badge);font-family:var(--font-mono);font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--link)}
.ds-prov__list{margin:16px 0 0}
.ds-prov__list dt{margin-top:16px;font-size:.9375em;font-weight:700;color:var(--ink)}
.ds-prov__list dt:first-of-type{margin-top:0}
.ds-prov__list dd{margin:6px 0 0;font-size:1rem;line-height:1.55;color:var(--ink-2)}
.ds-prov__foot{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:18px;padding-top:6px;border-top:1px solid var(--rule-2)}
.ds-prov__foot a{display:inline-block;min-height:44px;padding:10px 0;font-size:.875em;line-height:1.5;text-underline-offset:.2em}

/* ── Paperwork checklist, inside the shared guide panel ───── */
.ds-steps{margin:0;padding-left:24px;display:grid;gap:18px}
.ds-steps>li{font-size:.9375em;line-height:1.65}
.ds-steps strong{display:block;color:var(--ink)}

@media(max-width:860px){
  .ds-cards{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:600px){
  .ds-card{padding:16px}
  .dtc-guide .ds-filter__row button{flex:1 1 calc(33.333% - 10px)}
}

/* Printing the directory: every jurisdiction, no controls. */
@media print{
  .ds-filter{display:none!important}
  .dtc-guide .ds-prov[hidden]{display:block!important}
  .ds-card{break-inside:avoid;border:1px solid #78829c}
}

/* ── Page width ───────────────────────────────────────────
   Full site width, like every other page: the card grids and
   province records are the bulk of this page and need the
   room. Only running text is held to the reading measure. */
@media screen{
  .dtc-guide.ds-directory{max-width:var(--max)}
  .ds-directory .guide-header>:is(h1,p),
  .ds-directory>section>p{max-width:var(--reading-width)}
  /* Records and the checklist span the column; their prose does not. */
  .ds-prov__list :is(dt,dd),
  .ds-steps>li{max-width:var(--reading-width)}
}

/* ── Buttons: links that start an action read as buttons (Nov 2026) ── */
.ds-directory .benefit-links{flex-direction:row;flex-wrap:wrap;gap:10px;width:100%}
.ds-directory .benefit-links>a,
.ds-directory .ds-card__links a,
.ds-directory .ds-prov__foot a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid var(--link);border-radius:999px;background:transparent;font-size:.9375rem;font-weight:700;line-height:1.3;color:var(--link);text-decoration:none;transition:background-color .15s,color .15s,border-color .15s}
.ds-directory .benefit-links>a:hover,
.ds-directory .ds-card__links a:hover,
.ds-directory .ds-prov__foot a:hover{background:var(--link);border-color:var(--link);color:var(--paper)}
.ds-directory .benefit-links>a:focus-visible,
.ds-directory .ds-card__links a:focus-visible,
.ds-directory .ds-prov__foot a:focus-visible{outline:3px solid var(--link);outline-offset:3px}
/* The first action in a card or province is the main one: filled. */
.ds-directory .benefit-links>a:first-child,
.ds-directory .ds-prov__foot a:first-child{background:var(--link);color:var(--paper)}
.ds-directory .benefit-links>a:first-child:hover,
.ds-directory .ds-prov__foot a:first-child:hover{filter:brightness(1.1)}
.ds-directory .ds-card__links,.ds-directory .ds-prov__foot{gap:10px;padding-top:14px}
/* Secondary lists of official links: compact chips rather than bare underlines. */
.ds-directory .benefits-other-links{gap:8px}
.ds-directory .benefits-other-links a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid var(--rule-2);border-radius:999px;background:var(--raise);font-size:.875rem;font-weight:600;line-height:1.3;color:var(--link);text-decoration:none}
.ds-directory .benefits-other-links a:hover{border-color:var(--link)}

/* ── Province filter: spread the buttons across the row on wide screens ── */
@media (min-width:761px){
  .ds-directory .ds-filter__row button{flex:1 1 0;min-width:max-content}
}

/* ── Opened provinces: use the full card width on wide screens ── */
@media (min-width:900px){
  .ds-directory .ds-prov__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 1fr;grid-auto-flow:column;column-gap:28px;row-gap:6px}
  .ds-directory .ds-prov__list dt,.ds-directory .ds-prov__list dt:first-of-type{margin-top:0}
  .ds-directory .ds-prov__list dd{max-width:none;margin:0}
}

/* ── Section contents under the header: numbered tiles (Nov 2026) ── */
.ds-jump{margin:24px 0 8px}
.ds-jump ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.ds-jump li{margin:0;min-width:0}
.ds-jump a{display:flex;flex-direction:column;align-items:flex-start;gap:10px;height:100%;min-height:44px;padding:14px 16px 16px;border:1px solid var(--rule-2);border-top:3px solid var(--link);border-radius:12px;background:var(--raise);color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}
.ds-jump a:hover{border-color:var(--link);transform:translateY(-2px)}
.ds-jump a:focus-visible{outline:3px solid var(--link);outline-offset:3px}
.ds-jump__num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:var(--badge);font-family:var(--font-mono);font-size:.875rem;font-weight:700;color:var(--link)}
.ds-jump__label{font-size:1rem;font-weight:700;line-height:1.3}
.ds-jump__arrow{margin-top:auto;font-weight:700;color:var(--link)}
@media (prefers-reduced-motion:reduce){.ds-jump a{transition:none}.ds-jump a:hover{transform:none}}
/* Tablets: three across. Phones: a compact list, one section per row. */
@media (max-width:1000px){.ds-jump ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){
  .ds-jump ol{grid-template-columns:1fr;gap:8px}
  .ds-jump a{flex-direction:row;align-items:center;gap:12px;padding:10px 14px;border-top-width:1px;border-left:3px solid var(--link)}
  .ds-jump__arrow{margin:0 0 0 auto}
}
@media print{.ds-jump{display:none}}

/* ── Shared action cards: keep the guide's heading and paragraph margins out,
   so they match the cards on the letters and campaign pages ── */
.ds-directory .action-card :is(h2,h3,p){margin:0}
.ds-directory .action-card details{margin-top:0}
@media (min-width:1000px){.ds-directory #action .action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The guide styles every details/summary as a boxed accordion; action cards keep their inline toggle. */
.ds-directory .action-card details.action-card__details{margin:4px 0 0;border:0;border-radius:0;background:transparent}
.ds-directory .action-card details.action-card__details>summary{display:list-item;gap:normal;min-height:44px;padding:8px 0;font-size:.9375rem;line-height:1.5;list-style:disclosure-closed}
.ds-directory .action-card details.action-card__details[open]>summary{list-style:disclosure-open}
.ds-directory .action-card details.action-card__details>summary::after{content:none;display:none}
.ds-directory .action-card .action-card__clock{display:none}
.ds-directory .action-card .action-card__meta,.ds-directory .action-card .action-card__time{line-height:1.5}
