/* ============================================================
   AECOtools release notes — /help/releases/
   Builds on ../../styles.css (site tokens, header, footer) and
   ../help.css (help hero, crumbs, article, tip, "more" panel).
   ============================================================ */

:root {
  --beta: #F59E1B;        /* same orange as the BETA corner on the Revit ribbon */
  --beta-ink: #8A4B00;
}

/* ---------- release list (index page) ---------- */
.rel-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; max-width: 820px; }
.rel-item a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.rel-item a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.rel-ver {
  font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.rel-ver span { background: var(--lime); padding: 0 .16em; border-radius: 5px; }
.rel-sum h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.rel-sum p { margin: 0; color: var(--muted); font-size: .95rem; }
.rel-date { color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rel-item.latest a { border-color: var(--ink); }
.rel-latest-tag {
  display: inline-block; margin-left: .5rem; vertical-align: middle; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--lime);
  padding: .1rem .5rem; border-radius: 999px;
}
@media (max-width: 600px) {
  .rel-item a { grid-template-columns: 1fr; }
  .rel-date { white-space: normal; }
}

/* ---------- release page ---------- */
.rel-facts { max-width: 820px; }
.rel-get { max-width: 820px; }

.tools { display: grid; border-top: 1px solid var(--border); margin: .4rem 0 1.4rem; }
.tool { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.tool-icon {
  position: relative; width: 48px; height: 48px; border-radius: 10px; background: var(--bg-alt);
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden;
}
.tool-icon img { width: 32px; height: 32px; }
/* The orange corner, drawn the way the ribbon draws it. */
.tool-icon.beta::after {
  content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: var(--beta); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.help-article .tool h3 { margin: 0; font-size: 1.1rem; }
.tool-path { font-size: .84rem; color: var(--muted); margin: .1rem 0 .45rem; }
.help-article .tool p { margin: 0; }
.help-article .tool ul { margin: .45rem 0 0; }

.chip {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .08rem .5rem; border-radius: 999px; border: 1px solid var(--beta); color: var(--beta-ink); background: #FFF6E8;
}
.chip.new { border-color: var(--ink); color: var(--ink); background: var(--lime-soft); }

.tool-group { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 1rem; }

/* Screenshots under a feature. Small captures stay at their own size rather than being blown up. */
.shot { margin: .9rem 0 .2rem; }
.shot img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .45rem; max-width: 62ch; }

.rel-fixes { list-style: none; padding: 0 !important; }
.rel-fixes li { position: relative; padding-left: 1.6rem; margin: .7rem 0; }
.rel-fixes li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--lime); }

.beta-explain { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }

.rel-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 2.2rem; font-size: .95rem; }
.rel-nav a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* The "What's new" banner on the Help home page. */
.help-whatsnew {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 1.4rem 0 0; max-width: 760px;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 14px 18px;
}
.help-whatsnew strong { font-size: 1.02rem; }
.help-whatsnew .ver { background: var(--lime); padding: 0 .16em; border-radius: 5px; font-weight: 800; }
.help-whatsnew a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 600; }
