/* Acadify documentation: brand layer on top of style.css.
   Brand: navy #0F2A43, teal #358F80 (the Acadify logo and default accent); #23695E is the teal used for text (AA on white). */
:root {
  --ac-ink: #0f2a43;
  --ac-teal: #358f80;
  --ac-teal-text: #23695e;
  --ac-teal-soft: #e6f3f0;
  --ac-line: #e3e8ee;
  --ac-muted: #55606d;
}

body { background: #f3f6f8; color: #2b3440; }
.main-content p, .main-content ul li, .main-content ol li { color: #3d4753; }
.main-content ol { padding-left: 1.4rem; }
.main-content ol li { font-size: 1.05rem; line-height: 1.6rem; margin-bottom: 4px; }
.main-content ul.dots { list-style: disc; padding-left: 1.4rem; }
.main-content ul.dots li { margin-bottom: 4px; }
.main-content a { color: var(--ac-teal-text); text-decoration: underline; text-underline-offset: 2px; }
.main-content .doc-tabs a, .main-content .btn-link-plain { text-decoration: none; }
.main-content h5 { font-size: 18px; font-weight: 700; color: var(--ac-ink); margin-top: 22px; }

/* sidebar */
.left-menu { border-right: 1px solid var(--ac-line); z-index: 30; }
.navbar-brand { display: block; padding: 22px 20px 6px; }
.navbar-brand img { max-width: 170px; height: auto; }
.left-menu .version-chip { display: inline-block; margin: 0 20px 6px; font-size: 12px; font-weight: 700; color: var(--ac-teal-text); background: var(--ac-teal-soft); border-radius: 999px; padding: 2px 10px; }
.left-menu .left-menu-title h6 a { color: var(--ac-ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 20px; }
.left-menu ul li > a { font-size: 14.5px; padding: 8px 24px 8px 14px; color: #26313d; }
.left-menu ul li:hover > a,
.left-menu ul li.active > a { color: var(--ac-teal-text); background-color: var(--ac-teal-soft); border-left-color: var(--ac-teal); }

/* top tabs */
.doc-tabs {
  position: sticky; top: 16px; z-index: 20; display: flex; gap: 8px;
  margin-bottom: 24px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 .2rem .5rem rgba(15, 42, 67, .08);
}
.doc-tabs a {
  flex: 1; text-align: center; padding: 11px 12px; border-radius: 999px;
  color: var(--ac-ink); font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.doc-tabs a.active, .doc-tabs a:hover { color: #fff; background: var(--ac-ink); }
.doc-tabs a.active { box-shadow: inset 0 -3px 0 var(--ac-teal); }

/* page head */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.first-title { color: var(--ac-ink); font-size: 38px; }
.page-meta { font-size: .9em; color: var(--ac-muted); }
.page-meta strong { color: var(--ac-ink); }

/* sections */
.intro1 { border-radius: 14px; border: 1px solid var(--ac-line); padding: 28px 30px; scroll-margin-top: 90px; }
.main-content .second-title { color: var(--ac-ink); position: relative; padding-left: 14px; margin-bottom: 14px; }
.main-content .second-title::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 4px; background: var(--ac-teal); }
[id] { scroll-margin-top: 90px; }

/* code */
.main-content code { background: #eef2f5; color: #123f38; border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.main-content pre { background: #0f2a43; color: #d5efe9; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 10px 0 16px; }
.main-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.main-content pre .c { color: #8aa0b4; }

/* notes, badges, tables */
.note { border-left: 4px solid var(--ac-teal); border-radius: 8px; padding: 12px 16px; margin: 14px 0; background: #eaf5f2; }
.note.warn { border-left-color: #d97706; background: #fff7e6; }
.note.info { border-left-color: #2563eb; background: #eef4ff; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.badge-soft { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ac-teal-text); background: var(--ac-teal-soft); border-radius: 999px; padding: 3px 12px; margin: 0 6px 6px 0; }
.badge-soft.ink { color: #fff; background: var(--ac-ink); }
.menu-path { font-weight: 700; color: var(--ac-ink); background: #eef2f5; border-radius: 6px; padding: 1px 8px; display: inline-block; }
.mode-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14.5px; }
.mode-table th, .mode-table td { border: 1px solid var(--ac-line); padding: 8px 12px; text-align: left; vertical-align: top; color: #2b3440; }
.mode-table th { background: #f3f6f8; color: var(--ac-ink); }
.mode-table code { white-space: normal; overflow-wrap: anywhere; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 14px 0; }
.steps-grid > div { border: 1px solid var(--ac-line); border-radius: 12px; padding: 14px 16px; background: #fbfcfd; }
.steps-grid strong { color: var(--ac-ink); display: block; margin-bottom: 4px; }
.steps-grid span { color: #3d4753; font-size: 14.5px; }

/* screenshots */
.shot { margin: 14px 0 8px; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--ac-line); border-radius: 12px; box-shadow: 0 .3rem .9rem rgba(15, 42, 67, .07); cursor: zoom-in; background: #fff; }
.shot figcaption { font-size: 13px; color: var(--ac-muted); text-align: center; margin-top: 7px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 10px; }
.shot-grid .shot { margin: 0; }

/* lightbox */
#popup-slider { cursor: zoom-out; }
#popup-slider img { width: auto; max-width: 94vw; max-height: 86vh; border-radius: 8px; background: #fff; }
#popup-slider .close-btn { background: var(--ac-teal); color: var(--ac-ink); }
#popup-caption { color: #e6edf3; margin-top: 10px; font-size: 14px; text-align: center; padding: 0 16px; }

/* footer */
.doc-footer { text-align: center; color: var(--ac-muted); font-size: 13.5px; padding: 18px 0 8px; }

/* phones and tablets */
.navbar-toggler.docs-toggle { display: none; }
@media (max-width: 991.98px) {
  .main-content { padding: 72px 16px 24px; }
  .navbar-toggler.docs-toggle {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; top: 12px; left: 12px; z-index: 40;
    background: var(--ac-ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700;
    box-shadow: 0 .3rem .8rem rgba(15, 42, 67, .25);
  }
  .left-menu { z-index: 35; box-shadow: 0 0 30px rgba(15, 42, 67, .25); padding-top: 52px; }
  .doc-tabs { position: static; border-radius: 14px; flex-wrap: wrap; }
  .doc-tabs a { flex: 1 1 45%; padding: 9px 8px; font-size: 13px; }
  .first-title { font-size: 28px; }
  .intro1 { padding: 20px 16px; }
  .mode-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-content pre { font-size: 12.5px; }
}

/* keep headings and menu labels as written */
.main-content .second-title, .left-menu ul li > a { text-transform: none; }

/* phone screenshots (Flutter app) */
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.phone-grid .shot { margin: 0; }
.phone-grid .shot img { border-radius: 18px; }

/* printing (offline PDF) */
@media print {
  .left-menu, .doc-tabs, .navbar-toggler.docs-toggle, #popup-slider { display: none !important; }
  .main-content-area { margin: 0 !important; width: 100% !important; padding: 0 !important; }
  .main-content { padding: 0 !important; }
  body { background: #fff; }
  .intro1 { break-inside: auto; border: 1px solid var(--ac-line); box-shadow: none !important; margin-bottom: 14px !important; }
  .shot, .shot-grid figure, .phone-grid figure, pre, table, .note { break-inside: avoid; }
  h4, h5, .second-title { break-after: avoid; }
  .shot img { box-shadow: none; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-grid { grid-template-columns: repeat(4, 1fr); }
  a { color: var(--ac-teal-text) !important; }
}

/* product name above each page title */
.main-content .product-line { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ac-teal-text); margin: 0 0 4px; }

/* "choose your hosting" cards (index, quick start, setup, install guides) */
.host-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 14px 0 6px; }
.main-content a.host-card {
  display: block; border: 1px solid var(--ac-line); border-radius: 14px; padding: 18px 20px; background: #fff;
  color: inherit; text-decoration: none; box-shadow: 0 .2rem .5rem rgba(15, 42, 67, .05); transition: border-color .2s, box-shadow .2s;
}
.main-content a.host-card:hover, .main-content a.host-card:focus-visible { border-color: var(--ac-teal); box-shadow: 0 .4rem 1rem rgba(15, 42, 67, .10); }
.host-card .host-tag { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-teal-text); }
.host-card .host-title { display: block; font-size: 18px; font-weight: 700; color: var(--ac-ink); margin: 4px 0 6px; }
.host-card .host-text { display: block; color: #3d4753; font-size: 14.5px; line-height: 1.5; }
.host-card .host-go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ac-teal-text); text-decoration: underline; text-underline-offset: 2px; }
.host-card.current { border-color: var(--ac-teal); background: var(--ac-teal-soft); }

/* step headings inside the install guides */
.main-content h5 .step-no { display: inline-block; min-width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 999px; background: var(--ac-ink); color: #fff; font-size: 14px; margin-right: 8px; vertical-align: 1px; }

/* .env value generator (install-cpanel.html) */
.keygen { border: 1px dashed var(--ac-teal); border-radius: 12px; padding: 14px 16px; background: #fbfdfc; margin: 12px 0 16px; }
.keygen label { display: block; font-weight: 700; color: var(--ac-ink); font-size: 14px; margin: 8px 0 4px; }
.keygen input { width: 100%; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; padding: 7px 9px; border: 1px solid var(--ac-line); border-radius: 6px; background: #fff; color: #123f38; }
.keygen button { margin-top: 12px; background: var(--ac-ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.keygen button:hover { background: #18405f; }
.keygen-print { display: none; }
@media print {
  .keygen { display: none !important; }
  .keygen-print { display: block !important; }
  .main-content a.host-card { box-shadow: none; }
}

/* seven page tabs: keep them on one line on laptop widths */
@media (min-width: 992px) and (max-width: 1299.98px) {
  .doc-tabs { gap: 4px; }
  .doc-tabs a { padding: 10px 6px; font-size: 13px; }
}

/* print: long commands wrap instead of being cut off at the page edge */
@media print {
  .main-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
