/* ================================================================
   STONK LADY — stylesheet
   Structural mirror of miladymaker.net/index.css, re-keyed to the
   Robinhood palette. Same rhythm: 43em column, boxes with a title
   bar, 1px frames on images, default <hr> between entries, no
   animation, lots of air.
   ================================================================ */

:root {
  --green: #00c805;        /* Robinhood green — welcome bar, hovers, accents    */
  --green-deep: #007a03;   /* deeper shade — links, borders, headings on tint   */
  --lime: #ccff00;         /* electric lime — banner only                       */
  --lime-tint: #eeffbf;    /* section title bars (mirrors Milady's #b9d9b7)     */
  --ink: #111111;
  --paper: #ffffff;
  --cream: #fdfff2;        /* about / colophon boxes (mirrors #ffffee)          */
  --frame: #777777;        /* image borders, as on the original                 */
}

body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo,
    "MS Pゴシック", "MS PGothic", Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ink);
  max-width: 43em;
  margin: auto;
  background-color: #ffffff;
  background-image: linear-gradient(#e6ffcc, #f7ffec, #f7ffec, #ffffff, #ffffff);
  background-attachment: fixed;
}

/* ---------- basics (same rules as the original, new colours) ---------- */
img {
  display: block;
  margin: auto;
  max-width: 20em;
  height: auto;
  border: 1px solid var(--frame);
}
img:hover { border: 1px solid var(--green); }

a { color: var(--green-deep); text-decoration: underline; }
a:hover { color: var(--green); text-decoration: underline; }

p { margin: 0.5em; margin-left: 1em; color: var(--ink); }

h2 {
  margin-top: 0.001em;
  margin-bottom: 0.001em;
  margin-left: 0.25em;
  font-size: 1.1em;
}
h3 {
  margin-left: 0.3em;
  font-size: 1em;
  margin-top: 0.3em;
  margin-bottom: 0.1em;
  text-decoration: underline;
  text-align: center;
  font-weight: bold;
}
li { margin-left: 0.3em; }
ul { list-style-type: circle; }

hr { margin: 0.5em auto; }   /* browser-default 1px inset rule, as on miladymaker.net */

/* ---------- boxes ---------- */
/* welcome / meta boxes: strong bar */
.m_box {
  border: 1px solid var(--green-deep);
  margin: 1em;
  background-color: var(--paper);
}
.m_box_bar {
  background: var(--green);
  color: var(--ink);
}

/* content boxes: pale bar, tinted text (paragraphs stay ink) */
.box {
  border: 1px solid var(--green-deep);
  color: var(--green-deep);
  margin: 1em;
  background-color: var(--paper);
}
.box_bar {
  background: var(--lime-tint);
  color: var(--green-deep);
}

/* about / colophon boxes: cream */
.m_box_cream {
  border: 1px solid var(--green-deep);
  margin: 1em;
  background-color: var(--cream);
}

/* ---------- header banner ---------- */
.mascot { text-align: center; }
.logo { margin: 1em; }
.logo img {
  border: 2px solid gray;
  max-width: 500px;
  width: 100%;
  padding: 0;
}
.logo img:hover { border-color: gray; }

/* centered link line under the welcome box */
.links_line { text-align: center; }

/* ---------- figures (bordered italic captions, as on the original) ---------- */
.fig { padding: 1em 3em; }
.fig_inner {
  border: 1px solid black;
  padding: 1em;
  font-style: italic;
  text-align: center;
}
.fig_inner.plain { border: 0; }
.fig_inner p { margin-top: 0.5em; }

/* ---------- gallery (style themes) ---------- */
.gallery_container {
  display: grid;
  justify-items: auto;
  grid-template-columns: 33.33% 33.33% 33.33%;
  padding: 0.5em;
  width: auto;
}
div.gallery_item { object-fit: cover; }
.gallery_item img {
  border: 1px solid var(--frame);
  height: auto;
  width: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: cover;
}
div.desc {
  padding: 1em;
  text-align: center;
  font-size: smaller;
  width: 80%;
  max-height: 100%;
}

/* ---------- token box (mirrors the original's mint box) ---------- */
.token_state {
  text-align: center;
  font-style: italic;
  color: #333;
  padding: 0 0 0.25em;
}
.ca_line { word-break: break-all; }
.linkbtn {
  font: inherit;
  color: var(--green-deep);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.linkbtn:hover { color: var(--green); }
.linkbtn.is-copied { color: var(--green); }
.mint_row { text-align: center; margin: 0.5em 0 0.75em; }
.mint_button {
  display: inline-block;
  padding: 0.5em;
  margin: 0.33em 0.25em;
  font-size: 20px;
  background: var(--lime-tint);
  color: var(--green-deep);
  text-decoration: none;
  cursor: pointer;
}
.mint_button:hover { background: var(--green); color: var(--ink); text-decoration: none; }
.chart_frame {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 560px;
  height: 360px;
  border: 1px solid var(--frame);
  background: #fff;
}

/* ---------- header nav (two flat buttons under the banner, mint-button style, smaller) ---------- */
.nav_row { text-align: center; margin: 0 0 0.25em; }
.nav_button {
  display: inline-block;
  padding: 0.35em 0.8em;
  margin: 0.15em 0.2em;
  font-size: 16px;
  background: var(--lime-tint);
  color: var(--green-deep);
  text-decoration: none;
  cursor: pointer;
}
.nav_button:hover { background: var(--green); color: var(--ink); text-decoration: none; }

/* ---------- collection page ---------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
  align-items: center;
  margin: 0.5em 1em;
  color: var(--ink);
}
.controls label { font-size: 0.95em; }
.controls select, .controls input[type="search"] {
  font: inherit;
  font-size: 0.95em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--frame);
  border-radius: 0;
  padding: 0.2em 0.35em;
  margin-left: 0.25em;
}
.controls input[type="checkbox"] { margin: 0 0.25em 0 0; vertical-align: -1px; }

.coll_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75em 0.5em;
  padding: 0.5em;
}
.card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.card img { width: 100%; max-width: 100%; margin: 0; }
.has-pixel-art .card img, .has-pixel-art .modal_art img { image-rendering: pixelated; image-rendering: crisp-edges; }
.card:hover img { border-color: var(--green); }
.card .theme_bar { height: 4px; margin: 0 auto; }
.card .desc { padding: 0.35em 0 0; width: auto; font-size: smaller; }
.card_meta { color: var(--green-deep); font-size: 0.85em; }
.card:hover .desc { text-decoration: underline; }

/* detail box */
.modal { position: fixed; inset: 0; z-index: 10; overflow: auto; }
.modal_backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.35); }
.modal_box {
  position: relative;
  max-width: 43em;
  margin: 2em auto;
  background: #fff;
}
.modal_close { text-align: right; margin: 0.25em 0.75em 0; }
.modal_body { display: flex; flex-wrap: wrap; gap: 0.5em 1em; padding: 0.25em 1em 1em; }
.modal_art { flex: 0 0 15em; max-width: 100%; }
.modal_art img { width: 100%; max-width: 15em; margin: 0; }
.modal_art .theme_bar { height: 4px; max-width: 15em; }
.modal_info { flex: 1 1 16em; min-width: 0; }
.modal_info p { margin-left: 0; }
.traits { border-collapse: collapse; margin: 0.25em 0 0.5em; font-size: 0.95em; width: 100%; }
.traits th, .traits td { text-align: left; vertical-align: top; padding: 0.15em 0.75em 0.15em 0; border-bottom: 1px solid #e0e0e0; }
.traits th { font-weight: 700; white-space: nowrap; }
.traits td.pct { color: var(--green-deep); white-space: nowrap; text-align: right; padding-right: 0; }
body.modal-open { overflow: hidden; }

.small { font-size: 0.8em; }
.mono { font-family: monospace; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- mobile (same breakpoint as the original) ---------- */
@media only screen and (max-width: 600px) {
  img { width: 100%; }
  body { width: 100%; }
  div.desc { font-size: x-small; }
  ul { margin-right: 1em; }
  .fig { padding: 1em 1.25em; }
  .chart_frame { height: 320px; }
  .coll_grid { grid-template-columns: repeat(3, 1fr); }
  .modal_box { margin: 0.5em; }
  .modal_art { flex-basis: 100%; }
  .modal_art img, .modal_art .theme_bar { max-width: 12em; margin: 0 auto; }
}
