/* Article-only styles — extracted from design/mockup-article.html.
   Shared chrome (grain, sidebar scrollbars, page-frame grid, header) lives in site.css. */

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.gold-cta-bg {
  background: linear-gradient(110deg, #b88946 0%, #dcbf7b 25%, #fcefd9 50%, #dcbf7b 75%, #b88946 100%);
  background-size: 220% 100%;
  animation: gold-shimmer 7s ease-in-out infinite;
}

.card-edge {
  box-shadow:
    inset 0 1px 0 0 rgba(245, 227, 191, 0.07),
    0 1px 2px 0 rgba(0, 0, 0, 0.4),
    0 8px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-edge-hover:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(245, 227, 191, 0.14),
    0 1px 2px 0 rgba(0, 0, 0, 0.4),
    0 22px 55px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(207, 164, 91, 0.18);
}

.dropcap::first-letter {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  float: left;
  font-size: 5rem;
  line-height: 0.85;
  margin: 0.4rem 0.7rem 0 0;
  color: #ead49f;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(207, 164, 91, 0.4);
}

.damascene-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.18' d='M20 4 Q28 12 20 20 Q12 28 20 36 Q28 28 20 20 Q12 12 20 4 Z M4 20 Q12 12 20 20 Q28 28 36 20 Q28 12 20 20 Q12 28 4 20 Z'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.article-prose p {
  font-size: 1.0625rem;
  line-height: 1.22;
  color: #CBD3DA;
  margin-bottom: 1.5rem;
}
.article-prose :is(h2, h3, h4) {
  font-family: Cinzel, serif;
  font-weight: 700;
  color: #F3F5F7;
  letter-spacing: 0.01em;
  line-height: 1.15;
  scroll-margin-top: 6rem;
}
.article-prose h2 {
  font-size: 1.75rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(207, 164, 91, 0.25);
}
.article-prose h3 {
  font-size: 1.3125rem;
  color: #EAD49F;
  margin: 1.5rem 0 0.6rem;
}
.article-prose h4 {
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #DCBF7B;
  margin: 1.25rem 0 0.4rem;
}
.article-prose p > strong {
  color: #F3F5F7;
  font-weight: 600;
}
.article-prose p > em {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.125em;
  color: #EAD49F;
}
.article-prose a {
  color: #DCBF7B;
  font-weight: 500;
  border-bottom: 1px solid rgba(207, 164, 91, 0.35);
  transition: all 0.2s ease;
}
.article-prose a:hover {
  color: #F5E3BF;
  border-bottom-color: rgba(245, 227, 191, 0.8);
  background: rgba(207, 164, 91, 0.06);
}

.article-prose :is(p, li, td, th) img {
  display: inline-block;
  vertical-align: text-bottom;
  image-rendering: pixelated;
}


.rivet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ead49f 0%, #b88946 50%, #5a4020 100%);
  box-shadow:
    0 0 0 1px rgba(61, 43, 22, 0.6),
    0 1px 2px rgba(0,0,0,0.5);
}

.footnote-ref {
  font-size: 0.75rem;
  font-weight: 700;
  color: #DCBF7B;
  text-decoration: none;
  padding: 0 2px;
  vertical-align: super;
  line-height: 0;
}
.footnote-ref:hover { color: #F5E3BF; }

/* Tighten the top stack: the wider chrome's py-10 + breadcrumb + header bar
   was running 60-ish px of dead air above the title — halve it. */
body.article-page #main-outlet-home {
  padding-top: 0.5rem;
}

body.article-page #article-header {
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  body.article-page #article-header {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  body.article-page #main-outlet-home {
    padding-top: 1rem;
  }
  body.article-page nav[aria-label="Breadcrumb"] {
    margin-bottom: 0.75rem;
  }
}

/* Rarity tints for the drop-table buckets */
.cao-drops__bucket--common .cao-drops__table-wrap {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(27, 33, 39, 0.5));
}
.cao-drops__bucket--common .cao-drops__th {
  color: #6ee7b7;
  border-bottom-color: rgba(16, 185, 129, 0.3);
}
.cao-drops__bucket--common .cao-drops__bucket-title { color: #6ee7b7; }

.cao-drops__bucket--uncommon .cao-drops__table-wrap {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(27, 33, 39, 0.5));
}
.cao-drops__bucket--uncommon .cao-drops__th {
  color: #93c5fd;
  border-bottom-color: rgba(59, 130, 246, 0.3);
}
.cao-drops__bucket--uncommon .cao-drops__bucket-title { color: #93c5fd; }

.cao-drops__bucket--rare .cao-drops__table-wrap {
  border-color: rgba(207, 164, 91, 0.45);
  background: linear-gradient(180deg, rgba(207, 164, 91, 0.07), rgba(27, 33, 39, 0.5));
}
.cao-drops__bucket--rare .cao-drops__th {
  color: #EAD49F;
  border-bottom-color: rgba(207, 164, 91, 0.35);
}
.cao-drops__bucket--rare .cao-drops__bucket-title { color: #EAD49F; }

.cao-drops__bucket--unique .cao-drops__table-wrap {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.07), rgba(27, 33, 39, 0.5));
}
.cao-drops__bucket--unique .cao-drops__th {
  color: #fca5a5;
  border-bottom-color: rgba(239, 68, 68, 0.35);
}
.cao-drops__bucket--unique .cao-drops__bucket-title { color: #fca5a5; }

/* Article tables — wrapped in .cao-table-wrap by markdown-it for mobile pan */
.cao-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border: 1px solid rgba(207, 164, 91, 0.18);
  border-radius: 0.625rem;
  background: linear-gradient(180deg, rgba(27, 33, 39, 0.6), rgba(17, 20, 25, 0.6));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}

.article-prose table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-prose thead th {
  text-align: left;
  font-family: Cinzel, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  line-height: 1.25;
  color: #EAD49F;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(207, 164, 91, 0.35);
  background: rgba(207, 164, 91, 0.06);
  white-space: nowrap;
}

.article-prose tbody td {
  padding: 0.4rem 0.85rem;
  line-height: 1.25;
  border-bottom: 1px solid rgba(67, 82, 93, 0.4);
  color: #CBD3DA;
  vertical-align: middle;
}
.article-prose tbody tr:last-child td {
  border-bottom: none;
}

.article-prose tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.article-prose tbody tr:hover {
  background: rgba(207, 164, 91, 0.05);
}

.article-prose :is(td, th).cao-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article-prose :is(td, th) > p,
.article-prose :is(td, th) > center > p {
  margin: 0;
}

/* Sticky first column when the table is wider than its wrap and horizontally panned. */
@media (max-width: 768px) {
  .cao-table-wrap thead th:first-child,
  .cao-table-wrap tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(27, 33, 39, 0.98) 85%, rgba(27, 33, 39, 0.85));
    box-shadow: 1px 0 0 rgba(207, 164, 91, 0.18);
  }
  .cao-table-wrap thead th:first-child {
    background: linear-gradient(90deg, rgba(38, 31, 18, 0.98) 85%, rgba(38, 31, 18, 0.85));
  }
  .cao-table-wrap tbody tr:nth-child(even) td:first-child {
    background: linear-gradient(90deg, rgba(33, 39, 46, 0.98) 85%, rgba(33, 39, 46, 0.85));
  }
}

/* Table-of-contents box — <nav class="cao-toc"> with JS-injected <ol> */
.cao-toc {
  display: block;
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(207, 164, 91, 0.25);
  border-radius: 0.625rem;
  background: rgba(27, 33, 39, 0.6);
}
.cao-toc::before {
  content: "Contents";
  display: block;
  font-family: Cinzel, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #EAD49F;
}
.cao-toc ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
  column-count: 2;
  column-gap: 1.5rem;
}
@media (max-width: 640px) {
  .cao-toc ol { column-count: 1; }
}
.cao-toc a {
  color: #DCBF7B;
}

/* Editorial vocabulary — inline sprite, generic badge, callout containers. */

.cao-sprite {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  image-rendering: pixelated;
}

.cao-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  font-family: Cinzel, serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #EAD49F;
  background: rgba(207, 164, 91, 0.1);
  border: 1px solid rgba(207, 164, 91, 0.35);
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}
a.cao-badge {
  border-bottom: 1px solid rgba(207, 164, 91, 0.35);
  text-decoration: none;
  transition: all 0.2s ease;
}
a.cao-badge:hover {
  color: #F5E3BF;
  background: rgba(207, 164, 91, 0.18);
  border-color: rgba(245, 227, 191, 0.55);
}

.cao-callout {
  display: block;
  margin: 1.25rem 0;
  border-left: 3px solid var(--cao-callout-accent, #DCBF7B);
  border-radius: 0.5rem;
  background: var(--cao-callout-bg, rgba(207, 164, 91, 0.06));
  overflow: hidden;
}
.cao-callout__title {
  padding: 0.5rem 0.9rem 0.3rem;
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cao-callout-accent, #DCBF7B);
}
.cao-callout__body {
  padding: 0 0.9rem 0.6rem;
  color: #CBD3DA;
}
.cao-callout__body > :first-child { margin-top: 0; }
.cao-callout__body > :last-child  { margin-bottom: 0; }
.cao-callout__body p { margin-bottom: 0.6rem; }

.cao-callout--warning {
  --cao-callout-accent: #fca5a5;
  --cao-callout-bg: rgba(239, 68, 68, 0.08);
}
.cao-callout--note {
  --cao-callout-accent: #93c5fd;
  --cao-callout-bg: rgba(59, 130, 246, 0.08);
}
.cao-callout--tip {
  --cao-callout-accent: #6ee7b7;
  --cao-callout-bg: rgba(16, 185, 129, 0.08);
}
.cao-callout--spoiler {
  --cao-callout-accent: #c4b5fd;
  --cao-callout-bg: rgba(139, 92, 246, 0.08);
}
.cao-callout--spoiler .cao-callout__body {
  filter: blur(4px);
  transition: filter 0.2s ease;
}
.cao-callout--spoiler:hover .cao-callout__body,
.cao-callout--spoiler:focus-within .cao-callout__body {
  filter: none;
}

.article-prose img.thumb {
  display: inline-block;
  border-radius: 0.375rem;
  border: 1px solid rgba(207, 164, 91, 0.25);
  background: rgba(27, 33, 39, 0.6);
  padding: 2px;
  image-rendering: pixelated;
}
