/* EVERPLAY Art Deco for the DUD3 manual's sibling pages: Web Search, Product & Download, Privacy, EULA, Acceptable Use.
   Shelley 2026-11-13: "go much harder into the Art Deco style like we did for the manual ... but people can turn
   that off. But I really want to use the Midjourney stuff."
   - Everything here is gated on :root:not([data-deco="off"]). assets/look.js sets data-deco from the Appearance
     panel (Aa), default on. With it off, the pages look exactly as they did before this file existed.
   - The Midjourney art (apps/dud3-p0/art/) only ever sits in its own bands (.dk-art), never behind reading text.
   - Text stays real HTML; nothing here adds words through CSS content.
   - Class prefix dk- so nothing collides with the site-wide classes (.steps, .pill, .deco). */

/* ---------- off: the art bands disappear ---------- */
:root[data-deco="off"] .dk-art { display: none !important; }
@media print { .dk-art { display: none !important; } }

:root:not([data-deco="off"]) .manual {
  --dk-gold: #D3AD57; --dk-gold-hi: #F1D691; --dk-gold-lo: #8a6420; --dk-line: rgba(211, 173, 87, .38);
  --dk-panel: rgba(13, 11, 8, .95); --dk-ink: #f3ead6; --dk-muted: rgba(243, 234, 214, .74);
  --muted: var(--dk-muted); --dim: rgba(243, 234, 214, .64); --line: rgba(211, 173, 87, .2);
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(211, 173, 87, .16), transparent 60%),
    radial-gradient(600px 400px at 100% 40%, rgba(211, 173, 87, .06), transparent 60%),
    #0a0806;
}
/* the old scanlines give way to a faint pinstripe, the deco wallpaper */
:root:not([data-deco="off"]) .manual::before {
  background: repeating-linear-gradient(90deg, rgba(211, 173, 87, .035) 0 1px, transparent 1px 22px);
  opacity: 1;
}

/* ---------- the art bands ---------- */
/* a stepped gold frame around a fan of Midjourney endpaper, with DUD3 in an arched window and a sunburst behind */
.dk-hero {
  position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  margin: 0 0 1.4rem; height: clamp(250px, 52vw, 340px); border: 3px double var(--dk-gold, #D3AD57); border-radius: 4px;
  background: #070605 url("../apps/dud3-p0/art/endpaper.webp") center / 210px auto repeat;
  box-shadow: 0 18px 50px -24px rgba(211, 173, 87, .45);
}
.dk-hero.dk-slim { height: clamp(200px, 40vw, 250px); }
/* darken the fans toward the middle so DUD3 reads, and fade the sunburst up from the floor */
.dk-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 62%, rgba(7, 6, 5, .96) 38%, rgba(7, 6, 5, .55) 72%, rgba(7, 6, 5, .25)),
    linear-gradient(to top, rgba(7, 6, 5, .85), transparent 40%);
}
.dk-rays {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(227, 182, 92, .38) 0deg 1deg, transparent 1deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side at 50% 100%, #000 30%, transparent 100%);
          mask: radial-gradient(closest-side at 50% 100%, #000 30%, transparent 100%);
}
/* the arched window */
.dk-arch {
  position: relative; z-index: 1; width: min(62%, 270px); aspect-ratio: 720 / 760; margin-bottom: -2px;
  border: 2px solid var(--dk-gold, #D3AD57); border-bottom: 0; border-radius: 999px 999px 0 0; overflow: hidden;
  background: #000; box-shadow: 0 0 0 5px #070605, 0 0 0 6px rgba(211, 173, 87, .55), 0 0 60px rgba(233, 180, 76, .35);
}
.dk-slim .dk-arch { width: min(50%, 200px); }
.dk-arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.dk-arch.dk-cover img { object-position: 50% 18%; }
/* stepped corner ornaments, the same drawing as the site's .deco frame */
.dk-hero::after, :root:not([data-deco="off"]) .manual .sec::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2026%2026'%3E%3Cg%20transform='rotate(0%2013%2013)'%20fill='none'%20stroke='%23D3AD57'%20stroke-width='1.3'%3E%3Cpath%20d='M1%2025V1h24'/%3E%3Cpath%20d='M5%2025V5h20'/%3E%3Cpath%20d='M9%209l4%204M9%2025V9h16'%20stroke-width='.9'/%3E%3C/g%3E%3Cpath%20transform='rotate(0%2013%2013)'%20d='M13%209.5l3.5%203.5-3.5%203.5-3.5-3.5z'%20fill='%23D3AD57'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2026%2026'%3E%3Cg%20transform='rotate(90%2013%2013)'%20fill='none'%20stroke='%23D3AD57'%20stroke-width='1.3'%3E%3Cpath%20d='M1%2025V1h24'/%3E%3Cpath%20d='M5%2025V5h20'/%3E%3Cpath%20d='M9%209l4%204M9%2025V9h16'%20stroke-width='.9'/%3E%3C/g%3E%3Cpath%20transform='rotate(90%2013%2013)'%20d='M13%209.5l3.5%203.5-3.5%203.5-3.5-3.5z'%20fill='%23D3AD57'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2026%2026'%3E%3Cg%20transform='rotate(270%2013%2013)'%20fill='none'%20stroke='%23D3AD57'%20stroke-width='1.3'%3E%3Cpath%20d='M1%2025V1h24'/%3E%3Cpath%20d='M5%2025V5h20'/%3E%3Cpath%20d='M9%209l4%204M9%2025V9h16'%20stroke-width='.9'/%3E%3C/g%3E%3Cpath%20transform='rotate(270%2013%2013)'%20d='M13%209.5l3.5%203.5-3.5%203.5-3.5-3.5z'%20fill='%23D3AD57'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2026%2026'%3E%3Cg%20transform='rotate(180%2013%2013)'%20fill='none'%20stroke='%23D3AD57'%20stroke-width='1.3'%3E%3Cpath%20d='M1%2025V1h24'/%3E%3Cpath%20d='M5%2025V5h20'/%3E%3Cpath%20d='M9%209l4%204M9%2025V9h16'%20stroke-width='.9'/%3E%3C/g%3E%3Cpath%20transform='rotate(180%2013%2013)'%20d='M13%209.5l3.5%203.5-3.5%203.5-3.5-3.5z'%20fill='%23D3AD57'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 22px 22px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}
/* a gold rule with a stepped diamond, between blocks */
.dk-rule {
  display: block; height: 16px; margin: 1.6rem auto; max-width: 520px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cg fill='none' stroke='%23D3AD57' stroke-width='1.2'%3E%3Cpath d='M32 1l7 7-7 7-7-7z'/%3E%3Cpath d='M18 8l4-4 4 4-4 4zM38 8l4-4 4 4-4 4z'/%3E%3C/g%3E%3Cpath d='M32 5l3 3-3 3-3-3z' fill='%23D3AD57'/%3E%3C/svg%3E") center / 64px 16px no-repeat,
    linear-gradient(90deg, transparent, var(--dk-gold, #D3AD57) 20%, var(--dk-gold, #D3AD57) 40%, transparent 40%, transparent 60%, var(--dk-gold, #D3AD57) 60%, var(--dk-gold, #D3AD57) 80%, transparent) 0 50% / 100% 1px no-repeat;
}
/* a fan band with no figure: closes a page */
.dk-fans {
  display: block; height: 90px; margin: 1.6rem 0 1rem; border: 3px double var(--dk-gold, #D3AD57); border-radius: 4px;
  background: linear-gradient(rgba(7, 6, 5, .35), rgba(7, 6, 5, .35)), #070605 url("../apps/dud3-p0/art/endpaper.webp") center / 180px auto repeat;
}
/* a plate beside text inside a card (product page) */
.dk-plate {
  float: right; width: min(42%, 230px); margin: .2rem 0 .8rem 1.1rem; padding: 5px; shape-outside: margin-box;
  border: 3px double var(--dk-gold, #D3AD57); border-radius: 4px; background: #050403;
}
.dk-plate img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .dk-plate { float: none; width: min(78%, 260px); margin: .4rem auto 1rem; } }
.dk-clear { clear: both; }

/* ---------- the cards ---------- */
:root:not([data-deco="off"]) .manual .sec {
  position: relative; background: var(--dk-panel); border: 1px solid var(--dk-line); border-radius: 4px;
  box-shadow: inset 0 0 0 4px var(--dk-panel), inset 0 0 0 5px rgba(211, 173, 87, .22), 0 14px 40px -26px rgba(211, 173, 87, .5);
  padding: 1.6rem 1.5rem 1.4rem;
}
:root:not([data-deco="off"]) .manual .sec-head { margin-bottom: 1rem; }
:root:not([data-deco="off"]) .manual .sec-head::after {
  content: ""; flex: 0 0 100%; height: 10px; margin-top: .35rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M5 1l4 4-4 4-4-4z' fill='%23D3AD57'/%3E%3Cpath d='M15 2l3 3-3 3-3-3z' fill='none' stroke='%23D3AD57'/%3E%3C/svg%3E") 0 50% / 30px 10px no-repeat,
    linear-gradient(90deg, var(--dk-gold), rgba(211, 173, 87, 0)) 34px 50% / calc(100% - 34px) 1px no-repeat;
}
:root:not([data-deco="off"]) .manual .sec-head .num {
  color: #1a1206; background: linear-gradient(180deg, var(--dk-gold-hi), var(--dk-gold) 60%, #b98a33);
  padding: .18rem .45rem; border-radius: 2px; letter-spacing: .14em; font-weight: 700;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
  padding-inline: .7rem;
}
:root:not([data-deco="off"]) .manual .sec-head h2,
:root:not([data-deco="off"]) .manual .legal h2 {
  font-family: var(--font-display, var(--font-meta, inherit)); text-transform: uppercase; letter-spacing: .16em;
  font-size: 1.12rem; color: var(--dk-gold-hi);
}
:root:not([data-deco="off"]) .manual .sec-head .sub { color: rgba(211, 173, 87, .8); }

/* foil type for the page titles, like the book's chapter titles */
:root:not([data-deco="off"]) .manual h1 {
  font-family: var(--font-display, var(--font-meta, inherit)); letter-spacing: .01em; color: var(--dk-ink);
}
:root:not([data-deco="off"]) .manual h1 .accent,
:root:not([data-deco="off"]) .manual .legal > h1 {
  background: linear-gradient(100deg, #b8892f 0%, #E9C46A 30%, #FFF0C2 48%, #E9C46A 64%, #b8892f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dk-sheen 7s ease-in-out infinite;
}
@keyframes dk-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
:root:not([data-deco="off"]) .manual .legal > h1 { text-align: center; text-transform: uppercase; letter-spacing: .08em; }
:root:not([data-deco="off"]) .manual .legal > h1 + .meta { text-align: center; }
:root:not([data-deco="off"]) .manual .legal h2 {
  display: flex; align-items: center; gap: .7rem; margin-top: 2rem; font-size: 1rem;
}
:root:not([data-deco="off"]) .manual .legal h2::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: var(--dk-gold); transform: rotate(45deg);
}
:root:not([data-deco="off"]) .manual .legal h2::after {
  content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--dk-gold), transparent);
}
:root:not([data-deco="off"]) .manual .legal h3 { color: var(--dk-gold-hi); }

/* links, buttons, pills and callouts in gold */
:root:not([data-deco="off"]) .manual a:not(.dl-btn):not(.btn.primary) { color: var(--dk-gold-hi); }
:root:not([data-deco="off"]) .manual a:not(.dl-btn):not(.btn.primary):hover { color: #fff3cf; }
:root:not([data-deco="off"]) .manual .btn, :root:not([data-deco="off"]) .manual a.btn {
  border-radius: 3px; border-color: rgba(211, 173, 87, .55); color: var(--dk-gold-hi); letter-spacing: .03em;
}
:root:not([data-deco="off"]) .manual .btn.primary {
  color: #1a1206; background: linear-gradient(180deg, #ffe7a8, #e9b44c 55%, #c98a2a); border-color: #ffe7a8;
}
:root:not([data-deco="off"]) .manual .pill { border-color: rgba(211, 173, 87, .45); border-radius: 3px; }
:root:not([data-deco="off"]) .manual .pill .dot { background: var(--dk-gold); box-shadow: none; }
:root:not([data-deco="off"]) .manual .callout,
:root:not([data-deco="off"]) .manual .highlight,
:root:not([data-deco="off"]) .manual .address {
  border-radius: 3px; border-color: rgba(211, 173, 87, .3); border-left: 3px double var(--dk-gold);
  background: rgba(211, 173, 87, .06);
}
:root:not([data-deco="off"]) .manual .subnav a { border-radius: 3px; border-color: rgba(211, 173, 87, .4); }
:root:not([data-deco="off"]) .manual .subnav a[aria-current="page"] {
  color: #1a1206; background: linear-gradient(180deg, #ffe7a8, #e9b44c 60%, #c98a2a); border-color: #ffe7a8;
}
:root:not([data-deco="off"]) .manual ol.steps li::marker,
:root:not([data-deco="off"]) .manual .accent { color: var(--dk-gold); }
:root:not([data-deco="off"]) .manual .mark span { color: var(--dk-gold); }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-deco="off"]) .manual h1 .accent, :root:not([data-deco="off"]) .manual .legal > h1 { animation: none; }
}
@media (forced-colors: active) {
  :root:not([data-deco="off"]) .manual h1 .accent, :root:not([data-deco="off"]) .manual .legal > h1 { color: CanvasText; background: none; }
  .dk-hero, .dk-fans, .dk-rule { forced-color-adjust: none; }
}
@media (max-width: 560px) {
  :root:not([data-deco="off"]) .manual .sec { padding: 1.35rem 1.1rem 1.2rem; }
  .dk-hero::after, :root:not([data-deco="off"]) .manual .sec::after { background-size: 16px 16px; inset: 5px; }
}
