.friendly-shell {
  width: 100%;
}

.friendly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.friendly-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.9rem;
}

.friendly-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.friendly-card p {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.inline-link {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-2);
}

.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.page-title {
  margin: 0;
}

.page-home-link {
  text-decoration: none;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.page-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-preview-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    border: none;
    background-color: transparent;
}


.image-preview-trigger:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.image-preview-trigger img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 16rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.image-preview-dialog {
  max-width: calc(100vw - 2rem);
  max-height: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

.image-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.image-preview-close {
  display: block;
  margin: 0 0 0.5rem auto;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  color: var(--accent-2);
  background: var(--panel);
  cursor: pointer;
}

.image-preview-full {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.doc-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.95rem;
}

.doc-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.doc-card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .friendly-grid {
    grid-template-columns: 1fr;
  }

  .doc-index-grid {
    grid-template-columns: 1fr;
  }
}

/* Style the links inside the navigation bar */
.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Create a right-aligned (split) link inside the navigation bar */
.topnav a.split {
  float: right;
  background-color: #04AA6D;
  color: white;
}