/* House rules, five designs. Each page uses one: .rv--bento, --night, --numbers, --stamps or --table. */
.rv { position: relative; z-index: 0; max-width: 1228px; margin: 0 auto; padding: 40px 24px 130px; }
.rv h3 { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.rv p { margin: 0; }

/* Shared header */
.rv-head h2 { margin-top: 14px; }
.rv-lede { margin-top: 14px !important; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--mute); }
.rv-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; }
.rv-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-standard); }
.rv-more:hover svg { transform: translateX(3px); }
.rv-head--center { text-align: center; }
.rv-head--center .rv-lede { margin-inline: auto; }
.rv-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.rv-head--split .dot-label, .rv-head--split h2 { grid-column: 1; }
.rv-head--split .rv-lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.rv-head--split .rv-more { grid-column: 2; }

.rv-ico, .bn-ico, .ct-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--olive-tint); }
.rv svg path { vector-effect: non-scaling-stroke; }
.rv-ico svg, .bn-ico svg, .ct-ico svg, .ng-ico svg { width: 22px; height: 22px; fill: none; stroke: #3d4415; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ======================================================================
   1. Bento: each rule shown as a small piece of the Mac
   ====================================================================== */
.bt-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bt { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #f5f6ef; box-shadow: inset 0 0 0 1px var(--line); }
.bt--wide { grid-column: span 4; }
.bt:nth-child(2) { grid-column: span 2; }
.bt:nth-child(3), .bt:nth-child(4), .bt:nth-child(5) { grid-column: span 2; }
.bt-vis { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 230px; padding: 28px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%); }
.bt-txt { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 0 26px 26px; }
.bt-txt .rv-ico { grid-row: span 2; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bt-txt p { font-size: 14.5px; line-height: 1.5; color: var(--mute); }

/* A Finder window */
.bt-finder { width: 100%; max-width: 520px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 18px 40px -18px rgba(30, 30, 10, .35); overflow: hidden; font-size: 12.5px; }
.bt-finder__bar { position: relative; display: flex; justify-content: center; align-items: center; height: 32px; background: #f3f3ee; border-bottom: 1px solid var(--line); font-weight: 600; color: #3b3e33; }
.bt-dots { position: absolute; left: 12px; display: flex; gap: 7px; }
.bt-dots i { width: 11px; height: 11px; border-radius: 50%; background: #dcdcd6; }
.bt-dots i:first-child { background: #ee6a5f; } .bt-dots i:nth-child(2) { background: #f5bf4f; } .bt-dots i:nth-child(3) { background: #61c554; }
.bt-finder__files { display: flex; justify-content: space-around; padding: 22px 16px 18px; }
.bt-finder__files span { display: grid; justify-items: center; gap: 6px; color: var(--ink); }
.bt-finder__files img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(30, 30, 10, .15)); }
.bt-finder__path { padding: 8px 14px; border-top: 1px solid var(--line); background: #fafaf7; color: var(--mute); font-size: 12px; }
.bt-finder__path b { color: var(--ink); }

/* A right-click menu */
.bt-menu { display: grid; width: 190px; padding: 6px; border-radius: 10px; background: rgba(252, 252, 249, .96); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 16px 36px -12px rgba(30, 30, 10, .35); font-size: 13px; color: var(--ink); }
.bt-menu > span { padding: 6px 10px; border-radius: 6px; }
.bt-menu__file { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding-bottom: 10px !important; border-bottom: 1px solid var(--line); border-radius: 0 !important; font-weight: 600; }
.bt-menu__file img { width: 22px; height: 22px; object-fit: contain; }
.bt-menu .is-on { background: #4a5410; color: #fff; }

/* An energy meter that goes flat */
.bt-meter { width: 100%; max-width: 280px; padding: 14px 16px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 30px -16px rgba(30, 30, 10, .3); font-size: 12px; color: var(--mute); }
.bt-meter__top, .bt-meter__foot { display: flex; justify-content: space-between; }
.bt-meter__top b { color: var(--ink); }
.bt-meter__top span { color: #5f6a12; font-weight: 600; }
.bt-meter svg { display: block; width: 100%; height: 64px; margin: 10px 0 6px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-meter__busy { stroke: #c9cdbb; }
.bt-meter__flat { stroke: var(--olive); }
.bt-meter__foot { font-size: 11px; }

/* Stats that all say None */
.bt-stats { width: 100%; max-width: 280px; margin: 0; padding: 6px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 30px -16px rgba(30, 30, 10, .3); }
.bt-stats div { display: flex; justify-content: space-between; padding: 11px 0; font-size: 13.5px; }
.bt-stats div + div { border-top: 1px solid var(--line); }
.bt-stats dt { color: var(--mute); }
.bt-stats dd { margin: 0; font-weight: 600; color: var(--ink); }
.bt-stats dd::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--olive); vertical-align: 1px; }

/* A repository card */
.bt-repo { display: grid; gap: 14px; width: 100%; max-width: 290px; padding: 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 30px -16px rgba(30, 30, 10, .3); font-size: 13.5px; color: var(--mute); }
.bt-repo__name { display: flex; align-items: center; gap: 8px; }
.bt-repo__name b { color: var(--ink); }
.bt-repo__name svg { width: 16px; height: 16px; fill: none; stroke: var(--mute); stroke-width: 1.3; }
.bt-repo__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-repo__tags i { padding: 4px 9px; border-radius: 999px; background: #f1f2ea; font: 600 11.5px/1 var(--sans); font-style: normal; color: #3d4135; }
.bt-repo__tags i:nth-child(2) { background: var(--olive-tint); color: #3d4415; }

/* ======================================================================
   2. Night grid: a dark panel, a light follows the pointer
   ====================================================================== */
.rv--night { max-width: 1280px; padding-inline: 16px; }
.ng { padding: 72px 56px 56px; border-radius: 36px; background: radial-gradient(80% 60% at 0% 0%, rgba(163, 176, 32, .12), transparent 60%), #14170b; color: #f1f3e8; }
.ng-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.ng-head h2 { margin-top: 14px; color: #fbfcf6; }
.ng .rv-lede { margin-top: 0 !important; color: #a9af96; }
.ng .rv-more { color: #fbfcf6; }
.ng-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 20px; background: rgba(241, 243, 232, .1); box-shadow: inset 0 0 0 1px rgba(241, 243, 232, .1); }
.ng-cell { position: relative; display: grid; align-content: start; gap: 10px; min-height: 230px; padding: 30px; background: #181b0e; overflow: hidden; }
.ng-cell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, -100px) var(--my, -100px), rgba(163, 176, 32, .16), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.ng-grid:hover .ng-cell::before { opacity: 1; }
.ng-no { position: absolute; top: 28px; right: 30px; font: 500 12.5px/1 var(--mono); color: rgba(241, 243, 232, .35); }
.ng-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 13px; background: linear-gradient(160deg, rgba(163, 176, 32, .3), rgba(163, 176, 32, .08)); box-shadow: inset 0 0 0 1px rgba(163, 176, 32, .4), 0 0 24px -6px rgba(163, 176, 32, .5); }
.ng-ico svg { stroke: #dfe88a; }
.ng-cell h3 { color: #fbfcf6; }
.ng-cell p { font-size: 14.5px; line-height: 1.55; color: #a9af96; max-width: 24em; }
.ng-cell--seal { place-content: center; justify-items: center; gap: 14px; text-align: center; font: 600 14px/1.3 var(--sans); color: #dfe88a; background: #1b1f0f; }
.ng-seal { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 8px rgba(163, 176, 32, .15), 0 0 40px rgba(163, 176, 32, .35); }
.ng-seal svg { width: 30px; height: 30px; fill: none; stroke: var(--olive-night); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ======================================================================
   3. Big numbers: an editorial list
   ====================================================================== */
.bn-list { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.bn-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.1fr) 48px; gap: 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.bn-no { font: 500 88px/0.85 var(--display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px #b9bf9c; transition: color .3s, -webkit-text-stroke-color .3s; }
.bn-row h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.bn-row p { font-size: 16px; line-height: 1.55; color: var(--mute); }
.bn-ico { width: 48px; height: 48px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s; }
.bn-row:hover .bn-no { color: var(--olive); -webkit-text-stroke-color: var(--olive); }
.bn-row:hover .bn-ico { background: var(--olive-tint); box-shadow: none; }

/* ======================================================================
   4. Stamps: five seals, pressed onto paper
   ====================================================================== */
.rv--stamps { max-width: 1280px; padding-inline: 16px; }
.st-paper { padding: 80px 48px 72px; border-radius: 36px; background: #f6f2e4; box-shadow: inset 0 0 0 1px rgba(120, 100, 40, .12); }
.st-row { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.st { display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px; }
.st-seal { position: relative; display: grid; place-items: center; width: 160px; height: 160px; margin-bottom: 18px; color: var(--c); transform: rotate(var(--r)); transition: transform .3s var(--ease-enter); }
.st:hover .st-seal { transform: rotate(0deg) scale(1.04); }
.st-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-ring circle { fill: none; stroke: currentColor; }
.st-o { stroke-width: 2.5; }
.st-i { stroke-width: 1.2; stroke-dasharray: 3 3; }
.st-ring text { font: 700 10.5px/1 var(--sans); letter-spacing: .14em; fill: currentColor; }
.st-mark { position: relative; width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-seal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(246, 242, 228, .55), transparent 45%), radial-gradient(circle at 75% 70%, rgba(246, 242, 228, .4), transparent 30%); mix-blend-mode: screen; pointer-events: none; }
.st p { font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 17em; }

/* ======================================================================
   5. Checked on every object: a comparison table
   ====================================================================== */
.ct-card { margin-top: 56px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(27, 29, 22, .35); overflow: hidden; }
.ct-scroll { overflow-x: auto; }
.ct { width: 100%; min-width: 860px; border-collapse: collapse; }
.ct thead th { padding: 26px 8px 18px; vertical-align: bottom; font: 600 13px/1.2 var(--sans); color: var(--ink); }
.ct thead img { display: block; width: 56px; height: 56px; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(30, 30, 10, .15)); }
.ct thead span { display: block; }
.ct tbody tr { border-top: 1px solid var(--line); }
.ct tbody th { width: 36%; min-width: 340px; padding: 20px 20px 20px 28px; text-align: left; font-weight: 400; }
.ct-row-h { display: flex; align-items: center; gap: 16px; }
.ct-row-h > span { display: grid; gap: 3px; }
.ct tbody b { font: 600 16px/1.3 var(--display); color: var(--ink); }
.ct tbody small { font-size: 13.5px; line-height: 1.45; color: var(--mute); max-width: 30em; }
.ct td { width: 92px; text-align: center; }
.ct tbody tr:hover { background: #fafbf5; }
.ct .ct-yours { background: #f7f8f0; }
.ct thead .ct-yours { border-radius: 16px 16px 0 0; }
.ct thead .ct-yours span { color: #5f6a12; }
.ct-blank { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 14px; border: 1.5px dashed rgba(95, 106, 18, .5); color: #5f6a12; }
.ct-blank svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ct-tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); }
.ct-tick svg { width: 16px; height: 16px; fill: none; stroke: var(--olive-night); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-tick--todo { background: none; box-shadow: inset 0 0 0 1.5px var(--olive); border: 0; }
.ct-tick--todo svg { stroke: var(--olive-deep); }
.ct-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--line); background: #fafbf5; font-size: 14px; color: var(--mute); text-align: center; }
.ct-note .ct-tick { flex: none; width: 22px; height: 22px; }
.ct-note .ct-tick svg { width: 13px; height: 13px; }

/* ======================================================================
   Narrower screens
   ====================================================================== */
@media (max-width: 1100px) {
  .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt, .bt--wide, .bt:nth-child(n) { grid-column: span 1; }
  .bt--wide, .bt:nth-child(5) { grid-column: 1 / -1; }
  .ng-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-row { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); }
  .bn-row .bn-ico { display: none; }
  .bn-no { font-size: 64px; }
  .st-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 720px) {
  .rv { padding: 24px 20px 96px; }
  .rv-head--split { display: block; }
  .bt-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .bt-vis { height: auto; min-height: 200px; padding: 24px 20px; }
  .bt-txt { padding: 0 20px 22px; }
  .bt-finder__files img { width: 40px; height: 40px; }
  .rv--night, .rv--stamps { padding-inline: 0; }
  .ng { padding: 56px 20px 20px; border-radius: 26px; }
  .ng-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ng-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .ng-cell { min-height: 0; padding: 24px; }
  .ng-cell--seal { padding: 32px 24px; }
  .bn-list { margin-top: 40px; }
  .bn-row { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 24px 0; }
  .bn-no { grid-row: span 2; font-size: 44px; }
  .st-paper { padding: 56px 20px 48px; border-radius: 26px; }
  .st-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; margin-top: 44px; }
  .st:last-child { grid-column: 1 / -1; }
  .st-seal { width: 120px; height: 120px; margin-bottom: 10px; }
  .st-mark { width: 32px; height: 32px; }
  .st h3 { font-size: 16px; }
  .st p { font-size: 13px; }
  .ct-card { margin-inline: -4px; border-radius: 22px; }
  .ct { min-width: 0; }
  .ct thead img { width: 34px; height: 34px; margin-bottom: 6px; }
  .ct thead th { padding: 18px 2px 12px; font-size: 11px; }
  .ct tbody th { min-width: 0; width: auto; padding: 16px 8px 16px 16px; }
  .ct-blank { width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; font-size: 18px; }
  .ct tbody th .ct-ico, .ct tbody small { display: none; }
  .ct tbody b { font-size: 14px; }
  .ct td { width: 40px; }
  .ct-tick { width: 22px; height: 22px; }
  .ct-tick svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-seal, .bn-no, .bn-ico, .rv-more svg, .ng-cell::before { transition: none; }
}
