/* =====================================================================
   Paper and Ink · essays/the-certificate-was-valid-somewhere.css
   "The Certificate Was Valid Somewhere": the figures only this dispatch uses.
   Loaded after the shared stylesheets; everything shared lives in css/.
   ===================================================================== */

/* Layout: one 64ch reading column on grained paper; two static paper objects break out to 860px:
   a maintenance ticket beside a connection receipt, each with its acceptance question (Figure 1)
   and a compatibility matrix on taped graph paper (Figure 2).
   Gold = provider-side completion; blue = client-side interoperability.
   Every rule below is scoped to its figure so none of it can restyle the generated Read next block.
   Labels stay at 11px or larger. */

/* ---- footnote markers -------------------------------------------------- */
sup.ref { font-family: var(--sans); font-size: .62em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; color: var(--life); padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }
.sources li:target { color: var(--ink); background: var(--life-soft); }

/* ---- Figure 1: the two acceptance slips ------------------------------------ */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.slips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; align-items: start; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.slips .tk, .slips .rc { position: relative; font-family: var(--mono); font-size: .76rem; line-height: 1.5; padding: 1rem 1rem 1.1rem; background: var(--noise), var(--slip); }
.slips .tk { color: var(--slip-once); transform: rotate(-1.2deg); animation: fade .5s ease both; }
.slips .rc { color: var(--slip-life); transform: rotate(.9deg); margin-top: 14px; animation: fade .5s ease .8s both;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  padding-bottom: 1.5rem; }
.slips .ph { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .7rem; color: var(--slip-ink); opacity: .85; }
.slips .ln { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .1rem .7rem; padding: .25rem 0; border-top: 1px dashed var(--grid-major); }
.slips .ln span { font-family: var(--sans); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-top: .1rem; }
.slips .ln b { font-weight: 500; overflow-wrap: anywhere; }
.slips .stamp { display: table; margin-top: 1rem; }
.slips .tk .stamp.s1 { color: var(--slip-once); transform: rotate(-5deg); margin-left: .3rem; animation-delay: .5s; }
.slips .rc .stamp.s2 { color: var(--slip-life); transform: rotate(4deg); margin-left: auto; margin-right: .3rem; animation-delay: 1.3s; }
.slips .asks-q { margin: 1rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.slips .asks-q b { font-style: normal; font-weight: 500; }
.slips .q1 b { color: var(--once); }
.slips .q2 b { color: var(--life); }

/* ---- Figure 2: the compatibility matrix ------------------------------------- */
.mx {
  position: relative; max-width: 680px; padding: 1.5rem 1.4rem 1.2rem; transform: rotate(-.3deg); color: var(--slip-ink);
  background:
    var(--noise),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--sheet);
}
.mx::before, .mx::after { content: ""; position: absolute; top: -11px; width: 84px; height: 24px; background: var(--noise), var(--tape); }
.mx::before { left: 22px; transform: rotate(-5deg); }
.mx::after { right: 22px; transform: rotate(4deg); }
.mx .mh { margin: 0 0 .8rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.mx .grid { background: var(--noise), var(--slip); box-shadow: 0 1px 1px var(--shadow); padding: .3rem .8rem .4rem; }
.mx .row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: baseline; padding: .5rem 0; border-top: 1px dashed var(--grid-major); }
.mx .row:first-child { border-top: 0; }
.mx .row span { font-family: var(--serif); font-size: 1rem; line-height: 1.3; color: var(--slip-life); }
.mx .row.hd span { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.mx .row.hd span + span { text-align: center; }
.mx .row.pv { border-bottom: 1.5px solid var(--graphite); }
.mx .row.pv span, .mx .row.pv em { color: var(--slip-once); }
.mx .row em { font-style: normal; text-align: center; font-family: var(--mono); font-size: .9rem; color: var(--slip-life); }
.mx .row em i { font-style: normal; font-size: .72rem; margin-left: .2rem; }
.mx .row em.no { font-weight: 600; }
.mx .row em.no i { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mx .row em.na { color: var(--graphite); font-size: .76rem; }
.mx .nb { margin: .8rem 0 0; color: var(--graphite); font-size: 1rem; }

@media (max-width: 680px) {
  .slips { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .slips .rc { margin-top: 0; }
}

/* Phone mode: slip labels move above their values; the matrix keeps three columns with tighter type. */
@media (max-width: 560px) {
  .slips .ln { grid-template-columns: minmax(0, 1fr); }
  .mx { padding: 1.3rem .8rem 1rem; }
  .mx .grid { padding: .2rem .5rem .3rem; }
  .mx .row { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .mx .row span { font-size: .9rem; }
  .mx .row em i { display: block; margin: 0; }
}
