/* Guidebook chooser: broad section cards, compact page cards, then a full-width article. */
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
}
body[data-route="guides"] #main-content .harbor-guides .gb-browser-panel {
  position: static;
  max-height: none;
  overflow: visible;
  border: 1px solid #9ec6dd;
  border-radius: 12px;
  background: #f8fcff;
  box-shadow: 0 12px 30px rgba(33, 83, 116, .13);
}
body[data-route="guides"] #main-content .harbor-guides .gb-browser-head {
  padding: 15px 20px;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(110deg, #deeff9, #f7fcff);
}
body[data-route="guides"] #main-content .harbor-guides .gb-browser-head h3 {
  font: 700 19px/1.25 Georgia, 'Times New Roman', serif;
  color: #234d69;
}
body[data-route="guides"] #main-content .harbor-guides .gb-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 12px;
  padding: 14px 20px 7px;
  background: transparent;
}
body[data-route="guides"] #main-content .harbor-guides .gb-navigation-bar {
  justify-content: flex-end;
  padding: 4px 20px 12px;
  border-bottom: 0;
}
body[data-route="guides"] #main-content .harbor-guides .gb-mobile-toggle { display: none !important; }
body[data-route="guides"] #main-content .harbor-guides .gb-expand { display: inline-flex !important; align-items: center; }
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-menu {
  display: block !important;
  max-height: none;
  overflow: visible;
  padding: 0 20px 20px;
  background: transparent;
}
body[data-route="guides"] #main-content .harbor-guides .gb-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body[data-route="guides"] #main-content .harbor-guides .gb-main-card {
  min-width: 0;
  border: 1px solid #a8ccdf;
  border-radius: 11px;
  background: #f8fcff;
  box-shadow: 0 4px 12px rgba(37, 99, 136, .1);
  overflow: hidden;
}
body[data-route="guides"] #main-content .harbor-guides .gb-main-card .harbor-guide-toggle {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 12px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 0;
  background: #f8fcff;
  box-shadow: none;
  color: #245575;
  font: 700 13px/1.25 'Segoe UI', Arial, sans-serif;
  text-align: left;
}
body[data-route="guides"] #main-content .harbor-guides .gb-main-card .harbor-guide-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, #dceffb, #f1f9ff);
  box-shadow: inset 0 0 0 2px #75b6dc;
  color: #164769;
}
body[data-route="guides"] #main-content .harbor-guides .gb-main-card .harbor-guide-toggle:hover { background: #e9f5fc; }
body[data-route="guides"] #main-content .harbor-guides .gb-group-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #9fc8e0;
  border-radius: 12px;
  background: #e5f3fb;
  color: #2676a4;
  font-size: 20px;
}
body[data-route="guides"] #main-content .harbor-guides .gb-group-copy { min-width: 0; overflow-wrap: anywhere; }
body[data-route="guides"] #main-content .harbor-guides .gb-group-copy small {
  display: block;
  margin-top: 6px;
  color: #5c7b8e;
  font: 600 11px/1.2 'Segoe UI', Arial, sans-serif;
}
body[data-route="guides"] #main-content .harbor-guides .gb-subsections { margin-top: 15px; }
body[data-route="guides"] #main-content .harbor-guides .gb-subgroup {
  padding: 14px;
  border: 1px solid #b8d7e8;
  border-radius: 10px;
  background: #edf7fd;
}
body[data-route="guides"] #main-content .harbor-guides .gb-subgroup + .gb-subgroup { margin-top: 12px; }
body[data-route="guides"] #main-content .harbor-guides .gb-subgroup h4 {
  margin: 0 0 11px;
  color: #315d79;
  font: 700 14px/1.3 Georgia, 'Times New Roman', serif;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  background: transparent;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a,
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a[data-guide-child="drop-table"] {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #bdd9e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(42, 98, 132, .07);
  color: #315a76;
  font: 700 12px/1.3 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a::before {
  content: '◇';
  position: static;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  color: #69a4c7;
  font-size: 13px;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a:hover,
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a[aria-current="page"] {
  border-color: #65aad2;
  background: #e2f2fc;
  box-shadow: inset 0 0 0 1px #91c6e4, 0 3px 9px rgba(37, 102, 144, .12);
  color: #164f75;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-article {
  width: 100%;
  padding: clamp(18px, 3vw, 30px);
  background: #f8fcff;
}
body[data-route="guides"] #main-content .harbor-guides .harbor-guide-article h3 { font-weight: 700; }

/* Give every non-table guide the same framed information surface used by Basic Information. */
body[data-route="guides"] #main-content .harbor-guides .gb-info-layout {
  margin: 12px 6px 24px;
  padding: clamp(17px, 3vw, 27px);
  border: 1px solid #c1e8fa;
  border-image-source: url('../assets/silver-ice-window-frame-v1.svg');
  border-image-slice: 180 200;
  border-image-width: 24px 27px;
  border-image-outset: 9px;
  border-image-repeat: stretch;
  background: #f2f9fe;
  border-radius: 10px;
}
body[data-route="guides"] #main-content .harbor-guides .gb-info-layout h4 { font-weight: 700; }

/* Keep the approved table appearance and add the standard Silver Ice frame around each table. */
body[data-route="guides"] #main-content .harbor-guides .gb-table-frame {
  max-width: 100%;
  min-width: 0;
  margin: 25px 6px 30px;
  padding: 11px;
  border: 1px solid #c1e8fa;
  border-image-source: url('../assets/silver-ice-window-frame-v1.svg');
  border-image-slice: 180 200;
  border-image-width: 24px 27px;
  border-image-outset: 9px;
  border-image-repeat: stretch;
  background: #f8fcff;
}
body[data-route="guides"] #main-content .harbor-guides .gb-table-frame .gb-table-scroll { margin: 0; }
body[data-route="guides"] #main-content .harbor-guides .gb-table-frame :is(th, td) {
  font-weight: 700 !important;
  color: #234e6a;
}

@media (max-width: 900px) {
  body[data-route="guides"] #main-content .harbor-guides .gb-main-grid,
  body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body[data-route="guides"] #main-content .harbor-guides .gb-toolbar { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 5px; }
  body[data-route="guides"] #main-content .harbor-guides .gb-navigation-bar { padding: 4px 14px 12px; }
  body[data-route="guides"] #main-content .harbor-guides .harbor-guide-menu { padding: 0 14px 14px; }
  body[data-route="guides"] #main-content .harbor-guides .gb-main-card .harbor-guide-toggle { grid-template-columns: 38px minmax(0, 1fr); gap: 7px; min-height: 86px; padding: 8px; font-size: 12px; }
  body[data-route="guides"] #main-content .harbor-guides .gb-group-icon { width: 38px; height: 38px; font-size: 17px; }
  body[data-route="guides"] #main-content .harbor-guides .harbor-guide-chevron { display: none; }
  body[data-route="guides"] #main-content .harbor-guides .gb-subgroup { padding: 10px; }
  body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a,
  body[data-route="guides"] #main-content .harbor-guides .harbor-guide-links a[data-guide-child="drop-table"] { min-height: 51px; padding: 7px; font-size: 11px; }
  body[data-route="guides"] #main-content .harbor-guides .gb-info-layout { margin: 11px 2px 20px; padding: 14px 12px; }
  body[data-route="guides"] #main-content .harbor-guides .gb-table-frame { margin: 22px 2px 27px; padding: 8px; }
}
