/* Shared marketing feature navigation, directory, and illustrative portal previews. */
.mega-columns { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); }
.mega-columns > div:first-child { padding-right: 26px; }
.mega-columns > div + div { padding-left: 26px; }
.mega-columns > div:last-child .mega-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.mega-links { margin-top: 12px; gap: 4px; }
.mega-links a { padding: 8px; }
.mega-links a > span { font-size: 11px; line-height: 17px; }
.feature-directory > header { margin-bottom: 46px; }
.feature-directory-intro h1 { font-size: clamp(32px, 4.2vw, 55px); line-height: 1.15; letter-spacing: -.04em; max-width: 850px; margin: 22px 0; }
.feature-directory-intro h1 span { color: var(--muted); }
.feature-directory-intro > p:last-of-type { max-width: 660px; color: var(--body-text); line-height: 1.7; }
.feature-directory-intro nav { display: flex; gap: 24px; font-size: 14px; margin-top: 28px; }
.feature-category { display: grid; grid-template-columns: 1fr 3fr; gap: 38px; border-top: 1px solid var(--line); padding-block: 36px; scroll-margin-top: 100px; }
.feature-category h2 { font-size: 19px; line-height: 1.5; font-weight: 500; margin-top: 15px; }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { display: flex; gap: 12px; align-items: start; min-width: 0; padding: 18px 13px; border: 1px solid var(--line); background: #fff; border-radius: 12px; transition: border-color .15s, background .15s; }
.feature-card:hover { border-color: #b4cfdf; background: #f4f8fb; }
.feature-card:focus-visible { outline: 2px solid #2379ad; outline-offset: 3px; }
.feature-card > img { flex: 0 0 22px; height: 22px; opacity: .78; }
.feature-card > span:first-of-type { flex: 1; }
.feature-card > span:last-of-type { font-size: 13px; color: #7e8299; }
.feature-card strong { display: block; font-size: 14px; font-weight: 600; }
.feature-card small { display: block; color: var(--body-text); font-size: 11px; line-height: 1.65; margin-top: 7px; }
.feature-developers { border-top: 1px solid var(--line); padding-top: 35px; }
.feature-developers h2 { font-size: 23px; }
.feature-developers p { margin-block: 15px; color: var(--body-text); line-height: 1.7; }
.feature-developers small { color: var(--muted); }
.feature-mockup { margin: 48px auto 0; max-width: 1040px; text-align: left; }
.feature-mockup > figcaption { color: var(--muted); text-align: center; font-size: 11px; margin-top: 15px; }
.fm-stage { height: 590px; padding: 24px; background: #eef3f7; }
.fm-sidebar { width: 150px; flex: 0 0 150px; padding: 8px 12px; overflow: hidden; }
.fm-sidebar > small { display: block; font-size: 7px; letter-spacing: .07em; color: #a1a5b7; margin: 8px 8px 4px; }
.fm-sidebar > span { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: 8px; line-height: 15px; }
.fm-sidebar img { width: 12px; height: 12px; }
.fm-sidebar .active { background: #edf5fa; color: #2379ad; border-radius: 6px; }
.fm-portal .pm-workspace-content { padding: 22px; }
.fm-portal .pm-workspace-head > span { border: 1px solid #e4e6ef; background: #f5f8fa; color: #3f4254; border-radius: 7px; }
.fm-tabs { display: flex; gap: 20px; border-bottom: 1px solid #e4e6ef; padding-bottom: 10px; margin-bottom: 12px; color: #7e8299; font-size: 10px; }
.fm-tabs > span:first-child { color: #2379ad; font-weight: 600; }
.fm-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fm-editor > div { min-width: 0; }
.fm-field { display: grid; gap: 7px; margin-bottom: 15px; font-size: 10px; }
.fm-field > small { font-size: 9px; color: #5e6278; font-weight: 500; }
.fm-field > span { padding: 11px; min-height: 32px; background: #f7f9fb; border: 1px solid #e4e6ef; border-radius: 6px; line-height: 1.5; }
.fm-preview { border: 1px solid #e4e6ef; border-radius: 9px; padding: 20px; background: #fff; }
.fm-preview > small:first-child { display: block; font-size: 8px; color: #a1a5b7; margin-bottom: 16px; }
.fm-preview h4 { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; margin: 12px 0; }
.fm-preview p { line-height: 1.7; }
.fm-preview .pm-widget { box-shadow: none; }
.fm-preview .pm-list > div { gap: 6px; }
.fm-preview .pm-list b { font-size: 10px; }
.fm-preview .pm-list small { font-size: 8px; }
.fm-preview .pm-list em { font-size: 8px; }
.fm-actions { display: flex; gap: 8px; margin-top: 22px; font-size: 10px; }
.fm-actions > * { border-radius: 7px; border: 1px solid #e4e6ef; background: #f5f8fa; padding: 10px 16px; font-weight: 600; }
.fm-actions > b { background: #2379ad; color: #fff; border-color: #2379ad; }
.fm-table > div { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 12px; padding: 11px 0; border-bottom: 1px solid #eff2f5; font-size: 10px; }
.fm-table > div:first-child { color: #7e8299; font-size: 9px; }
.fm-table span { overflow-wrap: anywhere; line-height: 1.5; }
.fm-summary { margin-top: 14px; padding: 14px; border: 1px solid #e4e6ef; border-radius: 9px; }
.fm-summary > b, .fm-summary > span { display: block; }
.fm-summary > span { font-size: 9px; color: #7e8299; margin-top: 12px; }
.fm-summary > small { font-size: 8px; color: #7e8299; }
.fm-summary h4 { font-size: 18px; margin: 12px 0; }
.fm-summary p { font-size: 11px; margin-top: 10px; }
.fm-popup { text-align: center; }
.fm-popup > span { float: right; color: #7e8299; }
.fm-popup > small { font-size: 8px; letter-spacing: .08em; }
.fm-product-art { background: #dce9e5; color: #31554a; border-radius: 7px; padding: 25px; font-size: 28px; letter-spacing: -.04em; }
.fm-rating { background: #eef5fa; padding: 13px; border-radius: 6px; color: #2379ad; margin: 15px 0; font-size: 14px; }
.fm-text-lines { height: 70px; background: repeating-linear-gradient(#eff2f5 0 5px, transparent 5px 16px); margin-top: 24px; }
@media (max-width: 1023px) {
  .mega-columns { grid-template-columns: 1fr 2fr; }
  .mega-columns > div:last-child .mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-category { grid-template-columns: 1fr; gap: 24px; }
  .feature-category h2 { max-width: 500px; }
}
@media (max-width: 767px) {
  .feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feature-card { padding: 15px 10px; gap: 8px; }
  .feature-card > img { width: 18px; height: 18px; flex-basis: 18px; }
  .feature-card strong { font-size: 12px; }
  .feature-card small { font-size: 10px; }
  .feature-card > span:last-of-type { display: none; }
  .feature-category { padding-block: 28px; }
  .feature-category h2 { font-size: 17px; }
  .fm-stage { height: 490px; padding: 12px; border-radius: 14px; }
  .fm-sidebar { display: none; }
  .fm-portal .pm-workspace-content { padding: 15px 12px; }
  .fm-editor { grid-template-columns: 1fr; }
  .fm-editor > div:first-child { display: none; }
  .fm-preview { padding: 14px; }
  .fm-preview h4 { font-size: 22px; }
  .fm-tabs { gap: 13px; font-size: 8px; margin-bottom: 15px; }
  .fm-table > div { font-size: 9px; gap: 7px; padding-block: 15px; }
  .fm-summary { padding: 15px; margin-top: 18px; }
}

.fm-status { display: inline-flex; align-items: center; gap: 5px; color: #347250; font-style: normal; white-space: nowrap; }
.fm-status::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: #50a778; flex: none; }

/* One masthead and one next-step navigation for the feature catalogue. */
.feature-page-hero,
.feature-directory-intro {
  background: var(--accent-soft);
  border-bottom: 1px solid #d9e9f4;
}

.feature-page-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 46px);
  padding-block: clamp(38px, 5vw, 58px);
  text-align: left;
}

.feature-hero-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.feature-hero-label img { flex: none; }
.feature-hero-label > span:last-child { padding-inline-start: 8px; border-inline-start: 1px solid #b4cddf; color: var(--body-text); }
.feature-page-hero h1 {
  margin: 0;
  font-size: clamp(37px, 4.1vw, 59px);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: pretty;
}

.feature-page-hero .product-intro { margin: 19px 0 0; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.65; }
.feature-page-hero .product-hero-actions { justify-content: flex-start; gap: 12px 18px; margin-top: 25px; }
.feature-page-hero .product-hero-actions .button { min-height: 42px; }
.feature-hero-visual { min-width: 0; }
.feature-hero-visual .feature-mockup,
.feature-hero-visual .product-figure { margin: 0; }
.feature-hero-visual .feature-mockup a,
.feature-hero-visual .product-figure figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.feature-hero-visual .fm-stage {
  height: auto;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px #1432491a;
}
.feature-hero-visual .fm-portal { height: auto; border: 0; }
.feature-hero-visual .pm-portal-body { height: auto; min-height: 310px; }
.feature-hero-visual .pm-workspace { min-width: 0; }
.feature-hero-visual .pm-workspace-content { padding: 14px; }

.fm-portal--studio .pm-topbar {
  min-height: 42px;
  height: 42px;
  background: #18212f;
  border-color: #29384a;
  color: #fff;
}
.fm-portal--studio .pm-topbar > img { border-radius: 50%; outline: 1px solid #5b6d85; }
.fm-portal--studio .pm-topbar > i,
.fm-portal--studio .pm-topbar > b { background: #29384a; color: #eef6fe; }
.fm-portal--studio .pm-topbar > span { white-space: nowrap; }
.feature-hero-visual .fm-sidebar { width: 42px; flex-basis: 42px; padding: 5px; }
.feature-hero-visual .fm-sidebar > small { font-size: 6px; margin: 8px 0 3px; text-align: center; }
.feature-hero-visual .fm-sidebar > span { justify-content: center; font-size: 0; gap: 0; padding: 3px 0; }
.feature-hero-visual .fm-sidebar > span > img { width: 13px; height: 13px; }
.feature-hero-visual .fm-editor { gap: 12px; }
.feature-hero-visual .fm-preview { min-width: 0; padding: 12px; overflow-wrap: anywhere; }
.feature-hero-visual .fm-tabs { flex-wrap: wrap; gap: 7px 12px; }
.feature-hero-visual .fm-editor > div { overflow-wrap: anywhere; }
.feature-hero-visual .fm-actions > * { padding: 7px 8px; }
.feature-hero-visual .fm-table > div { gap: 8px; }
.feature-hero-visual .fm-summary { margin-top: 11px; }
.feature-hero-visual .pm-page-editor { grid-template-columns: minmax(88px, .6fr) minmax(0, 1fr); }
.feature-hero-visual .pm-split { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
.feature-hero-visual .pm-list > div { gap: 6px; }
.feature-hero-visual .pm-list em { white-space: normal; text-align: right; }

.feature-hero-visual .product-stage { min-height: 320px; padding: 24px 18px; }
.feature-hero-visual .product-stage > * { min-width: 0; }
.feature-hero-visual .product-figure { background: var(--surface); }
.feature-hero-visual .protocol-layout,
.feature-hero-visual .a2a-visual,
.feature-hero-visual .api-visual { width: 100%; }
.feature-hero-visual .tool-stack { min-width: 0; }
.feature-hero-visual .a2a-parties { gap: 12px; }
.feature-hero-visual .a2a-parties > div:not(.a2a-wire) { min-width: 0; }
.feature-hero-visual .api-path { gap: 8px; }
.feature-hero-visual .api-node { padding: 16px 7px; }
.feature-hero-visual .api-node b,
.feature-hero-visual .api-node small { text-align: center; }
.feature-hero-visual .api-event { text-align: center; }

.feature-directory-intro { padding-block: 46px; }
.feature-directory-intro + .feature-directory { padding-top: 12px; }
.feature-directory > .feature-category:first-child { border-top: 0; }

.feature-next { border-top: 1px solid var(--line); padding-block: 34px; }
.feature-next > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.feature-next h2 { font-size: 23px; font-weight: 550; letter-spacing: -.03em; }
.feature-next .product-subnav { padding: 0; margin-top: 18px; border: 0; flex-wrap: wrap; gap: 8px; }
.feature-next .product-subnav a { border: 1px solid var(--line); }

@media (max-width: 767px) {
  .feature-page-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-hero-visual .pm-portal-body { min-height: 260px; }
  .feature-hero-visual .pm-workspace-content { padding: 12px; }
  .feature-hero-visual .fm-editor { grid-template-columns: 1fr; }
  .feature-hero-visual .pm-split { grid-template-columns: 1fr; }
  .feature-hero-visual .pm-page-editor { grid-template-columns: 1fr; }
  .feature-hero-visual .product-stage { min-height: 240px; padding: 18px 12px; }
  .feature-hero-visual .product-figure figcaption > span:last-child { display: inline; }
  .feature-hero-visual .api-node b,
  .feature-hero-visual .api-node small { text-align: left; }
}
