/* The shared card (svc-base.css): the 4:5 card with the name left and the price or route right. Loaded after tokens.css
   and base.css by Services, Contact, Studio, the Journal and the Post. The offer page is in svc-ledger.css; the price
   list's own styles are in src/pages/services.html. */
/* Shared card (Catalogue card: image, name left, price where a price sits, grey line below) */
.card{display:block;min-width:0;cursor:pointer}
.card .ph{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--set)}
.card .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.card:hover .ph img{transform:scale(1.03)}
.meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:9px 10px 18px;font-size:var(--t-small);line-height:1.25}
.meta .price{text-align:right;font-weight:400;text-transform:none;font-stretch:normal}
.meta .s{grid-column:1/-1;color:var(--mute);font-size:var(--t-label);line-height:1.35;max-width:46ch}
.card:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}

@media (max-width:760px){
  .meta{grid-template-columns:minmax(0,1fr);padding:8px 8px 16px}
  .meta .price{text-align:left}
  .more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){ .card .ph img{transition:none} }

/* Rules that are drawn (the motion study, 12 November 2026; the script is SVC.rules in svc-page.js). Nothing here
   applies until the script arms an element, and the script only runs while motion is allowed, so without it every rule
   is simply there. The rule on screen is always the element's own border: .rl lays a strip of the page's white over
   it, and .rl-in slides that strip away to the right, which shows the rule from left to right. The strip reaches 2px past
   the rule's far end, so no part of the rule's last pixel shows while the strip is being scaled. */
.rl,.rs,.rs>.rs-d{position:relative}
.rl::after,.rs::before{content:"";position:absolute;left:0;right:-2px;top:-2px;height:3px;background:var(--paper);transform-origin:100% 50%;pointer-events:none}
.rl.rl-in::after{animation:rl-open var(--d-5) var(--e-move) forwards}
/* A strip of columns (.rs): the same cover over its top rule, an ink line that runs along the top with it, and for each
   column after the first (.rs-d) a cover and an ink line down its left edge, which start when the top line's head
   reaches that column (--at, set by the script). Then the ink dries: it fades and leaves the hairlines. */
.rs::after{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--ink);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}
.rs>.rs-d::before{content:"";position:absolute;left:-2px;width:3px;top:0;bottom:-2px;background:var(--paper);transform-origin:50% 100%;pointer-events:none}
.rs>.rs-d::after{content:"";position:absolute;left:-1px;width:1px;top:0;bottom:0;background:var(--ink);transform:scaleY(0);transform-origin:50% 0;pointer-events:none}
.rs.rs-in::before{animation:rl-open var(--d-6) var(--e-move) forwards}
.rs.rs-in::after{animation:rs-x var(--d-6) var(--e-move) forwards,rs-dry var(--d-3) linear var(--d-6) forwards}
.rs.rs-in>.rs-d::before{animation:rs-up var(--d-3) var(--e-out) var(--at,0ms) forwards}
.rs.rs-in>.rs-d::after{animation:rs-y var(--d-3) var(--e-out) var(--at,0ms) forwards,rs-dry var(--d-3) linear var(--d-6) forwards}
@keyframes rl-open{to{transform:scaleX(0)}}
@keyframes rs-x{to{transform:scaleX(1)}}
@keyframes rs-y{to{transform:scaleY(1)}}
@keyframes rs-up{to{transform:scaleY(0)}}
@keyframes rs-dry{to{opacity:0}}
/* On paper every rule is there */
@media print{ .rl::after,.rs::before,.rs::after,.rs>.rs-d::before,.rs>.rs-d::after{display:none} }
