/* The publication pages share the site's Mulish type, ink and warm paper. */
.publication {
  --paper: #f5f3ed;
  --deep: #152e43;
  --brass: #e5c998;
  --rule: #c7ccd1;
  --space: clamp(3rem, 6vw, 5.75rem);
}
.publication h1, .publication h2, .publication h3 { text-transform: none; }
.publication h1 { font-weight: 320; line-height: 1.04; letter-spacing: -.055em; }
.publication h1 em { font-style: normal; font-weight: 730; }
.publication h2 { font-weight: 350; letter-spacing: -.045em; line-height: 1.1; }
.publication h3 { font-weight: 650; line-height: 1.23; letter-spacing: -.035em; }
.publication .eyebrow { font-size: .69rem; letter-spacing: .16em; }
.publication .button { min-height: 46px; padding: .85rem 1.25rem; font-size: .75rem; border-radius: 3px; }
.publication .button:not(.button-light) { background: var(--ink); color: #fff; }
.publication .button:not(.button-light):hover { background: var(--navy-light); }
.publication .text-link { font-size: .72rem; }
.publication .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.publication .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.publication input, .publication select, .publication textarea { font: inherit; color: var(--ink); }
.publication :is(input, select, textarea):focus-visible { outline: 2px solid #3d779b; outline-offset: 2px; }

.feature-copy .eyebrow { color: var(--brass); }
.collection, .publication .bottom-cta { padding-block: var(--space); }
.collection-heading, .publication .bottom-cta {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(1.5rem, 5vw, 5rem);
}
.collection-heading > p, .publication .bottom-cta p:not(.eyebrow) { max-width: 54ch; color: var(--slate); font-size: 1.05rem; line-height: 1.6; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.2vw, 2.25rem); }

.contact-page { padding-block: var(--space); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; }
.contact-panel, .inquiry-card { padding: clamp(1.5rem, 4vw, 4.25rem); }
/* Dark panel follows the home page hero: --ink ground, --accent for the eyebrow and
   the emphasised half of the heading, --line-white for rules. */
.contact-panel { display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.contact-panel .eyebrow { color: var(--accent); }
.contact-panel h1 { font-size: clamp(2.5rem, 4.3vw, 4.45rem); margin: .5em 0 .35em; }
.contact-panel h1 em { display: block; color: var(--accent); }
.contact-panel > p:not(.eyebrow) { color: var(--navy-pale); max-width: 32ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; }
.contact-address { margin-top: auto; padding-top: 2.5rem; }
.contact-address .eyebrow { border-top: 1px solid var(--line-white); padding-top: 1.5rem; }
/* The address block's call to action — kept white so it stays the brightest thing on
   the navy, with an --accent rule under it to read as a link. */
.contact-address a {
  display: inline-block;
  margin-block: .55rem;
  padding-bottom: .2rem;
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  overflow-wrap: anywhere;
  transition: color .25s, border-color .25s;
}
.contact-address a:is(:hover, :focus-visible) { color: var(--accent); border-color: #fff; }
.contact-address p:last-child { color: var(--accent); font-size: .9rem; }
.inquiry-card { background: var(--bg-soft); border: 1px solid var(--line); }
.inquiry-card h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 560; }
.inquiry-card p { color: var(--slate); margin-block: .65rem; }
.inquiry-privacy { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
/* HubSpot adds its own inset around the fields. */
.inquiry-embed {
  display: flow-root;
  overflow: clip;
  margin-inline: clamp(-2.5rem, -3vw, -1rem);
}
.inquiry-embed.has-empty-banner .hs-form-frame {
  /* The published template adds a 200px banner and 40px of field padding. */
  margin-block-start: -224px;
}
.inquiry-fields { margin-block: 1.8rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.15rem; }
.inquiry-fields .wide { grid-column: 1 / -1; }
.inquiry-fields label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 720; }
.inquiry-fields input, .inquiry-fields select, .inquiry-fields textarea {
  width: 100%; min-height: 46px; border: 1px solid #acb4bd; border-radius: 3px; padding: .6rem .7rem; background: white;
}
.inquiry-fields textarea { display: block; resize: vertical; }
.field-error, [data-character-count] { display: block; font-size: .8rem; }
.field-error { color: #8e3528; } [data-character-count] { text-align: right; color: var(--slate); margin-top: .25rem; }
#form-errors { margin-top: 1rem; border-left: 3px solid #993f30; padding: .4rem .8rem; background: #fcf3ed; }
#form-errors a { display: block; text-decoration: underline; }
#inquiry-review dl, .event-aside dl { margin: 1.5rem 0; }
#inquiry-review dt, .event-aside dt { margin-top: .8rem; font-weight: 700; font-size: .8rem; color: #426074; }
#inquiry-review dd, .inquiry-text { overflow-wrap: anywhere; }
/* White against the tinted card, matching the form inputs on the step before. */
.inquiry-text { white-space: pre-wrap; background: white; border: 1px solid var(--line); padding: 1rem; }
#edit-inquiry { background: none; }

.library-intro { background: var(--paper); }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 4.5vw, 4.75rem); }
.mast-copy h1 { font-size: clamp(2.85rem, 4.9vw, 4.95rem); line-height: 1.06; margin: .3em 0; }
.mast-copy .intro { color: #455b69; max-width: 40ch; font-size: clamp(1.07rem, 1.45vw, 1.32rem); line-height: 1.6; }
.insight-feature { background: var(--deep); color: white; display: grid; }
.featured-insight-photo { display:block; }
.featured-insight-photo img { width: 100%; aspect-ratio: 3.2; object-fit: cover; object-position: 50% 35%; }
.feature-copy { padding: clamp(1.4rem, 2.5vw, 2.5rem); }
.feature-copy h2 { margin: .35em 0; font-size: clamp(1.6rem, 2.25vw, 2.35rem); font-weight: 575; }
.feature-copy > p:not(.eyebrow) { color: #d6dce3; line-height: 1.45; }
.feature-copy .button:not(.button-light) { margin-top: 1.1rem; padding: 0 0 .3rem; min-height: 0; background: transparent; border-radius: 0; border: 0; border-bottom: 1px solid var(--brass); color: #efdbb3; }
.collection-heading h2, .light-section .section-heading h2 { margin-top: .2em; }
.collection-heading { margin-bottom: 1.8rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-block: 1px solid var(--rule); }
.filter-buttons, .filter-inputs { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-buttons button { background: transparent; color: var(--slate); font-size: .9rem; padding: .6rem .85rem; font-weight: 700; border-radius: 3px; }
.filter-buttons button[aria-pressed=true] { background: var(--ink); color: white; }
.filter-buttons button:hover:not([aria-pressed=true]) { background: var(--paper); }
.search-field, .topic-select select { border: 1px solid #b3bac3; border-radius: 3px; background: white; }
.search-field { display: flex; align-items: center; padding-left: .65rem; gap: .4rem; }
.search-field input, .topic-select select { font-size: .87rem; min-height: 40px; }
.search-field input { border: 0; background: transparent; width: min(15rem, 60vw); padding: .45rem .55rem .45rem .2rem; }
.topic-select select { padding: .45rem .5rem; max-width: 100%; }
.result-count { min-height: 1.3em; color: var(--slate); font-size: .85rem; margin: .9rem 0 1.1rem; }
.editorial-card { display: flex; flex-direction: column; background: white; border: 1px solid #cdd1d6; min-width: 0; overflow-wrap: anywhere; }
.card-image { display: block; position: relative; background: #e9edf0; }
/* The library art is all roughly square, so a 2:1 crop was discarding ~half of every
   image. 1.55 keeps far more of the frame while still reading as a card banner. */
.card-image img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
/* Diagrams and product shots can't survive any crop — show them whole on a plate. */
.card-image img.card-graphic { object-fit: contain; background: var(--bg-soft); padding: .55rem; }
.card-image .image-label { position: absolute; left: .85rem; bottom: .8rem; background: #17334a; color: white; padding: .2rem .6rem; font-weight: 700; font-size: .72rem; }
.placeholder-image { aspect-ratio: 1.55; display: flex; align-items: center; justify-content: center; gap: .75rem; color: #456272; background: #dce6ef; }
.editorial-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 2vw, 2rem); }
.editorial-copy h3 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); margin: .4em 0; }
.editorial-copy h3 a:hover, .breadcrumbs a:hover { text-decoration: underline; }
.editorial-copy > p:not(.eyebrow) { color: var(--slate); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-copy .text-link { margin-top: auto; padding-top: 1.1rem; }
.empty-state, .video-stage { background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); }
.empty-state h3 { margin: .3em 0; font-size: 1.7rem; }
.empty-state .button { margin-top: 1rem; }
.book-crosslink { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.5rem; background: var(--paper); }
.book-crosslink h2 { max-width: 33ch; font-size: clamp(1.6rem, 2.5vw, 2.6rem); margin-top: .35em; }
.book-crosslink .button { flex-shrink: 0; }

.breadcrumbs { padding-top: 2rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; color: var(--slate); font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: #8a94a0; }
.article-heading, .publication .page-intro { padding-block: clamp(2rem, 4.5vw, 4.5rem); }
.article-heading h1, .page-intro h1 { max-width: 22ch; font-size: clamp(2.4rem, 4.6vw, 4.5rem); margin-block: .22em .26em; }
.article-heading > p:last-child { color: var(--slate); }
.article-content, .content-layout { margin-bottom: var(--space); }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; object-position: center 36%; }
/* Same reasoning as .card-graphic: a logo can't take the cover crop, which would cut the
   wordmark off top and bottom. Show it whole on a plate, shorter than a photographic cover. */
.article-cover.article-graphic { max-height: 300px; object-fit: contain; object-position: center; background: var(--bg-soft); padding: 1.75rem; }
.reading-column { max-width: 72ch; margin: 2rem auto 0; }
.prose { font-size: clamp(1.05rem, 1.3vw, 1.15rem); color: #415665; line-height: 1.75; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2, .empty-state h2, .video-stage h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .6rem; }
.source-note, .small-note { font-size: .9rem; color: var(--slate); }
.source-note { border-top: 1px solid var(--rule); padding-top: .85rem; }
.reading-cta, .content-note { padding: 1.25rem 1.5rem; background: var(--paper); border-left: 3px solid #af9666; }
.reading-cta .actions { margin-top: 1rem; }
.light-section > .section { padding-block: var(--space); }
.light-section .section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.event-heading-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; align-items: center; color: var(--slate); }
.status-badge { background: #e5e7ea; color: var(--ink); padding: .22rem .7rem; font-weight: 700; font-size: .85rem; }
.event-aside { background: var(--paper); padding: clamp(1.3rem, 2.5vw, 2.5rem); }
.event-aside img { width: 100%; aspect-ratio: 2.2; object-fit: cover; margin-bottom: 1.5rem; }
.event-aside .text-link { display: table; margin-top: 1rem; }
.event-meta { display: flex; align-items: center; gap: .5rem; }
.partner-image img { max-height: 170px; object-fit: contain; object-position: left center; }
.publication .bottom-cta h2 { font-size: clamp(1.8rem, 3.4vw, 3.4rem); margin-top: .3em; }
.bottom-cta .button { margin-top: .85rem; }

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .collection-heading, .contact-grid, .mast-grid, .content-layout, .publication .bottom-cta { grid-template-columns: minmax(0,1fr); }
  .mast-grid { gap: 2rem; }
  .contact-address { padding-top: 1.25rem; }
  .contact-panel h1 em { display: inline; }
  .contact-panel > p:not(.eyebrow) { max-width: 48ch; }
  .collection, .publication .bottom-cta { padding-block: 3rem; }
  .filter-inputs { width: 100%; }
  .filter-buttons button { padding-inline: .65rem; }
  .book-crosslink { flex-direction: column; align-items: flex-start; }
  .book-crosslink .button { align-self: flex-start; }
}
@media (max-width: 520px) {
  .inquiry-fields, .editorial-grid { grid-template-columns: minmax(0,1fr); }
  .contact-grid { padding-inline: 1rem; }
  .search-field, .search-field input, .topic-select, .topic-select select { width: 100%; min-width: 0; }
  .mast-copy h1 br { display: none; }
}
.editor-wrap { max-width: 820px; }
.editor-wrap h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); margin: .3em 0; }
.publisher-link { margin-top: .4rem; }
.uploaded-cover { padding: 1.15rem 2rem; background: var(--deep); color: var(--brass); font-size: .78rem; font-weight: 750; }
.contact-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}#send-error{color:#963d38;background:#fff1ef;padding:12px;border:1px solid #e4c4bd}#inquiry-success>p{margin:1rem 0}#inquiry-reference{font-size:.875rem}#send-inquiry:disabled{opacity:.6;cursor:wait}
