/* Hallmark · genre: editorial · macrostructure: Long Document (record index) · design-system: DESIGN.md · designed-as-app
 * theme: The Clinical Record (Vol.01 palette) · tone: warm, clinical-record · anchor hue: Sarang Green
 * pre-emit critique: P4 H4 E4 S5 R5 V4
 */
/* ==========================================================================
   SARANGADHAR — INTERIOR PAGES
   Composes /services/, service detail, contact, gallery, our story, journal,
   products and generic pages from the record parts in record.css.
   Rules carried from DESIGN.md:
     - labels attach to the artifact (tab on a card, key on a row), never above a heading
     - 4px cut-stock corners; shadows have an offset AND a soft blur
     - specifics as field rows, not big-number stats
     - no entrance motion: content is present on arrival
   ========================================================================== */

/* ----- Shared ----------------------------------------------------------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.rc-field{flex-wrap:wrap}
.rc-field .v{min-width:0;overflow-wrap:anywhere;margin-left:auto}
.rc-field .v a{color:var(--green);text-decoration:underline;text-decoration-color:rgba(0,104,56,.3);
  text-underline-offset:3px}
.rc-field .v a:hover{color:var(--forest);text-decoration-color:currentColor}
.rc-field .v .phone-sep{color:var(--ink-soft)}

.rc-body h3{font-size:1.2rem;letter-spacing:-.01em;margin:0}
.rc-body p{margin:0;color:var(--ink-soft);line-height:1.65}
.rc-body h3 a:hover{color:var(--green)}

/* A tab labelling the block beneath it needs the block to start flush. */
.rc-tab-standalone + .rc-set,
.rc-tab-standalone + .rc-ledger,
.rc-tab-standalone + .gal-sheet,
.rc-tab-standalone + .gal-reels,
.rc-tab-standalone + .map-embed{border-top-left-radius:0}
.rc-tab-standalone + .rc-set{padding-top:clamp(1rem,2vw,1.4rem);border-top:2px solid var(--green)}
.rc-tab-standalone.is-teal + .rc-set{border-top-color:var(--river-deep)}

.rc-section-head .lead{margin:0}

/* Ruled checklist — benefits, signs, what care includes. */
.rc-checklist{display:grid;grid-template-columns:1fr;margin:0;padding:0;list-style:none}
.rc-checklist li{display:flex;gap:.65rem;align-items:flex-start;padding:.85rem clamp(1.1rem,2.4vw,1.6rem);
  border-bottom:1px solid var(--rc-rule-soft);color:var(--ink);line-height:1.5;font-size:1rem}
.rc-checklist li:last-child{border-bottom:0}
.rc-checklist svg{flex:0 0 auto;margin-top:.2em;color:var(--green)}
@media (min-width:720px){
  .rc-ledger.rc-checklist{grid-template-columns:1fr 1fr}
  .rc-ledger.rc-checklist li:nth-child(odd){border-right:1px solid var(--rc-rule-soft)}
  .rc-ledger.rc-checklist li:nth-last-child(-n+2):nth-child(odd),
  .rc-ledger.rc-checklist li:last-child{border-bottom:0}
}

/* ----- Page head -------------------------------------------------------- */
.pg-head{padding-block:clamp(1.6rem,3vw,2.6rem) clamp(2.6rem,5vw,4.4rem)}
.pg-trail{flex-wrap:wrap;row-gap:.3rem;margin-bottom:clamp(1.6rem,3vw,2.4rem)}
.pg-trail a{color:var(--rc-label)}
.pg-trail a:hover{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.pg-trail .sep{color:var(--rc-rule);font-weight:400}
.pg-trail [aria-current]{color:var(--forest);max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.pg-head-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.8rem,4vw,3rem);align-items:end}
@media (min-width:960px){
  .pg-head-grid.has-fields{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
}
.pg-head h1{margin:0 0 1rem;max-width:18ch;overflow-wrap:anywhere;min-width:0}
.pg-head .lead{margin:0;max-width:58ch}
.pg-head .rc-actions{margin:1.8rem 0 0}
.pg-head .rc-head-fields{max-width:none;width:100%}
/* Same ground on both sides of the seam: don't stack two paddings. */
.pg-head + .rc-section:not(.rc-section-alt){padding-top:clamp(.5rem,1.5vw,1rem)}
/* Smaller display size on interior pages: the home owns the biggest headline. */
.pg-head .display{font-size:clamp(2.3rem,5.4vw,4.2rem)}

/* ----- Service detail --------------------------------------------------- */
.svc-detail-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(2rem,4vw,3.5rem);align-items:start}
@media (min-width:960px){
  .svc-detail-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr)}
  .svc-detail-aside{position:sticky;top:100px}
}
.svc-detail-photo{aspect-ratio:16/10;margin:0 0 clamp(2rem,4vw,3rem)}
.svc-detail-photo img{width:100%;height:100%;object-fit:cover}
.svc-detail-list .rc-ledger{margin:0}
.svc-detail-prose{margin-top:clamp(2rem,4vw,3rem)}
.svc-aside-copy{font-size:.98rem}
.svc-aside-btn{width:100%;justify-content:center;margin-top:.4rem}

/* ----- Contact ---------------------------------------------------------- */
.loc-set{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.1rem,2vw,1.6rem)}
@media (min-width:820px){ .loc-set{grid-template-columns:repeat(2,minmax(0,1fr))} }
.loc-rc .rc-body{padding-bottom:.9rem}
.loc-rc h3{font-size:1.3rem}
.loc-rc .rc-fields{margin-top:0}
.loc-actions{flex-direction:row;flex-wrap:wrap;gap:.6rem;padding-top:1rem;margin-top:auto;
  border-top:1px solid var(--rc-rule)}
.loc-actions .btn{font-size:.9rem;padding:.75em 1.2em}
.loc-map{margin-top:clamp(2rem,4vw,3rem)}
.loc-map .map-embed{border-radius:0 var(--rc-r) var(--rc-r) var(--rc-r);border:1px solid var(--rc-rule);box-shadow:var(--rc-lift)}

.form-rc .h2{margin:0 0 1.2rem;font-size:clamp(1.5rem,2.6vw,2rem)}
.form-rc .rc-body{gap:0}
.form-rc form{margin:0}
.form-rc .form-note{margin:.9rem 0 0}
.talk-rc .rc-fields{margin-top:0}
.talk-rc .rc-field .v{font-size:.95rem}
.talk-note{border-top:1px solid var(--rc-rule);font-size:.92rem}
@media (min-width:901px){ .info-col{position:sticky;top:100px} }

/* ----- Gallery ---------------------------------------------------------- */
.gal-sheet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.6rem,1.4vw,1rem);
  padding:clamp(.6rem,1.4vw,1rem);background:var(--rc-face);border:1px solid var(--rc-rule);
  border-radius:0 var(--rc-r) var(--rc-r) var(--rc-r);box-shadow:var(--rc-lift)}
@media (min-width:720px){ .gal-sheet{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:1100px){ .gal-sheet{grid-template-columns:repeat(4,minmax(0,1fr))} }
.gal-frame{position:relative;display:block;margin:0;padding:0;border:0;background:var(--paper-3);
  aspect-ratio:4/5;overflow:hidden;cursor:zoom-in;border-radius:2px;font:inherit;text-align:left}
.gal-frame img{width:100%;height:100%;object-fit:cover;display:block}
.gal-cap{position:absolute;left:0;right:0;bottom:0;padding:1.6rem .7rem .55rem;
  background:linear-gradient(to top,rgba(0,76,41,.92) 0%,rgba(0,76,41,.92) 45%,rgba(0,76,41,0) 100%);
  color:#fff;font-family:var(--ff-title);font-size:.68rem;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;line-height:1.35}
.gal-frame:hover img{opacity:.92}
.gal-frame:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.gal-reels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.8rem,1.6vw,1.2rem);
  padding:clamp(.8rem,1.6vw,1.2rem);background:var(--rc-face);border:1px solid var(--rc-rule);
  border-radius:0 var(--rc-r) var(--rc-r) var(--rc-r);box-shadow:var(--rc-lift)}
@media (min-width:720px){ .gal-reels{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:1020px){ .gal-reels{grid-template-columns:repeat(5,minmax(0,1fr))} }
.gal-reel{display:flex;flex-direction:column;gap:.55rem;margin:0;padding:0;border:0;background:none;
  cursor:pointer;text-align:left;font:inherit;color:var(--forest)}
.gal-reel-media{position:relative;display:block;aspect-ratio:9/16;overflow:hidden;border-radius:2px;background:var(--forest)}
.gal-reel-media img{width:100%;height:100%;object-fit:cover;display:block}
.gal-play{position:absolute;left:.6rem;bottom:.6rem;width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;background:var(--paper-2);color:var(--green);
  box-shadow:0 1px 2px rgba(27,43,35,.2),0 6px 16px rgba(0,0,0,.18)}
.gal-play svg{width:18px;height:18px;margin-left:2px}
.gal-reel-title{font-family:var(--ff-title);font-weight:600;font-size:.86rem;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gal-reel:hover .gal-reel-title{color:var(--green)}
.gal-reel:focus-visible{outline:2px solid var(--green);outline-offset:4px}

/* Lightbox sits just above the WhatsApp button (9500) — no need for 9999. */
.glb{z-index:9600}
.glb-close:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ----- Our Story -------------------------------------------------------- */
.story-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.1rem,2vw,1.6rem)}
@media (min-width:760px){ .story-pair{grid-template-columns:repeat(2,minmax(0,1fr))} }
.story-pair .rc-body{gap:.6rem}
.story-commit > .rc{align-self:center}
@media (min-width:900px){ .story-commit > .rc{order:2} }
.story-commit .rc-checklist li{font-size:1.02rem}
.rc-file-body h2{max-width:16ch}

/* ----- Journal ---------------------------------------------------------- */
.journal-set .rc-photo{display:block;aspect-ratio:16/10}
.journal-set .rc-body{padding-block:1.2rem}
.journal-pager{margin-top:clamp(2rem,4vw,3rem)}
.journal-pager .nav-links{display:flex;gap:.5rem;flex-wrap:wrap}
.journal-pager .page-numbers{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 .9rem;
  border:1px solid var(--rc-rule);border-radius:var(--rc-r);background:var(--rc-face);
  font-family:var(--ff-title);font-weight:600;font-size:.9rem;color:var(--forest)}
.journal-pager .page-numbers.current{background:var(--green);border-color:var(--green);color:#fff}
.post-detail .container{max-width:880px}
.post-photo{aspect-ratio:16/9;margin:0 0 clamp(2rem,4vw,3rem)}
.post-photo img{width:100%;height:100%;object-fit:cover}
.post-prose{max-width:68ch}
.post-back{margin:clamp(2rem,4vw,3rem) 0 0;padding-top:1.4rem;border-top:1px solid var(--rc-rule)}

/* ----- Search + 404 ----------------------------------------------------- */
.site-search{display:flex;gap:.6rem;max-width:34rem}
.site-search input{flex:1;min-width:0;font-family:var(--ff-body);font-size:1rem;padding:.8em 1em;
  border:1px solid var(--rc-rule);border-radius:var(--rc-r);background:var(--rc-face);color:var(--ink)}
.site-search input:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green);background:#fff}
.site-search .btn{flex:0 0 auto}

/* ----- Products (WooCommerce wrapper) ----------------------------------- */
.woo-main{padding-top:clamp(1rem,2vw,1.6rem)}

/* ----- Mobile ----------------------------------------------------------- */
@media (max-width:560px){
  .pg-head .rc-actions .btn{flex:1 1 100%;justify-content:center}
  .loc-actions .btn{flex:1 1 auto;justify-content:center}
  .rc-close-actions .btn{flex:1 1 100%;justify-content:center}
  .site-search{flex-direction:column}
}

/* Grid tracks holding form controls must be allowed to shrink below the
   select's intrinsic width (long option text), or phones scroll sideways. */
.contact-layout{grid-template-columns:minmax(0,1fr)}
@media (min-width:901px){ .contact-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)} }
.form-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:860px){ .form-row{grid-template-columns:minmax(0,1fr)} }
.field input,.field select,.field textarea{width:100%;max-width:100%;min-width:0}
