/* Overview-only additions; existing companion and MFD styles stay independent. */
.hardware-section-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.3rem 0; border-block: 1px solid var(--line); margin-bottom: 2.4rem; }
.hardware-section-nav > span { color: var(--muted); font: .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .13em; }
.hardware-section-nav ul { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.hardware-section-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .87rem; }
.hardware-hero .hardware-film-action { background: none; border: 0; box-shadow: none; padding-inline: 0; min-width: 0; }
.hardware-ecosystem { --eco-base: #07111f; --eco-surface: #101824; --eco-text: #f4f7fb; --eco-muted: #b6c2d1; --eco-line: #2c3e51; color: var(--eco-text); }
.hardware-ecosystem p { color: var(--eco-muted); }
.ecosystem-category { padding: clamp(3rem, 6vw, 6rem) 0; border-top: 1px solid var(--eco-line); scroll-margin-top: 110px; }
.ecosystem-category:focus:not(:focus-visible) { outline: none; }
.ecosystem-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ecosystem-copy, .ecosystem-support-copy { min-width: 0; }
.ecosystem-copy h2 { max-width: 19ch; line-height: 1.1; }
.ecosystem-copy > p { max-width: 58ch; }
.ecosystem-lead { font-size: 1.1rem; line-height: 1.75; max-width: 72ch; }
.ecosystem-copy .kicker { color: #8ab8e6; }
.ecosystem-actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.7rem; align-items: center; margin-top: 1.7rem; }
.ecosystem-actions .button { text-align: center; white-space: normal; }
.ecosystem-link { display: inline-block; padding-block: .65rem; color: var(--eco-text, #f4f7fb); text-underline-offset: .3em; }
.ecosystem-link:hover { text-decoration: underline; }
.ecosystem-labels { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem 1.1rem; padding: 1rem 0; border-block: 1px solid var(--eco-line); margin: 1.5rem 0; }
.ecosystem-labels li { color: var(--eco-muted); font-size: .8rem; }
.ecosystem-labels li::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #8ab8e6; margin: 0 .5rem .15rem 0; }
.ecosystem-media { min-width: 0; margin: 0; border: 1px solid var(--eco-line); border-radius: 16px; background: var(--eco-base); overflow: hidden; }
.ecosystem-media > a { position: relative; display: block; }
.ecosystem-media picture { display: block; }
.ecosystem-media img { display: block; width: 100%; height: auto; object-fit: contain; background: var(--eco-base); }
.ecosystem-media figcaption { padding: 1rem 1.2rem; border-top: 1px solid var(--eco-line); background: var(--eco-surface); color: var(--eco-muted); font-size: .82rem; }
.ecosystem-media figcaption strong { color: var(--eco-text); font-size: .9rem; font-weight: 600; display: block; }
.ecosystem-media figcaption p { margin: .55rem 0; font-size: .8rem; line-height: 1.6; }
.ecosystem-media figcaption > span { display: inline-block; padding-top: .65rem; color: var(--eco-muted); }
.ecosystem-enlarge { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 32px; height: 32px; background: #101824e8; border: 1px solid #637992; border-radius: 50%; color: #f4f7fb; }
.ecosystem-media > a:focus-visible { outline-offset: -4px; outline: 3px solid #b8d9ff; }
.ecosystem-support-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--eco-line); }
.ecosystem-support-copy { max-width: 50ch; }
.ecosystem-support-copy h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.ecosystem-support-copy p a { text-decoration: underline; text-underline-offset: .2em; }
.ecosystem-support { margin-top: 2rem; scroll-margin-top: 110px; }
.ecosystem-support-layout .ecosystem-support { margin-top: 0; }
.ecosystem-support > h3 { margin-bottom: 1rem; color: var(--eco-muted); font-size: .8rem; font-weight: 500; }
.ecosystem-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.ecosystem-support-layout .ecosystem-gallery { grid-template-columns: minmax(0, 1fr); max-width: 350px; }
.ecosystem-gallery img { aspect-ratio: 4 / 3; object-fit: contain; }
.ecosystem-gallery .ecosystem-media { height: 100%; }
.ecosystem-reference { font-size: .9rem; margin-top: 1.7rem; }
.ecosystem-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; border-top: 1px solid var(--eco-line); gap: 0 1.4rem; }
.ecosystem-specs > div { border-bottom: 1px solid var(--eco-line); padding: .8rem 0; }
.ecosystem-specs dt { color: var(--eco-muted); font-size: .75rem; }
.ecosystem-specs dd { margin: .3rem 0 0; color: var(--eco-text); font-size: 1.15rem; }
.hardware-ecosystem .ecosystem-note { font-size: .8rem; line-height: 1.65; margin-top: 1.2rem; }
.ecosystem-note a { text-decoration: underline; text-underline-offset: .2em; }
/* Workflow details follow the product image without changing its proportions. */
.ecosystem-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 2.4rem; }
#storage-media, #power-continuity { scroll-margin-top: 110px; }
.ecosystem-power { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--eco-line); border-radius: 16px; background: var(--eco-surface); }
.ecosystem-power h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; margin: 0; }
.ecosystem-power .kicker { color: #8ab8e6; }
.ecosystem-power p { font-size: .9rem; line-height: 1.75; }
.ecosystem-power > div > p:first-child { margin-top: 0; }
.ecosystem-power > div > p:last-child { margin-bottom: 0; }
.ecosystem-capabilities article { min-width: 0; border-top: 1px solid var(--eco-line); padding-top: 1.35rem; }
.ecosystem-capabilities h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .8rem; }
.ecosystem-capabilities p { font-size: .9rem; line-height: 1.75; margin: 0; }
.ecosystem-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #07111fe8; border: 1px solid #9eb9d3; border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.8rem; color: #f4f7fb; }
.ecosystem-architecture { border-top: 1px solid var(--eco-line); padding-block: 4rem; scroll-margin-top: 110px; }
.ecosystem-diagram { margin-top: 2rem; border: 1px solid var(--eco-line); border-radius: 16px; background: var(--eco-base); padding: clamp(1rem, 3vw, 2rem); }
.ecosystem-network-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.ecosystem-network-path li { position: relative; background: var(--eco-surface); border: 1px solid var(--eco-line); border-radius: 8px; padding: 1rem; }
.ecosystem-network-path li + li::before { content: '→'; color: #8ab8e6; position: absolute; right: calc(100% + .6rem); top: 50%; transform: translateY(-50%); }
.ecosystem-network-path span { display: block; font: .65rem var(--font-mono); color: #8ab8e6; text-transform: uppercase; margin-bottom: .6rem; }
.ecosystem-network-path strong { font-size: .93rem; }
.ecosystem-power-path { margin-bottom: 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--eco-line); }
.hardware-ecosystem .ecosystem-policy { text-align: center; font-size: .8rem; padding-block: 1.2rem; margin: 0; border-bottom: 1px solid #52708f; }
.ecosystem-connected { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 1rem; }
.ecosystem-connected > section { position: relative; min-width: 0; margin-top: 1.4rem; padding: 1rem; border: 1px solid var(--eco-line); background: var(--eco-surface); border-radius: 8px; }
.ecosystem-connected > section::before { content: ''; width: 1px; height: 1.4rem; background: #52708f; position: absolute; top: -1.4rem; left: 50%; }
.ecosystem-connected h3 { font-size: .9rem; margin-bottom: .7rem; }
.ecosystem-connected p { font-size: .78rem; margin: .5rem 0 0; }
.ecosystem-connected strong { font-size: .88rem; display: block; }
.hardware-ecosystem .ecosystem-connection-label, .hardware-ecosystem .ecosystem-cloud-path { font-size: .7rem; color: #a4c8ed; margin-bottom: .6rem; }
.ecosystem-cloud-path { border-top: 1px dashed #7796b8; padding-top: 1rem; }
.ecosystem-cta { padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--eco-line); border-radius: 16px; background: var(--eco-surface); }
.ecosystem-cta h2 { max-width: 23ch; }
.ecosystem-attribution { font-size: .75rem; line-height: 1.7; margin: 1.5rem 0 2.5rem; max-width: 110ch; }
.ecosystem-dialog { width: min(1200px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.2rem; background: #07111f; color: #f4f7fb; border: 1px solid #3f5871; border-radius: 14px; }
.ecosystem-dialog::backdrop { background: #000e; }
.ecosystem-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hardware-page .ecosystem-dialog h2 { font-size: clamp(1.1rem, 2vw, 1.6rem); margin: 0; }
.ecosystem-dialog-heading .button { flex-shrink: 0; width: auto; }
.ecosystem-dialog-stage { display: flex; justify-content: center; min-height: 180px; }
.ecosystem-dialog-stage img, .ecosystem-dialog-stage video { width: 100%; height: min(62dvh, 780px); object-fit: contain; background: #07111f; }
.ecosystem-dialog #hardware-media-caption { font-size: .85rem; margin: .8rem 0; }
.ecosystem-dialog-controls { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; }
.ecosystem-dialog-controls .button { padding: .5rem .9rem; min-height: 44px; width: auto; }
.ecosystem-dialog-controls > span { font: .8rem var(--font-mono); }
.ecosystem-dialog-controls a { margin-left: auto; }
body.hardware-media-open { overflow: hidden; }
@media (min-width: 901px) {
  .ecosystem-reverse .ecosystem-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .ecosystem-reverse .ecosystem-copy { grid-column: 2; grid-row: 1; }
  .ecosystem-reverse .ecosystem-principal { grid-column: 1; grid-row: 1; }
  #access .ecosystem-principal { width: min(100%, 430px); justify-self: center; }
  #guardian .ecosystem-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #access .ecosystem-gallery { grid-template-columns: repeat(2, minmax(0, 320px)); }
}
@media (max-width: 900px) {
  .ecosystem-feature { grid-template-columns: 1fr; }
  .ecosystem-copy h2 { max-width: 24ch; }
  .ecosystem-principal { width: min(100%, 640px); justify-self: center; }
  #access .ecosystem-principal { max-width: 430px; }
  .ecosystem-connected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem-connected > section::before { display: none; }
  .ecosystem-connected .ecosystem-appliance { grid-column: 1 / -1; }
  .ecosystem-capabilities { grid-template-columns: 1fr; gap: 1.6rem; }
  .ecosystem-power { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hardware-section-nav { gap: .5rem; }
  .hardware-section-nav ul { gap: .1rem 1.2rem; }
  .hardware-section-nav a { font-size: .8rem; }
  .ecosystem-support-layout { grid-template-columns: 1fr; }
  .ecosystem-support-layout .ecosystem-gallery { max-width: none; }
  .ecosystem-gallery { grid-template-columns: 1fr; }
  .ecosystem-media figcaption { padding: .9rem 1rem; }
  .ecosystem-lead { font-size: 1rem; }
  .ecosystem-network-path { grid-template-columns: 1fr; }
  .ecosystem-network-path li + li::before { content: '↓'; top: -1.7rem; left: 50%; right: auto; transform: none; }
  .ecosystem-connected { grid-template-columns: 1fr; }
  .ecosystem-connected > section { margin-top: .8rem; }
  .ecosystem-cta { padding: 1.4rem; }
  .ecosystem-dialog { padding: .8rem; }
  .ecosystem-dialog-heading .button { padding: .5rem .6rem; }
  .ecosystem-dialog-stage img, .ecosystem-dialog-stage video { height: 48dvh; }
  .ecosystem-dialog-controls a { margin-left: 0; width: 100%; }
}

.hardware-page .ecosystem-focus-guard { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Apple TV app cards on the hardware overview. */
.hardware-tv-app-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hardware-tv-app-header picture { display: block; flex: 0 0 112px; }
.hardware-tv-app-header img { display: block; width: 112px; height: auto; }
.hardware-tv-app-header h3 { margin: 0; }
.hardware-tv-app .hardware-photo { margin: 1.5rem 0; }
