/* The hub: one work order for the whole descent.
   Sections in reading order — identity band, register of ten orders, the chain,
   standing notes, statement of figures, site check, survey, sign-off. */

/* ---------------- hero ---------------- */

.hero {
  padding-block: clamp(1.6rem, 3.4vw, 2.8rem) clamp(1.4rem, 2.6vw, 2rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-hero);
  line-height: 0.8;
  letter-spacing: -0.012em;
  margin-top: 0.35rem;
}

.hero__title span {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--green-lit);
}

.hero__sub {
  max-width: 46ch;
  margin-top: 1rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__sub b {
  color: var(--ink);
  font-weight: 600;
}

.hero__start {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  flex-wrap: wrap;
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.hero__note {
  display: flex;
  gap: 0.5rem 1.1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: var(--fs-nano);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__note span + span::before {
  content: "·";
  margin-right: 1.1rem;
  color: var(--rule-strong);
}

.hero__aside {
  position: relative;
  padding-top: 0.3rem;
}

.hero__plate {
  position: relative;
}

.hero__plate .plate {
  aspect-ratio: 16 / 9;
}

.hero__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 0.25rem 0.45rem;
  background: var(--sheet);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule-mid);
  margin-top: 0.9rem;
}

.hero__figure {
  background: var(--sheet);
  padding: 0.55rem 0.6rem 0.6rem;
}

.hero__figure b {
  display: block;
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.hero__figure span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--mute);
}

@media (max-width: 560px) {
  .hero__figures {
    display: none;
  }
  .hero__figure {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }
  .hero__figure b {
    flex: 0 0 auto;
    min-width: 4.6em;
  }
  .hero__figure span {
    margin-top: 0;
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__aside {
    max-width: 560px;
  }
}

/* ---------------- register ---------------- */

.register {
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.register__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
}

.register__head h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: 0.86;
}

.register__head p {
  max-width: 40ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--mute);
}

.register__cols {
  display: grid;
  grid-template-columns: 34px 64px 148px minmax(0, 1fr) 74px 96px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.register__cols span:nth-child(5),
.register__cols span:nth-child(6) {
  text-align: right;
}

.orders {
  border-bottom: 1px solid var(--ink);
}

.order {
  display: grid;
  grid-template-columns: 34px 64px 148px minmax(0, 1fr) 74px 96px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 160ms var(--ease);
}

.order:last-child {
  border-bottom: 0;
}

.order:hover,
.order:focus-visible {
  background: var(--green-wash);
}

.order:hover .order__box,
.order:focus-visible .order__box {
  border-color: var(--green);
}

.order__box {
  width: 17px;
  height: 17px;
  margin-left: 3px;
  border: 1px solid var(--rule-strong);
  position: relative;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.order__box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--on-green);
  border-bottom: 2px solid var(--on-green);
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 160ms var(--ease), transform 200ms var(--ease-out);
}

.order.is-visited .order__box {
  background: var(--green);
  border-color: var(--green);
}

.order.is-visited .order__box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.order__code {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.order__cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.order__hook {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-2);
  min-width: 0;
}

.order__depth {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--mute);
  text-align: right;
}

.order__plate {
  justify-self: end;
  width: 96px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--rule-mid);
  background: #fff;
}

.order__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.order:hover .order__plate img {
  transform: scale(1.04);
}

.order.is-visited .order__hook {
  color: var(--mute);
}

@media (max-width: 1000px) {
  .register__cols {
    grid-template-columns: 34px 58px minmax(0, 1fr) 74px;
  }
  .register__cols span:nth-child(3),
  .register__cols span:nth-child(6) {
    display: none;
  }
  .order {
    grid-template-columns: 34px 58px minmax(0, 1fr) 74px;
    row-gap: 0.2rem;
    align-items: start;
    padding-block: 0.6rem;
  }
  /* Hooks run from one line to four, so the box and code are pinned to the
     first line instead of being centred against a moving row height. */
  .order__box {
    margin-top: 0.16rem;
  }
  .order__code,
  .order__depth {
    margin-top: 0.12rem;
  }
  .order__cat {
    display: none;
  }
  .order__plate {
    display: none;
  }
  .order__hook {
    font-size: 0.9rem;
  }
  .order__hook::before {
    content: attr(data-cat) " · ";
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
  }
}

@media (max-width: 560px) {
  .register__cols {
    grid-template-columns: 30px 52px minmax(0, 1fr);
  }
  /* Depth values are hidden at this width, so the depth header goes with them
     and the remaining column is labelled for the hook it actually sits over. */
  .register__cols span:nth-child(5) {
    display: none;
  }
  .order {
    grid-template-columns: 30px 52px minmax(0, 1fr);
  }
  .order__depth {
    display: none;
  }
}

.register__foot {
  display: flex;
  align-items: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
}

.meter {
  flex: 1 1 180px;
  display: flex;
  gap: 3px;
  min-width: 140px;
}

.meter i {
  flex: 1;
  height: 8px;
  background: var(--rule);
  transition: background 220ms var(--ease);
}

.meter i.is-on {
  background: var(--green);
}

.register__count {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

.register__count b {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------------- chain ---------------- */

.chain__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.chain__cell {
  position: relative;
  padding: 0.8rem 0.8rem 0.9rem;
  border-right: 1px solid var(--rule);
}

.chain__cell:last-child {
  border-right: 0;
}

.chain__cell::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0;
  width: 7px;
  height: 3px;
  background: var(--green);
}

.chain__i {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--green-lit);
}

.chain__l {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1;
  text-transform: uppercase;
}

.chain__n {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--mute);
}

@media (max-width: 900px) {
  .chain__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chain__cell:nth-child(3) {
    border-right: 0;
  }
  .chain__cell:nth-child(-n + 3) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .chain__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chain__cell:nth-child(3) {
    border-right: 1px solid var(--rule);
  }
  .chain__cell:nth-child(even) {
    border-right: 0;
  }
  .chain__cell:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid var(--rule);
  }
  .chain__cell:nth-child(3) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------------- standing notes ---------------- */

.notes {
  border-top: 1px solid var(--rule-mid);
  border-bottom: 1px solid var(--rule-mid);
  background: var(--sheet-sunk);
}

.notes__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.notes__item {
  padding: 0.7rem clamp(0.8rem, 1.6vw, 1.4rem);
  border-right: 1px solid var(--rule);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.notes__item:last-child {
  border-right: 0;
}

.notes__item b {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

@media (max-width: 860px) {
  .notes__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notes__item:nth-child(2) {
    border-right: 0;
  }
  .notes__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .notes__row {
    grid-template-columns: 1fr;
  }
  .notes__item {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .notes__item:last-child {
    border-bottom: 0;
  }
}

/* ---------------- figures ---------------- */

.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.figures__cell {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem 1rem;
  border-right: 1px solid var(--rule);
}

.figures__cell:last-child {
  border-right: 0;
}

.figures__v {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.figures__cell.is-low .figures__v {
  color: var(--hazard);
}

.figures__cell.is-up .figures__v {
  color: var(--green-lit);
}

.figures__l {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.figures__src {
  display: block;
  /* Pinned to the cell floor so a label that wraps to two lines does not drop
     its source below the other three in the row. */
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.figures__note {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--fs-nano);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 780px) {
  .figures__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figures__cell:nth-child(2) {
    border-right: 0;
  }
  .figures__cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------------- site check ---------------- */

.check .wrap {
  padding-block: clamp(2.2rem, 4.6vw, 3.8rem);
}

.check {
  background: var(--green-wash);
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
}

.check__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
}

.check h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.86;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.check h2 em {
  font-style: normal;
  color: var(--green-lit);
}

.check__p {
  max-width: 48ch;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.check__tick {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--green-line);
  background: var(--sheet);
  text-align: left;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.check__tick:hover {
  border-color: var(--green);
}

.check__tick[aria-checked="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

.check__box {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
}

.check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg) scale(0.5);
  opacity: 0;
  transition: opacity 140ms var(--ease), transform 220ms var(--ease-out);
}

.check__tick[aria-checked="true"] .check__box {
  border-color: var(--on-green);
}

.check__tick[aria-checked="true"] .check__box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.check__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.4;
}

.check__panel {
  position: relative;
  transition: border-color 200ms var(--ease);
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--rule-mid);
  background: var(--sheet);
}

.check__panel.is-raised {
  border-color: var(--green);
}

.check__panel > .mono {
  color: var(--mute);
}

.check__result {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.check__result[hidden] {
  display: none;
}

.check__say {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.check__say b {
  color: var(--ink);
  font-weight: 600;
}

.check__stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: baseline;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}

.check__stat b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 0.9;
  color: var(--ink);
}

.check__stat span {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--mute);
}

.check__stamp {
  position: absolute;
  right: 12px;
  top: -38px;
  width: 78px;
  height: 78px;
  font-size: 0.38rem;
  background: var(--sheet);
}

.check__reset {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

.check__reset:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .check__grid {
    grid-template-columns: 1fr;
  }
  /* The stamp is the panel's receipt, so on a phone it earns its space only
     once the hand is up. Until then the slot collapses to nothing. */
  .check__stamp {
    position: static;
    margin: 0;
    height: 0;
    overflow: hidden;
    background: transparent;
    transition: opacity 180ms var(--ease-out), height 260ms var(--ease-out),
      margin 260ms var(--ease-out), transform 260ms var(--ease-out);
  }
  .check__stamp.is-struck {
    height: 78px;
    margin: 0 0 0.7rem;
  }
}

/* ---------------- survey ---------------- */

.survey__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3.4rem);
  align-items: start;
}

/* Declared after the base rule: the survey rows must stack before the panel
   because the answer buttons carry their own minimum width. */
@media (max-width: 900px) {
  .survey__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
}

.survey h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 0.86;
  text-transform: uppercase;
  margin-top: 0.45rem;
}

.survey__p {
  max-width: 40ch;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.survey__steps {
  margin-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.survey__step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--mute);
  transition: color 200ms var(--ease);
}

.survey__step.is-on {
  color: var(--ink);
}

.survey__step i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.survey__step.is-done i,
.survey__step.is-done {
  color: var(--green-lit);
}

.survey__panel {
  border: 1px solid var(--rule-mid);
  background: var(--sheet-raise);
}

.survey__bar {
  height: 3px;
  background: var(--rule);
}

.survey__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 260ms var(--ease);
}

.survey__inner {
  padding: clamp(0.9rem, 1.8vw, 1.4rem);
}

.survey__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: var(--fs-nano);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.survey__q {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.survey__opts {
  margin-top: 0.8rem;
  border-top: 1px solid var(--ink);
}

.opt {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.7rem;
  align-items: baseline;
  width: 100%;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
  transition: background 150ms var(--ease), color 150ms var(--ease),
    padding 150ms var(--ease);
}

.opt:hover {
  background: var(--green-wash);
  color: var(--ink);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.opt i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--mute);
  border: 1px solid var(--rule-strong);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.opt:hover i {
  border-color: var(--green);
  color: var(--green-lit);
}

.survey__result {
  display: none;
}

.survey__panel.is-done .survey__q,
.survey__panel.is-done .survey__opts {
  display: none;
}

.survey__panel.is-done .survey__result {
  display: block;
  margin-top: 0.8rem;
}

.survey__verdict {
  font-family: var(--mono);
  font-size: var(--fs-nano);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-lit);
}

.survey__station {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.survey__hook {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.survey__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

/* ---------------- sign-off ---------------- */

.signoff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

.signoff h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.84;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.signoff h2 em {
  font-style: normal;
  color: var(--green-lit);
}

.signoff__p {
  max-width: 52ch;
  margin-top: 0.9rem;
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink-2);
}

.signoff__p + .signoff__p {
  margin-top: 0.8rem;
}

.signoff__panel {
  border: 1px solid var(--ink);
  padding: 1rem 1.1rem 1.1rem;
}

.signoff__panel h3 {
  font-family: var(--mono);
  font-size: var(--fs-nano);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.signoff__seal {
  display: grid;
  /* Collapsed until the tenth order closes: the un-struck stamp is decoration,
     so it must not reserve a 92px square ahead of the status line. */
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  transition: grid-template-columns 240ms var(--ease-out),
    gap 240ms var(--ease-out);
}

.signoff__seal:has(.stamp.is-struck) {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
}

/* Without :has() the seal cannot know it has closed; keep the original slot
   rather than letting the stamp fall across the status line. */
@supports not selector(:has(*)) {
  .signoff__seal {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.9rem;
  }
}

.signoff__seal .stamp {
  width: 92px;
  height: 92px;
}

.signoff__seal p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mute);
}

.signoff__seal b {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.signoff__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.signoff__actions .btn {
  justify-content: center;
}

@media (max-width: 900px) {
  .signoff__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- utility ---------------- */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
