/* Shelly Security site. No JavaScript, no outside requests.
   Look follows shelly.com (checked 2026-11-10 in its theme CSS): Manrope at weight 500,
   the shelly.com type scale, its blues, greys and dark footer, 10px radius on bars,
   cards and buttons, dark underlined links. Light only, as shelly.com has no dark mode.
   Craft from the apple-design standard: instant press feedback, rem spacing,
   reduced motion, higher contrast and forced colours. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-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 {
  color-scheme: light;

  /* shelly.com brand tokens (same names and values as its theme) */
  --color-blue-extralight: #f0f4f7;
  --color-blue-light: #9cdbf6;
  --color-blue-primary: #4594d1;
  --color-blue-medium: #2481c7;
  --color-blue-dark: #0361a7;
  --color-secondary-red-dark: #b6042e;
  --color-orange: #ec9127;
  --color-yellow: #ffefcc;
  --color-grey-extralight: #ecf1f5;
  --color-grey-medium: #d2d9de;
  --color-grey-medium-dark: #888b8d;
  --color-grey-dark: #656669;
  --color-grey-extradark: #353638;
  --slate-black: #1b1f26;
  --color-black: #121519;
  --color-background-black-light: #0b1419;
  --color-white: #fdfdfd;
  --gradient-blue: linear-gradient(90deg, #4594d1, #003c82);
  --shadow-mega-menu: 0 0 12px rgba(205, 210, 220, 0.5);
  --shadow-blue: 0 0 12px rgba(215, 220, 229, 0.5);

  /* type scale (desktop; phone sizes below). h5, h6 and text = shelly.com.
     h1 to h4 are smaller than shelly.com's 50/42/32/26 on purpose: Global Head of IT, 2026-11-11. */
  --font-family-manrope: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size-h1: 36px;
  --font-size-h2: 28px;
  --font-size-h3: 24px;
  --font-size-h4: 20px;
  --font-size-h5: 24px;
  --font-size-h6: 18px;
  --font-size-paragraph: 18px;
  --font-size-body: 16px;
  --font-size-caption: 14px;
  --font-size-small-text: 12px;
  --line-height-heading: 1.1;
  --line-height-loose: 1.2;
  --line-height-text: 1.5;
  --font-weight-regular: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --radius: 10px;
  --page-width: 100rem;
  --page-width-padding: 30px;

  /* roles, light */
  --bg: #ffffff;
  --surface: var(--color-blue-extralight);
  --bar: var(--color-white);
  --bar-shadow: var(--shadow-mega-menu);
  --text: #000000;
  --nav-text: var(--color-black);
  --muted: var(--color-grey-dark);
  --line: #d9dce1;
  --link: rgba(18, 18, 18, 0.85);
  --accent: var(--color-blue-primary);
  --current: var(--color-blue-medium);
  --button-bg: var(--gradient-blue);
  --button-text: #ffffff;
  --footer-bg: var(--color-black);
  --footer-block: var(--slate-black);
  --footer-text: var(--color-white);
  --footer-muted: var(--color-grey-medium-dark);
  --focus: var(--color-blue-primary);
  --todo-bg: var(--color-yellow);
  --todo-text: var(--color-black);
  --todo-line: var(--color-orange);
  --press-dim: brightness(0.94);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}


*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-text);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--page-width); margin: 0 auto; padding-left: var(--page-width-padding); padding-right: var(--page-width-padding); }

/* ---------- type: the shelly.com scale ---------- */
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: var(--font-weight-bold); line-height: var(--line-height-loose); letter-spacing: normal; margin: 0; }
h1 { font-size: var(--font-size-h1); line-height: var(--line-height-heading); margin: 0.5rem 0 1.25rem; }
h2 { font-size: var(--font-size-h2); margin: 3rem 0 1rem; }
h3 { font-size: var(--font-size-h3); margin: 2rem 0 0.75rem; }
h4 { font-size: var(--font-size-h4); }
p, ul, ol, dl { margin: 0 0 1rem; }
main p, main ul, main ol, main dl { max-width: 60rem; }
main .latest, main .adv-list, main .doc-list, main .cards { max-width: none; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
.lead { font-size: var(--font-size-paragraph); line-height: var(--line-height-text); color: var(--muted); max-width: 48rem; }
small, .built, .crumbs, .adv-meta, .latest-date { font-size: var(--font-size-caption); }
strong { font-weight: var(--font-weight-bold); }
code { font-family: var(--mono); font-size: 0.875em; letter-spacing: 0; }
.fp, .vector, .subject-line { overflow-wrap: anywhere; }

a { color: var(--link); text-decoration-thickness: 0.1rem; text-underline-offset: 0.3rem; transition: text-decoration-thickness 100ms ease; }
a:hover { text-decoration-thickness: 0.2rem; }
a:active { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- chrome: the shelly.com header bar (sticky, menus on hover or focus) and footer ---------- */
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--bg); color: var(--text); padding: 0.5rem 0.75rem; z-index: 100; }
.skip:focus { left: 0.5rem; }


/* As on shelly.com: the header group is sticky at the top; around the bar it stays transparent. */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 16px; }
.header-bar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  background: var(--bar); border-radius: var(--radius); box-shadow: var(--bar-shadow);
  padding: 0 24px; min-height: 58px;
}
.nav-side { display: flex; align-items: stretch; min-width: 0; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; gap: 18px; }
.nav-list { display: flex; align-items: stretch; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list > li + li { margin-top: 0; }
.nav-item { display: flex; align-items: center; }
.nav-top {
  font: inherit; font-size: var(--font-size-body); font-weight: var(--font-weight-semibold); line-height: 24px;
  color: var(--nav-text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
}
.nav-top:hover, .has-menu:hover > .nav-top, .has-menu:focus-within > .nav-top { color: var(--current); }
.nav-top[aria-current="page"] { color: var(--current); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45rem; text-decoration-color: var(--accent); }
.nav-logo { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.nav-logo img { display: block; width: 90px; height: 25px; }
.icon { display: block; }

/* menu panels: open on hover or keyboard focus, no script */
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; z-index: 60; }
.has-menu:hover > .menu-panel, .has-menu:focus-within > .menu-panel { display: block; }
.menu-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 24px 32px;
  background: var(--bar); border-radius: var(--radius); box-shadow: var(--bar-shadow); padding: 24px;
}
.menu-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-group li + li { margin-top: 0; }
.menu-title { font-size: var(--font-size-caption); font-weight: var(--font-weight-bold); color: var(--muted); margin: 0 0 12px; max-width: none; }
.menu-group a { color: var(--nav-text); text-decoration: none; font-weight: var(--font-weight-semibold); }
.menu-group a:hover { color: var(--current); }

/* phone menu: a disclosure, no script */
.menu-mobile { display: none; align-self: center; }
.menu-mobile > summary { list-style: none; cursor: pointer; color: var(--nav-text); padding: 8px 4px; }
.menu-mobile > summary::-webkit-details-marker { display: none; }
.menu-mobile-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--bar); border-radius: var(--radius); box-shadow: var(--bar-shadow);
  padding: 16px 20px; max-height: 75vh; overflow-y: auto;
}
.menu-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile-panel > ul > li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.menu-mobile-panel > ul > li:last-child { border-bottom: 0; }
.menu-mobile-panel li li { margin: 0; padding: 4px 0 4px 12px; }
.mm-head[aria-current="page"] { color: var(--current); }
.mm-head { display: block; font-weight: var(--font-weight-bold); color: var(--nav-text); text-decoration: none; margin: 0 0 4px; max-width: none; }
.menu-mobile-panel li li a { color: var(--nav-text); text-decoration: none; }

main { padding-top: 2.5rem; padding-bottom: 4rem; }
main.wrap { max-width: calc(60rem + 2 * var(--page-width-padding)); }   /* one centred reading column on every page */

.crumbs { color: var(--muted); margin: 0 0 0.25rem; }
.crumbs a { color: var(--muted); }

/* footer as on shelly.com */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-inner { padding-top: 60px; padding-bottom: 20px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 43px 80px; }
.footer-brand { flex: 0 0 215px; display: flex; flex-direction: column; gap: 43px; }
.footer-logo img { display: block; width: 110px; height: 30px; }
.footer-social { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-social li + li { margin-top: 0; }
.footer-social a { color: var(--footer-muted); display: inline-flex; }
.footer-social a:hover { color: var(--footer-text); }
.footer-cols { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.footer-head { font-size: var(--font-size-h6); font-weight: var(--font-weight-bold); color: var(--footer-text); margin: 0; max-width: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.footer-col li + li { margin-top: 0; }
.footer-col a { color: var(--color-grey-extralight); text-decoration: none; font-size: var(--font-size-body); line-height: 1.8; }
.footer-col a:hover { color: var(--footer-text); text-decoration: underline; }
.copyright { margin: 80px 0 0; font-size: 15px; color: var(--footer-muted); max-width: none; }
.site-footer .built { margin: 8px 0 0; color: var(--footer-muted); font-size: var(--font-size-caption); }

/* below 990px: shelly.com's phone layout, menu button left, logo in the middle, icons right */
@media (max-width: 989px) {
  .menu-mobile { display: block; }
  .nav-left, .nav-right { display: none; }
  .header-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 0 16px; }
  .footer-brand { flex-basis: 100%; }
  .footer-cols { flex-basis: 100%; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}

/* ---------- controls: shelly.com buttons, feedback on press ---------- */
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--button-bg); color: var(--button-text);
  font-weight: var(--font-weight-bold); font-size: var(--font-size-body); letter-spacing: normal;
  padding: 12px 24px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent;
  transition: transform 100ms ease-out, filter 100ms ease-out;
}
.button:hover { text-decoration: none; filter: var(--press-dim); }
.button:active { transform: scale(0.97); filter: var(--press-dim); opacity: 1; }
.button-quiet { background: transparent; color: var(--current); border-color: var(--color-blue-medium); }
.contact-line { margin: 0.25rem 0 1rem; }

.cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin: 1.5rem 0 0.5rem; }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 24px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: transform 100ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-blue); }
.card:active { transform: scale(0.985); opacity: 1; }
.card p { margin: 0; color: var(--muted); }
.card-title { margin: 0; font-size: var(--font-size-h5); }
.card-go { margin-top: auto; padding-top: 0.25rem; color: var(--current); font-weight: var(--font-weight-bold); }
.card-go::after { content: " \2192"; }

/* ---------- facts, lists, tables ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; }
.facts dt { color: var(--muted); font-weight: var(--font-weight-semibold); }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}

.steps { padding-left: 1.4rem; }
.steps li { padding-left: 0.25rem; }

.howto { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 1.25rem 0 1.5rem; max-width: 60rem; }
.howto summary { cursor: pointer; font-weight: var(--font-weight-bold); }
.howto[open] summary { margin-bottom: 0.75rem; }
.howto .facts { margin: 0; }

.adv-list { list-style: none; padding: 0; margin: 0; }
.adv { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.adv:target { background: var(--surface); border-radius: var(--radius); padding-left: 1rem; padding-right: 1rem; }
.adv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.4rem; }
.adv-id { font-family: var(--mono); font-size: var(--font-size-caption); color: var(--muted); letter-spacing: 0; }
.adv-title { margin: 0 0 0.4rem; font-size: var(--font-size-h5); }
.adv-title a { color: var(--text); text-decoration: none; }
.adv-title a:hover { text-decoration: underline; }
.adv-affected { color: var(--muted); margin-bottom: 0.6rem; }
.adv-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; color: var(--muted); }
.adv-meta div { display: flex; gap: 0.4rem; }
.adv-meta dt { font-weight: var(--font-weight-semibold); white-space: nowrap; }
.adv-meta dd { margin: 0; color: var(--text); }

.latest { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 12px; }
.latest li + li { margin-top: 0; }
.latest-item { display: grid; gap: 0.25rem; padding: 16px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform 100ms ease-out, border-color 150ms ease-out; }
.latest-item:hover { border-color: var(--accent); }
.latest-item:active { transform: scale(0.985); opacity: 1; }
.latest-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.latest-title { font-weight: var(--font-weight-bold); font-size: var(--font-size-h6); }
.latest-date { color: var(--muted); }

.advisory header { margin-bottom: 1.25rem; }
.adv-facts { padding: 16px 24px; background: var(--surface); border-radius: var(--radius); margin-bottom: 1.25rem; max-width: 60rem; }
.notes { color: var(--muted); }
.refs li { overflow-wrap: anywhere; }
.disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--font-size-caption); }

/* tables as on the shelly.com advisories page: full 1px grid, 12px cells */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); line-height: var(--line-height-text); }
th, td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--line); }
thead th { color: var(--text); font-weight: var(--font-weight-bold); }
tbody th { font-weight: var(--font-weight-semibold); }

/* ---------- Legal pages (from Confluence) ---------- */
.doc-list { list-style: none; padding: 0; }
.doc-list li { padding: 0.75rem 0; border-top: 1px solid var(--line); margin: 0; }
.doc-list .depth-1 { padding-left: 1.25rem; }
.doc-list .depth-2, .doc-list .depth-3 { padding-left: 2.5rem; }
.doc-list a { font-weight: var(--font-weight-bold); }
.doc-date, .doc-meta { color: var(--muted); font-size: var(--font-size-caption); }
.doc-date { display: block; }
.doc li > p { margin: 0; }
.doc h3 { margin: 1.75rem 0 0.5rem; }
.doc h4 { margin: 1.5rem 0 0.4rem; }
.doc pre { overflow-x: auto; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); }
.doc blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.callout { padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid var(--accent); background: var(--surface); margin: 0 0 1rem; max-width: 60rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--color-secondary-red-dark); }
.callout-note { border-left-color: var(--color-orange); }

/* ---------- severity: label and score in text, colour only as a small dot ----------
   Quiet on purpose (Global Head of IT, 2026-11-11): a Critical must not grab the eye. */
.sev { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.05rem 0.6rem; border-radius: 4rem; font-size: var(--font-size-caption); font-weight: var(--font-weight-semibold); line-height: 1.5; color: var(--color-grey-extradark); background: var(--color-grey-extralight); border: 1px solid var(--line); }
.sev::before { content: ""; flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--sev-dot, var(--color-grey-dark)); }
.sev-score { font-variant-numeric: tabular-nums; font-weight: var(--font-weight-regular); }
.sev-critical { --sev-dot: var(--color-secondary-red-dark); }
.sev-high { --sev-dot: var(--color-orange); }
.sev-medium { --sev-dot: #d9a300; }
.sev-low { --sev-dot: var(--color-blue-dark); }
.sev-none { --sev-dot: var(--color-grey-medium-dark); }

/* ---------- report form: one question at a time in one card, like the old Typeform ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.l-de { display: none; }
.report:has(input[name="lang"][value="de"]:checked) .l-de { display: inline; }
.report:has(input[name="lang"][value="de"]:checked) .l-en { display: none; }

.tf { position: relative; max-width: 44rem; min-height: 22rem; box-sizing: border-box; margin-top: 1rem; display: flex; flex-direction: column; }
.tf[hidden] { display: none; }
.tf-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tf-top[hidden] { display: none; }
.tf-bar { flex: 1; height: 4px; background: var(--color-grey-extralight); border-radius: 2px; overflow: hidden; }
.tf-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 250ms ease-out; }
.tf-count { font-size: var(--font-size-caption); color: var(--muted); font-variant-numeric: tabular-nums; }

.tf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tf legend { padding: 0; }
.step { margin: 0; }
.step[hidden] { display: none; }
.step > label, .step > legend { display: block; font-size: var(--font-size-h5); font-weight: var(--font-weight-semibold); line-height: var(--line-height-loose); color: #1c2126; margin-bottom: 0.5rem; }
.tf-num { color: var(--accent); font-size: var(--font-size-body); font-weight: var(--font-weight-bold); margin-right: 0.25rem; vertical-align: 0.15em; }
.req { color: var(--muted); font-weight: var(--font-weight-regular); }
.hint { color: var(--muted); font-size: var(--font-size-body); line-height: var(--line-height-text); margin: 0 0 1.25rem; max-width: none; }
#h-email { font-size: var(--font-size-caption); }

/* answers: big blue text on an underline, as in Typeform (the darker blue keeps AA contrast) */
.tf input[type="text"], .tf input[type="email"], .tf textarea {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 20px; line-height: 1.4;
  color: var(--color-blue-dark); background: transparent; border: 0; border-bottom: 2px solid rgba(3, 97, 167, 0.35);
  border-radius: 0; padding: 6px 0 8px;
}
.tf input::placeholder, .tf textarea::placeholder { color: rgba(3, 97, 167, 0.45); }
.tf textarea { resize: vertical; min-height: 3rem; }
.tf input:focus-visible, .tf textarea:focus-visible { outline: none; border-bottom-color: var(--color-blue-dark); box-shadow: 0 2px 0 0 var(--color-blue-dark); }

/* choices: letter keys instead of round radio buttons; the real radio stays for keyboards and screen readers */
.choice label { position: relative; display: flex; gap: 0.75rem; align-items: center; max-width: 30rem; padding: 8px 12px; margin: 0 0 8px;
  color: var(--color-blue-dark); background: rgba(69, 148, 209, 0.08); border: 1px solid rgba(3, 97, 167, 0.35); border-radius: 6px;
  cursor: pointer; font-size: var(--font-size-body); font-weight: var(--font-weight-regular); }
.choice label:hover { background: rgba(69, 148, 209, 0.16); }
.choice label:has(input:checked) { border-color: var(--color-blue-dark); background: rgba(69, 148, 209, 0.2); box-shadow: inset 0 0 0 1px var(--color-blue-dark); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tf-key { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; font-size: 12px; font-weight: var(--font-weight-bold);
  color: var(--color-blue-dark); background: #ffffff; border: 1px solid rgba(3, 97, 167, 0.5); border-radius: 4px; }
.choice label:has(input:checked) .tf-key { color: #ffffff; background: var(--color-blue-dark); border-color: var(--color-blue-dark); }

.form-encrypt { color: var(--muted); font-size: var(--font-size-caption); margin: 1rem 0 0; }
.tf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; }
.tf-nav[hidden] { display: none; }
.tf-nav [hidden] { display: none; }
.tf-go { margin-left: auto; }
.tf button[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--color-grey-dark); }
.form-status:empty { display: none; }
.form-status[data-kind="failed"], .form-status[data-kind="busy"], .form-status[data-kind="keyMismatch"], .form-status[data-kind="tooLong"] { border-left-color: var(--color-orange); }
.tf-done { margin: auto 0; }
.tf-done[hidden] { display: none; }
.tf-done-title { font-size: var(--font-size-h5); font-weight: var(--font-weight-semibold); color: #1c2126; margin-bottom: 0.5rem; }
.tf-done-ref { font-size: 18px; font-weight: var(--font-weight-semibold); color: var(--color-blue-dark); }
.tf-done:focus { outline: none; }   /* focused only so screen readers read the thank-you */
.form-noscript { max-width: 44rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-noscript[hidden] { display: none; }
.form-todo { font-size: var(--font-size-caption); margin-top: 0.75rem; }

@keyframes tf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tf-in { animation: tf-in 220ms ease-out; }
@media (max-width: 749px) {
  .tf { min-height: 22rem; }
  .tf input[type="text"], .tf input[type="email"], .tf textarea { font-size: 18px; }
}

/* ---------- open items in preview builds ---------- */
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 0.2em; border-radius: 0.2em; outline: 1px dashed var(--todo-line); }

/* ---------- phone sizes from the shelly.com scale ---------- */
@media (max-width: 749px) {
  :root {
    --font-size-h1: 28px;
    --font-size-h2: 22px;
    --font-size-h3: 20px;
    --font-size-h4: 18px;
    --font-size-h5: 18px;
    --font-size-h6: 17px;
    --font-size-body: 15px;
    --font-size-paragraph: 16px;
    --font-size-caption: 13px;
    --page-width-padding: 15px;
  }
  h2 { margin-top: 2.25rem; }
}

/* ---------- accessibility settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:active, .card:active, .latest-item:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--color-grey-dark); --muted: var(--color-grey-extradark); --link: var(--color-black); }
  a { text-decoration-thickness: 0.15rem; }
  .card, .latest-item, .howto { border: 2px solid var(--line); }
  .button { background: var(--color-blue-dark); }
}
@media (forced-colors: active) {
  .sev, .button, .card, .latest-item, .header-bar, .menu-box, .menu-mobile-panel { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .skip, .site-footer, .button { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
