/* action-ad.css — 4 variants of the rotating "action.org" ad */
/* Each variant is non-overlapping with content (no fixed-position popups). */

body { position: relative; }

.action-ad {
  color: var(--darkbrown, #190503);
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  z-index: 2;
}
.action-ad a {
  color: inherit;
  text-decoration: none;
}
.action-ad a:hover {
  text-decoration: underline;
}

/* ─── 1. STICKY NOTE ───────────────────────────── */
.action-ad-sticky {
  position: absolute;
  top: 1.2em;
  right: 0.8em;
  width: 11em;
  padding: 0.9em 0.85em 0.75em;
  z-index: 50;
  background: #fff7b8;
  background-image: linear-gradient(180deg, #fff7b8 0%, #f5ec99 100%);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.16),
              inset 0 -10px 14px -10px rgba(0, 0, 0, 0.05);
  transform: rotate(-2.5deg);
  font-size: 0.82em;
  line-height: 1.35;
  pointer-events: auto;
}
.action-ad-sticky::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 12px;
  background: rgba(180, 140, 90, 0.4);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.action-ad-sticky-tag {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.66em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.35em;
  padding-right: 1.2em;
}
.action-ad-sticky-title {
  font-style: italic;
}
.action-ad-sticky-close {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 3;
}
.action-ad-sticky-close:hover {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.08);
}
.action-ad-sticky-close:focus {
  outline: 1px dotted rgba(0, 0, 0, 0.5);
  outline-offset: 1px;
}

/* ─── 2. CLASSIFIED STRIP ──────────────────────── */
.action-ad-classified {
  margin: 2.5em auto 1.5em;
  max-width: 38em;
  padding: 1em 1.2em 0.8em;
  border-top: 2px double var(--darkbrown, #190503);
  border-bottom: 2px double var(--darkbrown, #190503);
  text-align: center;
  position: relative;
  background: var(--white, #f0f0f0);
}
.action-ad-classified-label {
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white, #f0f0f0);
  padding: 0 0.7em;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.6em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}
.action-ad-classified-item {
  font-size: 0.88em;
  padding: 0.22em 0;
  line-height: 1.45;
}
.action-ad-classified-cat {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.7em;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-right: 0.45em;
}
.action-ad-classified-item a {
  font-style: italic;
}
.action-ad-classified-foot {
  margin-top: 0.5em;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.6em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.32;
}

/* ─── 3. POSTER ────────────────────────────────── */
.action-ad-poster {
  margin: 3em auto 1.5em;
  max-width: 22em;
  padding: 0 1em;
  display: flex;
  justify-content: center;
}
.action-ad-poster-frame {
  border: 1px solid var(--darkbrown, #190503);
  padding: 4px;
  width: 100%;
}
.action-ad-poster-inner {
  border: 1px solid var(--darkbrown, #190503);
  padding: 1.5em 1.3em 1.1em;
  text-align: center;
  background: rgba(255, 250, 235, 0.5);
}
.action-ad-poster-eyebrow {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.65em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.6em;
}
.action-ad-poster-title {
  font-style: italic;
  font-weight: 600;
  font-size: 1.08em;
  line-height: 1.32;
  margin: 0.2em 0 0.7em;
}
.action-ad-poster-foot {
  font-size: 0.75em;
  opacity: 0.4;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
}

/* ─── 4. MARGINALIA ────────────────────────────── */
.action-ad-marginalia {
  position: absolute;
  top: 8em;
  right: 1em;
  width: 13em;
  padding: 0.95em 1em 0.85em;
  background: rgba(247, 240, 220, 0.92);
  border: 1px dashed rgba(25, 5, 3, 0.4);
  font-size: 0.82em;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.action-ad-marg-stamp {
  display: inline-block;
  border: 1.5px solid rgba(140, 30, 20, 0.6);
  color: rgba(140, 30, 20, 0.78);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.65em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.16em 0.55em;
  transform: rotate(-2deg);
  margin-bottom: 0.55em;
}
.action-ad-marg-title {
  font-family: "Courier New", "Courier", monospace;
  font-style: italic;
  font-size: 0.95em;
}
.action-ad-marg-rule {
  border-bottom: 1px dotted rgba(25, 5, 3, 0.4);
  margin: 0.55em 0 0.4em;
}
.action-ad-marg-foot {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.72em;
  opacity: 0.45;
  text-align: right;
  font-style: italic;
}

/* ─── Responsive ─── */
/* Sticky note STAYS pinned to the top-right on every viewport — just scales down. */
@media (max-width: 1100px) {
  .action-ad-sticky {
    width: 9.5em;
    font-size: 0.76em;
    top: 0.9em;
    right: 0.55em;
    transform: rotate(-3deg);
  }
  .action-ad-marginalia {
    position: static;
    display: block;
    width: auto;
    max-width: 18em;
    margin: 2em auto;
    right: auto;
    top: auto;
  }
}
@media (max-width: 600px) {
  .action-ad-sticky {
    width: 8em;
    font-size: 0.7em;
    top: 0.55em;
    right: 0.4em;
    padding: 0.75em 0.65em 0.6em;
    transform: rotate(-2.5deg);
  }
  .action-ad-sticky::before {
    width: 24px;
    height: 10px;
    top: -5px;
  }
}

/* ─── Anchored: positioned relative to detected page anchor ─── */
.action-ad-sticky.action-ad-sticky-anchored {
  top: 0.6em;
  right: 0.6em;
  z-index: 50;
}
@media (max-width: 1100px) {
  .action-ad-sticky.action-ad-sticky-anchored {
    top: 0.5em;
    right: 0.4em;
  }
}
@media (max-width: 600px) {
  .action-ad-sticky.action-ad-sticky-anchored {
    top: 0.4em;
    right: 0.35em;
  }
}

/* Compact mode for short banner images (pic-log, music, etc.). Reduces font
   and padding so the sticky fits within a short banner without overflowing
   into the navigation row below. */
.action-ad-sticky.action-ad-sticky-compact {
  width: 8.4em;
  padding: 0.5em 0.55em 0.45em;
  font-size: 0.62em;
  line-height: 1.3;
}
.action-ad-sticky.action-ad-sticky-compact .action-ad-sticky-tag {
  font-size: 0.62em;
  margin-bottom: 0.18em;
}
.action-ad-sticky.action-ad-sticky-compact::before {
  width: 24px;
  height: 9px;
  top: -5px;
}
.action-ad-sticky.action-ad-sticky-compact .action-ad-sticky-close {
  top: 1px;
  right: 2px;
  width: 14px;
  height: 14px;
  font-size: 13px;
  line-height: 12px;
}

@media print {
  .action-ad { display: none; }
}

/* ─── Inline ornament — tiny dithered marginal mark integrated with
   existing text elements (next to a section title, beside a nav link,
   inside a heading). Small enough to read as a typographic flourish,
   not a floating sticker. */
.inline-ornament {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: -0.18em;
  margin: 0 0.18em;
  opacity: 0.78;
  line-height: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-decoration: none;
}
.inline-ornament img {
  display: block;
  height: 100%;
  width: auto;
}
.inline-ornament:hover {
  opacity: 1;
  transform: scale(1.18) rotate(-4deg);
}
.inline-ornament-lg { height: 1.6em; vertical-align: -0.32em; }
.inline-ornament-sm { height: 0.9em; vertical-align: -0.12em; }
@media print {
  .inline-ornament { display: none; }
}

/* Drop-cap ornament for opening paragraphs — sits before the first
   letter, like an illuminated initial. Kept small so it reads as a
   typographic flourish, not a hero image. */
.dropcap-ornament {
  float: left;
  height: 1.6em;
  width: auto;
  margin: 0.18em 0.4em -0.1em 0;
  shape-outside: margin-box;
  opacity: 0.85;
}
