/* Guide layout over the House of Starts site theme. */
.mobile-menu { display: none; }
.page-hero .stamp { margin-top: 20px; font-size: 13px; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(160px, 198px) minmax(0, 1fr);
  gap: 48px;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 80px;
  border-top: 1px solid var(--line);
}
.toc {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100dvh - 145px);
  overflow: auto;
  padding: 0 12px 0 0;
  font-size: 14px;
}
.toc h2 { font-size: 18px; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li ul { padding-left: 12px; }
.toc a { display: inline-block; padding-block: 5px; }
.guide-layout article { min-width: 0; }
.guide-layout article h2 {
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.15;
  margin: 42px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.guide-layout article h3 { font-size: 22px; margin: 28px 0 12px; }
.guide-layout article p { margin-bottom: 16px; }
.guide-layout article a { text-decoration: underline; text-underline-offset: 4px; }
.guide-layout article ul { list-style: none; margin: 0 0 24px; padding: 0; }
.guide-layout article li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.resource-with-logo,
#ahmedabad-institutional-mous + p + ul li.resource-with-logo {
  display: grid;
  grid-template-columns: minmax(104px, 156px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.resource-copy { min-width: 0; overflow-wrap: anywhere; }
.resource-name { display: block; font-size: 1.05em; line-height: 1.35; margin-bottom: 5px; }
.mark { display: grid; justify-items: center; align-items: start; min-width: 0; padding-top: 3px; }
.mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}
.mark img[src$="gcci-trimmed.webp"] { max-height: 80px; }
.guide-layout article p > .mark { width: 154px; margin-bottom: 10px; }
#ahmedabad-institutional-mous + p + ul li {
  padding: 18px 0;
  background: #fff;
}
.resource-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
}
.resource-sources a { color: var(--dark-green); }
.guide-layout table { border-collapse: collapse; width: 100%; margin-block: 28px; font-size: 15px; }
.guide-layout caption { font: 600 21px/1.4 var(--heading); text-align: left; margin-bottom: 6px; }
.guide-layout th, .guide-layout td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-layout td:first-child { width: 31%; }
@media (max-width: 760px) {
  .mobile-menu { display: block; grid-column: 3; grid-row: 1; }
  .mobile-menu summary { list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-links { position: absolute; top: 100%; right: 0; display: grid; background: var(--page); padding: 10px 16px; border: 1px solid var(--line); }
  .mobile-links a { min-height: 44px; display: flex; align-items: center; }
  .guide-layout { display: block; }
  .toc { position: static; max-height: none; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .toc > ul { columns: 2; column-gap: 14px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 440px) {
  .resource-with-logo,
  #ahmedabad-institutional-mous + p + ul li.resource-with-logo {
    grid-template-columns: minmax(76px, 96px) minmax(0, 1fr);
    gap: 11px;
  }
  .mark img, .mark img[src$="gcci-trimmed.webp"] { max-height: 52px; }
}

.city-sketch { margin: 12px auto 20px; width: clamp(140px, 48vw, 245px); }
.city-sketch img { display: block; width: 100%; height: auto; }

@media (min-width: 680px) {
  #explore-the-protocols-and-frameworks + p + ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

.shortlist-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 12px;
}
.guide-layout .shortlist-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 12px/1.5 'JetBrains Mono', monospace;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.shortlist-panel { scroll-margin-top: 72px; }
.shortlist-panel h4 { font-size: 20px; margin: 12px 0 10px; }
.city-directory-layout { grid-template-columns: minmax(0, 1fr); }
.directory-index, .directory-category { scroll-margin-top: 100px; }
.directory-index ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); column-gap: 24px; }
.directory-index a { font-weight: 650; }
.directory-index li > p { margin: 5px 0 0; }
.directory-category li.resource-with-logo {
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  gap: 16px;
}
.directory-category .mark img { max-height: 54px; }
@media (min-width: 680px) {
  .directory-category > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@supports selector(:has(:target)) {
  @media screen {
    .city-shortlists:not(:has(.shortlist-panel:target)) .shortlist-panel:not(:first-of-type),
    .city-shortlists:has(.shortlist-panel:target) .shortlist-panel:not(:target) { display: none; }
    .city-shortlists:not(:has(.shortlist-panel:target)) .shortlist-nav a:first-child,
    .city-shortlists:has(#coworking-spaces-in-ahmedabad:target) a[href="#coworking-spaces-in-ahmedabad"],
    .city-shortlists:has(#cafes-in-ahmedabad:target) a[href="#cafes-in-ahmedabad"],
    .city-shortlists:has(#university-resources-in-ahmedabad-and-nearby:target) a[href="#university-resources-in-ahmedabad-and-nearby"],
    .city-shortlists:has(#hotels-in-ahmedabad:target) a[href="#hotels-in-ahmedabad"] {
      border-bottom-color: var(--dark-green);
      color: var(--dark-green);
    }
  }
}
@media (min-width: 680px) {
  .shortlist-panel > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

.shortlist-panel li.resource-with-logo {
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  gap: 12px;
}
.shortlist-panel .mark img { max-height: 54px; }
.shortlist-panel .mark-on-dark {
  background: #27342e;
  padding: 7px;
  border-radius: 4px;
}
