/* Full artwork project pages and shared body blocks (URIDOLAN-FULL-ARTWORK-004).
   Loaded only by pages that use them (see components/portfolio/Overview.tsx), so other overview and writing
   pages keep exactly the shared overview.css they had before. Depends on overview.css custom properties. */
/* Full artwork. The complete poster is the foreground of the opening: it starts at
   the fixed header's bottom border, keeps its natural ratio up to 1600 px and is never cropped, tinted or animated.
   Everything here is scoped to .artwork-hero and the shared body blocks so other layouts keep their behaviour. */
.native-overview .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.native-overview .artwork-hero { --artwork-ink: #1f2b28; padding-top: calc(var(--portfolio-header-height) + env(safe-area-inset-top, 0px)); }
.native-overview .artwork-opening { position: relative; isolation: isolate; width: 100%; max-width: 1600px; margin-inline: auto; }
.native-overview .artwork-meta { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 20px; padding: 26px 5%; color: var(--artwork-ink); pointer-events: none; }
.native-overview .artwork-category { color: #344740; font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.native-overview .artwork-hero h1 { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.native-overview .artwork-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 11px; border: 1px solid #f5f7f2b3; border-radius: 30px; background: #f7f8f1c9; color: #263b31; font-size: 11px; line-height: 1.2; white-space: nowrap; backdrop-filter: blur(8px); }
.native-overview .artwork-status::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #5f7f53; }
.native-overview .artwork-visual { position: relative; z-index: 1; isolation: isolate; margin: 0; background: #d7d8d6; box-shadow: 0 18px 30px -17px #0009; }
.native-overview .artwork-image { display: block; width: 100%; height: auto; }
/* Dark appearance: a restrained pale glow along the lower edge and a thin soft highlight; never a frame. */
.native-overview .artwork-visual::after { content: ''; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -20px; height: 32px; border-radius: 50%; background: radial-gradient(ellipse at center, #e5fff1a3 0%, #c8ead45c 38%, #dff5e900 74%); filter: blur(10px); pointer-events: none; }
.native-overview .artwork-visual::before { content: ''; position: absolute; z-index: 1; left: 14%; right: 14%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #effffac2 50%, transparent); filter: blur(1px); pointer-events: none; }
/* Light appearance: the soft shadow lies outside the artwork, below it. */
html[data-theme="light"] .native-overview .artwork-visual { box-shadow: 0 18px 30px -15px #15221c66, 0 6px 12px -7px #15221c40; }
html[data-theme="light"] .native-overview .artwork-visual::before, html[data-theme="light"] .native-overview .artwork-visual::after { content: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .native-overview .artwork-visual { box-shadow: 0 18px 30px -15px #15221c66, 0 6px 12px -7px #15221c40; }
  html:not([data-theme]) .native-overview .artwork-visual::before, html:not([data-theme]) .native-overview .artwork-visual::after { content: none; }
}
.native-overview .artwork-open { position: absolute; inset: 0; z-index: 2; display: block; cursor: zoom-in; }
.native-overview .artwork-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.native-overview .artwork-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "tagline actions" "summary actions"; gap: 12px 8%; align-items: center; padding: 42px 5% 45px; }
.native-overview .artwork-tagline { grid-area: tagline; max-width: 790px; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; font-weight: 600; letter-spacing: -.03em; }
.native-overview .artwork-summary { grid-area: summary; max-width: 790px; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; letter-spacing: -.01em; }
.native-overview .artwork-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 22px; }
.native-overview :is(.artwork-action-primary, .artwork-action-link) { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.native-overview .artwork-action-primary { padding: 12px 20px; border: 1px solid var(--text); border-radius: 5px; background: var(--text); color: var(--bg); }
.native-overview .artwork-action-primary:hover { background: var(--accent); border-color: var(--accent); }
.native-overview .artwork-action-link { padding-block: 9px; border-bottom: 1px solid var(--line); color: var(--text); }
.native-overview .artwork-action-link:hover { color: var(--accent); border-color: var(--accent); }
.native-overview .artwork-section-nav { padding-block: 18px; border-top: 1px solid var(--project-rule); }
.native-overview .artwork-section-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.native-overview .artwork-section-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }
.native-overview .artwork-section-nav a:hover { color: var(--text); }
@media (max-width: 1000px) {
  .native-overview .artwork-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tagline" "summary" "actions"; gap: 16px; }
  .native-overview .artwork-actions { justify-content: flex-start; margin-top: 8px; }
}
/* Phones: category and a compact stage stay on the image; the same H1, the tagline and actions follow below it. */
@media (max-width: 760px) {
  .native-overview .artwork-opening { display: grid; grid-template-columns: minmax(0, 1fr); }
  .native-overview .artwork-meta, .native-overview .artwork-intro { display: contents; }
  /* The desktop intro's named areas must not create implicit columns once its children join this grid. */
  .native-overview :is(.artwork-visual, .artwork-hero h1, .artwork-tagline, .artwork-actions, .artwork-summary) { grid-column: 1; }
  .native-overview .artwork-visual { grid-row: 1; }
  .native-overview .artwork-category { position: absolute; z-index: 3; top: 12px; left: 6%; max-width: 53%; color: #263b31; font-size: 9px; line-height: 1.35; letter-spacing: .07em; pointer-events: none; }
  .native-overview .artwork-status { position: absolute; z-index: 3; top: 10px; right: 6%; max-width: 34%; margin: 0; padding: 3px 6px; gap: 5px; font-size: 8.5px; line-height: 1.2; white-space: normal; pointer-events: none; }
  .native-overview .artwork-status::before { width: 3px; height: 3px; }
  .native-overview .artwork-visual::after { left: 10%; right: 10%; bottom: -13px; height: 22px; filter: blur(8px); }
  .native-overview .artwork-hero h1 { grid-row: 2; margin: 26px var(--project-gutter) 0; color: var(--text); font-size: 31px; line-height: 1.12; letter-spacing: -.045em; }
  .native-overview .artwork-tagline { grid-row: 3; margin: 12px var(--project-gutter) 0; color: var(--muted); font-size: 17px; line-height: 1.45; font-weight: 400; letter-spacing: -.01em; }
  .native-overview .artwork-actions { grid-row: 4; justify-content: flex-start; margin: 20px var(--project-gutter) 0; }
  .native-overview .artwork-summary { grid-row: 5; margin: 24px var(--project-gutter) 32px; color: var(--text); font-size: 17px; }
  .native-overview .artwork-action-primary { min-height: 44px; padding: 11px 16px; font-size: 12px; }
  .native-overview .artwork-action-link { font-size: 12px; }
}

/* Shared body blocks: figure, selectable panels and disclosures. Readable as plain stacked content before the
   script enhances panels into tabs. */
.native-overview .project-block-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px clamp(24px, 6vw, 86px); margin-bottom: 36px; }
.native-overview .project-block-copy :is(p) { max-width: 63ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.75; }
.native-overview .project-block-copy p + p { margin-top: 1em; }
.native-overview .project-artwork-figure { margin: 0; }
.native-overview .project-artwork-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #eeefea; }
.native-overview .project-artwork-frame img { display: block; width: 100%; height: auto; }
.native-overview .project-artwork-figure figcaption { margin-top: 12px; max-width: 80ch; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.native-overview .project-panel-index { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0 0 28px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); counter-reset: none; }
.native-overview .project-panel-index li { flex: 1 1 auto; min-width: min(140px, 40%); }
.native-overview .project-panel-index a { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 64px; padding: 14px 6px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.native-overview .project-panel-index a:hover { color: var(--text); }
.native-overview .project-panel-index a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.native-overview .project-panel-number { color: var(--accent); font-size: 10px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.native-overview .project-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 45px; align-items: center; padding: 34px; border-radius: 4px; background: var(--surface); }
.native-overview .project-panel.has-image { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.native-overview .project-panel + .project-panel { margin-top: 18px; }
.native-overview .project-panels.is-enhanced .project-panel + .project-panel { margin-top: 0; }
.native-overview .project-panel[hidden] { display: none; }
.native-overview .project-panel[id] { scroll-margin-top: calc(var(--site-header-height) + 24px); }
.native-overview .project-panel-label { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.native-overview .project-panel h3 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -.035em; }
.native-overview .project-panel-text p { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.native-overview .project-panel-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.6; }
.native-overview .project-panel:not(.has-image) .project-panel-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head text" "note text"; gap: 0 45px; align-items: start; }
.native-overview .project-panel:not(.has-image) .project-panel-head { grid-area: head; }
.native-overview .project-panel:not(.has-image) .project-panel-text { grid-area: text; }
.native-overview .project-panel:not(.has-image) .project-panel-text p:first-child { margin-top: 0; }
.native-overview .project-panel:not(.has-image) .project-panel-note { grid-area: note; margin-top: 10px; padding-top: 0; border-top: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.native-overview .project-disclosures { border-top: 1px solid var(--line); }
.native-overview .project-disclosure { border-bottom: 1px solid var(--line); }
.native-overview .project-disclosure[id] { scroll-margin-top: calc(var(--site-header-height) + 24px); }
.native-overview .project-disclosure summary { display: flex; align-items: center; gap: 28px; min-height: 64px; padding-block: 18px; cursor: pointer; list-style: none; }
.native-overview .project-disclosure summary::-webkit-details-marker { display: none; }
.native-overview .project-disclosure summary h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 600; letter-spacing: -.025em; }
.native-overview .project-disclosure-number { min-width: 24px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.native-overview .project-disclosure-toggle { position: relative; width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; }
.native-overview .project-disclosure-toggle::before, .native-overview .project-disclosure-toggle::after { content: ''; position: absolute; inset: 7px 0 auto; height: 1.5px; background: currentColor; }
.native-overview .project-disclosure-toggle::after { transform: rotate(90deg); }
.native-overview .project-disclosure[open] .project-disclosure-toggle::after { transform: none; }
.native-overview .project-disclosure-body { padding: 0 44px 26px 52px; }
.native-overview .project-disclosure-body p { max-width: 70ch; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.native-overview .project-stage-label { font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important; font-weight: 600; letter-spacing: -.03em; }
.native-overview .project-stage-media { color: var(--muted); font-size: .95rem !important; }
@media (max-width: 760px) {
  .native-overview .project-block-intro { grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
  .native-overview .project-panel, .native-overview .project-panel.has-image { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .native-overview .project-panel:not(.has-image) .project-panel-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text" "note"; }
  .native-overview .project-panel:not(.has-image) .project-panel-text p:first-child { margin-top: 14px; }
  .native-overview .project-panel-index { gap: 0 6px; }
  .native-overview .project-panel-index li { min-width: min(120px, 30%); }
  .native-overview .project-panel-index a { min-height: 56px; padding: 10px 4px; font-size: 12px; }
  .native-overview .project-disclosure summary { gap: 14px; }
  .native-overview .project-disclosure-body { padding: 0 0 22px 38px; }
}

/* The artwork viewer: unchanged original, fit or zoom, a 44 px close target, body scroll restored on close. */
/* margin: auto restores the native modal centring that the global reset removes. */
.artwork-viewer { width: min(94vw, 1500px); max-width: none; max-height: 94dvh; margin: auto; padding: 0; overflow: hidden; border: 1px solid #4a5851; border-radius: 8px; background: #111a16; color: #f0f3eb; box-shadow: 0 30px 100px #0008; font-family: Manrope, Arial, sans-serif; }
.artwork-viewer::backdrop { background: #0a130ec9; backdrop-filter: blur(8px); }
.artwork-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px 10px 22px; }
.artwork-viewer-bar h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.artwork-viewer-actions { display: flex; gap: 10px; flex-shrink: 0; }
.artwork-viewer-button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #536459; border-radius: 4px; background: transparent; color: inherit; font: 600 12px/1.2 Manrope, Arial, sans-serif; cursor: pointer; }
.artwork-viewer-button:hover { background: #ffffff14; }
.artwork-viewer-button:focus-visible { outline: 2px solid #b9d7c3; outline-offset: 3px; }
.artwork-viewer-scroll { display: flex; align-items: flex-start; max-height: calc(94dvh - 118px); overflow: auto; background: #d8dad6; overscroll-behavior: contain; }
.artwork-viewer-scroll img { display: block; width: 100%; max-width: 100%; height: auto; margin: auto; }
.artwork-viewer-scroll.is-zoomed img { width: auto; max-width: none; margin: 0; flex-shrink: 0; }
.artwork-viewer-caption { margin: 0; padding: 14px 22px; color: #b9c6bd; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .artwork-viewer { width: 96vw; }
  .artwork-viewer-bar { padding: 8px 8px 8px 14px; }
  .artwork-viewer-bar h2 { font-size: 13px; }
  .artwork-viewer-actions { gap: 6px; }
  .artwork-viewer-scroll { max-height: 75dvh; }
  .artwork-viewer-caption { padding: 12px 14px; font-size: 11px; }
}
html.artwork-viewer-open, html.artwork-viewer-open body { overflow: hidden; }
