/* Resources page: only what the main stylesheet (../assets/css/style.css) doesn't
   already provide. Uses the same theme tokens, so light/dark just works. */

.res-hero { padding-bottom: 0; }
.res-hero .hero-grid { align-items: center; }

/* Screenshots */
.res-shot { margin: 0; }
.res-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(11, 31, 58, .45);
}
.res-shot-hero img { border-color: var(--on-navy-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.res-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--body); }

/* CISA Linux */
.res-split { align-items: start; }
.res-lede { margin-top: 20px; max-width: 640px; font-size: 18px; color: var(--body); }
.res-lede-wide { margin-top: 0; max-width: 820px; }
.res-lede code, .note code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
}
.res-checks { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.res-checks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  color: var(--body);
}
.res-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  box-shadow: inset 0 0 0 2px var(--green);
}
.res-checks li::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 5px; height: 9px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.res-checks strong { color: var(--ink); }
kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--ink);
}
.res-actions { margin-top: 32px; }
.res-tools { margin-top: clamp(40px, 6vw, 64px); }

/* CISA Rice: install command */
.res-cmd { margin-top: 28px; }
.res-cmd-row { display: flex; align-items: center; gap: 12px; padding-right: 18px; }
.res-cmd-row pre { flex: 1; min-width: 0; }
.res-copy {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #2a4470;
  background: #12294a;
  color: #e8edf5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.res-copy:hover { background: #1d5fd6; }
.res-copy.is-done { background: #0f7a55; border-color: #0f7a55; }
.res-copy:focus-visible { outline-color: #8fb4ff; }

/* CISA Rice: theme gallery */
.res-themes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.res-themes figure { margin: 0; }
.res-themes img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.res-themes img:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(11, 31, 58, .5); }
.res-themes figcaption { margin-top: 12px; display: flex; flex-direction: column; font-size: 14px; color: var(--body); }
.res-themes figcaption strong { font-size: 17px; color: var(--ink); }

.res-rice-more { margin-top: clamp(40px, 6vw, 64px); align-items: center; }
.res-rice-more .res-checks { margin-top: 0; }

/* GitHub repo cards */
.res-repos { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.res-repo { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.res-repo:hover { border-color: var(--accent); transform: translateY(-2px); }
.res-repo-name { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--accent-text); overflow-wrap: anywhere; }
.res-repo-meta { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--body); }

@media (max-width: 920px) {
  .why.res-repos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}
@media (max-width: 560px) {
  .res-cmd-row { flex-direction: column; align-items: stretch; padding: 0 20px 20px; }
  .res-cmd-row pre { padding-left: 0; padding-right: 0; }
}
