/* Site "Işık ve epilepsi" (flicker; approval "Işık ve epilepsi - metin onayı.md" §2 and the public home, owner 01.12.2026, 04-kararlar.md §21).
   Package "registry-shells". Loaded on every page of the site after site.css and hub.css (layout.mjs), before the page's
   own stylesheet; ships only while the site is open (build/publish-filter.mjs closedSiteAsset: assets/css/flicker-site.css).
   The shell of the horticulture layout (Uygulamalar ▾ · Çözümler · Işık Bilimi ▾ · Uygulama alanları ▾),
   the public home page's opening, status line and the members box spacing; same rules as vitamind-site.css. The site's
   accent (#4f6df5) stays in drawings and rules, never as text colour. */


[data-site='flicker'] { --site-accent: #4f6df5; --site-accent-line: #4f6df5; --site-accent-soft: rgba(79, 109, 245, 0.18); --ms-accent: #4f6df5; }

/* ---------- Header: five items plus the site name; the menu button takes over below the measured widths ---------- */
@media (max-width: 1640px) { [data-site='flicker'] .site-header .wrap { gap: 14px; } [data-site='flicker'] .site-header .nav { gap: 4px; } [data-site='flicker'] .site-header .nav > ul { margin-right: 4px; } [data-site='flicker'] .site-header .nav .nav-link { padding: 0 8px; font-size: 0.88rem; } }
@media (max-width: 1200px) { [data-site='flicker'] .site-header .nav { display: none; } [data-site='flicker'] .site-header .menu-btn, [data-site='flicker'] .site-header .lang-m { display: inline-flex; } }
@media (max-width: 1500px) { html[lang='fr-CA'][data-site='flicker'] .site-header .nav { display: none; } html[lang='fr-CA'][data-site='flicker'] .site-header .menu-btn, html[lang='fr-CA'][data-site='flicker'] .site-header .lang-m { display: inline-flex; } }
@media (max-width: 560px) {
  [data-site='flicker'] .site-header .wrap { gap: 10px; }
  [data-site='flicker'] .site-header .brand img { height: 32px; }
  [data-site='flicker'] .lang-m a { min-width: 30px; padding: 0 5px; }
}
@media (max-width: 380px) { [data-site='flicker'] .site-header .brand img { height: 28px; } [data-site='flicker'] .lang-m a { min-width: 27px; padding: 0 4px; font-size: 0.74rem; } }

/* "Uygulamalar ▾": "Bütün uygulamalar" with its sub-line and two columns (no library on this site) */
[data-site='flicker'] .subnav.ms-subnav { width: 640px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
[data-site='flicker'] .ms-subnav > li.sn-all a small { display: block; }
[data-site='flicker'] .ms-subnav > li.sn-wide { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid #e6ece8; }
[data-site='flicker'] .ms-subnav ul { list-style: none; margin: 0; padding: 0; }
/* "Dijital İkizler ▾" and "Işık Bilimi ▾": one column, no thumbnails, the site's accent rule on top */
[data-site='flicker'] .subnav.subnav-1.ms-subnav-1 { width: 440px; padding-top: 16px; background: linear-gradient(var(--ms-accent), var(--ms-accent)) top / 100% 3px no-repeat, #fff; max-height: calc(100vh - var(--header-h, 72px) - 28px); overflow-y: auto; overscroll-behavior: contain; }
[data-site='flicker'] .subnav-1.ms-subnav-1::before { background: #fff; }
[data-site='flicker'] .subnav-1.ms-subnav-1 a { display: block; padding: 9px 12px; }
[data-site='flicker'] .subnav-1.ms-subnav-1 a strong { font-weight: 750; }
[data-site='flicker'] .subnav-1.ms-subnav-1 a small { display: block; }
/* Mobile menu: a group heading whose overview page is not routed */
[data-site='flicker'] .mobile-nav .mn-main > li > .mn-h { display: block; padding: 16px 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }

/* Footer: brand block and three columns */
.foot-grid.foot-flicker { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .foot-grid.foot-flicker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid.foot-flicker { grid-template-columns: 1fr; } }

/* ---------- Public home page (members rule, 04-kararlar.md §15–§16): opening, applications by name, members box ---------- */
.ms-hero { --hero-h: max(520px, min(calc(100svh - var(--header-h)), 860px)); position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: var(--hero-h); background: var(--ink-0); color: var(--fg); }
.ms-hero .hero-media { position: absolute; inset: 0; z-index: -1; background: #0c1714; }
.ms-hero .hero-media.is-empty { background: radial-gradient(70% 90% at 80% 10%, rgba(79, 109, 245, 0.14), rgba(79, 109, 245, 0) 60%), radial-gradient(60% 80% at 10% 100%, rgba(66, 211, 156, 0.1), rgba(66, 211, 156, 0) 60%), #0a1612; }
.ms-hero .hero-media :is(picture, img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ms-hero .hero-media video { opacity: 0; transition: opacity var(--dur-4) var(--ease-out); }
.ms-hero .hero-media video.is-playing { opacity: 1; }
.ms-hero .hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 18, 15, 0.86) 0%, rgba(7, 18, 15, 0.55) 46%, rgba(7, 18, 15, 0.1) 78%), linear-gradient(0deg, rgba(7, 18, 15, 0.7) 0%, rgba(7, 18, 15, 0) 40%); }
.ms-hero .hero-in { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 28px; min-height: var(--hero-h); padding-top: clamp(36px, 7vh, 88px); padding-bottom: clamp(20px, 3.4vh, 34px); }
.ms-hero .hero-copy { align-self: center; max-width: min(700px, 56vw); }
.ms-hero .eyebrow { color: var(--brand-mint); }
.ms-hero .crumbs { margin-bottom: 20px; color: #a9bbb3; }
.ms-hero .crumbs a { color: #dfe9e4; }
.ms-hero .h1 { max-width: 20ch; margin: 0 0 22px; color: #fff; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.ms-hero .lead { max-width: 50ch; margin: 0; color: #d4e1da; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4); }
.ms-hero .btn-row { margin-top: 28px; }
.ms-hero .btn-ghost { background: rgba(7, 18, 15, 0.35); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ms-hero .hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ms-hero .film-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(7, 18, 15, 0.5); color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.ms-hero .film-toggle:hover { border-color: #fff; }
.ms-hero .film-toggle svg { width: 12px; height: 12px; }
.ms-hero .film-toggle .i-play, .ms-hero .film-toggle.is-paused .i-pause { display: none; }
.ms-hero .film-toggle.is-paused .i-play { display: block; }
@media (max-width: 900px) { .ms-hero .hero-copy { max-width: none; } .ms-hero .hero-media::after { background: linear-gradient(0deg, rgba(7, 18, 15, 0.92) 0%, rgba(7, 18, 15, 0.6) 60%, rgba(7, 18, 15, 0.35) 100%); } }
/* Status line ("Durum: Kavram") under the lead */
.ms-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 20px 0 0; font-size: 0.9rem; color: #c9d8d1; }
.ms-status > span:first-child { font-weight: 650; }
/* Applications by name: the site's accent as a thin rule on the left of each row */
[data-site='flicker'] .member-names .row { border-left: 3px solid var(--ms-accent); }
[data-site='flicker'] .ms-group { margin: 28px 0 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
[data-site='flicker'] .ms-group:first-of-type { margin-top: 8px; }
/* Human sites: the approved boundary line as a thin band (D vitamini ve UV-B §3.0, above the closing band) */
.ms-boundary-band { padding: 18px 0; border-top: 1px solid var(--line); }
.ms-boundary-band p { max-width: 80ch; margin: 0; padding-left: 14px; border-left: 3px solid var(--ms-accent, var(--brand)); color: var(--fg-2); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Faz 3 additions: the opening's drawing column (src/pages/faz3-parts.mjs opening { figure }) ---------- */
.ms-hero-fig .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: none; align-items: center; column-gap: clamp(24px, 4vw, 56px); }
.ms-hero-fig .hero-copy { max-width: 700px; }
.ms-hero-fig .hero-fig { min-width: 0; }
.ms-hero-fig .hero-fig figure { margin: 0; }
@media (max-width: 900px) { .ms-hero-fig .hero-in { grid-template-columns: 1fr; row-gap: 28px; } .ms-hero-fig .hero-fig { max-width: 560px; } }
/* Evidence labels inside the lead ("[Literatür]" marks of the approved text) */
.ms-hero .lead .ms-ev { display: inline-flex; gap: 6px; vertical-align: 0.1em; }
.ms-hero .lead .ms-ev .tag { font-size: 0.72rem; }
.ms-ev-note { font-size: 0.8em; color: var(--fg-3); }

/* Motion rule of the site (approval §4.0): nothing blinks and nothing changes brightness in a loop; the member-teaser
   drawings stand still here in their finished state (member-teasers.css animates them elsewhere). */
[data-site='flicker'] .mt-sec [class*='mt-a-'] { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { [data-site='flicker'] * { animation: none !important; transition: none !important; } }

/* Footer boundary line (approval §2.9: on every page, as on Uyku ve uyanış) */
.site-footer .ms-boundary { max-width: 76ch; margin: 32px 0 0; padding-left: 14px; border-left: 3px solid var(--ms-accent); color: #c9d8d1; font-size: 0.88rem; line-height: 1.55; }
/* phone: the application cards are two narrow columns, so the static icon moves to the top-right corner (small) and the
   card keeps room above the name; centred, it would sit under the longer names (FR) */
@media (max-width: 560px) {
  [data-site='flicker'] .member-names .ac-media.f3-icmedia { place-items: start end; padding: 14px 14px 0 0; }
  [data-site='flicker'] .member-names .ac-media.f3-icmedia svg { width: 44px; height: 44px; }
  [data-site='flicker'] .member-names .ac-card { min-height: 232px; }
}

/* Public home, approved §4.1.2–§4.1.7 (restored 01.12.2026): the cards' one line, the six links as a plain list on the
   dark band (no chain drawing), the operating states, the single tool card. Static: nothing moves or changes brightness. */
[data-site='flicker'] .member-names .ac-text { font-size: 0.9rem; line-height: 1.45; color: #dfe9e4; max-width: 46ch; }
.fl-ring { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: fl-ring; }
.fl-ring li { counter-increment: fl-ring; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px 16px; border: 1px solid rgba(255, 255, 255, 0.12); border-top: 3px solid var(--ms-accent); border-radius: 12px; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.fl-ring li::before { content: counter(fl-ring, decimal-leading-zero); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; color: #8ea4ff; }
.fl-ring b { font-size: 1.08rem; color: #fff; }
.fl-ring span { color: #c9d8d1; font-size: 0.92rem; line-height: 1.45; }
.fl-ring-link { margin: 22px 0 0; }
.fl-states-text { max-width: 70ch; margin: 18px 0 0; }
.fl-states-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 0; }
.fl-states-line .ms-ev { display: inline-flex; gap: 6px; }
.fl-tool-one .ac-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-top: 12px; }
@media (max-width: 900px) { .fl-ring { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fl-ring { grid-template-columns: minmax(0, 1fr); } [data-site='flicker'] .member-names .ac-text { font-size: 0.86rem; } }
/* With the one-line text the card body is taller: the static icon sits small in the top-right corner at every width,
   so it never lies under the name or the line (review 01.12.2026). */
[data-site='flicker'] .member-names .ac-media.f3-icmedia { place-items: start end; padding: 18px 18px 0 0; }
[data-site='flicker'] .member-names .ac-media.f3-icmedia svg { width: 52px; height: 52px; }
[data-site='flicker'] .member-names .ac-card { min-height: 300px; }
@media (max-width: 560px) { [data-site='flicker'] .member-names .ac-media.f3-icmedia { padding: 14px 14px 0 0; } [data-site='flicker'] .member-names .ac-media.f3-icmedia svg { width: 44px; height: 44px; } [data-site='flicker'] .member-names .ac-card { min-height: 260px; } }
