
/* MP Corporate Shell Review Rev 8
   Additive corporate layer. Approved base styles.css remains unchanged. */
:root {
  --mp-paper: #fbfaf6;
  --mp-warm: #f5f1e7;
  --mp-gold: #9a7440;
}
body.mp-corporate {
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fbfffe 0%, #f6faf8 38%, #ffffff 100%);
}
.mp-corporate h1, .mp-corporate h2, .mp-corporate .display-serif {
  font-family: Lora, Georgia, serif;
  letter-spacing: -.035em;
}
.mp-corporate .site-header { z-index: 50; }
.mp-corporate .section-nav a[aria-current="page"],
.mp-corporate .section-nav .authors-menu > summary[aria-current="page"] {
  background: var(--soft);
  color: var(--teal-dark);
}
.mp-corporate .menu-dropdown { margin-left: 0; }
.mp-corporate .menu-dropdown summary { min-height: 44px; }
.mp-corporate main { min-height: 46vh; }

/* The only title-specific region on the corporate home page.
   IMPORTANT: the blank template state has no title palette at all.
   A cover-derived palette is activated only by adding .has-cover-palette
   and supplying the five --feat-* tokens directly on H-FEAT-01. */
.featured-title-slot {
  padding: 28px 0;
  border-bottom: 1px solid #d9dfdc;
}

/* Approved blank placeholder: deliberately achromatic and isolated from
   all prior-title styling inherited elsewhere in the source package. */
.featured-title-slot.is-placeholder {
  min-height: 306px;
  display: flex;
  align-items: stretch;
  color: #273236 !important;
  background: #f1f2f2 !important;
  border-bottom-color: #d3d7d6 !important;
  --feat-accent: #626b69;
  --feat-text: #273236;
  --feat-muted: #626b69;
  --feat-surface: #fafafa;
}

/* Live title state. No cover palette is applied unless this class is present. */
.featured-title-slot.has-cover-palette {
  color: var(--feat-text);
  background: linear-gradient(115deg, var(--feat-bg-start) 0%, var(--feat-bg-end) 100%);
  border-bottom-color: color-mix(in srgb, var(--feat-accent) 18%, transparent);
}

/* A live title must supply all of these on H-FEAT-01, for example:
   class="featured-title-slot has-cover-palette"
   style="--feat-bg-start:#...; --feat-bg-end:#...; --feat-accent:#...;
          --feat-text:#...; --feat-muted:#...;"
   Text/background combinations must pass WCAG AA contrast. */
.featured-title-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, .42fr);
  align-items: center;
  gap: 38px;
  min-height: 250px;
  padding-block: 16px;
}
.featured-title-placeholder-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 15px;
}
.placeholder-line,
.placeholder-button,
.featured-title-placeholder-cover {
  border: 1px dashed #9aa19f !important;
  background: #fafafa !important;
}
.placeholder-line {
  display: block;
  height: 22px;
  border-radius: 999px;
}
.placeholder-title { width: min(580px, 82%); height: 42px; }
.placeholder-author { width: min(360px, 54%); }
.placeholder-button { display: block; width: 148px; height: 46px; border-radius: 999px; margin-top: 5px; }
.placeholder-formula {
  margin: 3px 0 0;
  color: #626b69 !important;
  font-size: 13px;
  letter-spacing: .015em;
}
.featured-title-placeholder-cover {
  min-height: 220px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #626b69 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-title-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .62fr);
  align-items: center;
  gap: 36px;
}
.featured-title-copy { max-width: 780px; }
.featured-title-copy .eyebrow { color: var(--feat-accent); }
.featured-title-copy h1 { color: var(--feat-text); font-size: clamp(35px, 5vw, 62px); }
.featured-title-copy p { color: var(--feat-muted); font-size: 18px; margin: 16px 0 0; }
.featured-title-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.featured-title-media {
  min-height: 230px;
  border: 1px solid color-mix(in srgb, var(--feat-accent) 18%, transparent);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--feat-accent) 14%, transparent);
}
.featured-title-media img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; display: block; }
.featured-title-slot.has-cover-palette .button.primary {
  background: var(--feat-accent);
  color: #fff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--feat-accent) 24%, transparent);
}
.featured-title-slot.has-cover-palette .button.secondary {
  color: var(--feat-accent);
  border-color: color-mix(in srgb, var(--feat-accent) 30%, transparent);
  background: color-mix(in srgb, var(--feat-bg-start) 78%, #fff);
}

.corp-hero { padding: 70px 0 64px; }
.corp-hero-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(280px,.7fr); gap: 48px; align-items: center; }
.corp-hero h1 { font-size: clamp(46px, 7vw, 78px); }
.corp-hero .hero-lede { max-width: 760px; }
.corp-mark-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.corp-mark-card img { width: min(290px,100%); display: block; margin-bottom: 22px; mix-blend-mode: multiply; }
.corp-mark-card p { color: var(--muted); margin-bottom: 0; }

.corp-section { padding: 68px 0; }
.corp-section.alt { background: #fff; border-block: 1px solid var(--line); }
.corp-section.warm { background: var(--mp-paper); border-block: 1px solid #eee8dc; }
.corp-section .section-heading h2 { font-size: clamp(34px,4vw,54px); }
.corp-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.corp-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.corp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 27px;
  box-shadow: 0 12px 34px rgba(18,36,43,.055);
}
.corp-card h3 { margin-top: 0; }
.corp-card p { color: var(--muted); }
.corp-card .text-link { color: var(--teal-dark); font-weight: 800; }
.corp-card .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.corp-status { display: inline-flex; padding: 7px 10px; margin-bottom: 14px; border-radius: 999px; background: var(--soft); color: var(--teal-dark); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.corp-status.provisional { background: #fff3dc; color: #7d561c; }

.catalogue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.book-listing {
  display: grid;
  grid-template-columns: 145px minmax(0,1fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18,36,43,.06);
}
.book-cover-slot {
  min-height: 215px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(150deg,#17313c,#2e726f);
  box-shadow: 0 16px 28px rgba(18,36,43,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #fff;
  font-family: Lora,Georgia,serif;
  font-size: 19px;
  line-height: 1.2;
}
.book-cover-slot.fairy { padding: 0; background: #f2e8f1; }
.book-cover-slot.fairy img { width: 100%; height: 100%; min-height: 215px; object-fit: cover; display:block; }
.book-cover-slot.gold { background: linear-gradient(150deg,#231f1a,#947344); }
.book-cover-slot.blue { background: linear-gradient(150deg,#17233e,#375f92); }
.book-cover-slot.wave { background: linear-gradient(150deg,#111f2a,#0a8e8d); }
.book-listing h2 { font-size: 29px; margin: 0; }
.book-listing p { color: var(--muted); }
.book-meta { font-size: 13px; color: var(--teal-dark); font-weight: 800; }
.book-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.book-actions .button { min-height: 42px; padding: 10px 15px; font-size: 13px; }

.page-hero { padding: 68px 0 54px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg,#f5fbf9,#fff 62%,#f9f4eb); }
.page-hero h1 { font-size: clamp(44px,6.5vw,72px); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 20px; margin: 20px 0 0; }
.breadcrumb { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-dark); margin-bottom: 16px; }

.author-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.author-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:28px; }
.author-card h2 { font-size: 31px; }
.author-card p { color: var(--muted); }
.author-work { display:block; margin-top:12px; color:var(--teal-dark); font-weight:800; }

.form-frame { border:1px solid var(--line); border-radius:24px; background:#fff; overflow:hidden; min-height:620px; }
.form-frame iframe { display:block; width:100%; min-height:620px; border:0; }
.contact-panel { display:grid; grid-template-columns:.8fr 1.2fr; gap:30px; padding:32px; border:1px solid var(--line); border-radius:28px; background:#fff; }
.contact-panel address { font-style:normal; font-size:18px; line-height:1.75; }
.contact-panel p { color:var(--muted); }

.faq-list { display:grid; gap:14px; }
.faq-list details { border:1px solid var(--line); border-radius:18px; background:#fff; padding:18px 20px; }
.faq-list summary { cursor:pointer; font-weight:800; }
.faq-list p { color:var(--muted); margin-bottom:0; }

.search-shell { max-width:820px; }
.search-box-shell { display:flex; gap:10px; padding:8px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.search-box-shell input { flex:1; min-width:0; border:0; padding:11px 12px; font:inherit; outline:none; }
.search-box-shell button { border:0; border-radius:13px; padding:10px 17px; background:var(--teal); color:#fff; font-weight:800; cursor:pointer; }
.review-note { padding:16px 18px; border:1px dashed #c89a48; border-radius:16px; background:#fff8e8; color:#6d5126; font-size:14px; }

.policy-copy { max-width:820px; }
.policy-copy h2 { font-size:30px; margin-top:36px; }
.policy-copy p, .policy-copy li { color:var(--muted); }

@media (max-width: 900px) {
  .featured-title-inner, .featured-title-placeholder, .corp-hero-grid, .contact-panel { grid-template-columns:1fr; }
  .featured-title-media, .featured-title-placeholder-cover { max-width:560px; width:100%; }
  .corp-grid, .corp-grid.two, .catalogue-grid, .author-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .book-listing { grid-template-columns:100px minmax(0,1fr); gap:17px; padding:18px; }
  .book-cover-slot, .book-cover-slot.fairy img { min-height:155px; }
  .book-listing h2 { font-size:24px; }
  .featured-title-slot { padding:22px 0; }
  .featured-title-slot.is-placeholder { min-height: 0; }
  .featured-title-placeholder { min-height: 0; gap: 24px; }
  .placeholder-title { width: 88%; }
  .placeholder-author { width: 62%; }
  .featured-title-actions { flex-direction:column; align-items:stretch; }
  .featured-title-actions .button { width:100%; }
}
@media (max-width: 520px) {
  .book-listing { grid-template-columns:1fr; }
  .book-cover-slot { max-width:180px; min-height:245px; }
  .book-cover-slot.fairy img { min-height:245px; }
  .search-box-shell { flex-direction:column; }
}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}


/* REV 8: visible cover analyzer and guaranteed neutral default. */
#featured-title.featured-title-slot.is-placeholder {
  color: #273236 !important;
  background: linear-gradient(115deg, #e8ecea 0%, #f9faf9 100%) !important;
  border-bottom-color: #d3d7d6 !important;
}
#featured-title.palette-preview-active {
  color: var(--feat-text) !important;
  border-bottom-color: color-mix(in srgb, var(--feat-accent) 20%, transparent) !important;
}
#featured-title.palette-preview-active .placeholder-line,
#featured-title.palette-preview-active .featured-title-placeholder-cover {
  border-color: color-mix(in srgb, var(--feat-accent) 32%, transparent) !important;
  background: color-mix(in srgb, var(--feat-bg-end) 78%, #fff) !important;
}
#featured-title.palette-preview-active .placeholder-button {
  border-color: var(--feat-accent) !important;
  background: var(--feat-accent) !important;
}
#featured-title.palette-preview-active .placeholder-formula,
#featured-title.palette-preview-active .featured-title-placeholder-cover { color: var(--feat-muted) !important; }

.feature-palette-lab {
  display: grid !important;
  grid-template-columns: minmax(230px,.7fr) minmax(0,.45fr) minmax(330px,1.15fr);
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 10px;
  padding: 17px 18px;
  border: 2px solid #8f9996;
  border-radius: 18px;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 7px 20px rgba(31,43,46,.08);
}
.palette-lab-intro { display:grid; gap:3px; }
.palette-tool-revision { color:#44514e; font-size:10px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.palette-lab-intro strong { color:#273236; font-size:15px; }
.palette-lab-intro span:not(.palette-tool-revision), .palette-status { color:#626b69; font-size:12px; }
.palette-lab-controls { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.cover-file-control, .palette-reset, .palette-choice {
  min-height:44px;
  border:1px solid #aab3b0;
  border-radius:12px;
  background:#fff;
  color:#273236;
  font:inherit;
}
.cover-file-control { display:grid; gap:5px; padding:8px 11px; font-size:12px; font-weight:800; }
.cover-file-control input { display:block; width:100%; max-width:230px; font-size:11px; }
.palette-reset { padding:8px 12px; cursor:pointer; font-size:12px; font-weight:800; }
.palette-reset:disabled { opacity:.45; cursor:not-allowed; }
.palette-choices { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.palette-choice {
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:8px;
  padding:7px 9px;
  text-align:left;
  cursor:pointer;
  font-size:11px;
}
.palette-choice:disabled { cursor:not-allowed; opacity:.68; }
.palette-choice[aria-checked="true"] { border-color:var(--feat-accent,#273236); box-shadow:0 0 0 3px color-mix(in srgb,var(--feat-accent,#273236) 20%,transparent); }
.palette-swatch { grid-row:1/span 2; width:28px; height:28px; align-self:center; border:1px solid rgba(0,0,0,.15); border-radius:8px; background:var(--swatch,#d6dbd9); }
.palette-choice span:not(.palette-swatch) { font-weight:850; }
.palette-choice code { color:#626b69; font-size:9px; white-space:nowrap; }
.palette-status { grid-column:1/-1; margin:0; padding-top:2px; }
.featured-title-placeholder-cover { margin:0; overflow:hidden; }
.featured-title-placeholder-cover img { display:block; width:100%; height:100%; min-height:220px; max-height:310px; object-fit:contain; background:rgba(255,255,255,.78); }
.featured-title-placeholder-cover figcaption { padding:12px; text-align:center; }
@media (max-width:980px) { .feature-palette-lab { grid-template-columns:1fr 1fr; } .palette-choices { grid-column:1/-1; } }
@media (max-width:650px) { .feature-palette-lab { grid-template-columns:1fr; } .palette-choices { grid-column:1; grid-template-columns:1fr; } .palette-lab-controls { align-items:stretch; flex-direction:column; } .cover-file-control,.palette-reset { width:100%; } }


/* REV 9 — sequential H-FEAT configurator and downloadable JSON workflow. */
#featured-title.featured-title-slot {
  --feat-bg-start:#e8ecea;
  --feat-bg-end:#f9faf9;
  --feat-accent:#344440;
  --feat-text:#273236;
  --feat-muted:#626b69;
  position:relative;
  color:var(--feat-text) !important;
  background:linear-gradient(115deg,var(--feat-bg-start) 0%,var(--feat-bg-end) 100%) !important;
  border-bottom:1px solid color-mix(in srgb,var(--feat-accent) 18%,transparent) !important;
  padding:24px 0 34px;
}
.feature-review-controls { position:relative; z-index:3; margin-bottom:22px; }
.feature-config-panel {
  padding:18px;
  border:2px solid #8f9996;
  border-radius:18px;
  background:rgba(255,255,255,.97) !important;
  box-shadow:0 7px 20px rgba(31,43,46,.09);
  color:#273236 !important;
}
.feature-config-panel[hidden], .feature-preview-toolbar[hidden] { display:none !important; }
.feature-config-heading { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:16px; }
.feature-config-heading h2 { margin:2px 0 4px; font:600 clamp(20px,2.3vw,28px)/1.15 Lora,serif; color:#273236 !important; }
.feature-config-heading p { margin:0; color:#626b69; }
.feature-palette-layout { display:grid; grid-template-columns:minmax(230px,.55fr) minmax(0,1.45fr); gap:16px 22px; align-items:stretch; }
.cover-file-control { min-height:100%; align-content:center; }
.feature-stage-footer { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:16px; padding-top:14px; border-top:1px solid #d8dddb; }
.feature-stage-footer .palette-status { margin:0; }
.feature-tool-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.feature-tool-button {
  min-height:42px;
  border:1px solid #7f8a87;
  border-radius:999px;
  padding:9px 16px;
  font:800 13px/1.1 "Source Sans 3",sans-serif;
  cursor:pointer;
}
.feature-tool-button.primary { background:#273236; border-color:#273236; color:#fff; }
.feature-tool-button.secondary { background:#fff; color:#273236; }
.feature-tool-button:disabled { opacity:.42; cursor:not-allowed; }
.feature-content-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 16px; }
.feature-field { display:grid; gap:6px; }
.feature-field-wide { grid-column:1/-1; }
.feature-field > span { font-size:12px; font-weight:800; color:#273236; }
.feature-field small { color:#6c7572; font-weight:600; }
.feature-field b { color:#8a2938; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.feature-field input,.feature-field textarea {
  width:100%;
  border:1px solid #aab3b0;
  border-radius:11px;
  padding:10px 11px;
  background:#fff;
  color:#273236;
  font:500 15px/1.35 "Source Sans 3",sans-serif;
}
.feature-field input[aria-invalid="true"],.feature-field textarea[aria-invalid="true"] { border-color:#a9293f; box-shadow:0 0 0 2px rgba(169,41,63,.12); }
.feature-preview-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  border:1px solid #aab3b0;
  border-radius:14px;
  background:rgba(255,255,255,.95);
  color:#273236;
  font-size:13px;
  font-weight:750;
}
.feature-preview-toolbar > div { display:flex; gap:8px; flex-wrap:wrap; }
.featured-title-inner { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr); gap:clamp(28px,5vw,68px); align-items:center; min-height:360px; }
.featured-title-copy h2 { margin:0 0 8px; color:var(--feat-text) !important; font:600 clamp(38px,6vw,72px)/.98 Lora,serif; letter-spacing:-.035em; }
.featured-title-author { margin:0 0 16px; color:var(--feat-muted) !important; font:600 clamp(17px,2vw,22px)/1.3 "Source Sans 3",sans-serif; }
.featured-title-status { display:inline-block; margin:0 0 12px; color:var(--feat-accent) !important; font:800 12px/1.1 "Source Sans 3",sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.featured-title-dek { max-width:650px; margin:0 0 22px; color:var(--feat-muted) !important; font-size:18px; line-height:1.55; }
.featured-title-actions { display:flex; flex-wrap:wrap; gap:11px; }
#featured-title .featured-title-actions .button.primary { background:var(--feat-accent) !important; border-color:var(--feat-accent) !important; color:#fff !important; }
#featured-title .featured-title-actions .button.secondary { background:transparent !important; border-color:color-mix(in srgb,var(--feat-accent) 65%,transparent) !important; color:var(--feat-accent) !important; }
#featured-title .featured-title-actions .is-preview-placeholder { pointer-events:none; opacity:.7; }
.featured-title-media { min-height:330px; margin:0; display:grid; place-items:center; overflow:hidden; border:1px solid color-mix(in srgb,var(--feat-accent) 25%,transparent); border-radius:18px; background:color-mix(in srgb,var(--feat-bg-end) 72%,#fff); box-shadow:0 18px 38px color-mix(in srgb,var(--feat-accent) 15%,transparent); }
.featured-title-media img { display:block; width:100%; max-height:430px; object-fit:contain; }
.featured-title-media figcaption { padding:18px; color:var(--feat-muted); font-weight:700; text-align:center; }
#featured-title[data-config-state="preview"] .feature-review-controls,
#featured-title[data-config-state="submitted"] .feature-review-controls { margin-bottom:14px; }
@media (max-width:820px) {
  .feature-palette-layout,.featured-title-inner { grid-template-columns:1fr; }
  .featured-title-media { min-height:260px; max-width:520px; width:100%; }
  .feature-config-heading,.feature-stage-footer,.feature-preview-toolbar { align-items:stretch; flex-direction:column; }
  .feature-content-form { grid-template-columns:1fr; }
  .feature-field-wide { grid-column:auto; }
  .feature-tool-actions { justify-content:flex-start; }
}
@media (max-width:560px) {
  .palette-choices { grid-template-columns:1fr !important; }
  .feature-tool-actions,.feature-preview-toolbar > div { flex-direction:column; }
  .feature-tool-button { width:100%; }
}


/* REV 10 · submitted JSON build */
#featured-title.missing-cover-asset { min-height:330px; }
.missing-cover-asset { border:2px dashed color-mix(in srgb,var(--feat-accent) 58%,#ffffff); }
.missing-cover-notice { width:min(100%,360px); padding:28px; display:grid; gap:10px; text-align:center; color:var(--feat-text); }
.missing-cover-notice strong { font:600 24px/1.15 Lora,serif; }
.missing-cover-notice span { font-weight:800; overflow-wrap:anywhere; }
.missing-cover-notice code { display:block; padding:8px; border-radius:8px; background:rgba(255,255,255,.58); font-size:10px; overflow-wrap:anywhere; }
.missing-cover-notice small { color:var(--feat-muted); line-height:1.45; }

/* REV 10.2 — H-FEAT-IMG-01 uses the approved MP Cover Lift derivative. */
#featured-title .featured-title-media.cover-lift-media {
  min-height: 330px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#featured-title .featured-title-media.cover-lift-media img {
  width: min(100%, 390px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: transparent;
}
