/* Announcement banner on dashtabs.net (added by index.php when it's on for the landing page; set in the dashboard,
   Settings > Admin). A Midnight glass pill above the page, a coloured dot or icon at the start, an arrow when it links.
   Same look and classes as the dashboard's bar (my/assets/css/home.css, "Announcement banner"). */
.dt-banner {
  --tone: #7fb2ea; --tone-ink: #ffffff;
  position: relative; z-index: 20; box-sizing: border-box; display: grid; grid-template-columns: auto fit-content(52rem) auto; justify-content: center; align-items: center; column-gap: 10px;
  width: fit-content; max-width: calc(100% - 32px); margin: 16px auto 0; padding: 9px 18px; border-radius: 999px;
  color: #ffffff; text-align: left; text-decoration: none; font: 600 14px/1.35 "Manrope", system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px -14px rgba(0, 0, 0, 0.6);
}
.dt-banner.is-green  { --tone: #3fb950; }
.dt-banner.is-yellow { --tone: #f2c230; --tone-ink: #3d2f00; }
.dt-banner.is-red    { --tone: #f0605a; }
.dt-banner.is-purple { --tone: #a98bf5; }
.dt-banner.is-grey   { --tone: #a3acbb; }
.dt-banner > span { min-width: 0; overflow-wrap: break-word; }
.dt-banner-mark { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 28%, transparent), 0 0 10px color-mix(in srgb, var(--tone) 80%, transparent); }
.dt-banner-mark.has-icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--tone-ink); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tone) 75%, #ffffff), var(--tone) 60%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 2px color-mix(in srgb, var(--tone) 16%, transparent); }
.dt-banner-mark svg { display: block; }
.dt-banner-arrow { display: block; transition: transform 0.2s ease; }
a.dt-banner:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)); }
a.dt-banner:hover .dt-banner-arrow { transform: translateX(3px); }
a.dt-banner:focus-visible { outline: 3px solid #ffc72c; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .dt-banner-mark:not(.has-icon) { animation: dt-banner-blink 2.6s ease-in-out infinite; } }
@keyframes dt-banner-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .dt-banner-arrow { transition: none; } }
/* Closable: the pill and its × in a box (the × is a link back to the page with ?an_close=, index.php sets the cookie) */
.dt-banner-box { position: relative; z-index: 20; box-sizing: border-box; width: fit-content; max-width: calc(100% - 32px); margin: 16px auto 0; }
.dt-banner-box > .dt-banner { max-width: 100%; margin: 0; padding-right: 46px; }
.dt-banner-box > .dt-banner-x { position: absolute; z-index: 21; top: 50%; right: 7px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.dt-banner-box > .dt-banner-x:hover { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.dt-banner-box > .dt-banner-x:focus-visible { outline: 3px solid #ffc72c; outline-offset: 1px; }
.dt-banner-x svg { display: block; }

/* Staging strip (my/inc/env.php, stg_bar_html()): only on the staging copy. Fixed colours in both themes, so it never passes for production. */
.stg-bar { --stg-a: #3446c4; --stg-b: #2b3aa6; position: relative; z-index: 46; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; padding: 7px max(16px, env(safe-area-inset-left, 0px)); background: repeating-linear-gradient(135deg, var(--stg-a) 0 14px, var(--stg-b) 14px 28px); color: #ffffff; font: 600 13px/1.4 "Manrope", system-ui, sans-serif; line-height: 1.4; text-align: center; }
.stg-bar b { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stg-rev { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.stg-bar a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stg-bar a:focus-visible { outline: 3px solid #ffd60a; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) { .stg-more { display: none; } }

/* Admin pass while the landing page is in maintenance (landing/inc/maintenance.php, lp_admin_bar()): Golden stripes */
.lp-admin-bar { --stg-a: #f2b705; --stg-b: #e0a800; color: #0f1530; }
.lp-admin-bar a:focus-visible { outline-color: #0f1530; }
