/* NVH-028 — Approved Futhark stone styling, 2026-10-30.
   Decorative only: the original HTML runes, transliteration, sources and links remain live.
   Approved design references: Elder and Younger Futhark stone panels in Library /16 Futhark Charts.
*/
#rune-rows .rune-era-grid > article:nth-child(-n+2) {
  box-sizing: border-box;
  min-width: 0;
  background: #e9ddc9;
  border: 9px solid #797364;
  border-radius: 15px;
  box-shadow: inset 0 0 0 3px #b0a490,
              inset 0 0 22px rgba(57, 49, 36, .12),
              0 5px 13px rgba(41, 35, 28, .15);
  color: #25241f;
}
#rune-rows .rune-era-grid > article:nth-child(-n+2) > h3,
#rune-rows .rune-era-grid > article:nth-child(-n+2) > p:not(.rune-source) {
  color: #25241f;
}
#rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-alphabet {
  box-sizing: border-box;
  min-width: 0;
  padding: 9px;
  border: 2px solid #80786a;
  border-radius: 7px;
  background-color: #817968;
  background-image: linear-gradient(rgba(80, 73, 61, .08),rgba(80, 73, 61, .08)),
                    url('/assets/futhark-stone-texture.webp?v=nvh028-1');
  background-repeat: repeat;
  background-size: auto, 128px 128px;
  box-shadow: inset 0 2px 6px rgba(18, 16, 11, .3);
}
#rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-alphabet > div {
  min-width: 0;
  background: #f4edde;
  border: 1px solid #d6c8b0;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(33, 29, 24, .18);
  color: #151b19;
}
#rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-source {
  background: #e9ddc9;
  border-radius: 4px;
  padding: 6px 2px;
}
@media (max-width: 650px) {
  #rune-rows .rune-era-grid > article:nth-child(-n+2) { border-width: 5px; border-radius: 10px; }
  #rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-alphabet { padding: 5px; }
}
@media print {
  #rune-rows .rune-era-grid > article:nth-child(-n+2),
  #rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-alphabet { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* All three approved panels share the same neutral, approved stone texture.
   The images containing generated glyphs are never rendered on the page. */
#rune-rows .rune-era-grid > article:nth-child(-n+2),
#hidden-runes .rune-cipher-groups,
#hidden-runes .rune-cipher-demo {
  --stone-texture: url('/assets/futhark-stone-texture.webp?v=nvh028-2');
  box-sizing: border-box;
  min-width: 0;
  border: 10px solid transparent;
  border-radius: 15px;
  background: linear-gradient(rgba(240,229,207,.94),rgba(234,221,195,.94)) padding-box,
              var(--stone-texture) border-box;
  background-size: auto, 128px 128px;
  box-shadow: inset 0 0 0 2px #81745d,inset 0 0 18px #80705744,0 4px 12px #29231c24;
  color: #25241f;
}
#rune-rows .rune-era-grid > article:nth-child(-n+2) .rune-alphabet {
  background-image: var(--stone-texture);
  background-size: 128px 128px;
}
#hidden-runes .rune-cipher-groups { padding: 16px 24px; }
#hidden-runes .rune-cipher-groups > p {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  column-gap: 16px;
  align-items: center;
  margin: 14px 0;
}
#hidden-runes .rune-cipher-groups strong { grid-row: span 2; }
#hidden-runes .cipher-rune-row {
  font-family: SiteRunes,serif;
  font-size: clamp(25px,3.3vw,38px);
  line-height: 1.5;
  color: #a51d13;
}
#hidden-runes .cipher-values { grid-column: 2; font-size: 16px; letter-spacing: .07em; }
#hidden-runes .rune-cipher-demo { padding: 18px 24px; }
#hidden-runes .rune-cipher-demo svg { max-width: 720px; margin: auto; overflow: visible; }
#hidden-runes .rune-cipher-demo svg > g[stroke] { color: #a51d13; }
#hidden-runes .rune-cipher-demo svg > g[fill="currentColor"] { color: #25241f; }
#hidden-runes .rune-cipher-demo figcaption { border-top: 1px solid #b5a486; padding-top: 12px; color: #25241f; }
@media (max-width: 650px) {
  #rune-rows .rune-era-grid > article:nth-child(-n+2),
  #hidden-runes .rune-cipher-groups,
  #hidden-runes .rune-cipher-demo { border-width: 6px; border-radius: 10px; }
  #hidden-runes .rune-cipher-groups { padding: 10px 12px; }
  #hidden-runes .rune-cipher-groups > p { grid-template-columns: 78px minmax(0,1fr); column-gap: 8px; }
  #hidden-runes .rune-cipher-groups strong { font-size: 14px; }
  #hidden-runes .cipher-rune-row { font-size: 26px; }
  #hidden-runes .cipher-values { font-size: 13px; letter-spacing: 0; }
  #hidden-runes .rune-cipher-demo { padding: 12px 8px; }
}
@media (forced-colors: active) {
  #hidden-runes .cipher-rune-row,
  #hidden-runes .rune-cipher-demo svg > g[stroke] { color: CanvasText; }
}
@media print {
  #hidden-runes .rune-cipher-groups,
  #hidden-runes .rune-cipher-demo { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
@media (max-width: 360px) {
  #hidden-runes .rune-cipher-groups > p { grid-template-columns: minmax(0,1fr); }
  #hidden-runes .rune-cipher-groups strong { grid-row: auto; }
  #hidden-runes .cipher-values { grid-column: 1; }
}
