/* Geräteportal in the corporate design of the Universität Kassel (web: Roboto, house color HKS 28, light tiles). */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap;
             src: url("fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap;
             src: url("fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
             src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --hks28: #c7105c;         /* house color: logo, thin rules, link markers, outlines */
  --hks28-dark: #9a0c46;    /* HKS 28 + K30: focus and hover */
  --hks28-light: #f3d8dd;   /* HKS 28 20%: notices about the data */
  --black: #000;
  --text: #3d3d3d;
  --muted: #686868;
  --k80: #575757;
  --k50: #9d9d9d;
  --k20: #dadada;
  --blue-light: #e1e8f5;    /* Blau hell */
  --petrol-light: #c4dfd5;  /* Petrol hell */
  --petrol: #50ac96;        /* Petrol satt */
  --white: #fff;
  --gutter: 16px;
  --width: 1110px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.5 Roboto, Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--black); text-decoration-color: var(--hks28); text-underline-offset: 3px; }
a:hover { color: var(--hks28-dark); }
:focus-visible { outline: 2px solid var(--hks28-dark); outline-offset: 2px; }

h1 { margin: 32px 0 16px; color: var(--black); font-size: 40px; font-weight: 300; line-height: 1.2; }
h2 { margin: 0 0 12px; color: var(--black); font-size: 22px; font-weight: 700; line-height: 1.25; }
h3 { margin: 16px 0 8px; color: var(--black); font-size: 18px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 16px; }
.lead { max-width: 70ch; margin-bottom: 32px; font-size: 18px; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); z-index: 10; padding: 8px 16px;
             border: 1px solid var(--black); background: var(--white); }
.skip-link:focus { top: 8px; }

/* Header: logo on white, service links top right, uppercase main navigation, thin rule in the house color */
.page-header { border-bottom: 1px solid var(--hks28); }
.header-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px;
              padding-top: 22px; }
.header-bar:last-child { padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 20px; margin-top: 22px; color: var(--black); text-decoration: none; }
.brand:hover { color: var(--black); }
.brand img { display: block; width: 199px; height: 40px; }
.brand-name { padding-left: 20px; border-left: 1px solid var(--k20); font-size: 22px; font-weight: 300; line-height: 40px; }
.service { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 28px; font-size: 13px; }
.service form { margin: 0; }
.service-role { margin-left: 4px; color: var(--muted); }
.service-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700;
                letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.service-link:hover { color: var(--hks28-dark); }
.view-switch { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
               color: var(--text); font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
               cursor: pointer; }
.view-switch::before { content: ""; flex: none; width: 32px; height: 18px; border: 1px solid var(--k80);
                       border-radius: 9px; background: radial-gradient(circle 6px at 8px 50%, var(--k80) 95%, transparent) }
.view-switch[aria-checked="true"]::before { border-color: var(--black);
  background: radial-gradient(circle 6px at 22px 50%, var(--white) 95%, transparent) var(--black); }
.view-switch:hover { color: var(--hks28-dark); }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 26px; margin: 0; padding: 36px 0 0;
               list-style: none; }
.main-nav a { display: block; padding: 12px 0 14px; border-top: 1px solid transparent; color: var(--text); font-size: 17px;
              font-weight: 500; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.is-active { border-top-color: var(--hks28); color: var(--black); }

.page-main { min-height: 50vh; padding-bottom: 64px; }
.notice { margin: 24px 0 0; padding: 12px 16px; background: var(--blue-light); color: var(--black); }
.notice-error { background: var(--white); box-shadow: inset 0 0 0 1px var(--hks28); }

/* Controls */
.btn { display: inline-block; padding: 6px 16px; border: 1px solid var(--black); border-radius: 0; background: transparent;
       color: var(--black); font: inherit; font-size: 14px; font-weight: 700; line-height: 20px; text-decoration: none;
       cursor: pointer; }
.btn:hover { background: var(--black); color: var(--white); }
.btn-quiet { border-color: transparent; }
.btn-quiet:hover { background: transparent; color: var(--hks28-dark); }
label { display: block; color: var(--black); font-size: 14px; font-weight: 500; }
input, select { color: var(--black); font: inherit; }
input:not([type]), input[type="search"], input[type="password"], input[type="number"], input[type="url"], select,
textarea {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--k50); border-radius: 0; background: var(--white); }
textarea { color: var(--black); font: inherit; line-height: 1.5; resize: vertical; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { border-color: var(--hks28-dark); background: var(--hks28-dark); }
.data .btn { white-space: nowrap; }
.data .cell-text { min-width: 16ch; max-width: 40ch; }

/* Settling an open point: choices in boxes, the record goes in with the user's name */
.settle { display: grid; gap: 8px; max-width: 75ch; margin-top: 24px; }
.settle fieldset { display: grid; gap: 10px; margin: 0 0 16px; padding: 20px 24px 24px; border: 0; background: var(--blue-light); }
.settle legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; color: var(--black); font-size: 18px; font-weight: 700; }
.settle .choice { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 400; cursor: pointer; }
.settle .choice input { flex: none; accent-color: var(--black); }
.choice-inputs { display: flex; flex-wrap: wrap; gap: 12px 16px; padding-left: 26px; }
.choice-inputs label { display: grid; gap: 4px; }
.settle textarea, .settle input[type="url"], .settle input[name="titel"], .settle input[name="name"] { width: 100%; }
.data td p { margin: 0 0 6px; }
.data td p:last-child { margin-bottom: 0; }
.settle-photo { display: block; max-height: 320px; margin-bottom: 8px; object-fit: contain; }
.settle-section { margin-top: 32px; }
.settle-section .link-list { overflow-wrap: anywhere; }
.settle-section .hint { margin-top: 8px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Search and filters */
.finder { display: grid; gap: 16px; margin-bottom: 24px; padding: 24px; background: var(--blue-light); }
.finder-query input { width: 100%; margin-top: 6px; }
.finder-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.finder-filters label { display: grid; gap: 6px; }
.finder-filters select { min-width: 180px; max-width: 100%; }
.result-count { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.empty { padding: 32px 24px; background: var(--blue-light); }
.empty p { max-width: 60ch; }

/* Search results: one tile per device with photo and name */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px; margin: 0 0 32px;
         padding: 0; list-style: none; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-light); }
.tile:nth-child(8n+2), .tile:nth-child(8n+4), .tile:nth-child(8n+5), .tile:nth-child(8n+7) {
  background: var(--petrol-light); }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile-title { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 16px 18px 16px; color: var(--black);
              font-size: 18px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.tile-photo + .tile-title { padding-top: 56px; color: var(--white); text-shadow: 0 1px 3px rgb(0 0 0 / .45);
  background: linear-gradient(to top, rgb(0 0 0 / .8), rgb(0 0 0 / .5) 50%, rgb(0 0 0 / 0)); }
.tile-title a { display: -webkit-box; overflow: hidden; color: inherit; text-decoration: none;
                -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tile-title a::after { content: ""; position: absolute; inset: 0; }
.tile:hover, .tile:focus-within { outline: 3px solid var(--hks28); outline-offset: -3px; }
.tile:hover .tile-photo { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .tile-photo { transition: none; }
  .tile:hover .tile-photo { transform: none; }
}
.figure-link .figure-label::after { content: ""; display: inline-block; width: 7px; height: 7px;
  margin-left: 8px; border-top: 2px solid var(--hks28); border-right: 2px solid var(--hks28); transform: rotate(45deg);
  vertical-align: 1px; }

/* Facts as definition lists: small label above the value */
.facts { margin: 0; }
.facts dt { color: var(--k80); font-size: 14px; font-weight: 500; }
.facts dd { margin: 0; color: var(--black); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.facts-stack { display: grid; gap: 14px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.facts-inline dd { font-weight: 500; }
.facts-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0 24px; }
.facts-sheet div { padding: 10px 0 12px; border-top: 1px solid var(--k20); }
.facts-sheet dd { font-size: 16px; }

/* Tables */
.table-scroll { margin: 0 0 24px; overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--k20); text-align: left; vertical-align: top; }
.data th { border-bottom-color: var(--k80); color: var(--black); font-weight: 700; white-space: nowrap; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data tbody tr:hover { background: var(--blue-light); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-compact { width: auto; min-width: 240px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0; }
.pager-state { color: var(--muted); font-size: 14px; }

/* Device page */
.breadcrumb { display: flex; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 10px 1px 8px;
                       border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
/* Content on the left; photo and "Nutzung und Kontakt" on the right. The box starts beside the key figures and stays in
   view while the page scrolls; portal.js gives both the height of the taller one */
.device { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr;
          grid-template-areas: "intro photo" "figures contact" "body contact"; gap: 0 48px; margin-top: 28px; }
.device-single { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "figures" "body"; }
.device-main, .device-aside { display: contents; }
.device-intro { grid-area: intro; }
.device-photo { grid-area: photo; }
.key-figures { grid-area: figures; }
.device-body { grid-area: body; }
.device-intro h1 { margin: 0 0 12px; hyphens: auto; overflow-wrap: break-word; }
.device-intro .lead { margin-bottom: 20px; }
.device-body section { margin-top: 40px; }
.device-body .data-notice { margin: 32px 0 0; }
.device-body h2 { margin-bottom: 14px; }
.device-photo { display: block; margin: 0; }
.device-photo a { display: block; }
.device-photo figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.device-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.device-contact { position: sticky; top: 16px; display: flex; flex-direction: column; grid-area: contact; align-self: start;
                  margin-top: 28px; padding: 24px 28px; background: var(--blue-light); }
.device-contact h2 { margin-bottom: 16px; }
.device-contact .people { margin-bottom: 16px; }
.device-contact .facts-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.device-contact .facts dd { font-size: 16px; }
.contact-actions { margin-top: auto; padding-top: 16px; }  /* link and booking at the bottom of the box */
.contact-actions .btn-solid { margin-top: 12px; }
.contact-actions .btn-solid:first-child { margin-top: 0; }
.btn-solid { display: block; width: 100%; margin-top: 24px; padding: 10px 16px; background: var(--black); color: var(--white);
             text-align: center; }
.btn-solid:hover { border-color: var(--hks28-dark); background: var(--hks28-dark); }
.people { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; flex: none; width: 48px; height: 48px; place-items: center; border-radius: 50%;
          background: var(--hks28); color: var(--white); font-size: 17px; font-weight: 500; }
.person-name { display: block; color: var(--black); font-size: 18px; line-height: 1.3; }
.person-role { display: block; color: var(--k80); font-size: 14px; }

/* Key figures: tiles in two columns, with a small chart where one tells more than the number */
.key-figures { display: flex; flex-wrap: wrap; margin: 28px 0 0; }
.key-figure { display: flex; flex: 1 1 40%; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 20px 20px;
              background: var(--petrol-light); }
.key-figure:nth-child(4n+1), .key-figure:nth-child(4n+4) { background: var(--blue-light); }
.key-figure .key-number { margin-bottom: auto; }  /* label and number on top, chart and note at the bottom */
.key-figure dt { color: var(--k80); font-size: 15px; font-weight: 500; }
.key-figure dd { margin: 0; }
/* numbers large, words (date, place) a step smaller so the longest month still fits on one line */
.key-number { color: var(--black); font-size: 44px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.key-text { color: var(--black); font-size: 32px; font-weight: 300; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.key-note { color: var(--text); font-size: 14px; }
.key-figure .key-link { margin-top: auto; padding-top: 8px; font-size: 14px; }
.key-link a { color: var(--black); font-weight: 500; text-decoration: none; }
.key-link a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-top: 2px solid var(--hks28); border-right: 2px solid var(--hks28); transform: rotate(45deg); vertical-align: 1px; }
.key-link a:hover { text-decoration: underline; text-decoration-color: var(--hks28); }
.key-figure .spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin: 8px 0 4px; }
.spark span { flex: 1 1 0; min-height: 2px; height: calc(var(--h) * 1%); border-radius: 2px 2px 0 0; background: var(--petrol); }
.spark .is-own { min-height: 6px; background: var(--hks28); }
.key-figure .meter { height: 8px; margin: auto 0 2px; border-radius: 4px; background: var(--white); }
.meter span { display: block; width: calc(var(--share) * 1%); height: 100%; border-radius: 4px; background: var(--petrol); }

.nearby-lead { margin: -8px 0 20px; text-align: center; }
.nearby-lead a { font-weight: 500; }

.section-title { display: flex; align-items: center; gap: 14px; margin: 56px 0 24px; color: var(--black); font-size: 24px;
                 font-weight: 700; line-height: 28px; text-align: center; text-transform: uppercase; }
.section-title::before, .section-title::after { content: ""; flex: 1 1 24px; height: 1px; background: var(--hks28-dark); }
.prose { max-width: 75ch; margin: 0; font-size: 18px; line-height: 1.6; white-space: pre-line; }
.text-source { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
/* What the device can do: one item per line, marked with a small petrol square */
.uses { display: grid; gap: 10px; margin: 0; padding: 0; font-size: 18px; line-height: 1.45; list-style: none; }
.uses li { position: relative; padding-left: 24px; }
.uses li::before { content: ""; position: absolute; top: .55em; left: 2px; width: 9px; height: 9px; background: var(--petrol); }
/* Technical data: one row per line "label: value" */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.spec th, .spec td { padding: 7px 0; border-bottom: 1px solid var(--k20); text-align: left; vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--k20); }
.spec th { width: 34%; padding-right: 16px; color: var(--k80); font-weight: 500; hyphens: auto; overflow-wrap: anywhere; }
.spec td { color: var(--black); }
/* Documents: grouped by kind, one row per item with the site or file it comes from */
.documents h3 { margin: 20px 0 6px; color: var(--k80); font-size: 14px; font-weight: 500; }
.documents h2 + h3 { margin-top: 0; }
.documents ul { margin: 0; padding: 0; border-top: 1px solid var(--k20); list-style: none; }
.document { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 10px 0;
            border-bottom: 1px solid var(--k20); color: var(--black); text-decoration: none; }
.document-title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.document-source { grid-column: 1; color: var(--muted); font-size: 13px; }
.document::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 7px; height: 7px; margin-right: 4px;
                   border-top: 2px solid var(--hks28); border-right: 2px solid var(--hks28); transform: rotate(45deg); }
.document:hover .document-title { text-decoration: underline; text-decoration-color: var(--hks28); }
.data-notice { position: relative; margin: 0 0 32px; padding: 20px 24px 20px 64px; border-left: 4px solid var(--hks28);
               background: var(--hks28-light); color: var(--black); }
.data-notice::before { content: "!"; position: absolute; top: 20px; left: 20px; width: 26px; height: 26px;
                       border-radius: 50%; background: var(--hks28); color: var(--white); font-weight: 700;
                       line-height: 26px; text-align: center; }
.data-notice h2 { margin: 1px 0 8px; font-size: 18px; }
.data-notice p { margin: 0 0 8px; }
.data-notice p:last-child { margin-bottom: 0; }
/* The title links to the device's open points, and its link covers the whole box */
.notice-link { color: inherit; text-decoration: none; }
.notice-link::after { content: ""; position: absolute; inset: 0; }
.data-notice:hover .notice-link { text-decoration: underline; text-decoration-color: var(--hks28); }
.data-notice:has(.notice-link:focus-visible) { outline: 2px solid var(--black); outline-offset: 2px; }
.notice-link:focus-visible { outline: none; }

/* Overview: figures and charts */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px; margin: 0 0 48px; }
.figure { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--blue-light); color: var(--black);
          text-decoration: none; }
.figure:nth-child(even) { background: var(--petrol-light); }
.figure-value { font-size: 34px; font-weight: 300; line-height: 1.15; font-variant-numeric: tabular-nums; }
.figure-link:hover { box-shadow: inset 0 0 0 1px var(--hks28); color: var(--black); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.chart-wide { grid-column: 1 / -1; }
.chart caption, .chart-title { margin-bottom: 16px; color: var(--black); font-size: 22px; font-weight: 700; text-align: left; }
.chart-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.bars { width: 100%; border-collapse: collapse; font-size: 14px; }
.bars th { width: 32%; padding: 5px 16px 5px 0; font-weight: 400; text-align: left; overflow-wrap: anywhere; }
.bars td { padding: 5px 0; }
.bars td.num { width: 1%; padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-line { display: flex; align-items: center; gap: 8px; }
.bar { flex: none; width: calc(var(--share) * .8); min-width: 2px; height: 16px; border-radius: 0 4px 4px 0;
       background: var(--petrol); }
.bar-value { color: var(--black); font-variant-numeric: tabular-nums; }
.columns { display: flex; align-items: flex-end; gap: 2px; height: 220px; margin-bottom: 28px; padding-top: 24px;
           border-bottom: 1px solid var(--k50); }
.column { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end;
          height: 100%; }
.column-bar { flex: none; width: 100%; max-width: 24px; height: var(--share); border-radius: 4px 4px 0 0;
              background: var(--petrol); }
.column:hover .column-bar { background: var(--k80); }
.column-value { margin-bottom: 4px; color: var(--black); font-size: 12px; }
.column-year { position: absolute; top: 100%; margin-top: 6px; color: var(--muted); font-size: 12px; }
.chart-table summary { color: var(--black); font-size: 14px; font-weight: 700; cursor: pointer; }
.chart-table table { margin-top: 12px; }

/* Offene Punkte: one tile per list switches between the lists; the list shown has a bar in the house color */
.list-switch { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.list-switch [aria-current="page"] { box-shadow: inset 0 -4px 0 var(--hks28); }
.list-switch [aria-current="page"]:hover { box-shadow: inset 0 -4px 0 var(--hks28), inset 0 0 0 1px var(--hks28); }

/* Footer: link list with chevrons in the house color */
.page-footer { border-top: 1px solid var(--hks28); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px;
              padding-bottom: 40px; font-size: 13px; }
.link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-list li { position: relative; padding-left: 26px; }
.link-list li::before { content: ""; position: absolute; top: .45em; left: 4px; width: 7px; height: 7px;
                        border-top: 2px solid var(--hks28); border-right: 2px solid var(--hks28); transform: rotate(45deg); }
.link-list a { color: var(--black); text-decoration: none; }
.link-list a:hover { text-decoration: underline; text-decoration-color: var(--hks28); }

/* Dialogs and login */
.dialog { width: min(480px, calc(100% - 2 * var(--gutter))); padding: 32px; border: 0;
          box-shadow: inset 0 0 0 1px var(--hks28); color: var(--text); }
.dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog form { display: grid; gap: 12px; }
.dialog h2, .dialog p { margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.login { max-width: 560px; }
.login-form { display: grid; gap: 6px; padding: 32px; background: var(--blue-light); }
.login-form input { margin-bottom: 12px; }
.login-form .btn { justify-self: start; margin-top: 4px; }

@media (max-width: 900px) {
  .device { display: flex; flex-direction: column; gap: 24px; }
  .device-intro { order: 1; }
  .device-photo { order: 2; }
  .key-figures { order: 3; margin-top: 0; }
  .device-contact { position: static; order: 4; margin-top: 0; }
  .device-body { order: 5; }
  .device-body > :first-child { margin-top: 0; }
}
@media (max-width: 800px) {
  .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .brand { gap: 14px; margin-top: 8px; }
  .brand img { width: 150px; height: auto; }
  .brand-name { padding-left: 14px; font-size: 18px; line-height: 30px; }
  .service { justify-content: flex-start; gap: 8px 20px; }
  .main-nav ul { justify-content: flex-start; gap: 0 20px; padding-top: 16px; }
  .main-nav a { font-size: 15px; letter-spacing: .06em; }
  .finder { padding: 16px; }
  .device-contact { padding: 24px 20px 28px; }
  .device-intro h1 { font-size: 28px; }
  .key-figure { padding: 16px; }
  .key-number { font-size: 28px; }
  .key-text { font-size: 20px; }
  .section-title { margin-top: 40px; font-size: 20px; line-height: 24px; }
}
