/* Wise Medicine — front-end inner pages (load after site.css) */
.page-masthead {
  padding: 78px 0 70px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs span:not(:last-child)::after { content: '/'; margin-left: 8px; color: #abb3a8; }
.page-masthead .eyebrow { margin-top: 28px; color: var(--gold); }
.page-masthead h1, .detail-copy h1, .error-page h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.35;
  text-wrap: pretty;
}
.page-masthead > p:not(.eyebrow), .page-title-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.page-masthead.with-image {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(48px, 8vw, 126px);
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.page-hero-image, .editorial-image, .article-cover {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #e4e9df;
}
.page-hero-image { aspect-ratio: 16/9; }
.page-hero-image > img, .editorial-image > img, .article-cover > img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-image > img { position: absolute; inset: 0; }
.page-hero-image > span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 3px 7px;
  background: rgba(21, 63, 53, .6);
  color: #fff;
  font-size: 10px;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 35px 0 22px;
  border-bottom: 1px solid var(--line);
}
.catalog-search { display: flex; width: min(100%, 440px); border-bottom: 1px solid #aeb8ac; }
.catalog-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}
.catalog-search input::placeholder { color: #8e998f; }
.catalog-search:focus-within { border-color: var(--forest); }
.catalog-search button {
  display: grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: var(--forest);
}
.result-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.category-tabs, .contact-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 24px 0 5px;
  scrollbar-width: thin;
}
.category-tabs a, .contact-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  transition: color .2s, background .2s, border-color .2s;
}
.category-tabs a:hover, .category-tabs a[aria-current="page"], .contact-tabs a:hover, .contact-tabs a[aria-current="page"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}
.catalog-section { padding-top: 34px; padding-bottom: 112px; }
.catalog-section .product-card { border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.catalog-section .product-image { background: #f6f3ea; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, .88fr);
  gap: clamp(48px, 8vw, 126px);
  align-items: start;
  padding-top: 74px;
  padding-bottom: 110px;
}
.detail-visual { position: relative; overflow: hidden; border-radius: 4px; background: #f6f3ea; }
.detail-visual > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.detail-visual .image-label { z-index: 1; }
.detail-copy { padding-top: 10px; }
.detail-copy .eyebrow { color: var(--gold); }
.detail-copy h1 { font-size: clamp(34px, 3.6vw, 54px); }
.detail-copy > p:not(.detail-summary) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.detail-summary {
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 2;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.detail-actions .button { min-width: 178px; }
.detail-meta { margin-top: 27px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.detail-meta > * + * { margin-top: 7px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
  margin: 35px 0 0;
  border-top: 1px solid var(--line);
}
.facts-grid > div { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts-grid dt { color: var(--muted); font-size: 11px; letter-spacing: .7px; }
.facts-grid dd { margin: 3px 0 0; font-size: 14px; line-height: 1.7; }
.detail-section { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.detail-section > h2, .editorial-copy h2, .statement-band h2, .form-intro h2 { text-wrap: pretty; }
.detail-section > h2 + p, .editorial-copy > p, .statement-band p, .form-intro > p {
  max-width: 670px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 42px; }
.detail-columns > * { min-width: 0; }
.detail-columns h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.detail-columns p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 2; }
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding-top: 100px;
  padding-bottom: 100px;
}
.editorial-image { aspect-ratio: 1 / 1.08; }
.editorial-copy .eyebrow { margin-bottom: 17px; color: var(--gold); }
.editorial-copy h2 { font-size: clamp(30px, 3.1vw, 43px); }
.editorial-copy > p + p { margin-top: 13px; }
.statement-band { padding: 88px 0; background: var(--cream); text-align: center; }
.statement-band h2 { max-width: 770px; margin: auto; }
.statement-band p { max-width: 630px; margin-right: auto; margin-left: auto; }
.principles-grid, .process-grid, .journal-grid {
  display: grid;
  gap: 28px;
}
.principles-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.principles-grid article { min-width: 0; padding: 28px 0 0; border-top: 1px solid #bdc8b9; }
.principles-grid svg { width: 31px; height: 31px; color: var(--forest); stroke-width: 1.2; }
.principles-grid h3, .process-grid h3, .quality-doc-empty h3 { margin-top: 17px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.principles-grid p, .process-grid p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 2; }
.process-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; counter-reset: process; }
.process-grid article { counter-increment: process; min-width: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.step-number { color: var(--gold); font-family: Georgia, serif; font-size: 13px; letter-spacing: 2px; }
.step-number::before { content: '0' counter(process); }
.process-grid h3 { margin-top: 13px; }
.quality-doc-empty {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 40px;
  border: 1px dashed #b9c3b6;
  background: #fbfcf8;
  text-align: center;
}
.quality-doc-empty svg { width: 42px; height: 42px; color: var(--gold); stroke-width: 1.15; }
.quality-doc-empty h3 { margin-top: 15px; }
.quality-doc-empty p { max-width: 480px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.quality-doc-empty .button { margin-top: 22px; }
.partner-hero .editorial-image { aspect-ratio: 1.08; }
.form-layout, .quote-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(470px, 1fr);
  align-items: start;
  gap: clamp(52px, 9vw, 142px);
  padding-top: 74px;
  padding-bottom: 112px;
}
.form-intro { padding-top: 7px; }
.form-intro .eyebrow { margin-bottom: 17px; color: var(--gold); }
.request-form { padding: 34px; border: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { display: block; margin-bottom: 7px; color: var(--forest); font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd2c7;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #939c93; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 0; box-shadow: 0 0 0 3px rgba(186, 161, 107, .18); }
.field-error { display: block; margin-top: 5px; color: #a53535; font-size: 11px; line-height: 1.6; }
.consent-field { margin-top: 20px; }
.consent-field label.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; cursor: pointer; }
.consent-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.form-status, .draft-banner { margin-top: 20px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--cream); color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-status[role="alert"] { border-left-color: #a53535; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-actions .button { min-width: 164px; }
.contact-tabs { padding-top: 0; padding-bottom: 25px; }
.quote-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, .76fr); }
.quote-list { border-top: 1px solid var(--line); }
.quote-page-item { position: relative; }
.quote-page-item.quote-item { padding: 20px 0; }
.quote-page-item .quantity-control button { min-width: 38px; min-height: 42px; }
.quote-page-summary { margin-top: 24px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.quote-page-summary > * { display: flex; justify-content: space-between; gap: 18px; }
.quote-page-summary > * + * { margin-top: 8px; }
.quote-page-summary strong { color: var(--forest); font-weight: 500; }
.journal-grid { grid-template-columns: repeat(3, 1fr); padding-top: 72px; padding-bottom: 112px; }
.journal-card { min-width: 0; border-bottom: 1px solid var(--line); }
.journal-card > img { width: 100%; aspect-ratio: 1.3; border-radius: 4px; background: #e4e9df; object-fit: cover; }
.journal-card-copy { padding: 21px 2px 25px; }
.journal-card-copy .eyebrow { color: var(--gold); }
.journal-card-copy h2 { margin-top: 9px; font-size: 23px; line-height: 1.55; }
.journal-card-copy p { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.journal-card-copy a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 14px; border-bottom: 1px solid var(--forest); color: var(--forest); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(44px, 7vw, 110px); padding-top: 66px; padding-bottom: 112px; }
.article-prose { max-width: 760px; min-width: 0; }
.article-cover { aspect-ratio: 1.75; margin-bottom: 30px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.article-prose > h1 { margin-top: 14px; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.48; }
.article-prose h2 { margin-top: 44px; font-size: clamp(25px, 2.5vw, 32px); }
.article-prose p { margin-top: 17px; font-size: 16px; line-height: 2.1; text-wrap: pretty; }
.article-aside { align-self: start; padding: 18px 0; border-top: 1px solid var(--gold); color: var(--muted); font-size: 12px; line-height: 1.9; }
.article-aside > * + * { margin-top: 12px; }
.source-links { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.source-links h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.source-links a { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.source-links a:hover { color: var(--forest); }
.faq-list { margin: 42px auto 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 68px; align-items: center; padding: 15px 38px 15px 0; color: var(--forest); font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 3px; color: var(--gold); font-family: var(--sans); font-size: 23px; font-weight: 300; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 720px; padding: 0 0 23px; color: var(--muted); font-size: 16px; line-height: 2; }
.legal-copy { max-width: 830px; padding-top: 68px; padding-bottom: 112px; }
.legal-copy h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 500; }
.legal-copy h2 { margin-top: 48px; font-size: 26px; }
.legal-copy p, .legal-copy li { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 2.05; }
.legal-copy ul { padding-left: 1.3em; }
.empty-state, .error-page { display: grid; min-height: 390px; place-content: center; padding: 65px 22px; text-align: center; }
.empty-state h2, .error-page h1 { max-width: 680px; }
.empty-state p, .error-page p { max-width: 510px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 2; }
.empty-state .button, .error-page .button { margin-top: 25px; }
.error-page { min-height: 520px; background: var(--cream); }
.error-page h1 { color: var(--forest); }
.page-bottom-cta { padding: 72px 0; background: var(--cream); }
.page-bottom-cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-bottom-cta h2 { max-width: 610px; }
.page-bottom-cta p { margin-top: 11px; color: var(--muted); font-size: 16px; }
.page-bottom-cta .button { flex: 0 0 auto; min-width: 176px; }
@media (min-width: 1440px) {
  .page-masthead { padding-top: 94px; padding-bottom: 82px; }
  .catalog-section { padding-bottom: 130px; }
  .product-detail { padding-top: 94px; padding-bottom: 130px; }
  .journal-grid { gap: 34px; padding-bottom: 130px; }
}
@media (max-width: 1024px) {
  .page-masthead.with-image, .product-detail, .editorial-split { gap: 52px; }
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); }
  .form-layout { grid-template-columns: minmax(0, .7fr) minmax(400px, 1fr); gap: 56px; }
  .quote-layout { gap: 48px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 48px; }
}
@media (max-width: 768px) {
  .page-masthead { padding-top: 51px; padding-bottom: 49px; }
  .page-masthead .eyebrow { margin-top: 21px; }
  .page-masthead h1, .detail-copy h1, .error-page h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: 1px; }
  .page-masthead.with-image, .product-detail, .editorial-split, .form-layout, .quote-layout, .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .page-masthead.with-image { padding-top: 42px; padding-bottom: 42px; }
  .page-hero-image { aspect-ratio: 16/9; min-height: 0; order: -1; }
  .product-detail { padding-top: 20px; padding-bottom: 48px; }
  .detail-visual > img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .detail-copy { padding-top: 0; }
  .detail-actions .button { flex: 1 1 170px; }
  .detail-section, .editorial-split { padding-top: 66px; padding-bottom: 66px; }
  .detail-columns, .principles-grid, .process-grid, .journal-grid { grid-template-columns: 1fr; gap: 28px; }
  .editorial-image { aspect-ratio: 1.2; }
  .statement-band { padding: 65px 0; text-align: left; }
  .statement-band h2, .statement-band p { margin-left: 0; }
  .principles-grid, .process-grid { margin-top: 33px; }
  .quality-doc-empty { min-height: 275px; padding: 30px 22px; }
  .request-form { padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field.full { grid-column: auto; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding-top: 25px; }
  .catalog-search { width: 100%; }
  .catalog-section { padding-top: 25px; padding-bottom: 72px; }
  .category-tabs a, .contact-tabs a { min-height: 44px; }
  .quote-layout { padding-top: 54px; padding-bottom: 72px; }
  .quote-layout .request-form { order: 2; }
  .journal-grid { padding-top: 52px; padding-bottom: 72px; }
  .journal-card-copy h2 { font-size: 22px; }
  .article-layout { padding-top: 48px; padding-bottom: 72px; }
  .article-aside { order: -1; }
  .article-cover { margin-bottom: 23px; }
  .article-prose > h1 { font-size: 33px; }
  .article-prose h2 { margin-top: 36px; }
  .faq-list { margin-top: 30px; }
  .faq-list summary { min-height: 62px; font-size: 17px; }
  .legal-copy { padding-top: 48px; padding-bottom: 72px; }
  .legal-copy h2 { margin-top: 38px; font-size: 24px; }
  .page-bottom-cta { padding: 54px 0; }
  .page-bottom-cta .shell { align-items: flex-start; flex-direction: column; gap: 23px; }
  .page-bottom-cta .button { min-width: 0; }
}
@media (max-width: 390px) {
  .page-masthead { padding-top: 43px; padding-bottom: 42px; }
  .breadcrumbs { font-size: 10px; }
  .page-hero-image { aspect-ratio: 16/9; min-height: 0; }
  .detail-summary { font-size: 13px; }
  .facts-grid { grid-template-columns: 1fr; }
  .detail-actions .button, .form-actions .button { width: 100%; }
  .request-form { padding: 22px 16px; }
  .quote-page-item.quote-item { align-items: flex-start; flex-wrap: wrap; }
  .quote-page-item .quantity-control { margin-left: auto; }
  .quality-doc-empty { min-height: 250px; }
}
