/* MDSTAR page CSS: only what sits inside a visual and the kit lacks (tasteskill system.md). Tokens from system.css. */

/* the client's amblem beside the name (replaces the dealt mark) */
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.nav__amblem { width: 32px; height: 32px; object-fit: contain; flex: none; }
.footer__name { font-size: 48px; line-height: 1.1; }
.footer__name .nav__amblem { width: 48px; height: 48px; }
@media (max-width: 639px) { .footer__name { font-size: 30px; } .footer__name .nav__amblem { width: 32px; height: 32px; } }

/* how it works: three mechanism lines */
.mech { list-style: none; margin: 0; padding: 0; }
.mech li { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.mech li:last-child { border-bottom: 1px solid var(--line); }
.mech__name { display: block; font-weight: 500; margin-bottom: var(--s-1); }

/* the spectrum: the visible band, the part DLED uses, the UV band it leaves out */
.spectrum { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7) var(--s-6); }
.spectrum__bar { position: relative; height: 72px; border-radius: var(--r-sm); overflow: hidden;
  background: linear-gradient(90deg, #3b1f6b 0%, #2d3fd6 12%, #1f8fe0 30%, #1fb36b 45%, #d9d21f 60%, #f08a1a 75%, #d6251f 92%, #7a0f0f 100%); }
.spectrum__uv { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: repeating-linear-gradient(135deg, #e7e9ee 0 6px, #cfd3dc 6px 12px); }
.spectrum__on { position: absolute; left: 7%; right: 15%; top: 0; bottom: 0; box-shadow: inset 0 0 0 3px var(--p-ink); border-radius: var(--r-sm); }
.spectrum__scale { display: grid; grid-template-columns: 7% 1fr 1fr 15%; margin-top: var(--s-3); font-size: 13px; color: var(--p-muted); }
.spectrum__scale span:nth-child(3) { text-align: center; }
.spectrum__scale span:nth-child(4) { text-align: left; }
.states__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.states__row img { width: 100%; max-width: 256px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }

/* lab photographs: three plates per row at one ratio */
.group__h { margin: 0 0 var(--s-3); }
.group__p { margin: 0 0 var(--s-7); max-width: 62ch; }
.petri-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.develop-frame { aspect-ratio: 3 / 2; }
.develop-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .states__row { gap: var(--s-3); } .petri-row { row-gap: var(--s-4); } }

/* the tall spectrum panel in #nasil: legend, bar, scale, spread over the column's height */
.spectrum--tall { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7); min-height: 440px; padding: var(--s-8) var(--s-7); }
.spectrum--tall .spectrum__bar { height: 160px; }
.spectrum__legend { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); font-size: 14px; }
.spectrum__legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.sw--on { box-shadow: inset 0 0 0 3px var(--p-ink); }
.sw--uv { background: repeating-linear-gradient(135deg, #e7e9ee 0 4px, #cfd3dc 4px 8px); }
@media (max-width: 639px) { .spectrum--tall { min-height: 0; } .spectrum--tall .spectrum__bar { height: 96px; } }

/* #mikobakteri: the 240-minute plate large, 90 and 180 minutes under it */
.auris { display: flex; flex-direction: column; gap: var(--s-3); }
.auris__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.auris__row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 639px) {
  .states__row { grid-template-columns: 1fr 1fr; }
  .states__row img:last-child { grid-column: 1 / -1; order: -1; max-width: 256px; }
}
/* spec rows on a phone: the value under its name, left-aligned, so long Turkish values never squeeze into a narrow column */
@media (max-width: 639px) {
  #guvenlik .rows--spec > li, #ozellikler .rows--spec > li, #calisma .rows--spec > li { grid-template-columns: minmax(0, 1fr); }
  #guvenlik .rows--spec > li > *, #ozellikler .rows--spec > li > *, #calisma .rows--spec > li > * { grid-column: 1; grid-row: auto; text-align: left; }
  .develop-frame { aspect-ratio: 16 / 9; }
}

@media (max-width: 639px) { #odalar:not(.is-live) .mo-ph__pic img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; } }

/* legal pages: long text, not held to the screen grid */
body.legal main > section { height: auto; min-height: 0; padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-9); }
.prose h1 { font-size: var(--t-h2); margin: 0 0 var(--s-7); }
.prose h2 { font-size: var(--t-h3); margin: var(--s-8) 0 var(--s-4); }
.prose ul { padding-left: 1.2em; }

/* report list: title, one line, the PDF link */
.docs > li > p { font-size: 15px; line-height: 1.55; margin: var(--s-1) 0 0; }
.docs .rows__name { font-weight: 500; }
.docs .rows__value { align-self: start; }
.group__h--next { margin-top: var(--s-7); }
.develop-frame--tall { aspect-ratio: 4 / 3; }

/* Candida auris: six plates, two rows of three */
.auris-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.auris-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* the client's two logos on white */
.logo-pair { display: flex; gap: var(--s-8); align-items: center; }
.logo-pair img { height: 96px; width: auto; }

/* contact: the form in a surface card beside the words */
.form-card { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); }
.form-card .field { margin-bottom: var(--s-4); }
.form-card select, .form-card textarea { width: 100%; font: inherit; font-size: 16px; }
.field--check .check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 14px; line-height: 1.5; }
.field.field--check input[type="checkbox"] { width: 20px; min-height: 0; padding: 0; height: 20px; margin-top: 2px; flex: none; }
.contact-rows { margin-top: var(--s-7); }
.hero--form .hero__text { align-self: start; }
@media (max-width: 639px) {
  .auris-grid { grid-template-columns: 1fr 1fr; }
  .logo-pair img { height: 64px; }
  .form-card { padding: var(--s-5); }
}

/* report pages as pictures */
.doc-frame { aspect-ratio: 5 / 4; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.doc-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.doc-frame--low img { object-position: 50% 100%; }
.wide-frame { aspect-ratio: 16 / 9; }
.wide-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* plate archive: one organism a row, its name in the first column */
.petri-line { align-items: start; }
.petri-line + .petri-line { margin-top: var(--s-6); }
.petri-line img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.petri-line__h { margin: 0; font-size: var(--t-card); }
.petri-line__h--wide { margin: var(--s-7) 0 var(--s-4); }
.auris-grid { grid-template-columns: 1fr 1fr; }
.contact-rows a { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .petri-line img { grid-column: span 6; }
  .petri-line__h { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .petri-line > h3 ~ img:last-child { grid-column: 1 / -1; } }
@media (max-width: 1023px) {
  .spectrum--tall { padding: 0; background: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .petri-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .petri-row img { grid-column: auto; }
  .spectrum--tall { min-height: 0; }
  .spectrum--tall .spectrum__bar { height: 220px; }
}
@media (max-width: 639px) {
  #sonuclar .rows--spec > li { padding-block: var(--s-2); }
  .spectrum--tall { padding: 0; background: none; }
}
@media (max-width: 479px) {
  #sonuclar .rows__value { max-width: none; white-space: nowrap; }
  #guvenlik .rows__value, #ozellikler .rows__value, #calisma .rows__value { max-width: none; }
}

/* sections size to their content with one even gap (client feedback 2026-11-23: less vertical space).
   This overrides the kit's one-section-per-screen heights; the hero keeps its full first screen and a live
   photo-chapters section keeps the height its moment sets. */
:root { --sec-pad: 88px; }
@media (max-width: 639px) { :root { --sec-pad: 56px; } }
html main > :is(section, .section):not(.hero):not(.is-live), html footer.closing {
  height: auto !important; min-height: 0 !important;
  padding-top: var(--sec-pad) !important; padding-bottom: calc(var(--sec-pad) + var(--bar)) !important;
}
html main > :is(section, .section):not(.hero) > .wrap, html footer.closing > .wrap { height: auto !important; }
html main > :is(section, .section):is(.g2, .g2m) > .wrap, html footer.closing.g2m > .wrap {
  display: flex !important; flex-direction: column; row-gap: var(--s-9) !important; grid-template-rows: none !important;
}
html footer.closing > .wrap { display: flex !important; flex-direction: column; row-gap: var(--s-9) !important; grid-template-rows: none !important; }
@media (max-width: 639px) { #sonuclar .petri-row img:last-child:nth-child(3) { grid-column: auto; } }
.contact-rows .rows__value { white-space: normal; max-width: none; text-align: right; }
.form-card { align-self: start; }
.hero__doc { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* home hero: split screen. The client's poster fills the right side under the header, edge to edge and
   uncropped (its width follows the screen height); the words and three facts take the left. A tablet and
   a phone stack the words, then the poster at full width. (client feedback 2026-11-23) */
.nowrap { white-space: nowrap; }
.hero--poster { position: relative; background: #f5f8fb; }
.hero-poster__text > * + * { margin-top: var(--s-5); }
.hero-poster__text > .btn-row { margin-top: var(--s-6); }
.hero-poster__text > .poster-facts { margin-top: var(--s-8); }
.poster-facts { padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.poster-facts dt { font-size: var(--t-small); color: var(--muted); }
.poster-facts dd { margin: var(--s-1) 0 0; font-weight: 500; }
@media (min-width: 1024px) and (min-aspect-ratio: 7/5) {
  .hero--poster { --pw: calc((100svh - var(--nav)) * 0.7253); }
  .hero-poster__img { position: absolute; top: var(--nav); right: 0; bottom: 0; height: calc(100% - var(--nav)); width: var(--pw); object-fit: cover; }
  .hero--poster .hero-text { height: 100%; display: flex; align-items: center; }
  .hero-poster__text { width: min(620px, calc(100vw - var(--pw) - 200px)); }
}
@media (max-width: 1023px), (max-aspect-ratio: 1399/1000) {
  main > .hero.hero--poster { height: auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
  .hero-poster__img { order: 2; display: block; width: 100%; height: auto; margin-top: var(--s-8); }
  .hero--poster > .wrap { height: auto; }
}
@media (min-width: 640px) and (max-width: 1023px), (min-width: 640px) and (max-aspect-ratio: 1399/1000) {
  .hero-poster__img { max-width: 600px; margin-inline: auto; margin-bottom: var(--s-8); border-radius: var(--r-lg); }
}
@media (max-width: 479px) {
  .poster-facts { grid-template-columns: 1fr; gap: var(--s-3); }
  .poster-facts > div { display: flex; justify-content: space-between; gap: var(--s-4); }
  .poster-facts dd { margin: 0; text-align: right; }
}
