/* Red Hat Brand Colors (https://ux.redhat.com/foundations/color/) */
:root {
  --rh-red:        #ee0000;
  --rh-red-dark:   #a60000;
  --rh-black:      #151515;
  --rh-white:      #ffffff;
  --rh-gray-10:    #f2f2f2;
  --rh-gray-20:    #e0e0e0;
  --rh-gray-30:    #c7c7c7;
  --rh-gray-50:    #707070;
  --rh-gray-60:    #4d4d4d;
  --rh-gray-90:    #1f1f1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--rh-gray-10);
  color: var(--rh-black);
  min-height: 100vh;
}

.header {
  background: var(--rh-red);
  padding: 2.5rem 0;
  color: var(--rh-white);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-link {
  color: var(--rh-white);
  text-decoration: none;
}

.logo-link:hover { text-decoration: underline; }

.subtitle {
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.binary-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.binary-note code {
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

.content {
  padding: 2rem 0;
}

.section {
  background: var(--rh-white);
  border: 1px solid var(--rh-gray-20);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.section-header {
  padding: 0.85rem 1.25rem;
  background: var(--rh-gray-10);
  border-bottom: 1px solid var(--rh-gray-20);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rh-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header .os-icon {
  font-size: 1.4rem;
}

.section-header .os-logo {
  height: 1.6rem;
  width: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rh-gray-50);
  border-bottom: 1px solid var(--rh-gray-20);
  background: var(--rh-gray-10);
}

td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--rh-gray-20);
  font-size: 0.9rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--rh-gray-10); }

.arch-badge {
  display: inline-block;
  background: var(--rh-gray-10);
  color: var(--rh-gray-60);
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "Red Hat Mono", "SF Mono", Consolas, monospace;
  border: 1px solid var(--rh-gray-20);
}

.size {
  color: var(--rh-gray-50);
  font-size: 0.85rem;
}

.checksum {
  font-family: "Red Hat Mono", "SF Mono", Consolas, monospace;
  font-size: 0.7rem;
  color: var(--rh-gray-50);
  word-break: break-all;
  max-width: 220px;
  cursor: pointer;
  position: relative;
}

.checksum:hover { color: var(--rh-gray-60); }

.checksum .copy-hint {
  display: none;
  position: absolute;
  top: -1.6rem;
  left: 0;
  background: var(--rh-black);
  color: var(--rh-white);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  white-space: nowrap;
}

.checksum:hover .copy-hint { display: block; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--rh-red);
  color: var(--rh-white);
  padding: 0.45rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s;
}

.download-btn:hover { background: var(--rh-red-dark); }

.install-section {
  margin-top: 0.5rem;
}

.install-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rh-black);
  margin-bottom: 0.75rem;
}

.code-block {
  background: var(--rh-gray-90);
  border-radius: 0.5rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  font-family: "Red Hat Mono", "SF Mono", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

.code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1.25rem;
}

.code-line:hover { background: rgba(255,255,255,0.04); }

.code-line .comment {
  color: var(--rh-gray-50);
  padding-top: 0.4rem;
}

.code-line .cmd {
  color: var(--rh-gray-20);
  font-family: inherit;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--rh-gray-60);
  color: var(--rh-gray-50);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-family: "Red Hat Text", -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}

.copy-btn:hover {
  border-color: var(--rh-gray-30);
  color: var(--rh-gray-20);
  background: rgba(255,255,255,0.08);
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--rh-gray-50);
  font-size: 0.8rem;
  border-top: 1px solid var(--rh-gray-20);
}

.footer a {
  color: var(--rh-red);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }
