/* Hefaistos – Jylhävaara Oy. Ilme Moviatorin mukaan: musta ylätunniste, Space Grotesk + Inter, ruosteoranssi korostus, terävät kulmat.
   Fontit: SIL Open Font License 1.1 (fontit/LICENSE-*.txt). */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontit/space-grotesk-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontit/space-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontit/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontit/space-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontit/space-grotesk-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontit/space-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontit/space-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontit/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontit/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontit/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontit/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontit/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontit/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontit/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontit/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontit/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, html[data-theme="light"] {
  --hf-musta: #000000; --hf-tumma: #232120; --hf-navy: #0B152D; --hf-oranssi: #C7613C;
  --hf-oranssi-teksti: #A9502C; --hf-oranssi-nappi: #B5552F; --hf-oranssi-tumma: #9E4A28;
  --hf-vaalea: #F7F7F5; --hf-lammin: #F9F7F5;
  --hf-korostus-rgb: 211, 118, 69; --hf-nappi-teksti: #fff; /* yrityksen teema korvaa: apps/perustiedot/teema.py */
  --primary: var(--hf-tumma); --secondary: var(--hf-musta); --accent: var(--hf-oranssi); --primary-fg: #fff;
  --body-fg: var(--hf-navy); --body-bg: #fff; --body-quiet-color: #5B6476; --body-medium-color: #3A4458;
  --body-loud-color: var(--hf-navy);
  --header-color: #fff; --header-branding-color: #fff; --header-bg: var(--hf-musta); --header-link-color: #fff;
  --breadcrumbs-fg: #C9C4BF; --breadcrumbs-link-fg: #fff; --breadcrumbs-bg: var(--hf-tumma);
  --link-fg: var(--hf-navy); --link-hover-color: var(--hf-oranssi-teksti); --link-selected-fg: var(--hf-oranssi-teksti);
  --hairline-color: #E7E3DF; --border-color: #D6D1CC;
  --darkened-bg: var(--hf-vaalea); --selected-bg: #F1E3DC; --selected-row: #FBF1EC;
  --button-fg: #fff; --button-bg: var(--hf-navy); --button-hover-bg: var(--hf-tumma);
  --default-button-bg: var(--hf-oranssi-nappi); --default-button-hover-bg: var(--hf-oranssi-tumma);
  --close-button-bg: #5B6476; --close-button-hover-bg: var(--hf-navy);
  --object-tools-fg: #fff; --object-tools-bg: var(--hf-tumma); --object-tools-hover-bg: var(--hf-oranssi-nappi);
  --font-family-primary: "Inter", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --hf-otsikko: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}
html[data-theme="dark"] {
  --body-fg: #EDEBE8; --body-bg: #232120; --body-quiet-color: #ABA49E; --body-medium-color: #D6D1CC;
  --body-loud-color: #fff; --primary: #2E2B29; --darkened-bg: #2A2725; --hairline-color: #36322F;
  --border-color: #4A4541; --link-fg: #EDEBE8; --link-hover-color: #E5926E; --selected-bg: #4A3328;
  --selected-row: rgba(var(--hf-korostus-rgb), 0.10); --button-bg: #3B3735; --button-hover-bg: #4C4744;
  --default-button-bg: var(--hf-oranssi); --default-button-hover-bg: var(--hf-oranssi-nappi);
  --breadcrumbs-bg: rgba(0, 0, 0, 0.38); --close-button-bg: #4C4744; --close-button-hover-bg: #5E5854;
  --object-tools-bg: #3B3735; --message-success-bg: #2D3A2B; --message-warning-bg: #45391F; --message-error-bg: #4A2A24;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
  --body-fg: #EDEBE8; --body-bg: #232120; --body-quiet-color: #ABA49E; --body-medium-color: #D6D1CC;
  --body-loud-color: #fff; --primary: #2E2B29; --darkened-bg: #2A2725; --hairline-color: #36322F;
  --border-color: #4A4541; --link-fg: #EDEBE8; --link-hover-color: #E5926E; --selected-bg: #4A3328;
  --selected-row: rgba(var(--hf-korostus-rgb), 0.10); --button-bg: #3B3735; --button-hover-bg: #4C4744;
  --default-button-bg: var(--hf-oranssi); --default-button-hover-bg: var(--hf-oranssi-nappi);
  --breadcrumbs-bg: rgba(0, 0, 0, 0.38); --close-button-bg: #4C4744; --close-button-hover-bg: #5E5854;
  --object-tools-bg: #3B3735; --message-success-bg: #2D3A2B; --message-warning-bg: #45391F; --message-error-bg: #4A2A24;
  }
}
/* Tumma tila: moviator.netin harmaa (#232120) ja hyvin hienovarainen oranssi liukuväri oikeaan alakulmaan
   (sivuston korostusosion #d37645). Pinnat ovat läpikuultavia, jotta liukuväri näkyy niiden läpi. */
html[data-theme="dark"],
html[data-theme="dark"] body { background-attachment: fixed; }
html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #232120;
  background-image: radial-gradient(ellipse 90% 70% at 100% 100%, rgba(var(--hf-korostus-rgb), 0.13), rgba(var(--hf-korostus-rgb), 0) 70%),
    linear-gradient(160deg, #1F1D1C 0%, #232120 45%, #282220 100%);
}
html[data-theme="dark"] #main,
html[data-theme="dark"] #content,
html[data-theme="dark"] #container,
html[data-theme="dark"] .main,
html[data-theme="dark"] #nav-sidebar,
html[data-theme="dark"] #content-related,
html[data-theme="dark"] .login #container { background: transparent; }
html[data-theme="dark"] .module,
html[data-theme="dark"] fieldset.module,
html[data-theme="dark"] .inline-group,
html[data-theme="dark"] #changelist-filter,
html[data-theme="dark"] #changelist .actions,
html[data-theme="dark"] .selector-available,
html[data-theme="dark"] .selector-chosen,
html[data-theme="dark"] #toolbar,
html[data-theme="dark"] .paginator,
html[data-theme="dark"] .submit-row { background-color: rgba(255, 255, 255, 0.025); }
html[data-theme="dark"] .login #container { background: rgba(35, 33, 32, 0.85); border: 1px solid #36322F; }
html[data-theme="dark"] input[type=text],
html[data-theme="dark"] input[type=password],
html[data-theme="dark"] input[type=email],
html[data-theme="dark"] input[type=url],
html[data-theme="dark"] input[type=number],
html[data-theme="dark"] input[type=tel],
html[data-theme="dark"] input[type=search],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .vTextField,
html[data-theme="dark"] .select2-container--admin-autocomplete .select2-selection {
  background-color: #1A1817; border-color: #4A4541; color: #EDEBE8; }
html[data-theme="dark"] #nav-sidebar .current-model { background: rgba(var(--hf-korostus-rgb), 0.12); }
html[data-theme="dark"] tbody tr:nth-child(even),
html[data-theme="dark"] .row2 { background: rgba(255, 255, 255, 0.02); }
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]),
html:not([data-theme="light"]) body { background-attachment: fixed; }
html:not([data-theme="light"]),
html:not([data-theme="light"]) body {
  background-color: #232120;
  background-image: radial-gradient(ellipse 90% 70% at 100% 100%, rgba(var(--hf-korostus-rgb), 0.13), rgba(var(--hf-korostus-rgb), 0) 70%),
    linear-gradient(160deg, #1F1D1C 0%, #232120 45%, #282220 100%);
}
html:not([data-theme="light"]) #main,
html:not([data-theme="light"]) #content,
html:not([data-theme="light"]) #container,
html:not([data-theme="light"]) .main,
html:not([data-theme="light"]) #nav-sidebar,
html:not([data-theme="light"]) #content-related,
html:not([data-theme="light"]) .login #container { background: transparent; }
html:not([data-theme="light"]) .module,
html:not([data-theme="light"]) fieldset.module,
html:not([data-theme="light"]) .inline-group,
html:not([data-theme="light"]) #changelist-filter,
html:not([data-theme="light"]) #changelist .actions,
html:not([data-theme="light"]) .selector-available,
html:not([data-theme="light"]) .selector-chosen,
html:not([data-theme="light"]) #toolbar,
html:not([data-theme="light"]) .paginator,
html:not([data-theme="light"]) .submit-row { background-color: rgba(255, 255, 255, 0.025); }
html:not([data-theme="light"]) .login #container { background: rgba(35, 33, 32, 0.85); border: 1px solid #36322F; }
html:not([data-theme="light"]) input[type=text],
html:not([data-theme="light"]) input[type=password],
html:not([data-theme="light"]) input[type=email],
html:not([data-theme="light"]) input[type=url],
html:not([data-theme="light"]) input[type=number],
html:not([data-theme="light"]) input[type=tel],
html:not([data-theme="light"]) input[type=search],
html:not([data-theme="light"]) textarea,
html:not([data-theme="light"]) select,
html:not([data-theme="light"]) .vTextField,
html:not([data-theme="light"]) .select2-container--admin-autocomplete .select2-selection {
  background-color: #1A1817; border-color: #4A4541; color: #EDEBE8; }
html:not([data-theme="light"]) #nav-sidebar .current-model { background: rgba(var(--hf-korostus-rgb), 0.12); }
html:not([data-theme="light"]) tbody tr:nth-child(even),
html:not([data-theme="light"]) .row2 { background: rgba(255, 255, 255, 0.02); }
}

/* Typografia */
body { font-family: var(--font-family-primary); }
h1, h2, h3, #site-name, .module caption, .module h2, .inline-group h2, #content h1 { font-family: var(--hf-otsikko); }
#content h1 { font-weight: 700; letter-spacing: -0.02em; font-size: 26px; color: var(--body-loud-color); }
.module h2, .module caption, .inline-group h2, fieldset.module h2, .inline-related h3 {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; padding: 9px 12px;
}
#changelist table thead th, .results thead th, table thead th { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

/* Ylätunniste kuten moviator.net: musta, logo, valkoiset linkit */
#header { background: var(--hf-musta); padding: 12px 40px; min-height: 0; flex-shrink: 0; border-bottom: 3px solid var(--hf-oranssi); }
#site-name a { display: inline-flex; align-items: center; gap: 14px; }
#site-name img.hf-logo { height: 18px; width: auto; display: block; }
#site-name .hf-omistaja { font-family: var(--font-family-primary); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: #B9B3AD; border-left: 1px solid #3A3634; padding-left: 14px; }
#user-tools { font-size: 11px; letter-spacing: 0.08em; }
div.breadcrumbs { font-size: 12px; letter-spacing: 0.02em; padding: 10px 40px; }

/* Terävät kulmat ja Moviatorin painikkeet */
.button, input[type=submit], input[type=button], .submit-row input, a.button, button, .object-tools a,
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel],
input[type=search], textarea, select, .vTextField, .module, .inline-group, fieldset, .selector, .select2-container--admin-autocomplete .select2-selection,
#changelist-filter, #changelist .actions, .messagelist li, dialog.vahvistus-ikkuna { border-radius: 0 !important; }
.button, input[type=submit], input[type=button], .submit-row input, a.button, .object-tools a {
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px;
}
.object-tools a { padding: 7px 14px; }
.submit-row input.default, input[type=submit].default { padding: 10px 18px; }
.submit-row a.deletelink { border-radius: 0; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }

/* Vasen valikko */
#nav-sidebar .module caption, #nav-sidebar .module th a { font-family: var(--hf-otsikko); }
#nav-sidebar .current-model { background: var(--selected-row); box-shadow: inset 3px 0 0 var(--hf-oranssi); }

/* Etusivu ja kirjautuminen */
.login #header { justify-content: center; border-bottom: 3px solid var(--hf-oranssi); }
.login #container { border-radius: 0; }
.login #content { padding: 24px 28px; }

/* Alatunniste */
.hefaistos-ala { padding: 14px 40px; font-size: 11px; color: var(--body-quiet-color); letter-spacing: 0.04em; }
.hefaistos-ala b { font-family: var(--hf-otsikko); letter-spacing: 0.12em; }

/* Linkit tummansinisiä, oranssi vain korostuksena (kuten moviator.net) */
#changelist table tbody th a, #result_list tbody th a { font-weight: 600; }
a:hover { text-decoration: underline; text-decoration-color: var(--hf-oranssi); text-underline-offset: 3px; }
#nav-sidebar a { font-weight: 500; }
div.breadcrumbs a:hover { color: var(--hf-oranssi); text-decoration-color: var(--hf-oranssi); }

/* Moniyrityskäyttö: valittu yritys ja vaihto ylätunnisteessa. Yrityksen väri näkyy myös ylätunnisteen alareunassa,
   jotta väärässä yrityksessä työskentely huomataan heti. */
#site-name { display: flex; align-items: center; gap: 14px; }
details.hf-yritys { position: relative; font-family: var(--hf-otsikko); }
details.hf-yritys summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  border-left: 1px solid #3A3634; padding: 2px 0 2px 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; white-space: nowrap; }
details.hf-yritys summary::-webkit-details-marker { display: none; }
details.hf-yritys summary::after { content: "▾"; font-size: 10px; color: #B9B3AD; }
details.hf-yritys i { display: inline-block; width: 10px; height: 10px; background: var(--hf-yritysvari); }
.hf-yritys-valikko { position: absolute; top: calc(100% + 12px); left: 0; z-index: 1000; min-width: 240px;
  background: #000; border: 1px solid #3A3634; border-top: 3px solid var(--hf-yritysvari); padding: 6px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hf-yritys-valikko span { display: block; padding: 6px 16px 4px; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #8A837D; }
#site-name .hf-yritys-valikko a, #site-name .hf-yritys-valikko a:link, #site-name .hf-yritys-valikko a:visited { display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
#site-name .hf-yritys-valikko a:hover { background: #232120; text-decoration: none; }
#site-name .hf-yritys-valikko a.kaikki { color: #B9B3AD; font-size: 12px; border-top: 1px solid #2E2B29; margin-top: 4px; }

/* Puhelin ja tabletti: otsake kahdelle riville, kapeat reunat, isot kosketusalueet, leveät taulukot vierivät */
.hf-mobiili-palkki { display: none; }
@media (max-width: 1024px) {
  html body #header { flex-wrap: wrap !important; flex-direction: row !important; height: auto !important; row-gap: 4px;
    align-items: center; justify-content: space-between; }
  html body #header #user-tools { order: 3; flex: 1 1 100%; }
  /* Sivupalkki (viimeisimmät toiminnot) sisällön alle, ei sen taakse */
  .colMS #content-related, #content-related { float: none !important; width: auto !important; margin: 24px 0 0 !important;
    position: static !important; }
  .colMS #content-main { margin-right: 0 !important; float: none !important; width: auto !important; }
  #content-related .module h2 { height: auto !important; }
  .hf-kuitti > * { min-width: 0; }
  #user-tools { width: 100%; margin: 0; padding: 0; text-align: left; color: #B9B3AD; font-size: 11px; line-height: 2.2; }
  #user-tools a, #user-tools strong, #user-tools button { color: #fff; }
  #user-tools .theme-toggle svg { fill: #fff; }
  #changelist .results, .results, .inline-group .tabular, fieldset.module .tabular { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .object-tools { margin-top: 8px; }
  .object-tools li { margin: 0 6px 6px 0; }
  .hf-mobiili-palkki { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
  .hf-mobiili-palkki a { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; min-height: 48px;
    background: var(--hf-oranssi-nappi, var(--hf-oranssi)); color: var(--hf-nappi-teksti, #fff); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; font-size: 13px; text-decoration: none; }
  .hf-mobiili-palkki a.toissijainen { background: var(--darkened-bg); color: var(--body-fg); }
}
@media (max-width: 767px) {
  #header { padding: 10px 16px; }
  #site-name img.hf-logo { height: 14px; }
  details.hf-yritys summary { font-size: 11px; padding-left: 10px; }
  div.breadcrumbs { padding: 8px 16px; font-size: 13px; }
  #content { padding: 14px 14px; }
  #content h1 { font-size: 21px; }
  .hefaistos-ala { padding: 14px 16px 24px; }
  /* kosketus: isommat kentät ja painikkeet, iOS ei zoomaa 16 px kenttiin */
  input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=date],
  input[type=url], input[type=tel], select, textarea, .vTextField { font-size: 16px; min-height: 40px; }
  .submit-row input, .submit-row a, .object-tools a, .object-tools button.toiminto { min-height: 40px; display: inline-flex !important; align-items: center; }
  .submit-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .submit-row input, .submit-row a.deletelink { flex: 1 1 auto; margin: 0 !important; }
  #changelist-filter { margin-top: 12px; }
  .polku { font-size: 14px; }
  .aligned .form-row, .aligned div.help { padding-left: 0 !important; margin-left: 0 !important; }
  .hf-kuitti-kuva .kehys { max-height: 50vh; }
}

/* Teemavärin painikkeissa teksti on vaalealla teemavärillä (keltainen) tumma */
.button.default, input[type=submit].default, .submit-row input.default, .object-tools a:focus, .object-tools a:hover,
.object-tools button.toiminto:hover { color: var(--hf-nappi-teksti); }
