/* Downloadable workbook collection. Keep this independent of the report UI. */
.excel-library { padding: 96px 0 104px; }
.excel-library-heading { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.excel-library .kicker { margin-bottom: 20px; }
.excel-library-heading h2 { margin: 0; font-size: clamp(42px, 4.8vw, 74px); font-weight: 500; letter-spacing: -.065em; line-height: 1.04; }
.excel-library-heading h2 em { color: #58764f; font-family: var(--serif); font-size: 1.13em; font-weight: 400; }
.excel-library-heading > p { margin: 0 0 4px; padding-left: 28px; border-left: 1px solid #bdc8b8; color: #5c6b62; font-size: 15px; line-height: 1.75; max-width: 590px; }
.excel-feature { display: grid; grid-template-columns: .94fr 1.06fr; background: #10251f; color: #f4f2eb; border: 1px solid #233d31; }
.excel-feature-copy { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.excel-feature-label { margin-bottom: 18px; color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.excel-feature h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; font-weight: 500; letter-spacing: -.055em; margin-bottom: 15px; }
.excel-feature-copy > p { color: #d4ded5; font-size: 15px; line-height: 1.7; margin-bottom: 24px; max-width: 490px; }
.excel-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.excel-skills li { border: 1px solid #526c40; border-radius: 2px; color: #eef2e6; padding: 7px 9px; font: 9px var(--mono); letter-spacing: .06em; }
.excel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.excel-download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 17px; background: var(--lime); color: #12231b; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.excel-download:hover { background: #c8ec75; transform: translateY(-2px); }
.excel-download svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.excel-preview-link { font-size: 12px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.excel-preview-link span { padding-left: 5px; }
.excel-feature-visual { min-width: 0; padding: 24px 24px 24px 0; display: flex; align-items: center; }
.excel-feature-visual a { display: block; width: 100%; overflow: hidden; background: #fff; border: 1px solid #cbd4ca; box-shadow: 0 7px 28px #0003; }
.excel-feature-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; object-position: center 13%; transition: transform .3s; }
.excel-feature-visual a:hover img { transform: scale(1.025); }
.excel-supporting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.excel-card { min-width: 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 17px; padding: 18px; border: 1px solid #bfc8b8; background: #f8f7f1; }
.excel-card-visual { display: block; align-self: stretch; min-width: 0; min-height: 190px; position: relative; overflow: hidden; border: 1px solid #d1d8cb; background: #fff; }
.excel-card-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 35% 5%; transition: transform .3s; }
.excel-card-visual:hover img { transform: scale(1.025); }
.excel-card-copy { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.excel-card :is(h3, h4) { font-size: 21px; line-height: 1.17; letter-spacing: -.045em; font-weight: 600; margin-bottom: 12px; }
.excel-card p { font-size: 12px; line-height: 1.65; color: #5c6b62; margin-bottom: 18px; }
.excel-card .excel-actions { flex-direction: column; align-items: flex-start; gap: 11px; margin-top: auto; }
.excel-card .excel-download { min-height: 39px; font-size: 11px; padding: 9px 12px; }
.excel-card .excel-preview-link { font-size: 11px; }
.excel-library-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 11px; color: #657269; line-height: 1.6; margin: 22px 0 0; }
.excel-preview-dialog { width: min(1180px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #a9b8a3; border-radius: 4px; color: var(--ink); background: var(--cream); box-shadow: 0 20px 80px #0005; }
.excel-preview-dialog::backdrop { background: #0c1b15cf; backdrop-filter: blur(4px); }
.excel-preview-dialog[open] { display: flex; flex-direction: column; }
.excel-preview-heading { padding: 24px 28px 18px; border-bottom: 1px solid #cbd4ca; flex: none; position: relative; }
.excel-preview-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; margin: 0 130px 8px 0; }
.excel-preview-heading p { margin: 0; color: #5c6b62; font-size: 13px; line-height: 1.6; }
.excel-preview-close { position: absolute; right: 22px; top: 21px; border: 1px solid #bfc8b8; background: transparent; color: var(--ink); padding: 9px 12px; font-size: 12px; border-radius: 2px; }
.excel-preview-image { overflow: auto; min-height: 0; padding: 18px; background: #e4e9df; }
.excel-preview-image img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px #16291e15; }
.excel-preview-footer { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 28px; border-top: 1px solid #cbd4ca; }
.excel-preview-footer p { margin: 0; font-size: 11px; color: #657269; line-height: 1.5; }
html:has(.excel-preview-dialog[open]) { overflow: hidden; }
@media (max-width: 1199px) {
  .excel-feature-copy { padding: 30px; }
  .excel-card { grid-template-columns: 1fr; }
  .excel-card-visual { min-height: 0; aspect-ratio: 1.65; }
  .excel-card-visual img { object-position: center 8%; }
  .excel-card :is(h3, h4) { font-size: 23px; }
  .excel-card .excel-actions { flex-direction: row; gap: 14px; }
}
@media (max-width: 759px) {
  .excel-library { padding: 66px 0; }
  .excel-library-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 26px; }
  .excel-library-heading > p { padding-left: 0; border: 0; font-size: 14px; }
  .excel-feature { grid-template-columns: 1fr; }
  .excel-feature-copy { padding: 28px 24px; }
  .excel-feature-visual { padding: 0 20px 20px; }
  .excel-feature h3 { font-size: 34px; }
  .excel-feature-copy > p { font-size: 14px; }
  .excel-skills { margin-bottom: 25px; }
  .excel-supporting { grid-template-columns: 1fr; }
  .excel-card { grid-template-columns: .8fr 1.2fr; gap: 18px; padding: 18px; }
  .excel-card-visual { aspect-ratio: auto; }
  .excel-card-visual img { object-position: 35% 6%; }
  .excel-card :is(h3, h4) { font-size: 22px; }
  .excel-card .excel-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .excel-preview-heading { padding: 20px; }
  .excel-preview-heading h2 { font-size: 21px; margin-right: 95px; }
  .excel-preview-close { top: 17px; right: 14px; }
  .excel-preview-image { padding: 10px; }
  .excel-preview-image img { min-width: 760px; }
  .excel-preview-footer { padding: 14px 18px; align-items: flex-start; }
  .excel-preview-footer p { max-width: 160px; }
}
@media (max-width: 399px) {
  .excel-card { grid-template-columns: 1fr; }
  .excel-card-visual { aspect-ratio: 1.85; }
  .excel-card-visual img { object-position: center 9%; }
  .excel-card .excel-actions { flex-direction: row; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .excel-download, .excel-feature-visual img, .excel-card-visual img { transition: none; }
}

/* Browse the workbook collection by finance function. */
.excel-category { margin-top: 38px; scroll-margin-top: 110px; }
.excel-category-heading { margin-bottom: 18px; padding-top: 23px; border-top: 1px solid #bdc8b8; }
.excel-category-heading h3 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin: 0 0 8px; }
.excel-category-heading p { font-size: 13px; color: #5c6b62; line-height: 1.6; margin: 0; }
.excel-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.excel-category-grid .excel-feature-label { color: #58764f; margin-bottom: 10px; }
@media (max-width: 759px) {
  .excel-category-grid { grid-template-columns: 1fr; }
  .excel-category-heading h3 { font-size: 24px; }
}

/* Native disclosures keep categories compact and keyboard accessible. */
.excel-category { margin-top: 14px; border-top: 1px solid #bdc8b8; }
.excel-category-heading { display: flex; align-items: center; gap: 18px; margin: 0; padding: 20px 0; border: 0; cursor: pointer; list-style: none; }
.excel-category-heading::-webkit-details-marker { display: none; }
.excel-category-heading > div { flex: 1; min-width: 0; }
.excel-category-heading h3 { margin-bottom: 6px; }
.excel-category-count { flex: none; color: #657269; font-size: 12px; white-space: nowrap; }
.excel-category-chevron { width: 20px; height: 20px; flex: none; fill: none; stroke: #203d30; stroke-width: 1.5; }
.excel-category[open] > summary .excel-category-chevron { transform: rotate(180deg); }
.excel-category-heading:hover h3 { color: #58764f; }
.excel-category-heading:focus-visible { outline: 2px solid #58764f; outline-offset: 5px; }
.excel-category > .excel-category-grid { padding-bottom: 24px; }
.excel-category:not([open]) > .excel-category-grid { display: none; }
@media (max-width: 759px) {
  .excel-category-heading { gap: 10px; padding: 18px 0; }
  .excel-category-heading h3 { font-size: 24px; }
  .excel-category-count { font-size: 11px; }
}
