/* PW-08: Mediathek/media-library portal pair. Preserve shared brand infrastructure. */
.portal-page { --portal-muted: #425d6c; --portal-line: #b1c6d2; color: var(--deep-blue); font-size: 1rem; }
.portal-page [id] { scroll-margin-top: 24px; }
.portal-page h1,
.portal-page h2,
.portal-page h3 { font-family: 'Montserrat', sans-serif; overflow-wrap: anywhere; hyphens: manual; }
.portal-page h1 { margin: 0 0 24px; font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
.portal-page h2 { max-width: 32ch; margin: 0 0 24px; font-size: clamp(1.875rem, 3vw, 2.625rem); font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.portal-page h3 { margin: 0 0 12px; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }
.portal-page p { max-width: 72ch; margin: 0 0 16px; line-height: 1.75; }
.portal-page p:last-child { margin-bottom: 0; }
.portal-page a { overflow-wrap: anywhere; }
.portal-page a:focus-visible,
.portal-page summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.portal-page img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.portal-page .portal-kicker { margin-bottom: 16px; color: var(--portal-muted); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.portal-hero { padding: 64px 0; background: var(--ice-blue); }
.portal-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 64px; align-items: center; }
.portal-page .portal-lead { max-width: 68ch; margin: 0; font-size: 1.125rem; }
.portal-page .portal-definition { margin: 20px 0 0; color: var(--portal-muted); }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.portal-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 28px; background: var(--action-orange); color: var(--deep-blue); font-weight: 700; line-height: 1.5; text-decoration: none; }
.portal-primary:hover { background: #FF7A2F; }
.portal-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; color: inherit; font-weight: 600; line-height: 1.5; text-underline-offset: 4px; }
.portal-link:hover { text-decoration-thickness: 2px; }
.portal-nav h2 { margin-bottom: 16px; font-size: 1.375rem; font-weight: 600; }
.portal-nav a { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; border-bottom: 1px solid var(--portal-line); color: inherit; line-height: 1.5; text-decoration: none; }
.portal-nav strong { display: block; font-weight: 600; }
.portal-nav a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.portal-nav-label { display: block; margin-top: 4px; color: var(--portal-muted); font-size: .875rem; }
.portal-chapter,
.portal-capabilities,
.portal-related,
.portal-showcase,
.portal-next { padding: 64px 0; }
.portal-hero-grid > *,
.portal-find-grid > *,
.portal-download-grid > *,
.portal-access-grid > *,
.portal-details-grid > *,
.portal-related-grid > *,
.portal-showcase-grid > *,
.portal-next-grid > * { min-width: 0; }
.portal-find-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.portal-figure { margin: 0; }
.portal-figure > img { width: 100%; }
.portal-page figcaption { margin-top: 12px; color: var(--portal-muted); font-size: .8125rem; line-height: 1.6; }
.portal-download { background: var(--ice-blue); }
.portal-download-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 64px; }
.portal-example { padding-top: 16px; border-top: 1px solid var(--portal-line); }
.portal-page .portal-example-label { margin-bottom: 12px; color: var(--portal-muted); font-size: .8125rem; font-weight: 600; }
.portal-rights { grid-column: 1 / -1; }
.portal-page .portal-rights p { max-width: 88ch; color: var(--portal-muted); }
.portal-access-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.portal-access-grid > .portal-intro { grid-column: 2; grid-row: 1; }
.portal-access-grid > .portal-figure { grid-column: 1; grid-row: 1; }
.portal-page .portal-note { margin-top: 24px; color: var(--portal-muted); font-size: .875rem; }
.portal-capabilities { padding-top: 0; }
.portal-details { margin: 24px 0 16px; border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.portal-details summary { min-height: 56px; padding: 16px 8px; color: var(--deep-blue); font-weight: 600; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.portal-details summary:hover { background: var(--ice-blue); }
.portal-details-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; padding: 24px 8px 32px; }
.portal-feature-list { display: grid; gap: 16px; margin: 0; padding-left: 24px; line-height: 1.75; }
.portal-existing-figure { margin: 0; }
.portal-related { --portal-muted: #c9dce6; background: var(--deep-blue); color: var(--white); }
.portal-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 32px; }
.portal-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.portal-next { background: var(--ice-blue); }
.portal-next-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
@media (max-width: 1024px) {
  .portal-hero-grid,
  .portal-find-grid,
  .portal-download-grid,
  .portal-access-grid,
  .portal-details-grid,
  .portal-related-grid,
  .portal-showcase-grid,
  .portal-next-grid { column-gap: 32px; }
}
@media (max-width: 800px) {
  .portal-hero,
  .portal-chapter,
  .portal-capabilities,
  .portal-related,
  .portal-showcase,
  .portal-next { padding: 48px 0; }
  .portal-capabilities { padding-top: 0; }
  .portal-hero-grid,
  .portal-find-grid,
  .portal-download-grid,
  .portal-access-grid,
  .portal-details-grid,
  .portal-related-grid,
  .portal-showcase-grid,
  .portal-next-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portal-access-grid > .portal-intro,
  .portal-access-grid > .portal-figure { grid-column: auto; grid-row: auto; }
}
@media (max-width: 480px) {
  .portal-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Approved portal story: semantic image search with a persistent article context. */
.portal-page .portal-story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 32px; }
.portal-page .portal-story-intro > * { min-width: 0; }
.portal-page .portal-story-controls { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-bottom: 18px; color: var(--portal-muted); font-size: .8125rem; visibility: hidden; }
.portal-page [data-render-ready="portal-story"] .portal-story-controls { visibility: visible; }
.portal-page .portal-story-controls > div { display: flex; gap: 6px; }
.portal-page .portal-story-controls button { min-height: 44px; padding: 9px 16px; border: 1px solid #b9cfdb; border-radius: 3px; color: var(--deep-blue); background: var(--white); font: inherit; line-height: 1.5; cursor: pointer; }
.portal-page .portal-story-controls button[aria-pressed="true"] { color: var(--white); background: var(--deep-blue); border-color: var(--deep-blue); }
.portal-page .portal-story-controls button:hover { border-color: #216d99; }
.portal-page .portal-story-controls button:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 4px; box-shadow: 0 0 0 2px var(--white); }
.portal-page .portal-story { margin: 0; padding: 30px 32px 22px; border-radius: 8px; background: var(--deep-blue); }
.portal-page .portal-story-search { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; color: var(--white); }
.portal-page .portal-story-search > svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: #b7ff3c; stroke-width: 2; }
.portal-page .portal-story-search-label { font-size: .625rem; letter-spacing: .13em; color: #9bd3f3; font-weight: 650; text-transform: uppercase; }
.portal-page p.portal-story-phrase { max-width: 820px; min-height: 33px; margin: 4px 0 0; font: 450 clamp(18px, 1.7vw, 23px)/1.4 'Montserrat', sans-serif; letter-spacing: -.015em; }
.portal-page .portal-story-search-type { margin-left: auto; padding-bottom: 3px; border-bottom: 1px solid #b7ff3c; color: #b7ff3c; font-size: .6875rem; white-space: nowrap; }
.portal-page .portal-story-content { display: grid; grid-template-columns: minmax(0, 1fr) 295px; align-items: center; }
.portal-page .portal-story-motif { min-width: 0; position: relative; align-self: center; margin-right: -30px; background: var(--ice-blue); border-radius: 4px; overflow: hidden; }
.portal-page .portal-story-motif > img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; border-radius: 0; }
.portal-page .portal-story-motif-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 50px 10px 16px; background: var(--ice-blue); font-size: .75rem; line-height: 1.4; }
.portal-page .portal-story-context { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; padding: 21px 23px 17px; border-radius: 4px; background: var(--white); box-shadow: 0 10px 40px #03213d40; transform: translateY(10px); }
.portal-page .portal-story-context-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.portal-page p.portal-story-context-label { margin: 0; font-size: .625rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.portal-page .portal-story-context-mark { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #b7ff3c; font-size: 20px; line-height: 1; }
.portal-page p.portal-story-relation { margin: -5px 0 16px; color: var(--portal-muted); font-size: .6875rem; line-height: 1.5; }
.portal-page .portal-story-identity > img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; margin: 0 0 16px; border-radius: 0; }
.portal-page h3.portal-story-product-title { margin: 0 0 9px; font: 550 23px/1.23 'Montserrat', sans-serif; letter-spacing: -.035em; }
.portal-page p.portal-story-source { display: flex; align-items: center; gap: 7px; margin: 0; color: #216d99; font-size: .6875rem; line-height: 1.5; }
.portal-page .portal-story-source > span { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #216d99; }
.portal-page .portal-story-data { display: grid; gap: 8px; margin: 19px 0; padding: 15px 0; border-top: 1px solid #d4e2e9; border-bottom: 1px solid #d4e2e9; font-size: .6875rem; line-height: 1.5; }
.portal-page .portal-story-data > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.portal-page .portal-story-data dt,
.portal-page .portal-story-data dd { min-width: 0; overflow-wrap: anywhere; }
.portal-page .portal-story-data dt { color: var(--portal-muted); }
.portal-page .portal-story-data dd { margin: 0; font-weight: 600; }
.portal-page .portal-story-file { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.portal-page .portal-story-file > svg { width: 28px; height: 34px; flex-shrink: 0; fill: none; stroke: #216d99; stroke-width: 1.5; }
.portal-page .portal-story-file strong { display: block; font-size: .75rem; font-weight: 650; }
.portal-page .portal-story-file span { display: block; margin-top: 2px; color: var(--portal-muted); font-size: .625rem; }
.portal-page .portal-story figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; color: #9bd3f3; font-size: .75rem; line-height: 1.6; }
.portal-page p.portal-story-note { max-width: 950px; margin: 17px 0 0; color: var(--portal-muted); font-size: .75rem; line-height: 1.6; }
.portal-page p.portal-story-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .portal-page .portal-story-intro { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .portal-page .portal-story-content { grid-template-columns: minmax(0, 1fr) 250px; }
  .portal-page .portal-story-context { padding: 18px; }
  .portal-page h3.portal-story-product-title { font-size: 21px; }
  .portal-page .portal-story-identity > img { margin-bottom: 12px; }
  .portal-page .portal-story-search-type { display: none; }
  .portal-page p.portal-story-phrase { font-size: 21px; }
  .portal-page .portal-story { padding: 24px; }
  .portal-page .portal-story-controls { justify-content: flex-start; }
}
@media (max-width: 1000px) {
  .portal-page .portal-story-content { display: block; }
  .portal-page .portal-story-motif { margin: 0; }
  .portal-page .portal-story-motif-caption { padding-right: 16px; }
  .portal-page .portal-story-context { margin: 16px 0 0; padding: 20px; box-shadow: none; transform: none; }
  .portal-page .portal-story-identity { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 20px; }
  .portal-page .portal-story-identity > img { margin: 0; }
  .portal-page .portal-story-data { margin: 14px 0; }
  .portal-page .portal-story figcaption { margin-top: 20px; }
}
@media (max-width: 640px) {
  .portal-page .portal-story-controls { display: block; margin-bottom: 15px; }
  .portal-page .portal-story-controls > span { display: block; margin-bottom: 8px; font-size: .6875rem; }
  .portal-page .portal-story-controls > div { gap: 7px; }
  .portal-page .portal-story-controls button { flex: 1; min-width: 0; padding: 9px 10px; font-size: .6875rem; }
  .portal-page .portal-story { margin: 0 -10px; padding: 18px 14px 17px; }
  .portal-page .portal-story-search { align-items: flex-start; gap: 11px; margin-bottom: 17px; }
  .portal-page .portal-story-search > svg { width: 23px; height: 23px; margin-top: 5px; }
  .portal-page .portal-story-search-label { font-size: .5625rem; }
  .portal-page p.portal-story-phrase { margin-top: 7px; font-size: 18px; line-height: 1.4; }
  .portal-page .portal-story-motif-caption { padding: 9px 10px; font-size: .625rem; }
  .portal-page .portal-story-context { margin-top: 12px; padding: 16px; }
  .portal-page .portal-story-identity { grid-template-columns: 110px minmax(0, 1fr); gap: 15px; }
  .portal-page h3.portal-story-product-title { font-size: 18px; }
  .portal-page p.portal-story-source { gap: 5px; font-size: .625rem; }
  .portal-page p.portal-story-context-label { font-size: .5625rem; }
  .portal-page .portal-story-data { font-size: .625rem; }
  .portal-page .portal-story figcaption { display: block; font-size: .6875rem; line-height: 1.7; }
  .portal-page .portal-story figcaption span { display: block; }
  .portal-page p.portal-story-note { margin-top: 16px; font-size: .6875rem; }
}
