/* www.idiag.net: additions to the shared IDIAG style (site.css of the Checkup site) */

/* jump-off to the Checkup site: outlined, with an arrow, so it reads as "another site" */
.nav .nav-checkup, .site-header .nav-checkup { background: transparent; box-shadow: inset 0 0 0 2px var(--orange); color: var(--white); }
.nav .nav-checkup:hover, .site-header .nav-checkup:hover { background: var(--orange); color: var(--white); border-bottom-color: transparent; }
.nav-checkup .ext { margin-left: 6px; font-size: 1.05em; }
.nav { gap: 22px; }

/* hero with the product photo of the Idiag M360 */
.hero-device { width: 100%; max-width: 440px; margin: 0 auto 48px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero .hero-caption { margin-bottom: 40px; }

/* product cards on the start page */
.product-card .card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.product-card .badge { position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--garnet); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }

/* news */
.news-card time { font-variant-numeric: tabular-nums; }
.news-card h3 { text-wrap: balance; }
.news-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-meta { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--grey); }
.news-body { max-width: 760px; }
.news-body h2 { font-size: clamp(24px, 2.6vw, 32px); text-transform: none; }
.news-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.news-item:target .news-body h2 { color: var(--orange-dark); }
@media (max-width: 760px) { .news-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 36px 0; } }

/* Idiag Center finder (assets/centers.js, data assets/data/centers.json) */
.finder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.finder-map { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(100,29,20,.06); overflow: hidden; }
.finder-map svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; touch-action: manipulation; }
.finder-map .c-dot { fill: var(--orange); fill-opacity: .8; stroke: var(--white); stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.finder-map .c-partner { fill: var(--garnet); fill-opacity: 1; }
.finder-map .c-dot.is-off { fill: var(--grey); fill-opacity: .35; }
.finder-map .c-dot.is-sel { fill: var(--garnet); fill-opacity: 1; }
.finder-map .c-me { fill: #2e7dd7; stroke: var(--white); stroke-width: 3; }
.finder-zoom { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.finder-zoom button, .finder-tools button { font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--garnet); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; }
.finder-zoom button[aria-pressed="true"] { background: var(--garnet); color: var(--white); border-color: var(--garnet); }
.finder-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.finder-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.finder-tools input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px; color: var(--garnet); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--white); }
.finder-tools input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.finder-tools .finder-near { background: var(--orange); color: var(--white); border-color: var(--orange); }
.finder-count { font-size: 14px; color: var(--grey); margin: 0; }
.finder-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.finder-list li { border-bottom: 1px solid var(--line); }
.finder-list button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 10px; cursor: pointer; border-radius: 4px; }
.finder-list button:hover, .finder-list button:focus-visible { background: var(--beige-light); }
.finder-list button:focus-visible { outline: 2px solid var(--orange); }
.finder-list .is-sel > button { background: var(--beige); }
.finder-list strong { display: block; color: var(--garnet); font-weight: 500; font-size: 17px; }
.finder-list .where { font-size: 15px; color: var(--grey-dark); }
.finder-list .km { float: right; font-size: 14px; color: var(--orange-dark); font-variant-numeric: tabular-nums; margin-left: 10px; }
.finder-detail { font-size: 15px; color: var(--grey-dark); padding: 0 10px 14px; }
.finder-detail a { word-break: break-word; }
.finder-note { font-size: 14px; color: var(--grey); margin: 6px 0 0; }

/* partner list */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.partner-grid .card { gap: 2px; }
.partner-grid .card-tag { margin-bottom: 6px; }
.partner-grid address { font-style: normal; font-size: 16px; color: var(--grey-dark); line-height: 1.55; }
.partner-grid address a { word-break: break-word; }

/* downloads and video links */
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.doc { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(100,29,20,.06); color: var(--grey-dark); transition: background .15s; }
.doc:hover { background: var(--garnet); color: rgba(255,255,255,.85); }
.doc:hover strong { color: var(--white); }
.doc-ico { flex: none; width: 40px; height: 48px; border-radius: 4px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.doc strong { display: block; color: var(--garnet); font-weight: 500; font-size: 17px; }
.doc span { font-size: 15px; }
.video-link .card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* small print below a section */
.small { font-size: 14px; color: var(--grey); }
.udi { font-size: 15px; color: rgba(255,255,255,.75); }
.udi a { color: var(--orange); }

.finder-list .tag { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--garnet); opacity: .7; }
.finder-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 14px; background: rgba(255,255,255,.9); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; color: var(--grey-dark); }
.finder-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--orange); }
.finder-legend .lg-partner::before { background: var(--garnet); }

/* product cards: Idiag M360 = device over the sports photo, Idiag Checkup = camera and laptop illustration */
.media-m360 { position: relative; display: block; overflow: hidden; }
.product-card .media-m360 img.device { position: absolute; height: auto; left: 6%; bottom: 8%; width: 34%; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }
.media-checkup { display: block; background: var(--garnet); aspect-ratio: 16 / 10; box-sizing: border-box; padding: 5% 9% 2%; overflow: hidden; }
.product-card .media-checkup img { aspect-ratio: auto; object-fit: contain; object-position: center bottom; width: 100%; height: 100%; }

/* video in a news item (e.g. the G8 announcement) */
.news-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--garnet); border-radius: var(--radius); margin: 4px 0 24px; }

/* start-page illustration (M360 + laptop): wider than the Checkup one, it has no tripod above it */
.hero-media img.hero-illustration.hero-m360 { max-width: 620px; margin-bottom: 24px; }

/* WhatsApp contact (footer, contact and support page): the WhatsApp logo next to the number */
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-link img { width: 22px; height: 22px; flex: none; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #128C7E; box-shadow: inset 0 0 0 2px #25D366; text-transform: none; letter-spacing: .02em; }
.btn-wa img { width: 26px; height: 26px; }
.btn-wa:hover { background: #25D366; color: #fff; }

/* square video in a news item (social teaser) */
.news-video-square { aspect-ratio: 1 / 1; max-width: 480px; }

/* picture in a news item */
.news-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 4px 0 8px; }
