/* Stennings site kit: page layout for What we recommend (/recommended), krc-.
   Parts live in kit.css (k-); this file only arranges this page. Sizes in px, never rem
   (the site sets 1rem = 10px). Loaded after kit.css by public/recommended.html.
   Three looks of their own: the PC from 1100px (the words beside the four shop pieces; each
   pick's photo, words and price panel in one row), the tablet from 700px (the shop pieces in a
   row under the words; the pick's photo beside its words, its price panel a band across the
   card's foot), the phone under 700px (one column; the pills and the other options swipe).
   Spacing keeps to one rhythm: 4, 8, 12, 16, 24, 40, 72. A rule on an element that is also a
   k-swipe row is scoped to 700px and up, so it never undoes the swipe on a phone. */

.krc-page{background:var(--k-cream);color:var(--k-ink)}
.krc-page *,.krc-page *::before,.krc-page *::after{box-sizing:border-box}

/* ==========================================================================
   The top: the words and the one ink button, the four shop pieces, the
   jump pills, the facts bar
   ========================================================================== */
.krc-top{padding-top:64px}
.krc-top__grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:40px 72px;align-items:center}
.krc-intro{min-width:0}
.krc-intro .k-kicker{margin-bottom:16px}
.krc-lede{margin-top:24px;max-width:46ch;text-wrap:pretty}
.krc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:40px}
.krc-build{font-size:15px;font-weight:600;color:var(--k-ink)}

/* the homepage's four shop pieces: squares, 6px corners, the homepage row's shadow */
.krc-shots{margin:0;min-width:0}
.krc-shots__grid{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.krc-shot{min-width:0}
.krc-shot img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:6px;background:var(--k-hover);box-shadow:0 24px 40px -30px rgba(24,21,16,.6)}
.krc-shots__cap{margin-top:16px;font-size:14px;line-height:1.4;color:var(--k-quiet)}

.krc-jump{margin-top:40px}
.krc-pills{list-style:none}
.krc-facts{margin-top:16px}

/* ==========================================================================
   A section: the count and the title, the pick, the other options
   ========================================================================== */
.krc-sec{padding-top:72px;scroll-margin-top:40px}
.krc-sec:last-of-type{padding-bottom:72px}
.krc-sec__head{margin-bottom:24px}
.krc-sec__head .k-kicker{margin-bottom:12px}

/* the pick: the photo box with its color, the words, the price panel */
.krc-pick{display:grid;grid-template-columns:360px minmax(0,1fr) 280px;gap:40px;align-items:start}
.krc-pick__media,.krc-pick__words{min-width:0}
.krc-pick__words{align-self:center}
.krc-pick__photo{aspect-ratio:1/1;--k-photo-pad:24px}
.krc-pick__photo .k-mark{width:46%}
.krc-colorhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:16px 0 8px}
.krc-more{font-size:14px;line-height:1.3;color:var(--k-quiet);white-space:nowrap}
/* The pick's color dots make one clean row at every width. The kit's dot grid (kit.css .k-dots)
   is 6 columns of 44px dots, and 12 columns of 36px dots only from 900px on a screen with a
   mouse (hover:hover); a touch screen keeps the 44px dots at any width. 8 dots of 36px with 4px
   gaps are 316px: they fit the photo column only where it is 320px or wider, which is 1100px
   and up (320px, then 360px from 1280px; from 700 to 1099px it is 300px). So the 7th and 8th
   dots show only from 1100px with a mouse; everywhere else the card shows its first 6 (294px
   of 44px dots, 236px of 36px), and the cover is always among them (services/recommended_page.py).
   "+N more" counts what the row on screen leaves out. display:grid is the kit's own .k-dot. */
.krc-dots .k-dot:nth-child(n+7),.krc-more--long{display:none}
@media (min-width:1100px) and (hover:hover){
  .krc-dots .k-dot:nth-child(n+7){display:grid}
  .krc-more--long{display:inline}
  .krc-more--short{display:none}
}

.krc-tags{display:flex;flex-wrap:wrap;gap:8px}
.krc-name{margin-top:16px}
.krc-line{margin-top:8px;font-size:15px;line-height:1.45;color:var(--k-quiet)}
.krc-fact{white-space:nowrap}
.krc-reasons{display:grid;gap:16px;margin-top:24px}
.krc-reason dt{font:600 14px/1.3 var(--k-body);color:var(--k-quiet)}
.krc-reason dd{margin-top:4px;max-width:44ch;text-wrap:pretty}
.krc-reason__for{font-size:17px;line-height:1.5;color:var(--k-ink)}
.krc-reason__why{font-size:16px;line-height:1.55;color:var(--k-muted)}

/* the price panel: a soft panel, the price big, then the white button */
.krc-price{align-self:center;padding:24px 16px;border-radius:var(--k-r-card);background:var(--k-cream);text-align:center}
.krc-price__amt{display:grid;justify-items:center;gap:4px}
.krc-price__from,.krc-price__each{font-size:14px;line-height:1.3;color:var(--k-muted)}
.krc-price__v{font:600 30px/1.1 var(--k-display);font-variant-numeric:tabular-nums;color:var(--k-ink)}
.krc-price__btn{margin-top:16px;padding:0 16px}

/* the other options: small white cards, a grid from 700px, a swipe row on a phone */
.krc-others{margin-top:40px}
.krc-others__t{margin-bottom:16px;font:600 16px/1.3 var(--k-body);color:var(--k-ink)}
.krc-other{display:flex;gap:16px;min-width:0;padding:12px}
.krc-other__ph{flex:none;width:84px;height:84px;border-radius:var(--k-r-ctl);--k-photo-pad:6px}
.krc-other__body{display:flex;flex-direction:column;flex:1;min-width:0}
.krc-other__name{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font:600 16px/1.3 var(--k-body);color:var(--k-ink)}
.krc-other__n{min-width:0;overflow-wrap:anywhere}
.krc-other__tag{height:24px;padding:0 8px}
.krc-other__for{margin-top:4px;font-size:14px;line-height:1.45;color:var(--k-muted);text-wrap:pretty}
.krc-other__foot{margin-top:auto;padding-top:8px;font-size:14px;line-height:1.3;color:var(--k-muted)}
.krc-other__price{white-space:nowrap}
.krc-other__price b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--k-ink)}
.krc-other__colors{white-space:nowrap}

/* the phone bar: room at the foot of the page while it shows */
.krc-bar .k-btn{flex:none}

@media (min-width:1100px) and (max-width:1279px){
  .krc-pick{grid-template-columns:320px minmax(0,1fr) 280px;gap:24px}
}
@media (min-width:700px){
  .krc-pills{display:flex;flex-wrap:wrap;gap:8px}
  .krc-others__row{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
}

/* ==========================================================================
   Tablet, 700 to 1099px: the shop pieces in a row under the words; the pick's
   photo beside its words, the price panel a band across the card's foot
   ========================================================================== */
@media (min-width:700px) and (max-width:1099px){
  .krc-top{padding-top:40px}
  .krc-top__grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .krc-lede{max-width:56ch}
  .krc-shots__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .krc-sec{scroll-margin-top:24px}
  .krc-pick{grid-template-columns:300px minmax(0,1fr);gap:24px 40px}
  .krc-price{grid-column:1 / -1;align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:16px 24px;padding:16px 16px 16px 24px;text-align:left}
  .krc-price__amt{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
  .krc-price__btn{width:auto;margin-top:0;padding:0 24px}
}
@media (min-width:700px) and (max-width:819px){
  .krc-facts li:nth-child(n+3){display:none}
}
@media (min-width:820px) and (max-width:1099px){
  .krc-facts li:nth-child(n+4){display:none}
}

/* ==========================================================================
   Phone, under 700px: one column
   ========================================================================== */
@media (max-width:699px){
  .krc-top{padding-top:40px}
  .krc-top__grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .krc-lede{margin-top:16px}
  .krc-actions{flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
  .krc-build{align-self:center}
  .krc-shots__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .krc-shots__cap{margin-top:12px}
  .krc-jump{margin-top:24px}
  .krc-sec{padding-top:40px;scroll-margin-top:48px}
  .krc-sec:last-of-type{padding-bottom:40px}
  .krc-sec__head{margin-bottom:16px}
  .krc-pick{grid-template-columns:minmax(0,1fr);gap:16px;padding:14px}
  .krc-pick__photo{aspect-ratio:16 / 9;--k-photo-pad:8px}
  .krc-name{margin-top:12px}
  .krc-reasons{margin-top:16px}
  .krc-price{padding:16px;text-align:left}
  .krc-price__amt{display:block}
  .krc-price__v{font-size:28px}
  .krc-price__btn{margin-top:12px}
  .krc-others{margin-top:24px}
  .krc-others__t{margin-bottom:12px}
  .krc-other{gap:12px}
  html.krc-bar-on body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
}
/* The narrowest phones: the 6 cells of the kit's dot grid (44px with 6px gaps, 294px) are wider
   than the pick's photo column under 364px (250px at 320). There the cells shrink to fit the
   column, never under the 36px dot each one draws; the dot keeps its size and the tap area its
   44px height. From 364px the cells are the kit's 44px again; this rule stops at 389px, so
   nothing changes from 390px up. kit.css's own dot grid is left alone (the product page uses it). */
@media (max-width:389px){
  .krc-dots{grid-template-columns:repeat(6,minmax(36px,44px))}
  .krc-dots .k-dot{width:100%}
}
