/* The site header on the older tools that keep their own look (10 Oct 2026): the shared header, first on the page and
   sticky at the top as on the template tools (tools-app/watermark-maker/styles.css); since 11 Oct 2026 without the Tools
   bar above it. Scoped to the page's first <header> (always the site header here), so a tool's own <header> elements are
   not touched. */
body > header:first-of-type { position: sticky !important; top: 0; z-index: 50; } /* !important: a tool stylesheet may fix every <header> (Lorem) */
body > header:first-of-type .site-nav { position: relative; top: auto; }
/* What the header inherits from libs/site-pages.css (body) on the template tools, so it renders the same here */
body > header:first-of-type { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #e5e7eb; }
[data-theme="light"] body > header:first-of-type,
body > header:first-of-type[data-theme="light"] { color: #0a0a14; } /* on the element: UUID's blue and purple themes */

/* The site footer on the older tools (11 Oct 2026), replacing their own footers. The background and line height they
   get from libs/site-pages.css on the template tools (--dark, body); the light theme's background comes from
   libs/shared-nav.css, whose [data-theme="light"] rule outranks this one. */
footer.site-footer { background: #0a0a0f; line-height: 1.6; }
/* What the footer's heading, paragraphs and list items get from the element rules of libs/site-pages.css on the template
   tools (h1-h6, h2, p, li). Zero-weight selectors, so libs/shared-nav.css's class rules win where they set a value, as
   they do there. */
:where(footer.site-footer) h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: #ffffff; line-height: 1.2; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
:where(footer.site-footer) p { color: #e5e7eb; line-height: 1.7; }
:where(footer.site-footer) li { color: #e5e7eb; line-height: 1.6; }
:where([data-theme="light"] footer.site-footer) :is(h2, p, li) { color: #0a0a14; }
@media (max-width: 768px) { :where(footer.site-footer) h2 { font-size: 1.3rem; } }
/* Everything else in the footer takes the footer's font, also where a tool sets a font on every element (ArchivePro's *) */
:where(footer.site-footer) :where(*) { font-family: inherit; }

/* Help guide and FAQ under the title, as on the template tools (.app-doclinks in libs/site-pages.css, which the older
   tools do not load), with the values they compute to on /tools-app/watermark-maker/. Also used for the buttons in a
   tool's own settings window (Epoch's Keyboard shortcuts, Export settings, Import settings). */
.app-doclinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; }
.app-doclinks--top { margin: 0 0 1.5rem; }
.app-doclinks--under-tagline { margin: -1rem 0 0; } /* after a tagline with a 2rem bottom margin (ArchivePro): 1rem, as on Watermark */
.app-doclinks--under-subtext { margin: -1.5rem 0 2.5rem; } /* after a paragraph with a 2.5rem bottom margin (System Intelligence): 1rem, as on Watermark, and the 2.5rem kept before what follows */
.app-doclinks--under-lead { margin: -2rem 0 3rem; } /* after a paragraph with a 3rem bottom margin (Lorem Ipsum): 1rem, as on Watermark, and the 3rem kept before what follows */
.app-doclinks--modal { justify-content: flex-start; margin: 0; }
.app-doclinks--start { justify-content: flex-start; } /* under left-aligned text (UUID's intro card) */
.app-doclinks a, .app-doclinks button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    background: #14141f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.app-doclinks a:hover, .app-doclinks button:hover { border-color: #8B5CF6; color: #a78bfa; text-decoration: none; transform: translateY(-2px); }
/* on the element as well: UUID's blue and purple themes, whose page theme is not "light" (its theme script marks it) */
[data-theme="light"] .app-doclinks a, [data-theme="light"] .app-doclinks button,
.app-doclinks[data-theme="light"] a, .app-doclinks[data-theme="light"] button { background: #ffffff; color: #0a0a14; border-color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] .app-doclinks a:hover, [data-theme="light"] .app-doclinks button:hover,
.app-doclinks[data-theme="light"] a:hover, .app-doclinks[data-theme="light"] button:hover { border-color: #8B5CF6; color: #7c3aed; }

/* Cookie banner (/libs/cookie-consent.js): keep its normal look on tool pages whose stylesheets style every button or
   link. Moved here from tools-app/tools-app-footer.css, which no page loads any more and was removed (11 Oct 2026). */
#zdu-cookie-banner{line-height:1.5}
#zdu-cookie-banner button{margin:0;letter-spacing:normal;text-transform:none;line-height:inherit;transform:none;box-shadow:none}
#zdu-cookie-banner .zdu-cb-accept{background:linear-gradient(135deg,#8B5CF6,#EC4899);transition:transform .2s,box-shadow .2s}
#zdu-cookie-banner .zdu-cb-accept:hover{transform:translateY(-1px);box-shadow:0 6px 24px rgba(139,92,246,.4)}
#zdu-cookie-banner .zdu-cb-reject{background:rgba(255,255,255,.05);transition:background .2s,border-color .2s}
#zdu-cookie-banner .zdu-cb-reject:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}
#zdu-cookie-banner .zdu-cb-more{background:none;border:none;border-radius:0;padding:2px 0;width:auto;min-width:0;min-height:0;height:auto;color:#a78bfa;font-size:12.5px;font-weight:600;text-decoration:underline;text-underline-offset:2px}
#zdu-cookie-banner .zdu-cb-more:hover{background:none;color:#c4b5fd;transform:none;box-shadow:none}
@media(max-width:480px){#zdu-cookie-banner .zdu-cb-more{display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:16px}} /* 44 px target on phones (H-04, 8 Oct 2026) */

/* The banner's Cookie Policy link, against tool stylesheets that style every link
   (System Intelligence: blue, no underline, inline-block, a bar on hover). */
#zdu-cookie-banner .zdu-cb-text a{display:inline;position:static;color:#a78bfa;text-decoration:underline;text-underline-offset:2px;transition:all 0s ease 0s}
#zdu-cookie-banner .zdu-cb-text a:hover{color:#c4b5fd}
#zdu-cookie-banner .zdu-cb-text a::after{content:none}
