/* Content-specific layouts. Keep the established colours, links and data hooks. */

/* Live information: a readable bulletin, not three competing cards. */
.glt-home-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 0;
  border-top: 1px solid #cbd7d4;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.glt-home-status-grid > a,
.glt-home-status-grid > a:last-child {
  display: grid;
  grid-template-columns: 126px minmax(180px, .7fr) minmax(0, 1.5fr) 18px;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 68px;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.glt-home-status-grid > a::after { content: '↗'; color: #52726f; text-align: right; }
.glt-home-status-grid > a:hover { background: #eef3f1; }
.glt-home-status-grid small { grid-row: auto; padding: 0; color: #536c72; font-size: 13px; }
.glt-home-status-grid b { margin: 0; font-size: 21px; line-height: 1.5; }
.glt-home-status-grid span { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Tools: one compact shortcut bar, with a clear hit area for every action. */
.glt-common-tools {
  gap: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: #eaf0ed;
}
.glt-common-tools > a {
  min-width: 0;
  min-height: 70px;
  padding: 10px 18px;
  gap: 12px;
  border: 0;
  border-right: 1px solid #cedbd6;
  border-radius: 0;
  background: transparent;
}
.glt-common-tools > a:last-child { border-right: 0; }
.glt-common-tools > a:hover { background: #dde9e3; }
.glt-common-tools i { flex: 0 0 32px; width: 32px; height: 32px; background: #fff; border-radius: 8px; }
.glt-common-tools small { font-size: 12px; }
.glt-common-tools em { font-size: 14px; }

/* The full tool directory also reads as a list, rather than another card gallery. */
.glt-tools-links { gap: 0 28px; }
.glt-tools-links > a {
  min-width: 0;
  padding: 17px 25px 17px 0;
  border: 0;
  border-bottom: 1px solid #d3ddda;
  border-radius: 0;
  background: transparent;
}
.glt-tools-links > a:hover { background: #edf3f0; }
.glt-tools-links b { margin-bottom: 4px; }
.glt-tools-links i { right: 6px; }

/* Articles: one lead story, supported by two compact photographic reads. */
.home-guide-picks {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-auto-flow: row;
  gap: 24px 34px;
  align-items: stretch;
}
.home-guide-pick,
.home-guide-pick:hover {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: visible;
}
.home-guide-pick:first-child { display: block; grid-column: 1; grid-row: 1 / span 2; }
.home-guide-pick:first-child > .gltf-guide-photo,
.home-guide-pick:first-child > img {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}
.home-guide-pick:first-child > div { padding: 18px 0 0; }
.home-guide-pick:first-child h3 { font: 700 27px/1.5 Georgia, 'Songti SC', serif; -webkit-line-clamp: 3; }
.home-guide-pick:first-child p { display: -webkit-box; margin-top: 10px; max-width: 42em; }
.home-guide-pick:nth-child(n+2) {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  gap: 20px;
}
.home-guide-pick:nth-child(n+2) > .gltf-guide-photo,
.home-guide-pick:nth-child(n+2) > img {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
  border-radius: 9px;
  object-fit: cover;
}
.home-guide-pick:nth-child(n+2) > div { min-width: 0; padding: 8px 0 0; }
.home-guide-pick:nth-child(n+2) h3 { margin-top: 12px; font-size: 20px; line-height: 1.6; -webkit-line-clamp: 4; }
.home-guide-pick:nth-child(n+2) p,
.home-guide-pick:nth-child(n+2) .gltf-guide-mini-facts { display: none; }
.home-guide-pick:hover h3 { color: #326d76; }
.home-content-hubs {
  margin-top: 6px;
  gap: 0;
  border-top: 1px solid var(--line);
}
.home-content-hubs > a,
.home-content-hubs > a:hover {
  min-width: 0;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.home-content-hubs > a:first-child { padding-left: 0; }
.home-content-hubs > a:last-child { border-right: 0; padding-right: 0; }
.home-content-hubs > a:hover b { color: #326d76; }

/* Daily recommendations: numbered reading rows, not another card grid. */
.glt-daily-pick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: daily-pick;
  border-top: 1px solid #cbd7d4;
}
.glt-daily-pick-links > a {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(220px, .9fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  min-height: 86px;
  padding: 20px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  counter-increment: daily-pick;
}
.glt-daily-pick-links > a:hover { background: #eef3f1; }
.glt-daily-pick-links small { color: #566e72; font-size: 13px; }
.glt-daily-pick-links small::before { content: counter(daily-pick, decimal-leading-zero); margin-right: 14px; color: #b63c3d; font-size: 15px; font-weight: 700; }
.glt-daily-pick-links h3 { margin: 0; font: 700 22px/1.5 Georgia, 'Songti SC', serif; }
.glt-daily-pick-links span { color: var(--muted); font-size: 14px; }
.glt-daily-pick-links h3 { overflow-wrap: anywhere; }
.glt-daily-pick-links span { line-height: 1.85; overflow-wrap: anywhere; }
.glt-curation-updated { margin: 14px 0 0; color: #526971; font-size: 12px; }
.gltf-daily-event-grid > article { min-width: 0; }
.gltf-visitor-event-details { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 7px 10px; margin: 16px 0; color: #294a55; font-size: 13px; line-height: 1.8; }
.gltf-visitor-event-details dt { color: #5a727a; }
.gltf-visitor-event-details dd { margin: 0; overflow-wrap: anywhere; }
.gltf-daily-center .gltf-curation-source { color: #536b75; font-size: 12px; line-height: 1.8; }
.gltf-daily-center .gltf-curation-notice { padding: 11px 13px; border-left: 3px solid #b87135; background: #fbf1e6; color: #754920; font-size: 13px; }
.gltf-curation-deep { display: grid; gap: 7px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #d6dfdd; }
.gltf-curation-deep small { color: #386471; font-weight: 700; }
.gltf-curation-deep button { width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: #173d50; text-align: left; font: inherit; font-weight: 700; line-height: 1.7; cursor: pointer; }
.gltf-curation-deep span { color: #536b75; font-size: 12px; }
.gltf-daily-feature-card > .gltf-daily-feature-media { min-width: 0; width: 100%; }
.gltf-daily-feature-card > .gltf-daily-feature-media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .gltf-daily-feature-card > .gltf-daily-feature-media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
}

/* Related guide figures must never use their intrinsic aspect ratio to widen a grid column. */
.gltf-guide-related > div > a { min-width: 0; border-radius: 9px; box-shadow: none; }
.gltf-guide-related > div > a > span { min-width: 0; background: #fff; }
.gltf-guide-related > div > a > .gltf-guide-photo { min-width: 0; width: 100%; }
.gltf-guide-related > div > a > span > strong { color: var(--ink); font: 700 16px/1.6 'Microsoft YaHei', 'PingFang SC', sans-serif; overflow-wrap: anywhere; }
.gltf-guide-related .gltf-guide-mini-facts span { color: #49665b; font-size: 11px; }

.glt-home-status-grid > a:focus-visible,
.glt-common-tools > a:focus-visible,
.glt-daily-pick-links > a:focus-visible,
.glt-tools-links > a:focus-visible,
.home-guide-pick:focus-visible,
.home-content-hubs > a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 1000px) {
  .home-guide-picks { gap: 22px; }
  .home-guide-pick:nth-child(n+2) { grid-template-columns: 120px minmax(0, 1fr); gap: 15px; }
  .home-guide-pick:nth-child(n+2) h3 { font-size: 18px; }
  .home-guide-pick:first-child h3 { font-size: 24px; }
  .glt-daily-pick-links > a { grid-template-columns: 148px minmax(0, 1fr); gap: 4px 20px; }
  .glt-daily-pick-links small { grid-row: 1 / span 2; }
  .glt-daily-pick-links span { grid-column: 2; }
}
@media (max-width: 850px) {
  .glt-common-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glt-common-tools > a { min-height: 74px; padding: 12px 18px; }
  .glt-common-tools > a:nth-child(even) { border-right: 0; }
  .glt-common-tools > a:nth-child(-n+2) { border-bottom: 1px solid #cedbd6; }
  .home-content-hubs { grid-template-columns: 1fr; }
  .home-content-hubs > a,
  .home-content-hubs > a:first-child,
  .home-content-hubs > a:last-child { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .gltf-guide-related > div > a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  .gltf-guide-related > div > a > .gltf-guide-photo { aspect-ratio: auto; height: 100%; min-height: 144px; }
  .gltf-guide-related > div > a > .gltf-guide-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .gltf-guide-related > div > a > span { padding: 14px; }
  .gltf-guide-related .gltf-guide-mini-facts { gap: 4px; }
}
@media (max-width: 600px) {
  .glt-home-status-grid > a,
  .glt-home-status-grid > a:last-child {
    grid-template-columns: 88px minmax(0, 1fr) 14px;
    gap: 3px 10px;
    padding: 13px 0;
  }
  .glt-home-status-grid small { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 3px; font-size: 12px; }
  .glt-home-status-grid b { grid-column: 2; grid-row: 1; font-size: 18px; }
  .glt-home-status-grid span { grid-column: 2; grid-row: 2; font-size: 13px; }
  .glt-home-status-grid > a::after { grid-column: 3; grid-row: 1 / span 2; }
  .glt-common-tools { padding: 0; }
  .glt-common-tools > a { padding: 14px 12px; gap: 9px; }
  .glt-common-tools i { flex-basis: 28px; width: 28px; height: 28px; }
  .glt-common-tools b { font-size: 15px; }
  .glt-common-tools small { margin-top: 3px; font-size: 12px; }
  .glt-tools-links { gap: 0; }
  .home-guide-picks { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-guide-pick:first-child { grid-column: auto; grid-row: auto; }
  .home-guide-pick:first-child > div { padding: 15px 0 0; }
  .home-guide-pick:first-child h3 { font-size: 23px; -webkit-line-clamp: 3; }
  .home-guide-pick:nth-child(n+2) { grid-column: auto; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
  .home-guide-pick:nth-child(n+2) > .gltf-guide-photo,
  .home-guide-pick:nth-child(n+2) > img { height: 100%; min-height: 154px; }
  .home-guide-pick:nth-child(n+2) > div { padding: 2px 0 0; }
  .home-guide-pick:nth-child(n+2) h3 { margin-top: 8px; font-size: 17px; -webkit-line-clamp: 4; }
  .home-content-hubs { margin-top: 0; }
  .home-content-hubs i { width: 32px; height: 32px; border-radius: 8px; }
  .glt-daily-pick-links > a { grid-template-columns: minmax(0, 1fr); gap: 5px; min-height: 0; padding: 18px 0; }
  .glt-daily-pick-links small { grid-row: auto; }
  .glt-daily-pick-links h3 { font-size: 21px; }
  .glt-daily-pick-links span { grid-column: auto; font-size: 13px; }
}
@media (max-width: 360px) {
  .gltf-guide-related > div > a { grid-template-columns: 94px minmax(0, 1fr); }
  .gltf-guide-related > div > a > span { padding: 12px; }
  .home-guide-pick:nth-child(n+2) { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
  .glt-common-tools > a { padding: 13px 10px; gap: 7px; }
}
