/* Palette and header treatment from the generated OntoLens light documentation. */
:root {
  color-scheme: light;
  --page-bg: #fff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #d7dce2;
  --panel: #f6f8fa;
  --brand: #155c63;
  --brand-dark: #0f4449;
  --accent: #b84a39;
  --code: #eef3f5;
  --link: #0b5cad;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font: 16px/1.55 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .6rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 68, 73, .96), rgba(21, 92, 99, .92)),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .16), transparent 34%);
  border-bottom: 5px solid var(--accent);
}
.bar, nav, .footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; }
.bar, .footer { justify-content: space-between; }
.bar { padding-block: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.masthead a { color: #fff; }
.masthead a:focus-visible { outline-color: #fff; }
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
nav { font-size: .94rem; }
.intro { padding-block: clamp(1.6rem, 3.2vw, 2.75rem); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.intro p { margin-top: .65rem; max-width: 76ch; font-size: 1.0625rem; color: #e8f2f3; }

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: 2rem 2.75rem;
}
.module-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page-bg);
}
.module-info { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.4rem; }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; }
.card-heading h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; color: var(--brand-dark); }
.version { padding: .125rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .875rem; white-space: nowrap; }
.description { margin-block: .65rem .95rem; }
.namespace { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; margin-top: auto; color: var(--muted); font-size: .875rem; }
.namespace code { padding: .075rem .35rem; border-radius: 3px; background: var(--code); color: var(--ink); font: .85rem/1.5 Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding: .65rem 1.4rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 5px 5px;
  background: var(--panel);
}
/* Enabled “Übernehmen” button in the light OntoLens Docker interface. */
.button {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid #d4dfe2;
  border-radius: 5px;
  background: #e0f0ed;
  color: #176970;
  font: 1rem Inter, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: none; }
.button:focus-visible { outline: 2px solid #d5ad65; outline-offset: 3px; }
.downloads { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; }
.downloads a { display: inline-block; padding-block: .2rem; }
.footer { padding-block: 1.15rem 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
@media (max-width: 47rem) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem 2rem; }
  .module-info { padding: 1rem 1.1rem; }
  .card-actions { padding: .65rem 1.1rem; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .bar, nav { column-gap: .9rem; }
}
