/* Shuangqiao Valley ice-climbing guide.
   Uses css/trekking.css for the header, footer, buttons and base type.
   Palette follows the ice-climbing activity page (--field/--paper/--soft/--accent). */

.ice-guide-page {
  --field: #172536;
  --paper: #eaf2f2;
  --print: #0b1f3a;
  --soft: #b9d1da;
  --accent: #95bfd0;
  background: var(--paper);
  color: var(--print);
}

.ice-guide-page .site-header { position: absolute; }

.sg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 40rem;
  background: var(--field);
  color: #f2f7f8;
}
/* Keeps the site header legible where it crosses the bright photograph. */
.sg-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto 0;
  height: 10rem;
  background: linear-gradient(180deg, rgba(9, 19, 30, .82), rgba(9, 19, 30, .34) 55%, transparent);
  pointer-events: none;
}
.sg-hero-copy { position: relative; z-index: 2; align-self: center; padding: 9rem 6vw 4.5rem; }
.sg-kicker {
  margin: 0 0 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.sg-kicker a { color: inherit; text-underline-offset: .3em; }
.sg-hero h1 {
  max-width: 15ch;
  margin: 0 0 1.4rem;
  font-size: clamp(2.9rem, 5.2vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.035em;
}
.sg-hero-copy > p {
  max-width: 44ch;
  margin: 0 0 .9rem;
  color: rgba(242, 247, 248, .86);
  font-size: 1.08rem;
  line-height: 1.62;
}
.sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2rem; }
.sg-actions .button { margin-top: 0; background: var(--accent); color: var(--print); }
.sg-actions .button:hover { background: #b6dbe7; }
.sg-textlink { font-size: .92rem; font-weight: 600; text-underline-offset: .3em; }
.sg-hero-media { position: relative; min-height: 26rem; margin: 0; }
.sg-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-hero-media figcaption {
  position: absolute;
  right: 1rem;
  bottom: .85rem;
  left: 1rem;
  font-size: .68rem;
  color: rgba(255, 255, 255, .82);
  text-align: right;
  text-shadow: 0 1px 3px rgba(9, 19, 30, .9);
}
.sg-hero-media figcaption a { color: inherit; }

.sg-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: rgba(11, 31, 58, .16);
  list-style: none;
}
.sg-facts li {
  padding: 1.4rem 1.6rem;
  background: var(--soft);
  font-size: .84rem;
  line-height: 1.35;
}
.sg-facts strong {
  display: block;
  margin-bottom: .3rem;
  font: 500 1.42rem/1.1 var(--serif);
  letter-spacing: -.02em;
}

.sg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.9rem;
  padding: 1.4rem 6vw;
  border-bottom: 1px solid rgba(11, 31, 58, .2);
  background: var(--paper);
}
.sg-nav a {
  color: var(--print);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.sg-main { max-width: 1240px; margin: 0 auto; padding: 0 6vw 4rem; }

.sg-section {
  padding: 3.4rem 0;
  border-bottom: 1px solid rgba(11, 31, 58, .18);
  scroll-margin-top: 1.5rem;
}
.sg-section > h2 {
  max-width: 26ch;
  margin: 0 0 1.4rem;
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  line-height: 1.08;
}
.sg-section h3 {
  margin: 2.2rem 0 .7rem;
  font-size: 1.34rem;
  line-height: 1.25;
}
.sg-section p,
.sg-section li { max-width: 74ch; line-height: 1.78; }
.sg-section p { margin: 0 0 1rem; }
.sg-lede { font-size: 1.1rem; color: #24374f; }

.sg-list { margin: 0 0 1rem; padding-left: 1.15rem; }
.sg-list li { margin-bottom: .55rem; }

.sg-table-wrap {
  margin: 1.6rem 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sg-walls {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.sg-walls caption {
  margin-bottom: .9rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #3d5a6b;
}
.sg-walls thead th {
  padding: 0 .55rem .8rem;
  border-bottom: 1px solid rgba(11, 31, 58, .45);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.sg-walls tbody th,
.sg-walls tbody td {
  padding: .78rem .55rem;
  border-bottom: 1px solid rgba(11, 31, 58, .14);
  text-align: right;
  white-space: nowrap;
}
.sg-walls tbody th {
  text-align: left;
  font-weight: 600;
  white-space: normal;
}
.sg-walls tbody th span { display: block; font-size: .78rem; font-weight: 400; color: #47616f; }
.sg-walls thead th:nth-child(1) { text-align: left; }
.sg-walls tbody tr.is-teaching { background: rgba(149, 191, 208, .28); }
.sg-walls .is-grade { font-weight: 700; }
.sg-hint {
  max-width: 74ch;
  margin: 0 0 1.4rem;
  font-size: .84rem;
  color: #3d5a6b;
}

.sg-callout {
  max-width: 74ch;
  margin: 1.6rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--print);
  background: rgba(149, 191, 208, .26);
  font-size: .95rem;
  line-height: 1.7;
}
.sg-callout p:last-child { margin-bottom: 0; }

.sg-trips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 1.8rem 0 1.2rem;
  background: rgba(11, 31, 58, .18);
}
.sg-trips article { padding: 1.7rem 1.8rem; background: #fff; }
.sg-trips h3 { margin: 0 0 .5rem; font-size: 1.42rem; }
.sg-trips p { margin: 0 0 .8rem; font-size: .97rem; }
.sg-trips dl { margin: 0; font-size: .88rem; }
.sg-trips dt { margin-top: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; color: #3d5a6b; }
.sg-trips dd { margin: .2rem 0 0; line-height: 1.65; }

.sg-itinerary {
  max-width: 74ch;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
}
.sg-itinerary li {
  position: relative;
  padding: .95rem 0 .95rem 3.6rem;
  border-top: 1px solid rgba(11, 31, 58, .16);
  max-width: none;
}
.sg-itinerary li::before {
  counter-increment: day;
  content: "D" counter(day);
  position: absolute;
  left: 0;
  top: 1rem;
  font: 700 .8rem/1 var(--sans);
  letter-spacing: .05em;
  color: #3d5a6b;
}
.sg-itinerary strong { display: block; margin-bottom: .25rem; font-weight: 700; }

.sg-check {
  display: grid;
  gap: .1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.sg-check li {
  padding: .85rem 0 .85rem 1.9rem;
  border-top: 1px solid rgba(11, 31, 58, .16);
  max-width: none;
}
.sg-check li::before {
  content: "";
  position: absolute;
  margin: .55rem 0 0 -1.9rem;
  width: .62rem;
  height: .62rem;
  border: 1px solid var(--print);
}
.sg-check li { position: relative; }

.sg-faq details {
  border-top: 1px solid rgba(11, 31, 58, .18);
  padding: 1.15rem 0;
}
.sg-faq summary {
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
}
.sg-faq details p { margin: .85rem 0 0; }

.sg-related {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.sg-related li { max-width: none; }
.sg-related a { font-weight: 600; text-underline-offset: .3em; }

.sg-enquiry {
  padding: clamp(3rem, 6vw, 5rem) 6vw;
  background: var(--field);
  color: #f2f7f8;
}
.sg-enquiry-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4vw; align-items: end; }
.sg-enquiry h2 {
  max-width: 20ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
}
.sg-enquiry p { max-width: 46ch; margin: 0; color: rgba(242, 247, 248, .86); line-height: 1.7; }
.sg-enquiry .button { background: var(--accent); color: var(--print); }
.sg-enquiry .button:hover { background: #b6dbe7; }
.sg-enquiry-note { margin-top: 1.1rem !important; font-size: .82rem; color: rgba(242, 247, 248, .66) !important; }
.sg-brief-fields {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.sg-brief-fields li {
  max-width: none;
  padding: .5rem 0 .5rem 1.4rem;
  border-top: 1px solid rgba(242, 247, 248, .22);
  color: rgba(242, 247, 248, .88);
  line-height: 1.5;
}
.sg-brief-fields li::before { content: "—"; float: left; margin-left: -1.4rem; color: var(--accent); }

.sg-sources { padding: 2.6rem 0 1rem; font-size: .84rem; color: #2c4457; }
.sg-sources h2 { margin: 0 0 .8rem; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.sg-sources ul { margin: 0; padding-left: 1.1rem; }
.sg-sources li { margin-bottom: .5rem; max-width: 78ch; overflow-wrap: anywhere; }
.sg-sources a { text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .sg-hero { grid-template-columns: 1fr; min-height: 0; }
  .sg-hero-copy { padding: 8rem 6vw 3rem; }
  .sg-hero-media { min-height: 22rem; order: 2; }
  .sg-facts { grid-template-columns: 1fr 1fr; }
  .sg-trips { grid-template-columns: 1fr; }
  .sg-enquiry-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .sg-hero-copy { padding: 7rem 5vw 2.6rem; }
  .sg-hero h1 { font-size: clamp(2.4rem, 9.6vw, 3.4rem); }
  .sg-actions { gap: 1rem; }
  .sg-nav { gap: .55rem 1.2rem; padding: 1.1rem 5vw; font-size: .88rem; }
  .sg-main { padding: 0 5vw 3rem; }
  .sg-section { padding: 2.6rem 0; }
  .sg-facts li { padding: 1.1rem 1.2rem; }
  .sg-walls { font-size: .84rem; min-width: 40rem; }
  .sg-enquiry { padding: 3rem 5vw; }
}

.sg-swipe { display: none; margin: 1.2rem 0 -.4rem; font-size: .82rem; font-weight: 600; color: #3d5a6b; }
@media (max-width: 760px) { .sg-swipe { display: block; } }
