/* prints.html: the re-hang switch, pair rows, subject groups. Builds on site.css. */

.prints{max-width:80rem}

/* top: opening sentence left, the two-button switch right */
.top{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:1.25rem 2rem;margin-bottom:clamp(1.75rem,4vw,2.75rem);
}
.top .opening{margin:0;flex:1 1 24rem}
.opening__title{max-width:none}
.switch{display:grid;gap:0.8rem}
.switch__btns{display:grid;grid-template-columns:repeat(2,8.5rem);gap:1.1rem}
.switch .btn{width:100%}
.switch .btn[aria-pressed="true"]{background:var(--ink);color:var(--ground);font-weight:700}
.switch__state{margin:0;font-size:var(--t--1);line-height:1.3}

/* views */
.view[hidden],.group[hidden]{display:none}

/* pair view: a short head, then the pair crossing the middle */
.row,.group{scroll-margin-top:7rem}
.row{margin-bottom:clamp(2.5rem,6vw,4.5rem)}
.row__head{margin-bottom:1.25rem;align-items:start}
.row__head h2{grid-column:1 / 5;margin:0}
.row__text{grid-column:5 / 11}
.row__text p{margin-bottom:0.75rem}
.row__text p:last-child{margin-bottom:0}

.prints .pair{align-items:start;margin-bottom:0}
.prints .pair__note{align-self:center;font-weight:500}

/* each print: picture on top, words inside the same mount */
.print img{border-bottom:var(--rule) solid var(--ink)}
.print__body{padding:0.7rem 0.85rem 0.6rem}
.print__title{font-size:1.4rem;margin:0 0 0.35rem}
.print__line{font-size:var(--t--1);line-height:1.4;margin:0 0 0.55rem}
.print__price{font-size:var(--t--1);font-weight:700;margin:0 0 0.15rem}
.print__body .link{
  display:inline-flex;align-items:center;min-height:2.75rem;font-size:var(--t--1);
}

/* subject view: gutters closed, one headed group at a time */
.group{margin-bottom:clamp(2.5rem,6vw,4.5rem)}
.group__head{margin-bottom:1.25rem}
.group__head h2{margin-bottom:0.4rem}
.group__head p{margin:0}
.group__grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.5rem clamp(1rem,2.5vw,2rem);align-items:start;
}

/* closing links */
.after{margin-top:clamp(1rem,3vw,2rem);max-width:38rem}
.after p{margin-bottom:0.8rem}
.after p:last-child{margin-bottom:0}

/* phones: larger pairs stack, the gutter becomes a caption line between them */
@media (max-width:47.99rem){
  .row__head h2,.row__text{grid-column:1 / -1}
  .row__head h2{margin-bottom:0.6rem}
  .prints .pair{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"left" "note" "right";row-gap:0.9rem;
  }
  .prints .pair__note{text-align:left;align-self:start}
  .prints .mount--sink{margin-top:0}
  .switch__btns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .switch{width:100%}
  .group__grid{grid-template-columns:minmax(0,1fr)}
}
