
/* To add some space below the navigation bar */

 body {
  margin-top: 100px;
}

:root {
  --ottr-soft: lightblue;
  --ottr-accent: #1f2d3d;
  --ottr-accent-dark: RoyalBlue;
  --ottr-border: #ADD8E6;
  --ottr-link: #2a7a9a;
  --ottr-text: #1f2d3d;
}


/* add some color - if you want color behind a major point on your website */

.banner_color {
  background-color: var(--ottr-soft);
  font-weight:bold;

}

/* Style buttons - if you want some text centered and bolded */

.center {
  font-weight:bold;
  text-align: center;
}

/* Style buttons - if you want to have a button */
.btn {
  background-color: var(--ottr-accent);
  border: none;
  color: white;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Darker background on mouse-over */
.btn:hover {
  background-color: var(--ottr-accent-dark);
}

.copy-credit-snippet,
#copy-credit-role-table {
  margin: 0.35rem 0 0.75rem;
}

.copy-credit-status,
#copy-credit-role-status {
  margin-left: 0.5rem;
  color: var(--ottr-link);
  font-weight: 700;
}

/* Indent nested items in the Quarto table of contents. */
#TOC ul {
  margin-left: 0;
  padding-left: 0;
}

#TOC li {
  margin-left: 0;
}

#TOC .nav-link {
  padding-left: 0.25rem;
}

#TOC ul ul {
  margin-left: 0.35rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

#TOC ul ul .nav-link {
  padding-left: 0.35rem;
}

#TOC ul ul ul {
  margin-left: 0.2rem;
  padding-left: 0.85rem;
}

#TOC ul ul ul .nav-link {
  font-size: 0.95em;
}

/* Top-level chooser for the Getting Started page. */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.75rem;
}

.intro-prereqs,
.template-chooser {
  min-width: 0;
}

.intro-prereqs h2,
.template-chooser h2 {
  margin-top: 0;
}

.intro-prereqs ul {
  padding-left: 1.1rem;
}

.intro-prereqs li {
  margin-bottom: 0.55rem;
}

.chooser-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.chooser-card {
  display: flex;
  height: 100%;
  min-height: 13rem;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  color: var(--ottr-text);
  text-decoration: none;
  background: white;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
}

.chooser-card:hover,
.chooser-card:focus {
  color: var(--ottr-text);
  text-decoration: none;
  background: var(--ottr-soft);
  border-color: var(--ottr-accent);
}

.chooser-kicker {
  width: fit-content;
  padding: 0.1rem 0.45rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--ottr-accent);
  border: 1px solid var(--ottr-accent);
  border-radius: 999px;
}

.chooser-title {
  color: var(--ottr-text);
  font-size: 1.15rem;
  font-weight: 700;
}

.chooser-copy {
  font-size: 0.95rem;
  line-height: 1.35;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chapter-links a {
  padding: 0.35rem 0.65rem;
  color: var(--ottr-text);
  text-decoration: none;
  background: white;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
}

.chapter-links a:hover,
.chapter-links a:focus {
  color: var(--ottr-text);
  text-decoration: none;
  background: var(--ottr-soft);
  border-color: var(--ottr-accent);
}

/* Homepage feature sections. */
.ottr-feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 1.5rem;
  align-items: center;
  margin: 1.25rem 0 2rem;
}

.ottr-feature-copy h4 {
  margin-top: 0;
}

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

.benefit-item {
  min-height: 6.75rem;
  padding: 0.25rem 0 0.35rem;
  color: var(--ottr-text);
}

.benefit-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ottr-text);
  font-weight: 700;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ottr-link);
}

.benefit-heading p,
.benefit-icon p {
  margin: 0;
}

.benefit-item p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.benefit-heading strong,
.benefit-title {
  display: inline;
  color: var(--ottr-text);
  font-weight: 700;
}

.benefit-kicker {
  color: var(--ottr-link);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benefit-kicker p,
.benefit-title p,
.benefit-copy p {
  margin: 0;
}

.ottr-feature-image {
  text-align: center;
}

.ottr-feature-image img {
  width: min(100%, 280px);
  height: auto;
}

.ottr-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0.75rem;
}

.glance-step {
  min-height: 9rem;
  padding: 1rem;
  color: var(--ottr-text);
  background: #f8fbfc;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
}

.glance-number {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  color: white;
  font-weight: 700;
  background: var(--ottr-link);
  border-radius: 50%;
}

.glance-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.glance-label {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.glance-number p,
.glance-title p,
.glance-label p,
.glance-link p {
  margin: 0;
}

.glance-link {
  margin: 0 0 1.75rem;
  text-align: center;
}

.glance-link a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  color: #222;
  text-decoration: none;
  background: #a1d1fc;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.glance-link a:hover,
.glance-link a:focus {
  color: #222;
  text-decoration: none;
  background: #85C1D4;
}

.troubleshooting-divider {
  height: 0;
  margin: 1.75rem 0;
  border-top: 6px solid var(--ottr-soft);
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.25rem;
}

.use-case-grid .benefit-item {
  min-height: 8.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  margin: 1rem 0 1.75rem;
  overflow: hidden;
  background: #f8fbfc;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.citation-choice pre {
  margin-right: 1rem;
  margin-left: 1rem;
}

/* Template path sections. */
.path-header,
.setup-checklist {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  color: var(--ottr-text);
  border-radius: 8px;
}

.path-header {
  background: var(--ottr-soft);
}

.setup-checklist {
  background: #f8fbfc;
  border-left: 5px solid var(--ottr-accent);
}

.path-header p:last-child,
.setup-checklist ol:last-child {
  margin-bottom: 0;
}

.setup-checklist li {
  margin-bottom: 0.45rem;
}

.template-choice {
  margin: 0.4rem 0 1.5rem;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
  overflow: hidden;
}

.template-choice summary {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) max-content;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  color: var(--ottr-text);
  cursor: pointer;
  background: #f8fbfc;
}

.template-choice summary:hover,
.template-choice summary:focus {
  background: var(--ottr-soft);
}

.template-choice[open] summary {
  border-bottom: 1px solid var(--ottr-border);
}

.template-choice summary::after {
  color: var(--ottr-text);
  content: "Show";
  font-size: 0.85rem;
  font-weight: 700;
}

.template-choice[open] summary::after {
  content: "Hide";
}

.choice-note {
  font-size: 0.92rem;
}

.template-choice > p,
.template-choice > ul,
.template-choice > ol,
.template-choice > div,
.template-choice > .cheatsheet-frame {
  margin-right: 1rem;
  margin-left: 1rem;
}

.template-choice > p:first-of-type {
  margin-top: 1rem;
}

.cheatsheet-frame {
  margin: 1.25rem 0 1rem;
}

.cheatsheet-frame iframe {
  width: 100%;
  height: 2820px;
  border: 1.5px solid var(--ottr-border);
  border-radius: 8px;
}

.cheatsheet-link {
  margin-top: 0.25rem;
  text-align: right;
}

.cheatsheet-link a {
  color: var(--ottr-link);
  font-size: 1rem;
}

.ottr-cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.ottr-cheatsheet-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid var(--ottr-border);
  border-radius: 8px;
}

.ottr-cheatsheet-thumb {
  display: block;
  background: #f8fbfc;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ottr-cheatsheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.16s ease;
}

.ottr-cheatsheet-card:hover .ottr-cheatsheet-thumb img,
.ottr-cheatsheet-card:focus-within .ottr-cheatsheet-thumb img {
  transform: scale(1.025);
}

.ottr-cheatsheet-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
}

.ottr-cheatsheet-card h2 {
  margin: 0;
  padding-bottom: 0;
  color: var(--ottr-text);
  border-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.ottr-cheatsheet-card h2 a {
  color: var(--ottr-text);
  text-decoration: none;
}

.ottr-cheatsheet-card h2 a:hover,
.ottr-cheatsheet-card h2 a:focus {
  color: var(--ottr-link);
  text-decoration: none;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
}

.template-actions p {
  margin: 0;
}

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

  .chooser-gallery {
    grid-template-columns: 1fr;
  }

  .chooser-card {
    min-height: 0;
  }

  .ottr-feature-section,
  .benefit-grid,
  .ottr-glance {
    grid-template-columns: 1fr;
  }

  .benefit-item,
  .use-case-grid .benefit-item {
    min-height: 0;
  }

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

  .choice-badge {
    grid-row: auto;
  }
}
