/* The sector pages as screens (src/lib/sector-screens.mjs): what the shared shell's older sheets (discovery.css,
   sectors.css) set for the former long pages is taken back here, so the screens of src/styles/screens.css stand as on
   the homepage. The masthead floats over the first screen. */
body.sector { margin: 0; background: #f0eee7; }
body.sector main { display: block; max-width: none; margin: 0; padding: 0; }
body.sector .sc { max-width: none; margin: 0; border: 0; }
body.sector .sc :where(h1, h2, h3, h4, p, ul, ol) { max-width: none; }
body.sector .sc-h1, body.sector .sc-h2 { margin: 0; font-family: var(--sc-display); font-weight: 600; letter-spacing: -.015em; line-height: .94; color: inherit; }
body.sector .sc-h1 { font-size: clamp(2rem, min(9.8vw, 8.2svh), 5.2rem); }
body.sector .sc-h2 { font-size: clamp(2rem, min(9.4vw, 6.3svh), 4.3rem); }
body.sector .sc-lead { margin: 0; font-size: clamp(.92rem, min(4.1vw, 2.35svh), 1.24rem); line-height: 1.46; }
body.sector .sc-ink .sc-h1 span:last-child, body.sector .sc-ink .sc-h2 span:last-child { color: var(--sc-orange); }
body.sector .sc-sector-hero { --sc-head: 118px; }
body.sector .sc-sector-hero .sc-h1 { color: #fff; }
body.sector .sc-jobs-two { grid-template-columns: repeat(2, minmax(0, max-content)); }
body.sector .sc-sector-compare .cmp { align-self: center; }
@media (min-width: 900px) {
  body.sector .sc-sector-hero .sc-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.sector .sc-sector-hero .sc-h1 { font-size: clamp(2.2rem, min(3.7vw, 7.6svh), 3.6rem); }
  body.sector .sc-sector-compare .sc-in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
@media (max-width: 899px) {
  /* On a phone the masthead keeps the brand, the trial and the menu; the page's own anchors are a scroll away. */
  body.sector .masthead nav > a[href^="#"] { display: none; }
  body.sector .sc-sector-hero { --sc-head: 124px; }
  body.sector .sc-jobs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sector .sc-sector-example .sc-job { grid-template-rows: minmax(0, 1fr); padding-bottom: 66px; }
  body.sector .sc-sector-compare .sc-media { container-type: normal; }
}
body.sector .sc-pricing .sc-lead { font-size: clamp(.9rem, min(3.8vw, 2svh), 1.08rem); }
@media (min-width: 900px) { body.sector .sc-pricing .sc-h2 { font-size: clamp(2rem, min(4.4vw, 6.3svh), 3.9rem); } }
body.sector .contact-channels { font-family: Instrument, 'Instrument Sans', system-ui, sans-serif; }
body.sector .sc-guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .86rem; color: var(--sc-ink-soft); }
body.sector .sc-guides a { color: var(--sc-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sc-orange); text-decoration-thickness: 2px; text-underline-offset: .28em; }
@media (max-width: 899px) { body.sector .sc-guides { font-size: .76rem; gap: 2px 12px; } }
/* On a short phone the comparison needs the room: its guides stand in the footer's „Ratgeber“ (owner, 13 Nov 2026:
   the heading and the button overlapped the comparison). */
@media (max-width: 899px) and (max-height: 820px) { body.sector .sc-sector-compare .sc-guides { display: none; } }
/* A phone's masthead: brand and language choice in one row, the trial and the menu below; it never covers the headline
   (checked by _tools/tests/one-screen-browser.mjs). */
@media (max-width: 899px) {
  body.sector .masthead { top: 12px; left: 12px; right: 12px; margin: 0; padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 10px; }
  body.sector .masthead .brand { grid-area: 1 / 1; width: 104px; }
  body.sector .masthead nav { grid-area: 2 / 1 / 3 / -1; width: 100%; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
  body.sector .masthead .language-access { grid-area: 1 / 2; margin: 0; }
  body.sector .masthead .language-access summary { min-height: 34px; padding-block: 4px; }
  body.sector .masthead > a:not(.brand) { grid-area: 1 / 3; font-size: 13px; }
  body.sector .sc-sector-hero { --sc-head: 112px; }
}
/* The niche's own pictures (owner, 12 Nov 2026): full bleed behind the first screen and the example, darkened towards
   the words so the pain line and the product surfaces stay readable; the note says the picture is made with AI. The AI phone assistant page (a core page,
   src/lib/phone-page.mjs) shows its two pictures the same way. */
body:is(.sector, .core) :is(.sc-sector-hero, .sc-sector-example) { position: relative; isolation: isolate; overflow: hidden; }
body:is(.sector, .core) .sc-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
body:is(.sector, .core) .sc-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 50%; }
body:is(.sector, .core) .sc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 31 27 / .94) 0%, rgb(20 31 27 / .84) 38%, rgb(20 31 27 / .42) 72%, rgb(20 31 27 / .3) 100%), linear-gradient(0deg, rgb(20 31 27 / .6) 0%, rgb(20 31 27 / 0) 34%); }
body:is(.sector, .core) .sc-sector-example .sc-photo::after { background: linear-gradient(90deg, rgb(20 31 27 / .95) 0%, rgb(20 31 27 / .86) 40%, rgb(20 31 27 / .55) 100%); }
body:is(.sector, .core) .sc-photo figcaption { position: absolute; right: 14px; bottom: 10px; z-index: 1; font-size: 11px; line-height: 1; color: rgb(240 238 231 / .72); }
@media (max-width: 899px) {
  body:is(.sector, .core) .sc-photo img { object-position: 60% 30%; }
  body:is(.sector, .core) .sc-photo::after { background: linear-gradient(180deg, rgb(20 31 27 / .62) 0%, rgb(20 31 27 / .8) 34%, rgb(20 31 27 / .93) 62%, rgb(20 31 27 / .97) 100%); }
  body:is(.sector, .core) .sc-sector-example .sc-photo::after { background: linear-gradient(180deg, rgb(20 31 27 / .7) 0%, rgb(20 31 27 / .93) 45%, rgb(20 31 27 / .97) 100%); }
  body:is(.sector, .core) .sc-photo figcaption { top: auto; bottom: 6px; right: 10px; font-size: 10px; }
}

/* The AI phone assistant page on a short phone (360×640, 375×667): its masthead stands in the flow, so the call
   window leaves out the caller's line and shows the conversation instead (one-screen-browser). */
@media (max-width: 899px) and (max-height: 700px) { body.core .sc-phone-hero .ui-call-head { display: none; } }
/* In the longer languages its list of tasks needs the room the lead takes on such a phone. */
@media (max-width: 899px) and (max-height: 700px) { html:not([lang=de]) body.core #telefon .sc-lead { display: none; } }

/* The longer languages (English, French, Arabic, Turkish; 15 Nov 2026, before they are published): the German page is
   accepted as it is and keeps every rule above; these apply only where the text runs longer, so each section stays
   one screen there too (one-screen and mobile-overlap over the release cut with all languages). */
@media (max-width: 899px) and (max-height: 900px) { html:not([lang=de]) body.sector .sc-sector-compare .sc-guides { display: none; } }
@media (max-width: 899px) and (max-height: 700px) {
  html:not([lang=de]) body.sector .sc-h1 { font-size: clamp(1.75rem, min(8.4vw, 8.2svh), 5.2rem); }
  html:not([lang=de]) body.sector .sc-h2 { font-size: clamp(1.75rem, min(8.6vw, 6.3svh), 4.3rem); }
}
