/*
 * INNER-EXPERIENCE-006: a device's page, after catalog.css (its cards and drawn panels). The image framed by its kind beside
 * the brand, the name, the model, a short summary and the request; then the description and the specifications, and a
 * few other devices. One thin line in the margin leads from the summary down to the specifications. Old device-a
 * rules are only neutralised where they would fight this layout.
 */
.dv-page { --warm: #F7F4EE; --lx: calc(var(--gutter) / 2); }
@media (min-width: 1200px) { .dv-page { --lx: 3.333%; } }
.dv-page h1, .dv-page h2 { letter-spacing: 0; text-wrap: balance; }

/* First screen. */
.dv-top { background: var(--warm); padding-block-end: 28px; }
.dv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block-start: 4px; }
.dv-brand { margin: 0; color: var(--link); font-weight: 600; font-size: 15px; }
.dv-head h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.32; overflow-wrap: anywhere; }
.dv-head h1 .device-model { display: block; margin-block-start: 6px; color: var(--muted); font: 600 16px/1.5 var(--font-en); text-align: start; overflow-wrap: anywhere; }
.dv-media { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; background: var(--white); border: 1px solid var(--border); overflow: hidden; }
.dv-media .device-hero { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.dv-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.is-split .dv-media { aspect-ratio: 16 / 7; padding: 6% 8%; }
.is-window .dv-media, .is-other .dv-media { aspect-ratio: 4 / 3; padding: 7% 18%; }
.dv-media.is-drawn { flex-direction: column; gap: 6px; aspect-ratio: 16 / 7; padding: 12px; background: var(--white); color: var(--primary); }
.dv-media.is-drawn svg { width: 96px; height: 96px; }
.dv-media.is-drawn span { color: var(--muted); font-size: 14px; }
.dv-page .dv-media { clip-path: none; } /* The old panel's cut corner does not apply here. */
@media (max-width: 767px) { .is-window .dv-media, .is-other .dv-media { aspect-ratio: 16 / 10; padding: 5% 22%; } }
.dv-media::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 72px; height: 4px; background: var(--accent); }
.dv-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 2px solid var(--primary); }
.dv-facts > div { min-width: 0; padding: 10px 0; padding-inline-end: 10px; border-block-end: 1px solid var(--border); }
.dv-facts dt { color: var(--muted); font-size: 13px; }
.dv-facts dd { margin: 2px 0 0; color: var(--primary); font-weight: 600; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.dv-ask { margin-block-start: 18px; padding: 0; background: none; border: 0; }
.dv-ask .button { width: 100%; }
.dv-ask-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin: 8px 0 0; }
.dv-ask-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.dv-ask-more bdi { font-family: var(--font-en); }
.dv-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (min-width: 768px) {
	.dv-head h1 { font-size: 36px; }
	.dv-facts { grid-template-columns: repeat(min(var(--n, 4), 4), minmax(0, 1fr)); }
	.dv-ask .button { width: auto; }
}
@media (min-width: 1024px) {
	.dv-top { padding-block-end: 44px; }
	.dv-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "media head" "media side"; grid-template-rows: auto 1fr; gap: 0 56px; align-items: start; }
	.dv-head { grid-area: head; }
	.dv-media { grid-area: media; align-self: stretch; }
	.dv-side { grid-area: side; padding-block-start: 20px; }
	.is-split .dv-media, .dv-media.is-drawn { aspect-ratio: auto; min-height: 380px; padding: 40px 32px; }
	.is-window .dv-media, .is-other .dv-media { aspect-ratio: auto; min-height: 420px; padding: 48px 64px; }
	.dv-head h1 { font-size: clamp(34px, 3vw, 42px); }
	.dv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Specifications. */
.dv-body { position: relative; padding-block: 40px 56px; view-timeline: --dv block; }
.dv-rail { position: absolute; inset-block: 0; inset-inline-start: var(--lx); width: 2px; background: var(--accent); transform-origin: top; pointer-events: none; }
.dv-specs h2 { margin: 0 0 12px; font-size: 26px; }
.dv-desc { margin: 0 0 20px; max-width: 46rem; color: var(--text); font-size: 17px; line-height: 1.85; }
.dv-rows { margin: 0; max-width: 52rem; border-block-start: 2px solid var(--primary); }
.dv-rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--border); }
.dv-rows dt { color: var(--muted); }
.dv-rows dd { margin: 0; color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.dv-more { max-width: 52rem; }
.dv-more summary { display: flex; align-items: center; gap: 8px; min-height: 52px; color: var(--link); font-weight: 600; cursor: pointer; list-style: none; border-block-end: 1px solid var(--border); }
.dv-more summary::-webkit-details-marker { display: none; }
.dv-more summary::after { content: ""; width: 9px; height: 9px; margin-inline-start: 6px; border-block-end: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-fast) linear; }
.dv-more[open] summary::after { transform: rotate(-135deg); }
.dv-more summary span { color: var(--muted); font-weight: 400; }
.dv-more .dv-rows { border-block-start: 0; }
.dv-gallery { margin-block-start: 40px; }
.dv-gallery h2 { margin: 0 0 14px; font-size: 24px; }

/* Other devices. */
.dv-others { padding-block: 48px 64px; background: var(--warm); }
.dv-others-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: 22px; }
.dv-others-head h2 { margin: 0; font-size: 26px; }
.dv-others .band-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 1024px) { .dv-other-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dv-page .back { padding-block: 24px 56px; }

@media (prefers-reduced-motion: no-preference) {
	.dv-ask .button:hover { transform: translateY(-1px); }
	@supports (animation-timeline: view()) {
		.dv-rail { animation: dv-down linear both; animation-timeline: --dv; animation-range: cover 30vh cover calc(100% - 40vh); }
		.dv-rows > div, .dv-other-list > li { animation: dv-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
		@keyframes dv-down { from { transform: scaleY(0); } }
		@keyframes dv-rise { from { opacity: .4; translate: 0 12px; } }
	}
}
