/* ==========================================================================
   2026-10-27 — Bhavana's bearings content document: the four new blocks on
   /rotating-equipment/ (inc/oct27.php). Enqueued after oct25.css. Every image
   is drawn at its own aspect (never cropped) and capped at its native width
   (--mw), so nothing is stretched or drawn above its own pixels.
   ========================================================================== */
.o27-fig{margin:0;width:100%;max-width:var(--mw)}
.o27-frame{display:block;aspect-ratio:var(--ar);border-radius:6px;overflow:hidden;background:#eef0ef;border:1px solid rgba(12,13,15,.08)}
.o27-frame img{display:block;width:100%;height:100%;object-fit:cover}
.o27-fig figcaption,.o27-pair-cap{margin-top:10px;font-size:.875rem;line-height:1.45;color:var(--tx-l-dim);text-align:left}
main .o27-pair-cap{max-width:none}

/* bullets: 6x6 brand squares (the approved list-bullet mark, not an accent bar) */
.o27-list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:12px;max-width:72ch}
.o27-list li{position:relative;padding-left:22px;line-height:1.6;color:var(--tx-l-dim)}
.o27-list li::before{content:"";position:absolute;left:2px;top:.68em;width:6px;height:6px;background:var(--brand-graphic)}

/* Repair technologies: process text beside the portrait photograph from 900px, below it on phones */
.o27-split{display:grid;gap:28px;align-items:center}
@media (min-width:900px){.o27-split{grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:56px}}
.o27-split > .o27-fig{justify-self:center}

/* Vertical guide bearings: text in two columns, then the two parts side by side at one height */
@media (min-width:900px){
  .o27-vgb-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:start}
  .o27-vgb-text .o27-list{margin-top:0}
}
.o27-pair{margin-top:28px}
.o27-pair-row{display:flex;flex-direction:column;gap:var(--v2-gap)}
.o27-pair-row .o27-fig{margin-inline:auto}
.o27-pair-cap{display:none}
@media (min-width:640px){
  .o27-pair-row{flex-direction:row;align-items:flex-start}
  .o27-pair-row .o27-fig{flex:var(--ar) 1 0;min-width:0;max-width:none;margin:0}
  .o27-pair-row figcaption{display:none}
  .o27-pair-cap{display:block}
}

/* Bearing repair process: one compact strip; vertical list below 900px */
.o27-steps{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:0;counter-reset:none}
.o27-steps li{position:relative;display:flex;align-items:center;gap:14px;padding:10px 0 10px 0}
.o27-steps li::before{content:"";position:absolute;left:17px;top:0;bottom:0;width:1px;background:rgba(12,13,15,.16)}
.o27-steps li:first-child::before{top:50%}
.o27-steps li:last-child::before{bottom:50%}
.o27-step-n{position:relative;z-index:1;flex:0 0 auto;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#fff;border:1px solid var(--brand-graphic);font-family:var(--f-mono,ui-monospace,monospace);font-size:12px;letter-spacing:.04em;color:var(--brand-ink)}
.v2-sec.alt .o27-step-n{background:var(--tint)}
.o27-step-t{font-family:var(--f-dsp);font-weight:600;font-size:16px;line-height:1.3}
@media (min-width:900px){
  .o27-steps{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-top:28px}
  .o27-steps li{flex-direction:column;align-items:flex-start;gap:12px;padding:0}
  .o27-steps li::before{left:0;right:-12px;top:17px;bottom:auto;width:auto;height:1px}
  .o27-steps li:first-child::before{top:17px;left:17px}
  .o27-steps li:last-child::before{bottom:auto;right:auto;width:17px}
  .o27-step-t{font-size:15px}
}

/* Quality assurance (27 Oct 3): ONE grid. Four square image cards (image on top, test name
   beneath), then Dimensional and Visual Inspection as icon text items. 4 tracks from 900px,
   each text item spanning two (a slim row of two halves); 2 tracks below, so 2 x 2 cards
   then the pair. Every file is square in a square frame: cover crops 0%. Rows stretch, so
   cards in a row share one height. */
.o27-qa-grid{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.o27-qa-grid > li{display:flex;min-width:0;background:#fff;border:1px solid rgba(12,13,15,.1);border-radius:6px}
.o27-qa-card{flex-direction:column;overflow:hidden}
.o27-qa-media{display:block;aspect-ratio:1;background:#eef0ef}
.o27-qa-media img{display:block;width:100%;height:100%;object-fit:cover}
.o27-qa-card .o27-qa-t{padding:12px 14px 14px}
.o27-qa-item{align-items:center;gap:12px;min-height:64px;padding:12px 14px}
.o27-qa-ico{flex:0 0 auto;width:28px;height:28px;color:var(--brand-ink)}
.o27-qa-t{font-family:var(--f-dsp);font-weight:600;font-size:15px;line-height:1.3}
@media (min-width:900px){
  .o27-qa-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .o27-qa-item{grid-column:span 2;padding:16px 20px}
  .o27-qa-card .o27-qa-t{padding:14px 18px 16px}
  .o27-qa-t{font-size:17px}
  .o27-qa-ico{width:32px;height:32px}
}
