@import url("./nursebuiltai-components.css");
@import url("./site.css");
@import url("./explorations.css");
@import url("../learning/concept.css");

/* Open Studio production foundation. Page tasks compose these modules; they do not redefine them. */

:root {
  --production-max: 90rem;
  --production-reading: 44rem;
  --production-header: 5rem;
}

.production-site { min-height: 100svh; background: var(--nbai-paper); }
.production-site :where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--focus, var(--nbai-imperial));
}
.production-site :where(.production-logo, .desktop-nav a, .header-book, .production-menu-secondary a, .social-list a, .production-footer__links a, .text-link) {
  min-width: 44px;
  min-height: 44px;
}
.production-site :where(.production-logo, .desktop-nav a, .header-book, .production-menu-secondary a, .social-list a, .production-footer__links a) {
  display: inline-flex;
  align-items: center;
}
.production-site .desktop-nav a { justify-content: center; }
.production-site .header-end .cta { min-height: 44px; }

/* Gradient identity */
.production-logo {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  color: var(--nbai-naval);
  text-decoration: none;
}
.production-logo__mark { width: 2.15rem !important; height: 2.15rem; flex: none; }
.production-logo__wordmark {
  font-size: 1rem;
  font-weight: 350;
  letter-spacing: -.025em;
  line-height: 1;
}
.production-logo--footer { color: var(--nbai-paper); }
.production-logo--footer .production-logo__mark { width: 3.4rem !important; height: 3.4rem; }
.production-logo--footer .production-logo__wordmark { font-size: 1.35rem; }

/* Header */
.production-site .site-header { background: var(--nbai-paper); border-bottom: 1px solid transparent; }
.production-site .site-header[data-scrolled] { background: var(--nbai-paper); border-bottom-color: var(--site-rule); }
.production-site .header-end { gap: .75rem; }
.header-book {
  color: var(--nbai-naval);
  font-size: .72rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--nbai-naval) 35%,transparent);
  text-underline-offset: 5px;
}
.header-book:hover { color: var(--nbai-imperial); }

/* Paper menu */
.production-site .menu-panel {
  color: var(--nbai-naval);
  background: var(--nbai-paper);
  --focus: var(--nbai-imperial);
}
.production-site .menu-panel__top { border-bottom: 1px solid var(--site-rule); }
.production-site .menu-panel .burger { color: var(--nbai-naval); }
.production-site .menu-links a { border-bottom-color: var(--site-rule); }
.production-site .menu-links small { color: var(--nbai-imperial); }
.production-site .menu-aside p { color: var(--site-muted); }
.production-site .menu-kicker { color: var(--nbai-imperial); }
.production-site .menu-meta {
  color: var(--site-muted);
  border-top-color: var(--site-rule);
}
.production-site .menu-panel .social-list a { color: var(--nbai-naval); }
.production-menu-secondary { display: grid; gap: .4rem; margin-top: 1rem; }
.production-menu-secondary a { width: fit-content; color: var(--nbai-naval); font-size: .8rem; text-underline-offset: 4px; }
.production-menu-book {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  color: var(--nbai-paper) !important;
  background: var(--nbai-naval);
  text-decoration: none;
}
.production-menu-book span { font: 500 .65rem/1 var(--nbai-font-data); letter-spacing: .05em; text-transform: uppercase; }
.production-menu-book strong { font-weight: 425; }

/* General page modules */
.production-shell { width: min(100%, var(--production-max)); margin-inline: auto; padding-inline: var(--site-gutter); }
.production-page { padding-top: var(--production-header); }
.production-section { padding-block: clamp(5.5rem, 10vw, 10rem); }
.production-section--rule { border-top: 1px solid var(--site-rule); }
.production-copy { max-width: var(--production-reading); color: var(--site-muted); }
.production-title {
  max-width: 13ch;
  margin: .8rem 0 0;
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.production-subtitle {
  max-width: 16ch;
  margin: .8rem 0 0;
  font-size: clamp(2.4rem, 4.5vw, 4.25rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.production-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.production-actions .cta { white-space: normal; text-align: center; }

/* Production hero reuses the chosen Open Studio composition. */
.production-hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--production-header)); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.production-hero__field { position: absolute; inset: 4rem var(--site-gutter) 2rem; border-radius: clamp(2.5rem, 5vw, 5rem); background: var(--hero-gradient, var(--nbai-gradient-learning-field)); }
.production-hero__field::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(250,250,250,.28); }
.production-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.03fr) minmax(22rem,.97fr); gap: clamp(3rem,7vw,8rem); align-items: center; min-height: calc(100svh - 10.5rem); padding: clamp(3rem,6vw,6rem); }
.production-hero__lede { max-width: 39rem; margin: 1.7rem 0 0; color: var(--site-muted); font-size: clamp(1rem,1.4vw,1.22rem); }
.production-hero__media { position: relative; justify-self: end; width: min(100%,34rem); }
.production-hero__media figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--nbai-radius-curved); box-shadow: var(--nbai-shadow-floating); }
.production-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.production-hero__note { position: absolute; left: -2rem; bottom: 3rem; display: grid; place-items: center; width: 9rem; aspect-ratio: 1; padding: 1rem; border-radius: 50%; color: var(--nbai-paper); background: var(--nbai-naval); text-align: center; font: 500 .63rem/1.5 var(--nbai-font-data); letter-spacing: .045em; text-transform: uppercase; box-shadow: var(--nbai-shadow-raised); }

/* Cards and editorial modules */
.production-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.production-card { min-width: 0; padding: clamp(1.5rem,3vw,2.6rem); background: var(--nbai-canvas); }
.production-card--curved { border-radius: var(--nbai-radius-curved); }
.production-card--boxy { border: 1px solid var(--site-rule); border-radius: var(--nbai-radius-boxy); }
.production-card h3 { margin: 2.8rem 0 .75rem; font-size: clamp(1.55rem,2.6vw,2.5rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; }
.production-card p { margin: 0; color: var(--site-muted); }

.production-image { overflow: hidden; margin: 0; border-radius: var(--nbai-radius-curved); }
.production-image img { width: 100%; height: 100%; object-fit: cover; }

.production-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(22rem,.78fr); gap: clamp(3rem,8vw,8rem); align-items: center; }

.production-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.production-article-card { overflow: hidden; background: var(--nbai-canvas); border-radius: var(--nbai-radius-curved); }
.production-article-card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.production-article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--nbai-duration-chapter) var(--nbai-ease-standard); }
.production-article-card__body { padding: 1.4rem 1.5rem 1.8rem; }
.production-article-card h3 { margin: .75rem 0 .8rem; font-size: clamp(1.35rem,2vw,1.9rem); font-weight: 375; line-height: 1.06; letter-spacing: -.025em; }
.production-article-card p { margin: 0 0 1.2rem; color: var(--site-muted); font-size: .86rem; }
@media (hover:hover) and (pointer:fine) { .production-article-card:hover img { transform: scale(1.02); } }

/* YouTube-linked resource library and Kit delivery surfaces */
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.resource-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; color: var(--nbai-naval); background: var(--nbai-canvas); border-radius: var(--nbai-radius-curved); }
.resource-card__visual { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--nbai-gradient-open-loop); }
.resource-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.resource-card__format { position: absolute; top: .9rem; left: .9rem; padding: .35rem .65rem; border-radius: var(--nbai-radius-capsule); color: var(--nbai-paper); background: var(--nbai-naval); font: 500 .6rem/1 var(--nbai-font-data); letter-spacing: .05em; text-transform: uppercase; }
.resource-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; }
.resource-card h3 { margin: .8rem 0 .75rem; font-size: clamp(1.4rem,2.2vw,2rem); font-weight: 375; line-height: 1.04; letter-spacing: -.025em; }
.resource-card p { margin: 0; color: var(--site-muted); font-size: .86rem; }
.resource-card__source { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--site-rule); color: var(--site-muted); font-size: .72rem; }
.resource-card__body .text-link { margin-top: auto; padding-top: 1.4rem; }
.resource-filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.resource-filters::-webkit-scrollbar { display: none; }
.resource-filter { flex: 0 0 auto; min-height: 42px; padding: 0 1rem; border: 1px solid var(--site-rule); border-radius: var(--nbai-radius-capsule); color: var(--nbai-naval); background: transparent; font-size: .72rem; cursor: pointer; }
.resource-filter[aria-pressed="true"] { color: var(--nbai-paper); background: var(--nbai-naval); border-color: var(--nbai-naval); }
.resource-gate { padding: clamp(1.5rem,4vw,3rem); background: var(--nbai-pacific); border-radius: var(--nbai-radius-curved); }
.resource-gate h2 { max-width: 12ch; margin: .8rem 0 1rem; font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 300; line-height: .98; letter-spacing: -.035em; }
.resource-gate__status { min-height: 1.5em; margin-top: .8rem; color: var(--nbai-imperial); font-size: .74rem; }
[data-kit-inline][data-unconfigured], [data-kit-newsletter][data-unconfigured] { min-height: 2rem; }

/* Forms */
.production-form { display: grid; gap: 1.4rem; }
.production-form__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.production-field { display: grid; gap: .45rem; }
.production-field--full { grid-column: 1 / -1; }
.production-field label, .production-field > span { font-size: .76rem; font-weight: 500; }
.production-field :where(input,select,textarea) { width: 100%; min-height: 52px; padding: .85rem 1rem; border: 1px solid color-mix(in srgb,var(--nbai-naval) 24%,transparent); border-radius: var(--nbai-radius-boxy); color: var(--nbai-naval); background: #F3F3F1; }
.production-field textarea { min-height: 10rem; resize: vertical; }
.production-field :where(input,select,textarea):focus { outline: 0; border-color: var(--nbai-imperial); background: var(--nbai-paper); box-shadow: 0 0 0 3px rgba(0,65,106,.12); }
.production-field small { color: var(--site-muted); font-size: .7rem; }
.production-conditional[hidden] { display: none; }
.production-consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .76rem; }
.production-consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; }

/* Full production footer */
.production-footer { position: relative; overflow: hidden; color: var(--nbai-paper); background: var(--nbai-naval); --focus: var(--nbai-signal); }
.production-footer__inner { position: relative; z-index: 2; width: min(100%,var(--production-max)); margin-inline: auto; padding: clamp(4rem,8vw,8rem) var(--site-gutter) 1.5rem; }
.production-footer__top { display: grid; grid-template-columns: minmax(18rem,.75fr) minmax(0,1.25fr); gap: clamp(4rem,10vw,11rem); }
.production-footer__statement h2 { max-width: 10ch; margin: clamp(4rem,8vw,7rem) 0 1.2rem; font-size: clamp(3rem,5.5vw,4.75rem); font-weight: 300; line-height: .93; letter-spacing: -.04em; }
.production-footer__statement p { max-width: 33rem; color: rgba(250,250,250,.66); }
.production-footer__statement .production-footer__contact { margin-top: 1rem; }
.production-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nbai-pacific); font-size: .78rem; text-underline-offset: 5px; }
.production-footer__right { display: grid; align-content: start; gap: 3rem; }
.production-footer__newsletter { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(250,250,250,.18); }
.production-footer__newsletter label { grid-column: 1 / -1; color: var(--nbai-pacific); font: 500 .64rem/1.4 var(--nbai-font-data); letter-spacing: .05em; text-transform: uppercase; }
.production-footer__newsletter input { min-height: 50px; padding: .8rem 1rem; border: 1px solid rgba(250,250,250,.35); border-radius: var(--nbai-radius-boxy); color: var(--nbai-naval); background: var(--nbai-paper); }
.production-footer__newsletter .cta { min-height: 50px; color: var(--nbai-naval); background: var(--nbai-signal); border-color: var(--nbai-signal); }
.production-footer__newsletter .form-status { grid-column: 1 / -1; color: rgba(250,250,250,.72); }
.production-footer__newsletter .form-status a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--nbai-pacific); }
.production-footer__links { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.5rem; }
.production-footer__links div { display: grid; align-content: start; gap: .55rem; }
.production-footer__links strong { margin-bottom: .65rem; color: var(--nbai-pacific); font: 500 .62rem/1.4 var(--nbai-font-data); letter-spacing: .06em; text-transform: uppercase; }
.production-footer__links a { width: fit-content; color: var(--nbai-paper); font-size: .78rem; text-decoration: none; }
.production-footer__links a:hover { color: var(--nbai-signal); }
.production-footer__wordmark { margin: clamp(6rem,12vw,12rem) 0 -.13em; font-size: clamp(4.25rem,14vw,13rem); font-weight: 300; line-height: .72; letter-spacing: -.045em; white-space: nowrap; }
.production-footer__base { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1.75rem; color: rgba(250,250,250,.62); font-size: .68rem; }
.production-footer__base div { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.production-footer__base a { color: inherit; text-underline-offset: 4px; }
.production-footer__mark { position: absolute; right: clamp(-5rem,-4vw,-2rem); bottom: 1.5rem; z-index: 1; width: min(28vw,24rem); height: auto; opacity: .18; }

@media (max-width: 1120px) {
  .production-site .desktop-nav, .production-site .header-end > .cta { display: none; }
  .production-site .site-header__inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 1040px) {
  .production-hero__grid { grid-template-columns: 1fr; }
  .production-hero__media { justify-self: stretch; width: min(100%,42rem); }
  .production-hero__media figure { aspect-ratio: 4 / 3; }
  .production-card-grid, .production-article-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .production-split, .production-footer__top { grid-template-columns: 1fr; }
  .production-footer__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --production-header: 4.4rem; }
  .header-book { display: inline-flex; }
  .production-logo__wordmark { font-size: .9rem; }
  .production-hero { padding-top: 1rem; }
  .production-hero__field { inset: 1rem .65rem; }
  .production-hero__grid { padding: 3rem 1.3rem; }
  .production-hero__media figure { aspect-ratio: 4 / 3; }
  .production-hero__note { left: -.35rem; bottom: 1rem; width: 7.2rem; }
  .production-card-grid, .production-article-grid, .production-form__grid, .resource-grid { grid-template-columns: 1fr; }
  .production-field--full { grid-column: auto; }
  .production-footer__newsletter { grid-template-columns: 1fr; }
  .production-footer__newsletter label { grid-column: auto; }
  .production-footer__links { grid-template-columns: 1fr 1fr; }
  .production-footer__wordmark { white-space: normal; line-height: .8; overflow-wrap: anywhere; }
  .production-footer__base { align-items: flex-start; flex-direction: column; }
  .production-footer__mark { right: -4rem; bottom: 2rem; width: 15rem; opacity: .14; }
}

@media (max-width: 420px) {
  .production-title { font-size: clamp(2.8rem,14vw,4rem); }
  .production-actions { display: grid; grid-template-columns: 1fr; }
  .production-actions .cta { width: 100%; min-width: 0; padding-inline: 1rem; }
  .production-footer__links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .production-article-card img { transition-delay: 0s !important; }
}
