:root {
  --page: #f3efe7;
  --paper: #fffdf8;
  --ink: #26313a;
  --line: #c7c0b5;
  --soft-line: #ddd6ca;
  --teal: #246c6a;
  --teal-dark: #184d4b;
  --plum: #6e435d;
  --light-green: #c2ccc2;
  --sidebar: #ece6db;
  --muted: #66727a;
  --shadow: 0 6px 18px rgba(41, 48, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(36, 108, 106, 0.05), transparent 32%),
    var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--teal-dark);
}

a:hover {
  color: #6d80bd;
}

.topbar {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  min-height: 38px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}


.brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text {
  font-size: 1rem;
}

.brand__note {
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--teal-dark);
  border-radius: 4px;
  color: #ffffff;
  background: var(--teal);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--teal-dark);
  border-radius: 4px;
  color: #ffffff;
  background: var(--teal);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--teal-dark);
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(109, 128, 189, 0.45);
  outline-offset: 2px;
}


.layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  max-width: 1800px;
  margin: 0 auto;
}

.sidebar {
  min-height: calc(100vh - 38px);
  padding: 0 10px 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.portrait-placeholder {
  display: grid;
  min-height: 132px;
  margin: 0 -10px 10px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  color: #184d4b;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), transparent 48%),
    #c2ccc2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-section {
  margin: 12px 0;
  padding: 7px 8px 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.38);
}

.side-section h2 {
  margin: -7px -8px 7px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--light-green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: lowercase;
}

.side-section a {
  display: block;
  position: relative;
  padding: 2px 0 2px 13px;
  text-decoration: none;
  font-size: 0.84rem;
}

.side-section a::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--teal);
}

.side-section a.is-active {
  color: #6d80bd;
  font-weight: 700;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.search button {
  padding: 5px 8px;
  border: 1px solid var(--teal-dark);
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
}

.content {
  min-width: 0;
  padding: 0 16px 28px;
  background: rgba(255,255,255,0.34);
}

.page-tabs {
  display: flex;
  align-items: end;
  gap: 3px;
  min-height: 39px;
  border-bottom: 1px solid var(--line);
}

.page-tabs a {
  display: block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--light-green);
  text-decoration: none;
  font-size: 0.84rem;
}

.page-tabs a.is-active {
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
}

.page-heading {
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.55rem);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 4px;
  color: #6d80bd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-panel {
  margin-top: 16px;
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  border-top: 4px solid #6d80bd;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.welcome-panel h1 {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.welcome-panel p {
  margin: 0;
}

.welcome-panel p:first-of-type {
  font-size: 0.9rem;
}

.welcome-panel .welcome-note {
  margin-top: 10px;
  font-size: 0.9rem;
}

.collection-name {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid #6d80bd;
  color: var(--ink);
  letter-spacing: 0.02em;
}


.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
}

.panel--wide {
  grid-column: span 2;
}

.panel__header {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--light-green);
  text-align: center;
}

.panel__header h2 {
  margin: 0;
  font-size: 1rem;
}

.panel__body {
  padding: 14px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.feature-grid article {
  flex: 1 1 calc((100% - 28px) / 3);
  max-width: calc((100% - 28px) / 3);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  background: #fffefb;
}

.feature-grid h3,
.news-item h3,
.columns h3 {
  margin: 7px 0 6px;
  color: var(--teal-dark);
  font-size: 1rem;
}

.feature-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-grid h3 a:hover {
  color: #6d80bd;
  text-decoration: underline;
}

.feature-grid p,
.news-item p,
.columns p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.label {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #b9cbc9;
  color: var(--teal-dark);
  background: var(--light-green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.text-link {
  font-size: 0.86rem;
  font-weight: 700;
}


.news-item + .news-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.news-item time {
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 700;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--sidebar);
  text-align: center;
  font-size: 0.83rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .panel--wide {
    grid-column: auto;
  }

  .feature-grid article {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-block: 6px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__copy {
    overflow-wrap: anywhere;
  }

  .brand__text {
    font-size: 0.93rem;
  }

  .brand__note {
    font-size: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }


  .layout {
    display: block;
  }

  .sidebar {
    display: none;
    min-height: auto;
    padding-top: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar.is-open {
    display: block;
  }

  .portrait-placeholder {
    display: none;
  }

  .side-section {
    margin: 0 0 10px;
  }

  .content {
    padding-inline: 10px;
  }

  .feature-grid article {
    flex-basis: 100%;
    max-width: 100%;
  }

  .page-tabs {
    display: none;
  }

  .welcome-links {
    display: block;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.columns--stacked {
  grid-template-columns: 1fr;
  gap: 14px;
}


.project-subtitle {
  max-width: 820px;
  min-height: 2.8em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}

.project-tabs a {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: var(--teal-dark);
  background: var(--light-green);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.project-tabs a:hover {
  color: #6d80bd;
  background: #d7dfd7;
}

.project-tabs a.is-active {
  position: relative;
  top: 1px;
  color: var(--ink);
  background: var(--paper);
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.project-panel {
  border: 1px solid var(--line);
  background: var(--paper);
}

.project-panel__header {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--light-green);
}

.project-panel__header h2 {
  margin: 0;
  font-size: 1rem;
}

.project-panel__body {
  padding: 16px;
}

.project-panel__body > :first-child {
  margin-top: 0;
}

.project-panel__body > :last-child {
  margin-bottom: 0;
}

.project-panel p,
.project-panel li {
  color: var(--muted);
}

.project-panel ul,
.project-panel ol {
  padding-left: 21px;
}

.screenshot-placeholder {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #9da9a2;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.58), transparent 52%),
    #e8ede8;
  text-align: center;
}

.screenshot-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.project-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.project-summary article {
  padding: 13px;
  border: 1px solid var(--soft-line);
  background: #fffefb;
}

.project-summary h3 {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.project-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f8f4e8;
  font-size: 0.88rem;
}

.project-next a {
  font-weight: 700;
  text-decoration: none;
}

.compact-list {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .project-intro {
    grid-template-columns: 1fr;
  }

  .project-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .project-tabs a {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  .project-two-column {
    grid-template-columns: 1fr;
  }

  .screenshot-placeholder {
    min-height: 190px;
  }
}


.project-media-list {
  display: grid;
  gap: 14px;
}

.project-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.project-media-row .project-panel,
.project-media-row .screenshot-placeholder {
  min-height: 340px;
}

.project-media-row .project-panel {
  display: flex;
  flex-direction: column;
}

.project-media-row .project-panel__body {
  display: flex;
  height: auto;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
}

.project-media-row .screenshot-placeholder {
  min-width: 0;
}

@media (max-width: 980px) {
  .project-media-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  }
}

@media (max-width: 720px) {
  .project-media-row {
    grid-template-columns: 1fr;
  }

  .project-media-row .project-panel,
  .project-media-row .screenshot-placeholder {
    min-height: auto;
  }

  .project-media-row .screenshot-placeholder {
    min-height: 280px;
  }
}


.download-intro {
  margin-bottom: 14px;
}

.download-list {
  display: grid;
  gap: 14px;
}

.download-section {
  scroll-margin-top: 74px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.download-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--light-green);
}

.download-section__header h2 {
  margin: 0;
  font-size: 1rem;
}

.download-section__body {
  padding: 14px;
}

.download-section__body > :first-child {
  margin-top: 0;
}

.download-section__body > :last-child {
  margin-bottom: 0;
}

.download-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.download-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--soft-line);
  background: #fffefb;
}

.download-item h3 {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.download-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-button {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--teal-dark);
  color: #ffffff;
  background: var(--teal);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.download-button:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.download-button--secondary {
  color: var(--teal-dark);
  background: var(--paper);
}

.download-button--secondary:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.status-note {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #b9cbc9;
  color: var(--teal-dark);
  background: var(--light-green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .download-item {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }
}


.project-screenshot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.project-screenshot a {
  display: block;
  line-height: 0;
}

.project-screenshot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  margin: 0 auto;
  border: 1px solid var(--soft-line);
  background: #ffffff;
  cursor: zoom-in;
}

.project-screenshot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .project-screenshot img {
    max-height: none;
  }
}


.project-media-row--features {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  align-items: start;
}

.project-media-row--features .project-panel,
.project-media-row--features .project-screenshot {
  min-height: 0;
}

.project-media-row--features .project-panel__body {
  justify-content: flex-start;
}

.project-panel__body h3 {
  margin: 18px 0 5px;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.project-panel__body h3:first-child {
  margin-top: 0;
}

.project-panel code {
  padding: 1px 4px;
  border: 1px solid var(--soft-line);
  background: #f3f5f2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.project-screenshot--features img {
  width: 100%;
  max-height: none;
}

@media (max-width: 980px) {
  .project-media-row--features {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  }
}

@media (max-width: 720px) {
  .project-media-row--features {
    grid-template-columns: 1fr;
  }
}


.project-media-row--profiles {
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.45fr);
  align-items: start;
}

.project-media-row--profiles .project-panel,
.project-media-row--profiles .project-screenshot {
  min-height: 0;
}

.project-media-row--profiles .project-panel__body {
  justify-content: flex-start;
}

.project-screenshot--profiles img {
  width: 100%;
  max-height: none;
}

@media (max-width: 980px) {
  .project-media-row--profiles {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 720px) {
  .project-media-row--profiles {
    grid-template-columns: 1fr;
  }
}


.project-side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.project-text-column .project-panel__body {
  display: block;
  height: auto;
}

.project-image-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.project-image-stack .project-screenshot {
  min-height: 0;
}

.project-image-stack .project-screenshot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.project-image-stack .project-screenshot figcaption {
  min-height: 2.7em;
}

@media (max-width: 980px) {
  .project-side-by-side {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  }

  .project-image-stack .project-screenshot img {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .project-side-by-side {
    grid-template-columns: 1fr;
  }

  .project-image-stack .project-screenshot img {
    max-height: none;
  }

  .project-image-stack .project-screenshot figcaption {
    min-height: 0;
  }
}


.install-panel {
  max-width: 920px;
}

.install-lead {
  color: var(--ink) !important;
  font-size: 1.03rem;
  font-weight: 700;
}

.requirements-note {
  margin: 14px 0;
  padding: 9px 11px;
  border-left: 4px solid var(--teal);
  background: #edf3ef;
  color: var(--ink);
}

.install-steps {
  display: grid;
  gap: 9px;
  margin: 16px 0 20px;
  padding-left: 25px;
}

.install-steps li {
  padding-left: 3px;
}

.install-steps code {
  display: block;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid var(--soft-line);
  background: #f3f5f2;
  overflow-wrap: anywhere;
}

.install-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--soft-line);
  background: #fffefb;
}

.install-note h3 {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.install-note p {
  margin: 0;
}


.notes-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.release-status {
  color: var(--teal-dark) !important;
  font-size: 1.04rem;
  font-weight: 700;
}

.technical-notes-panel {
  max-width: 1080px;
}

.technical-notes-heading {
  margin: 24px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 1rem;
}

.technical-note-section + .technical-note-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.technical-note-section h3 {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 1rem;
}

.technical-note-section p {
  margin: 0 0 9px;
}

.disclaimer-panel {
  max-width: 1080px;
  margin-top: 14px;
}

.disclaimer-panel .project-panel__header {
  background: #eee8dc;
}

.notes-reference {
  margin-top: 18px !important;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  background: #edf3ef;
}

@media (max-width: 720px) {
  .notes-status-grid {
    grid-template-columns: 1fr;
  }
}


.project-text-width-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.project-text-width-layout > .project-panel {
  grid-column: 1;
  width: auto;
  max-width: none;
}

.project-status-small {
  margin-top: 13px;
  font-size: 0.76rem;
  line-height: 1.38;
}

.project-status-small p {
  margin: 0 0 7px;
}

@media (max-width: 980px) {
  .project-text-width-layout,
  .notes-status-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  }
}

@media (max-width: 720px) {
  .project-text-width-layout,
  .notes-status-grid {
    grid-template-columns: 1fr;
  }

  .project-text-width-layout > .project-panel {
    grid-column: auto;
  }
}


.source-project-list {
  display: grid;
  gap: 22px;
}

.source-project {
  scroll-margin-top: 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  background: var(--light-green);
}

.source-project__header h2 {
  margin: 2px 0 0;
  color: var(--teal-dark);
  font-size: 1.18rem;
}

.source-project__type {
  margin: 0;
  color: #4f686b;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-project__status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #9ea99f;
  color: #345458;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 700;
}

.source-project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
  padding: 8px 0 14px;
}

.source-project__description,
.source-project__actions,
.source-project__planned-body {
  border: 1px solid var(--line);
  background: var(--paper);
}

.source-project__description {
  padding: 15px 18px;
}

.source-project__description h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

.source-project__description p {
  margin: 0 0 10px;
  color: var(--muted);
}

.source-project__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.source-project__facts div {
  min-width: 125px;
  padding: 8px 10px;
  border: 1px solid var(--soft-line);
  background: #f3f5f1;
}

.source-project__facts dt {
  color: #6d777b;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-project__facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.source-project__manual {
  margin-top: 15px !important;
  padding-top: 11px;
  border-top: 1px solid var(--soft-line);
  font-size: 0.86rem;
}

.source-project__actions {
  padding: 15px;
}

.source-project__actions-label {
  margin: 0 0 10px;
  color: #385158;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-button {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.source-button--primary {
  color: #ffffff;
  background: var(--teal);
}

.source-button--primary:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.source-project__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.source-button--secondary {
  color: var(--teal-dark);
  background: var(--paper);
}

.source-button--secondary:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.source-project__help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
}

.source-project__planned-body {
  padding: 14px 16px;
}

.source-project__planned-body p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .source-project__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-project__grid {
    grid-template-columns: 1fr;
  }

  .source-project__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-project__facts div {
    min-width: 0;
  }
}


.install-substeps {
  display: grid;
  gap: 8px;
  margin: 11px 0 0;
  padding-left: 23px;
}

.install-substeps li {
  padding-left: 2px;
}

.install-substeps code {
  display: block;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid var(--soft-line);
  background: #f3f5f2;
  overflow-wrap: anywhere;
}


.source-file-panel {
  border: 1px solid var(--line);
  background: var(--paper);
}

.source-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--light-green);
}

.source-file-header h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.08rem;
}

.source-file-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-file-actions button {
  font-family: inherit;
  cursor: pointer;
}

.copy-status {
  min-height: 1.5em;
  margin: 8px 15px 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.source-code-view {
  max-height: 72vh;
  margin: 8px 15px 15px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--soft-line);
  background: #f3f5f2;
  color: #1f2d32;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.42;
  tab-size: 4;
  white-space: pre;
}

.source-related-files {
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.source-related-files h2 {
  margin: 0 0 9px;
  color: var(--teal-dark);
  font-size: 0.98rem;
}

.source-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 720px) {
  .source-file-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-file-actions {
    width: 100%;
  }

  .source-code-view {
    max-height: 65vh;
    font-size: 0.72rem;
  }
}


.source-project__checksum {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.source-project__checksum span {
  display: block;
  margin-bottom: 4px;
  color: #5d6a6e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-project__checksum code {
  display: block;
  padding: 7px 8px;
  border: 1px solid var(--soft-line);
  background: #f3f5f2;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  line-height: 1.35;
}

.source-project__checksum a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.76rem;
}


@media (max-width: 980px) and (min-width: 761px) {
  .source-project__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  }
}

.feature-note {
  border-left: 3px solid var(--light-green);
}

.information-page {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.page-bottom-space {
  height: 1.4em;
}



/* Let the Install page use the full content width on portrait tablets. */
@media (max-width: 900px) {
  .install-text-width-layout {
    grid-template-columns: 1fr;
  }

  .install-text-width-layout > .project-panel {
    grid-column: auto;
  }
}

/* Keep the main page tabs stable on tablets in portrait orientation. */
@media (min-width: 721px) and (max-width: 900px) {
  .page-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(48px, auto);
    gap: 3px;
    min-height: 0;
    border-bottom: 0;
    overflow-x: visible;
  }

  .page-tabs a {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .guide-tabs a {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    text-align: center;
  }
}

/* Preserve a clearly measurable empty line before the footer. */
.page-bottom-space {
  display: block;
  clear: both;
  height: 1.4em;
  min-height: 1.4em;
  flex: 0 0 1.4em;
}



/* Gramps Tags and Filters guide */
.guide-tabs {
  align-items: stretch;
}

.guide-tabs a {
  flex: 1 1 150px;
  text-align: center;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.guide-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.guide-card:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.guide-card strong {
  margin-bottom: 5px;
  color: var(--teal-dark);
}

.guide-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.guide-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.guide-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-test-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

.guide-note {
  padding: 10px 12px;
  border-left: 4px solid #6d80bd;
  background: #f8f4e8;
}

@media (max-width: 900px) {
  .guide-card-grid,
  .guide-figure-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .guide-tabs a {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .guide-tabs a {
    flex-basis: calc(50% - 4px);
  }

  .guide-figure {
    padding: 7px;
  }
}
