/* silo.css: moved out of src/views/Silo.astro on 2026-10-27, so a style fix is a single file upload. */
@scope (main) to (.tour-card > *, .inquiry > *, .map > *, .climate > *, .profile > *) {
  /* Hero: taller than the other inner pages, with three figures on a line at the bottom. */
  .tall {
    grid-template-rows: 1fr auto;
    min-height: clamp(460px, 62vw, 640px);
  }
  .tall h1 {
    max-width: 18ch;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
  }
  .tall .lead {
    max-width: 56ch;
  }
  .tall > .rail {
    display: flex;
    gap: clamp(24px, 6vw, 80px);
    margin-block: 0;
    padding-block: 18px 22px;
    border-top: 1px solid rgb(255 255 255 / 0.24);
  }
  .rail dt {
    font: 700 0.7rem/1 var(--head);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .rail dd {
    margin: 8px 0 0;
    font: 600 clamp(1.05rem, 2vw, 1.4rem) / 1.2 var(--title);
  }

  /* Trips */
  .trips {
    display: grid;
    gap: clamp(48px, 7vw, 96px);
  }
  .trip {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
  }
  .trip:nth-child(even) .shots {
    order: 2;
  }
  .shots {
    position: relative;
    padding: 0 0 34px 0;
  }
  .trip:nth-child(odd) .shots {
    padding-right: 34px;
  }
  .trip:nth-child(even) .shots {
    padding-left: 34px;
  }
  .shots img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-deep);
  }
  .shots .inset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    aspect-ratio: 1;
    border: 6px solid var(--paper);
  }
  .trip:nth-child(even) .inset {
    right: auto;
    left: 0;
  }
  .days {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.94);
    font: 700 0.72rem/1 var(--head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .trip:nth-child(even) .days {
    left: 48px;
  }
  .no {
    display: block;
    margin-bottom: 14px;
    font: 700 0.78rem/1 var(--head);
    letter-spacing: 0.14em;
    color: var(--accent-deep);
  }
  .info h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
  }
  .info a {
    text-decoration: none;
  }
  /* The link covers the whole row; z-index keeps it above the arrow, which the hover
   transform would otherwise paint on top and turn into a dead spot. */
  .info a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .tag {
    margin: 12px 0 0;
    font-size: clamp(1.08rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
  }
  .ticks {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
  }
  .ticks li {
    position: relative;
    padding-left: 26px;
    line-height: 1.4;
  }
  .ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.35em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent-deep);
    border-bottom: 2px solid var(--accent-deep);
    transform: rotate(-45deg);
  }
  .specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 26px 0 0;
    border-block: 1px solid var(--line);
  }
  .specs div {
    padding: 14px 12px 14px 0;
  }
  .specs div + div {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .specs dt {
    font: 700 0.68rem/1.2 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .specs dd {
    margin: 7px 0 0;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
  }
  .price b {
    font: 800 1.7rem/1 var(--head);
  }
  .go {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--ink);
    transition: background 0.2s, transform 0.2s;
  }
  .go::before {
    content: '';
    width: 9px;
    height: 9px;
    margin-left: -3px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }
  .trip:hover .go {
    background: var(--accent-deep);
    transform: translateX(4px);
  }
  .trip:hover h2 {
    text-decoration: underline 2px var(--accent);
    text-underline-offset: 6px;
  }

  /* Difficulty bars, in the rows and in the table. */
  .grade {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .grade i {
    width: 5px;
    height: 13px;
    border-radius: 2px;
    background: var(--line);
  }
  .grade i:nth-of-type(4) {
    margin-right: 6px;
  }
  .grade[data-grade='1'] i:nth-of-type(-n + 1),
  .grade[data-grade='2'] i:nth-of-type(-n + 2),
  .grade[data-grade='3'] i:nth-of-type(-n + 3),
  .grade[data-grade='4'] i:nth-of-type(-n + 4) {
    background: var(--accent-deep);
  }

  .scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }
  table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
  }
  th,
  td {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
  }
  tbody tr:last-child :is(th, td) {
    border-bottom: 0;
  }
  thead th {
    font: 700 0.72rem/1 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  tbody th {
    font: 600 1.08rem/1.3 var(--title);
  }
  tbody th a {
    text-decoration: none;
  }
  tbody tr:hover th a {
    text-decoration: underline 2px var(--accent);
    text-underline-offset: 4px;
  }
  td b {
    font: 800 1.15rem/1 var(--head);
  }

  /* Guide */
  .guide {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(20px, 6vw, 88px);
    align-items: start;
    padding-top: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--line);
  }
  .guide + .guide {
    margin-top: clamp(40px, 6vw, 72px);
  }
  .guide h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
  .guide .prose {
    max-width: none;
    color: var(--ink-soft);
  }
  .guide .prose strong {
    color: var(--ink);
  }
  /* Blog articles of this destination: same two columns as the guide blocks, one hairline row per article. */
  .reads {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(20px, 6vw, 88px);
    align-items: start;
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--line);
  }
  .reads h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
  .reads li {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .reads li:first-child {
    padding-top: 6px;
  }
  .reads a {
    font: 700 1.2rem/1.3 var(--title);
    text-decoration: none;
  }
  .reads a::after {
    content: '';
    position: absolute;
    inset: 0;
  }
  .reads a:hover {
    text-decoration: underline;
  }
  .reads span:not(.eyebrow) {
    flex: none;
    font-size: 0.9rem;
    color: var(--ink-soft);
  }
  @media (max-width: 800px) {
    .reads {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  .band {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: clamp(10px, 1.4vw, 18px);
    margin-block: clamp(40px, 6vw, 72px);
  }
  .band img {
    width: 100%;
    height: clamp(200px, 26vw, 340px);
    object-fit: cover;
    border-radius: var(--radius);
  }

  .ask {
    display: grid;
    grid-template-columns: 1fr minmax(0, 480px);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
  }
  .faq {
    margin-top: 24px;
    --line: rgb(255 255 255 / 0.18);
  }
  .faq .acc-body {
    color: rgb(255 255 255 / 0.78);
  }

  /* Other destinations: portrait photo cards. */
  .others {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(10px, 1.4vw, 18px);
  }
  .others li {
    position: relative;
    display: grid;
    align-items: end;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    background: var(--ink);
    isolation: isolate;
  }
  .others img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
  }
  .others li:hover img {
    transform: scale(1.05);
  }
  .others li::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 40%, rgb(12 34 45 / 0.92));
  }
  .others div {
    padding: 18px;
  }
  .others span {
    font: 700 0.7rem/1 var(--head);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .others h3 {
    margin-top: 8px;
    font-size: 1.3rem;
  }
  .others a {
    text-decoration: none;
  }
  .others a::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  @media (max-width: 900px) {
    /* Stacked rows need a visible break: a full width hairline between trips. */
    .trips {
      gap: 0;
    }
    .trip {
      grid-template-columns: minmax(0, 1fr);
      gap: 26px;
    }
    .trip + .trip {
      margin-top: 44px;
      padding-top: 44px;
      border-top: 1px solid var(--line);
    }
    .trip:nth-child(even) .shots {
      order: 0;
    }
    .guide,
    .ask {
      grid-template-columns: minmax(0, 1fr);
    }
    .others {
      display: flex;
      margin-inline: calc(-1 * var(--gutter));
      padding-inline: var(--gutter);
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    .others::-webkit-scrollbar {
      display: none;
    }
    .others li {
      flex: none;
      width: min(62vw, 260px);
      scroll-snap-align: start;
    }
  }
  @media (max-width: 800px) {
    .band {
      grid-template-columns: 1fr 1fr;
    }
    .band img {
      height: 42vw;
    }
    .band picture:first-child > img {
      grid-column: span 2;
      height: 56vw;
    }
  }
  @media (max-width: 520px) {
    .shots,
    .trip:nth-child(odd) .shots,
    .trip:nth-child(even) .shots {
      padding: 0 22px 26px 0;
    }
    .trip:nth-child(even) .inset {
      left: auto;
      right: 0;
    }
    .trip:nth-child(even) .days {
      left: 14px;
    }
    .specs {
      grid-template-columns: minmax(0, 1fr);
    }
    .specs div,
    .specs div + div {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      padding: 11px 0;
      border-left: 0;
    }
    .specs div + div {
      border-top: 1px solid var(--line);
    }
    .specs dd {
      margin: 0;
      text-align: right;
    }
    .tall > .rail {
      gap: 18px;
      justify-content: space-between;
    }
  }
}
