/* Deal Library overview. The masthead, sign-up and footer come from base.css. */
.library-page{font:14px/1.5 Arial,sans-serif;color:var(--ink);background:var(--white)}
.library-page h1,.library-page h2,.library-page h3,.library-page figcaption{font-family:'EB Garamond',Georgia,serif;font-weight:500}
.library-page h1{font-size:clamp(40px,4.2vw,52px);line-height:1.08}
.library-page h2{font-size:32px;line-height:1.15}
.library-page h3,.library-page figcaption{font-size:22px;line-height:1.2}
.library-page a{color:var(--slate-blue)}
.library-wrap{max-width:calc(var(--page-width) + 2*var(--page-gutter));margin:auto;padding:40px var(--page-gutter)}
.library-sub{margin:8px 0 16px;font-size:16px;color:var(--stone)}
.library-button{display:inline-block;padding:12px 24px;background:var(--slate-blue);color:var(--white)!important;text-decoration:none;font-weight:700}
.nowrap{white-space:nowrap}
.arrow{font:400 .8em Arial,sans-serif}

/* Shared page chrome keeps its own colours against the library's link colour. */
.library-page .wordmark{color:var(--lake)}
.library-page .top-nav a{color:var(--ink)}
.library-page .top-nav a:hover{color:var(--lake)}
.library-page .footer a{color:var(--paper)}
.library-page .container{width:min(100%,calc(var(--page-width) + 2*var(--page-gutter)));padding-left:var(--page-gutter);padding-right:var(--page-gutter)}

/* Masthead: wordmark at the content's left edge, publication menu at the right. */
.library-page .masthead{display:grid;grid-template-areas:"brand nav";grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:0 max(var(--page-gutter),calc((100% - var(--page-width))/2));height:72px}
.library-page .masthead-inner{grid-area:brand;display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:0}
.library-page .masthead-inner:after{content:'DEAL LIBRARY';border-left:1px solid var(--lake);padding-left:16px;color:var(--stone);font:700 13px/1 Arial,sans-serif;letter-spacing:.14em;white-space:nowrap}
.library-page .masthead .wordmark{font-size:32px}
.library-page .masthead-art{display:none!important}
.library-page .top-nav{grid-area:nav;justify-self:end;border:0;padding:0;gap:24px;flex-wrap:nowrap;white-space:nowrap}

/* Library tabs */
.library-bars{position:sticky;top:0;z-index:30}
.library-nav{position:sticky;top:0;z-index:20;background:var(--slate-tint)}
.library-nav>div{max-width:calc(var(--page-width) + 2*var(--page-gutter));height:44px;margin:auto;padding:0 var(--page-gutter);display:flex;align-items:center;gap:24px;overflow:auto;white-space:nowrap}
.library-status{margin-left:auto;color:var(--slate-deep);font-size:13px}
.library-nav a{color:var(--slate-deep);text-decoration:none;padding:8px 0;border-bottom:2px solid transparent}
.library-nav a:hover{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px}
.library-nav a[aria-current]{color:var(--ink);font-weight:700;border-bottom-color:var(--slate-blue)}
.library-nav a[aria-current]:hover{text-decoration:none}

/* Warm paper and white are the only page grounds. */
.library-hero,.library-market{background:var(--paper)}
.library-page .signup{background:var(--paper)}

/* Hero type. Its layout comes later in this file, after the shared heading sizes. */
.library-lede{margin:16px 0 0;font-size:18px;line-height:1.45;color:var(--stone)}
.library-hero h1 em{color:var(--slate-blue)}

/* Comparables feature */
.library-feature{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
/* Short, wide columns on one scale: 72px is $45M, so $10.5M is 17px. The figures sit on one line under the axis, each centred on its column. */
.library-proof{margin:0;width:fit-content;max-width:100%}
.proof-plot,.proof-values{display:grid;grid-template-columns:repeat(2,minmax(0,160px))}
.proof-plot{align-items:end;height:72px;border-bottom:1px solid var(--ink)}
.proof-plot i{display:block;width:96px;height:17px;margin:0 auto;background:var(--brick)}
.proof-plot i.tall{height:72px;background:var(--data-blue)}
.proof-values{margin-top:12px;text-align:center}
.proof-values strong{display:block;font:500 26px/1.1 'EB Garamond',Georgia,serif;font-variant-numeric:lining-nums;color:var(--ink)}
.proof-values span{display:block;margin-top:4px;font-size:13px;line-height:1.35;color:var(--stone)}

/* Market charts */
.library-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:0 0 32px}
.library-charts figure{margin:0;border-top:1px solid var(--rule);padding-top:16px}
.library-charts figcaption{font-size:19px;margin-bottom:16px;color:var(--ink)}
.rank{display:grid;grid-template-columns:112px minmax(0,1fr) 56px;align-items:center;gap:12px 8px;font-size:13px}
.rank i{background:var(--rule);height:12px}
.rank i:before{content:'';display:block;width:var(--bar);height:100%;background:var(--brick)}
.rank b{font-weight:400;text-align:right}

/* Stage chart: bar height is the median headline value, on one fixed scale. The black base is the upfront's share of it. */
.stage-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 8px;font-size:13px;color:var(--stone)}
.stage-legend i{display:inline-block;width:8px;height:8px;margin-right:8px}
.stage-legend .h{background:var(--brick)}
.stage-legend .u{background:var(--ink)}
.stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.stage{display:flex;flex-direction:column;text-align:center;font-size:12px}
.stage-plot{height:152px;display:flex;flex-direction:column;justify-content:flex-end;border-bottom:1px solid var(--ink)}
.stage-plot b{font-size:13px;font-weight:400;margin-bottom:4px}
.stage-bar{position:relative;height:calc(var(--bar)*1.28px);background:var(--brick)}
.stage-bar u{position:absolute;left:0;right:0;bottom:0;height:var(--up);background:var(--ink)}
.stage-bar em{position:absolute;left:0;right:0;bottom:calc(var(--up) + 2px);font:400 11px/1 Arial,sans-serif;color:var(--white)}
.stage-upfront{margin-top:8px;font-size:13px}
.stage-name{margin-top:4px;font-size:11px;color:var(--stone)}

/* Takeaways */
.library-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin:16px 0 24px}
.library-insights div{border-top:2px solid var(--brick);padding-top:12px}
.library-insights h3{font-size:19px;line-height:1.25;margin:0 0 4px}
.library-insights p{margin:0;font-size:14px;color:var(--stone)}
.library-note{margin:0 0 16px;font-size:13px;color:var(--stone)}

/* Deep dives */
.library-deep{padding-block:40px}
.library-report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:16px 0 24px}
.library-report-grid a{min-height:160px;padding:24px;background:var(--brick);color:var(--white);display:flex;flex-direction:column;gap:8px;text-decoration:none}
.library-report-grid a:hover strong{text-decoration:underline;text-decoration-thickness:1px}
.library-report-grid a:nth-child(2){background:var(--data-blue)}
.library-report-grid a:nth-child(3){background:var(--theme-rare)}
.library-report-grid a:nth-child(4){background:var(--theme-buyer)}
.library-report-grid span{font:700 11px Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.library-report-grid strong{font:500 22px/1.2 'EB Garamond',Georgia,serif;flex:1}

@media(max-width:1240px){
.library-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){.library-report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){
.library-wrap{padding:32px 16px}
.library-page h1{font-size:34px}
.library-feature,.library-charts,.library-insights{grid-template-columns:minmax(0,1fr);gap:32px}
.library-report-grid{grid-template-columns:repeat(2,1fr)}
.library-nav>div{padding:0 16px;gap:16px}
@media(max-width:800px){.library-status{display:none}}
.library-page .container{padding-left:16px;padding-right:16px}
.library-bars{display:contents}
.library-nav>div{height:40px}
.library-page .masthead{grid-template-areas:"brand";grid-template-columns:minmax(0,1fr);gap:0;padding:8px 16px;min-height:60px;height:auto}
.library-page .masthead-inner{justify-self:start}
.library-page .masthead:has(.nav-toggle:checked){grid-template-areas:"brand" "nav";row-gap:8px}
.library-page .nav-button{top:8px}
.library-page .top-nav{justify-self:stretch}
.library-page .masthead .wordmark{font-size:28px}
.library-page .masthead-inner:after{font-size:11px;padding-left:12px}
.library-page .masthead-inner{gap:12px;padding-right:44px}
}
@media(max-width:800px){.library-page .masthead .wordmark{flex:none}}
@media(max-width:360px){.library-page .masthead .wordmark{font-size:24px}.library-report-grid{grid-template-columns:minmax(0,1fr)}}
/* The overview reads at the publication's width; its charts and tiles fold into two columns. */
@media(min-width:801px){
.library-page h1{font-size:clamp(38px,3.2vw,42px)}
.library-feature{gap:40px}
.library-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
.library-report-grid{grid-template-columns:repeat(2,1fr)}
.library-report-grid a{min-height:120px}
}
/* Every Library page uses the same 968px content width. */
.library-page{--page-width:968px;--page-gutter:clamp(32px,4.5vw,128px)}
/* Shared sign-up and footer read the same here as on every other page. */
.library-page .signup p:not(.label){font-size:16px}
.library-page .footer-brand p{font-size:16px}
.library-page .footer-cols h3{font:500 19px/1.25 'EB Garamond',Georgia,serif}
.library-page .footer-cols a{font-size:15px}
@media(min-width:801px){.library-page .footer-cols{column-gap:40px}}
/* The Reports menu link lands on the report list, clear of the top bars. */
#reports{scroll-margin-top:140px}
/* Every table opens with a rule above its top row and a hairline below it. */
table>thead>tr:first-child>*,table>tbody:first-child>tr:first-child>*{box-shadow:inset 0 1px 0 var(--ink),inset 0 -1px 0 var(--rule);padding-top:8px;padding-bottom:8px}
/* Front page, 2026-11-06. */
/* Hero, 2026-11-07: the question and the Price Builder side by side, tops and feet level, with the Dashboard and Reports beneath on the same two columns. A tool and a set of reports are different things, so each group opens with its own rule: a Garamond title, then smaller slate links. */
.library-hero-grid,.library-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.library-question h1{margin:-7px 0 0;font-size:clamp(32px,3.9vw,36px)}
.library-lead{display:flex;flex-direction:column;align-items:flex-start;border-top:2px solid var(--slate-blue);padding-top:16px}
.library-hero .label{margin:0 0 8px;color:var(--slate-blue)}
.library-lead h2{margin:0 0 16px;font-size:22px;line-height:1.2}
.library-lead .library-button{margin-top:auto}
.library-more{margin-top:32px}
.library-more>div{border-top:1px solid var(--pebble);padding-top:16px}
.library-more h3{margin:0;font-size:19px;line-height:1.25}
.library-more h3 a{color:var(--ink);text-decoration:none}
.library-more ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:14px}
.library-more li a{text-decoration:none}
.library-more a:hover{text-decoration:underline;text-decoration-thickness:1px}
@media(max-width:900px){.library-hero-grid,.library-more{column-gap:16px}}
@media(max-width:800px){
.library-hero-grid,.library-more{grid-template-columns:minmax(0,1fr)}
.library-question h1{font-size:34px;margin:0}
.library-lead{margin-top:24px}
.library-more>div+div{margin-top:16px}
}
@media(min-width:901px){.library-feature{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}}
/* One filled button leads the page; the rest are outlined. */
.library-page a.library-button:hover{background:var(--slate-deep);text-decoration:none}
.library-feature .library-button,.library-market .library-button{padding:11px 23px;background:none;border:1px solid var(--slate-blue);color:var(--slate-blue)!important}
.library-page .library-feature a.library-button:hover,.library-page .library-market a.library-button:hover{background:var(--slate-blue);color:var(--white)!important}
/* The stage chart and the findings share a row, so neither leaves empty space. */
.library-market .library-charts{margin-bottom:0}
.library-lower{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:40px;margin-top:32px;align-items:start}
.library-lower .library-stage{margin:0;border-top:1px solid var(--rule);padding-top:16px}
.library-lower .library-stage figcaption{font-size:19px;margin-bottom:16px;color:var(--ink)}
.library-lower .library-stage .stages{max-width:600px}
.library-findings{border-top:1px solid var(--rule);padding-top:16px}
.library-findings h2{margin:0 0 16px;font-size:19px;line-height:1.25}
.library-findings .library-insights{display:block;margin:0}
.library-findings .library-insights div{border-top:0;border-left:2px solid var(--brick);padding:0 0 0 12px;margin:0 0 16px}
.library-findings .library-insights h3{font-size:17px;line-height:1.25;margin:0 0 2px}
.library-findings .library-insights p{font-size:13px;line-height:1.4}
.library-market-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:24px;padding-top:16px;border-top:1px solid var(--rule)}
.library-market-foot .library-note{margin:0}
@media(max-width:900px){.library-lower{grid-template-columns:minmax(0,1fr);gap:32px}}
/* Deep dives: tighter tiles, and the interview link reads like the other links. */
.library-report-grid a{min-height:0;padding:20px 24px}
.library-report-grid strong{min-height:2.4em}
.library-deep>p a,.library-deep>a{text-decoration:none}
