/* Kidney Buddy chapter cards — matches the blue/ivory arch frames on Home and Research.
   Scoped to #kidney-chapters, so other pages and images are unaffected. */
#kidney-chapters.kb-story-chapters {
  background:#1c426f!important;
  color:#f5f9ff;
  padding:70px 0 84px!important;
}
#kidney-chapters .ed-label{color:#bed7f0!important;}
#kidney-chapters h2{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(2.25rem,4vw,3.55rem)!important;
  font-weight:400;color:#fff!important;
  letter-spacing:-.045em;
}
#kidney-chapters h2 em{color:#deebfa;}
#kidney-chapters .ed-section-sub{color:#e0eaf7!important;font-size:1rem;}
#kidney-chapters .kb-story-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;align-items:stretch;
}
#kidney-chapters .kb-story-card{
  box-sizing:border-box;display:flex;flex-direction:column;min-width:0;
  border:3px solid rgba(255,255,255,.86);
  outline:1px solid #9dbddc;outline-offset:-9px;
  border-radius:150px 150px 18px 18px;
  padding:25px 13px 13px;
  background:#fffdf7;color:#14365c;text-decoration:none;
  box-shadow:0 8px 22px rgba(3,20,40,.12);
  transition:transform .18s ease,box-shadow .18s ease;
}
#kidney-chapters .kb-story-card:hover{
  transform:translateY(-5px);box-shadow:0 13px 35px rgba(3,20,40,.25);
}
#kidney-chapters .kb-story-card:focus-visible{outline:3px solid #d1e9fc;outline-offset:4px;}
#kidney-chapters .kb-story-eyebrow{
  display:block;margin:9px 0 0;color:#2e5f91;
  text-align:center;font:700 .68rem/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;text-transform:uppercase;
}
#kidney-chapters .kb-story-ornament{
  display:flex;align-items:center;gap:11px;width:68%;margin:9px auto 17px;
  color:#477caf; font:14px/1 Georgia,serif;
}
#kidney-chapters .kb-story-ornament:before,
#kidney-chapters .kb-story-ornament:after{
  content:'';flex:1;height:1px;background:#a5c6e8;
}
#kidney-chapters .kb-story-window{
  width:100%;height:265px;min-width:0;box-sizing:border-box;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  border:2px solid #a5c6e8;padding:7px;
  background:linear-gradient(180deg,#d9e9f9,#edf5fc);
  border-radius:49% 49% 18px 18px / 34% 34% 18px 18px;
}
/* Preserve complete photographs: no cropping or blurred fill. */
#kidney-chapters .kb-story-photo img{
  max-width:100%;width:100%;height:100%;object-fit:contain;
  display:block;border-radius:8px;
}
#kidney-chapters .kb-story-duo{
  position:relative;gap:12px;padding:48px 12px 11px;align-items:stretch;
}
#kidney-chapters .kb-story-shot{
  flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;
  border:1px solid #bbcee3;background:rgba(255,255,255,.92);
  border-radius:7px;padding:6px 4px 8px;overflow:hidden;
}
#kidney-chapters .kb-story-progress{
  position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);
  display:grid;place-items:center;width:34px;height:34px;border-radius:999px;
  background:#eef6ff;border:1px solid #a5c6e8;color:#355f8f;
  box-shadow:0 3px 10px rgba(20,54,92,.12);
  font:700 1.15rem/1 Arial,Helvetica,sans-serif;z-index:3;
}
#kidney-chapters .kb-story-shot span{
  font:700 .52rem/1.3 Arial,Helvetica,sans-serif;
  text-transform:uppercase;letter-spacing:.035em;
  text-align:center;color:#375c82;margin-bottom:5px;min-height:21px;
}
#kidney-chapters .kb-story-shot img{
  display:block;min-width:0;width:100%;height:100%;max-height:168px;
  object-fit:contain;object-position:center top;
}
#kidney-chapters .kb-story-copy{
  padding:20px 3px 10px;flex:1;display:flex;flex-direction:column;align-items:center;
}
#kidney-chapters .kb-story-copy h3{
  display:block;width:100%;min-height:75px;
  color:#14365c!important;text-align:center;
  font:400 clamp(1.45rem,2.14vw,2.12rem)/1.12 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.04em;margin:0 0 10px!important;
  text-wrap:balance;
}
#kidney-chapters .kb-story-copy p{
  color:#315a86!important;text-align:center;
  font:400 .87rem/1.54 Arial,Helvetica,sans-serif!important;
  margin:0 auto 12px!important;max-width:260px;
}
#kidney-chapters .kb-story-cta{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  border-top:1px solid #b7cce1;margin-top:auto;width:100%;
  padding:12px 5px 3px;box-sizing:border-box;
  color:#163d68;font:750 .7rem/1.3 Arial,Helvetica,sans-serif;
  letter-spacing:.09em;text-transform:uppercase;
}
#kidney-chapters .kb-story-arrow{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border-radius:50%;background:#d8e9fa;color:#174675;
  font:400 1.25rem/1 Arial,Helvetica,sans-serif;
}
@media(max-width:1200px){
  #kidney-chapters .kb-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:800px;margin-inline:auto;}
  #kidney-chapters .kb-story-window{height:320px;}
  #kidney-chapters .kb-story-copy h3{font-size:2rem!important;min-height:0;}
  #kidney-chapters .kb-story-shot img{max-height:235px;}
}
@media(max-width:670px){
  #kidney-chapters.kb-story-chapters{padding:48px 0 62px!important;}
  #kidney-chapters .kb-story-grid{grid-template-columns:1fr;gap:20px;max-width:405px;margin-inline:auto;}
  #kidney-chapters .kb-story-card{border-radius:170px 170px 18px 18px;padding:24px 15px 16px;}
  #kidney-chapters .kb-story-window{height:305px;}
  #kidney-chapters .kb-story-copy h3{font-size:2.1rem!important;min-height:0;}
  #kidney-chapters .kb-story-shot img{max-height:200px;}
  #kidney-chapters .kb-story-progress{width:32px;height:32px;top:43%;font-size:1.05rem;}
}
@media(prefers-reduced-motion:reduce){#kidney-chapters .kb-story-card{transition:none;}}


/* Kidney Buddy intro figure — match the framed visual language used on the homepage */
.kb-intro .kb-grandmother-frame{
  margin:0;
  justify-self:center;
  width:min(100%,430px);
  padding:14px;
  background:linear-gradient(180deg,#edf3fb 0%,#f7fbff 100%);
  border:1px solid #c9d7e7;
  border-radius:126px 126px 10px 10px;
  box-shadow:0 10px 24px rgba(18,47,82,.08);
  box-sizing:border-box;
}
.kb-intro .kb-grandmother-photo{
  display:block;
  width:100%;
  height:auto;
  max-height:510px;
  object-fit:cover;
  object-position:center;
  border-radius:112px 112px 6px 6px;
  border:1px solid #d4dfeb;
}
.kb-intro .kb-grandmother-caption{
  margin-top:12px;
  text-align:center;
  font:.82rem/1.45 Arial,Helvetica,sans-serif;
  color:#597493;
}
@media(max-width:700px){
  .kb-intro .kb-grandmother-frame{
    max-width:370px;
    padding:10px;
    border-radius:88px 88px 10px 10px;
  }
  .kb-intro .kb-grandmother-photo{
    border-radius:78px 78px 6px 6px;
  }
}


/* Unified website + download module. Kidney Buddy overview page only. */
.kb-editorial .kb-access {
  background:#1b426e;
  padding:clamp(42px,6vw,84px) 0 clamp(54px,6.8vw,94px);
  color:#17395e;
}
.kb-access * { box-sizing:border-box; }
.kb-access .kb-access-panel {
  background:#fffdf7;
  border:1px solid #dbe5ef;
  border-radius:36px;
  padding:clamp(22px,4.4vw,64px);
  box-shadow:0 26px 65px rgba(9,27,51,.14);
}
.kb-access .kb-access-hero {
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(225px,.7fr);
  align-items:center;gap:clamp(20px,5vw,72px);
}
.kb-access .kb-access-eyebrow,
.kb-access .kb-access-section-label,
.kb-access .kb-access-store-overline {
  font:800 .74rem/1.4 Arial,Helvetica,sans-serif;letter-spacing:.17em;
  color:#376b9f;text-transform:uppercase;
}
.kb-access .kb-access-eyebrow{display:inline-flex;align-items:center;gap:11px;}
.kb-access .kb-access-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:#477cad;box-shadow:0 0 0 5px #e3eef9;}
.kb-access .kb-access-intro h2 {
  margin:19px 0 20px!important;max-width:610px;
  font:400 clamp(2.75rem,4.9vw,5.1rem)/1.03 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.052em;color:#173b65!important;
}
.kb-access .kb-access-intro h2 em{color:#34659b;font-weight:400;}
.kb-access .kb-access-intro > p {
  max-width:520px;margin:0 0 27px;
  color:#3e6289!important;font:400 clamp(1rem,1.2vw,1.1rem)/1.7 Arial,Helvetica,sans-serif;
}
.kb-access .kb-access-site-link{
  display:inline-flex;align-items:center;justify-content:space-between;gap:30px;
  border-radius:100px;background:#1b426e;color:#fff;text-decoration:none;
  padding:15px 15px 15px 25px;
  font:700 .9rem/1.25 Arial,Helvetica,sans-serif;transition:background .2s,transform .2s;
}
.kb-access .kb-access-site-link:hover{background:#2b5b8d;transform:translateY(-2px);}
.kb-access .kb-access-site-link span{
  display:grid;place-items:center;width:35px;height:35px;border-radius:50%;
  background:#d8e9fa;color:#1b426e;font-size:1.2rem;
}
.kb-access a:focus-visible{outline:3px solid #5698d5;outline-offset:4px;}
.kb-access .kb-access-preview{justify-self:center;width:min(100%,276px);text-align:center;}
.kb-access .kb-access-preview-arch{
  min-height:290px;display:grid;place-items:center;
  border:1.5px solid #a6c6e7;background:linear-gradient(145deg,#dceafa,#eef5fc);
  border-radius:135px 135px 14px 14px;padding:22px 18px 16px;
  box-shadow:inset 0 0 0 7px rgba(255,255,255,.46);
}
.kb-access .kb-access-preview-arch img{
  display:block;width:auto;max-width:100%;max-height:290px;object-fit:contain;
  border-radius:13px;filter:drop-shadow(0 12px 11px rgba(10,39,68,.16));
}
.kb-access .kb-access-preview > span{
  display:block;margin:12px 0 0;font:700 .68rem/1.5 Arial,Helvetica,sans-serif;
  letter-spacing:.11em;color:#4d739c;text-transform:uppercase;
}
.kb-access .kb-access-platforms {
  border-top:1px solid #c8d9e9;margin-top:40px;padding-top:31px;
}
.kb-access .kb-access-platforms-heading{
  display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px;
}
.kb-access .kb-access-platforms-heading h3{
  margin:6px 0 0;color:#173b65!important;letter-spacing:-.035em;
  font:400 clamp(1.8rem,2.5vw,2.65rem)/1.13 Georgia,'Times New Roman',serif;
}
.kb-access .kb-access-platforms-heading > p{
  margin:0 0 3px;max-width:310px;text-align:right;
  color:#4d7395;font:.88rem/1.6 Arial,Helvetica,sans-serif;
}
.kb-access .kb-access-store-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
.kb-access .kb-access-store {
  min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:18px;
  align-items:center;padding:22px;
  background:linear-gradient(145deg,#f2f7fd,#e8f1fb);
  border:1px solid #d0e0ef;border-radius:22px;
}
.kb-access .kb-access-store-details{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0;}
.kb-access .kb-access-store-badge{display:block;max-width:min(180px,100%);height:43px;width:auto;object-fit:contain;object-position:left;}
.kb-access .kb-access-store-link{
  display:inline-flex;align-items:center;gap:13px;min-height:32px;
  padding:0 0 3px;border-bottom:1px solid #9ab9d6;color:#1b426e;
  font:700 .84rem/1.3 Arial,Helvetica,sans-serif;text-decoration:none;
}
.kb-access .kb-access-store-link:hover{color:#3672ad;border-color:#3672ad;}
.kb-access .kb-access-store-link span{font-size:1.13rem;}
.kb-access .kb-access-qr{
  display:grid;place-items:center;border:1px solid #ccdaea;
  padding:9px;background:#fff;border-radius:14px;
  width:118px;height:118px;
}
.kb-access .kb-access-qr img{display:block;width:100%;height:100%;object-fit:contain;}
@media(max-width:950px){
  .kb-access .kb-access-hero{grid-template-columns:minmax(0,1fr) minmax(180px,.6fr);gap:26px;}
  .kb-access .kb-access-store{grid-template-columns:minmax(0,1fr) 96px;padding:16px;gap:12px;}
  .kb-access .kb-access-qr{width:96px;height:96px;padding:6px;}
  .kb-access .kb-access-store-badge{height:36px;}
}
@media(max-width:700px){
  .kb-access .kb-access-hero{grid-template-columns:1fr;text-align:center;gap:30px;}
  .kb-access .kb-access-eyebrow{justify-content:center;}
  .kb-access .kb-access-intro h2{margin:16px auto!important;}
  .kb-access .kb-access-intro > p{margin-inline:auto;}
  .kb-access .kb-access-preview{max-width:235px;}
  .kb-access .kb-access-preview-arch{min-height:0;}
  .kb-access .kb-access-platforms-heading{align-items:flex-start;flex-direction:column;gap:8px;}
  .kb-access .kb-access-platforms-heading > p{text-align:left;}
  .kb-access .kb-access-store-grid{grid-template-columns:1fr;}
  .kb-access .kb-access-store{grid-template-columns:minmax(0,1fr) 110px;gap:15px;}
  .kb-access .kb-access-qr{width:110px;height:110px;padding:8px;}
}
@media(max-width:390px){
  .kb-access .kb-access-panel{padding:20px 15px;border-radius:25px;}
  .kb-access .kb-access-store{grid-template-columns:minmax(0,1fr) 85px;padding:13px;gap:9px;}
  .kb-access .kb-access-qr{width:85px;height:85px;padding:5px;}
  .kb-access .kb-access-store-badge{height:31px;}
  .kb-access .kb-access-store-link{font-size:.73rem;}
  .kb-access .kb-access-store-overline{font-size:.62rem;}
}
@media(prefers-reduced-motion:reduce){.kb-access .kb-access-site-link{transition:none;}}
