@import url("../../assets/shared-completion-controls.css?v=20260814-central2");

/* Shared Uttarakhand culture reader foundation.
   Reuses the World History reader palette/typography and the global
   shared topbar/footer, while keeping culture pages text-first and compact. */

body.culture-reader-page{
  padding-top:var(--shared-topbar-height);
  background:var(--paper);
}

.culture-reader-page .culture-app{
  min-height:calc(100vh - var(--shared-topbar-height));
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
}

.culture-reader-page .culture-app > .sidebar,
.culture-reader-page .culture-app > main{grid-row:1;}

.culture-reader-page .culture-sidebar{
  top:var(--shared-topbar-height);
  height:calc(100vh - var(--shared-topbar-height));
}

/* ---------- Shared topbar, text controls only ---------- */
.culture-reader-page .culture-topbar{
  height:var(--shared-topbar-height) !important;
  min-height:var(--shared-topbar-height) !important;
  grid-template-columns:minmax(280px,1fr) auto minmax(170px,1fr) !important;
  gap:12px !important;
  padding:7px 16px !important;
  background:var(--card) !important;
  border-bottom:1px solid var(--line) !important;
  box-shadow:0 1px 0 var(--line-soft),0 5px 18px rgba(19,34,30,.05) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  font-family:'Hind','Noto Sans Devanagari',system-ui,sans-serif;
}

.culture-topbar-left{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  overflow:hidden;
}

.culture-topbar-brand{
  flex:0 0 auto;
  color:var(--ink) !important;
  font-size:.88rem;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.culture-topbar-title{
  min-width:0;
  overflow:hidden;
  color:var(--ink-soft);
  font-size:.78rem;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.culture-topbar .shared-study-topbar__completion{
  padding:6px 10px;
  border-color:var(--line);
  background:var(--accent-soft);
  color:var(--accent-2);
  font-size:.72rem;
  line-height:1.05;
}

.culture-topbar-button{
  min-width:44px;
  min-height:34px;
  height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  font:700 .73rem/1 'Hind','Noto Sans Devanagari',system-ui,sans-serif;
  cursor:pointer;
}

.culture-topbar-button:hover,
.culture-topbar-button:focus-visible{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent-2);
}

.culture-menu-button{display:none;}

/* ---------- Sidebar ---------- */
.culture-region-nav{
  display:grid;
  gap:12px;
  margin:0 2px 14px;
}

.culture-side-region{
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
}

.culture-side-region h2{
  margin:0 0 7px;
  color:var(--ink);
  font-size:13px;
  line-height:1.35;
}

.culture-side-region nav{
  display:grid;
  gap:5px;
}

.culture-side-region nav a{
  display:block;
  padding:6px 7px;
  border-radius:7px;
  color:var(--ink-soft);
  text-decoration:none;
  line-height:1.35;
}

.culture-side-region nav a:hover,
.culture-side-region nav a:focus-visible{
  background:var(--accent-soft);
  color:var(--accent-2);
}

.culture-side-region nav strong,
.culture-side-region nav span{display:block;}
.culture-side-region nav strong{font-size:11.5px;}
.culture-side-region nav span{
  margin-top:1px;
  color:var(--ink-faint);
  font-size:9.5px;
  font-weight:600;
}

.culture-source-mini{
  display:grid;
  gap:4px;
  margin:16px 4px 0;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--ink-faint);
  font-size:10px;
  line-height:1.5;
}
.culture-source-mini strong{color:var(--ink-soft);font-size:11px;}

.culture-reader-page .toc-link.done::after{
  content:'पूर्ण';
  margin-left:auto;
  color:var(--success);
  font-size:9px;
  font-weight:800;
}

/* ---------- Reader + hero ---------- */
.culture-reader-page .culture-reader{
  width:min(1040px,100%);
  padding:30px clamp(18px,3vw,34px) 72px;
}

.culture-article{display:block;min-width:0;}

.culture-hero{
  margin-bottom:22px;
  padding:23px 24px 26px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(135deg,var(--card),color-mix(in srgb,var(--accent-soft) 50%,var(--card)));
  box-shadow:var(--shadow);
}

.culture-hero::after{right:-40px;top:-46px;width:150px;height:150px;border-width:26px;opacity:.62;}

.culture-hero h1{
  width:min(100%,720px);
  max-width:100%;
  margin-top:8px;
  font-size:clamp(30px,3.9vw,42px);
  line-height:1.18;
  overflow-wrap:anywhere;
  text-wrap:balance;
}

.culture-hero p{
  width:min(100%,820px);
  max-width:100%;
  color:var(--ink-soft);
  font-size:16px;
  line-height:1.72;
  text-align:start;
  overflow-wrap:anywhere;
}

.culture-hero .hero-meta{max-width:100%;flex-wrap:wrap;}

.culture-article > .source-box{
  margin:0 0 34px;
  color:var(--ink-soft);
  font-size:13.5px;
  line-height:1.65;
}

/* ---------- Region and category hierarchy ---------- */
.culture-region{
  min-width:0;
  margin:0 0 52px;
  scroll-margin-top:calc(var(--shared-topbar-height) + 14px);
}

.culture-region-heading{
  margin:0 0 22px;
  padding:0 0 14px;
  border-bottom:2px solid var(--line);
}

.culture-region-heading h2{
  margin:5px 0 5px;
  font-size:clamp(28px,3.4vw,36px);
  line-height:1.28;
}

.culture-region-heading p{
  max-width:820px;
  margin:0;
  color:var(--ink-soft);
  font-size:14.5px;
  line-height:1.65;
}

.culture-category{
  min-width:0;
  margin:30px 0 46px;
  scroll-margin-top:calc(var(--shared-topbar-height) + 14px);
}

.culture-category-heading{
  margin:0 0 16px;
  padding:12px 15px;
  border-left:4px solid var(--accent);
  border-radius:0 10px 10px 0;
  background:var(--accent-soft);
}

.category-kicker{
  display:block;
  margin-bottom:2px;
  color:var(--accent-2);
  font-family:'JetBrains Mono',monospace;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.4px;
}

.culture-category-heading h3{
  margin:0;
  padding:0;
  color:var(--ink);
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.35;
}
.culture-category-heading h3::before{display:none!important;content:none!important;}
.culture-category-heading p{
  margin:3px 0 0;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.5;
}

/* ---------- Individual song cards ---------- */
.culture-card{
  min-width:0;
  margin:18px 0;
  padding:22px clamp(18px,2.4vw,26px);
  border-radius:16px;
  box-shadow:0 5px 18px rgba(22,39,34,.05);
  scroll-margin-top:calc(var(--shared-topbar-height) + 14px);
}

.culture-card:hover{box-shadow:0 7px 22px rgba(22,39,34,.065);}

.culture-card > .song-title{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 18px;
  padding:0 0 14px;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:clamp(21px,2.15vw,27px);
  font-weight:700;
  line-height:1.36;
}

.song-title > span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere;}
.song-title .idx{
  width:34px;
  height:34px;
  margin-top:0;
  border-radius:9px;
  box-shadow:none;
  font-size:11px;
}
.song-title .actions{flex:0 0 auto;margin-left:auto;}

.culture-bookmark{
  min-height:32px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink-soft);
  font:800 10.5px/1.2 'Hind','Noto Sans Devanagari',system-ui,sans-serif;
  cursor:pointer;
}
.culture-bookmark:hover,
.culture-bookmark.active{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent-2);
}

.song-body{min-width:0;}
.song-lead{
  margin:0 0 12px;
  padding:0 0 11px;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink-soft);
  font-size:16px;
  line-height:1.72;
}

.culture-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 15px;
}
.culture-tags span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink-soft);
  font-size:11.5px;
  font-weight:800;
  line-height:1.3;
}

.song-block{
  margin:15px 0 0;
  padding:14px 15px;
  border:1px solid var(--line-soft);
  border-radius:11px;
  background:color-mix(in srgb,var(--paper) 72%,var(--card));
}

.song-block h5,
.exam-facts h5{
  margin:0 0 9px;
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:16.5px;
  font-weight:700;
  line-height:1.42;
}

.song-block p,
.song-block li,
.exam-fact,
.fact-callout,
.song-type-desc{
  font-size:14.5px;
  line-height:1.7;
}

.song-block p{margin:8px 0;color:var(--ink-soft);}
.song-block ul,
.song-block ol{margin:8px 0 6px;padding-left:24px;}
.song-block li{margin:5px 0;text-align:start;}
.song-block strong,
.exam-fact strong{color:var(--ink);}

.detail-block{
  margin:10px 0;
  padding:11px 12px;
  border-left:3px solid color-mix(in srgb,var(--accent) 62%,transparent);
  border-radius:0 9px 9px 0;
  background:var(--card);
}
.detail-heading{
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin:0 0 5px;
  color:var(--ink);
  line-height:1.4;
}
.detail-heading strong{font-size:14px;}
.detail-no{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  min-width:24px;
  height:24px;
  padding:0 5px;
  border-radius:7px;
  background:var(--accent-soft);
  color:var(--accent-2);
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:800;
}

.song-block-type{
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--accent) 25%,var(--line));
}
.song-type-badge{
  display:inline-block;
  margin:0 0 6px;
  color:var(--accent-2);
  font-size:14px;
}
.song-type-desc{color:var(--ink-soft);}

.fact-callout{
  display:grid;
  grid-template-columns:minmax(120px,.32fr) minmax(0,1fr);
  gap:12px;
  margin:11px 0 0;
  padding:11px 12px;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink-soft);
}
.fact-callout strong{color:var(--accent-2);}

.exam-facts{
  margin:13px 0 0;
  padding:13px 14px;
  border:1px solid color-mix(in srgb,var(--gold) 28%,var(--line));
  border-left:4px solid var(--gold);
  border-radius:10px;
  background:var(--gold-soft);
}
.exam-facts h5{color:var(--ink);}
.exam-fact{
  display:grid;
  grid-template-columns:minmax(0,auto) minmax(0,1fr);
  gap:8px;
  padding:7px 0;
  border-top:1px solid color-mix(in srgb,var(--gold) 20%,var(--line-soft));
  color:var(--ink-soft);
}
.exam-fact:first-of-type{border-top:0;padding-top:0;}
.exam-term{
  align-self:start;
  padding:2px 7px;
  border-radius:999px;
  background:color-mix(in srgb,var(--gold) 12%,var(--card));
  color:var(--ink) !important;
  font-size:11px;
  white-space:nowrap;
}

.culture-card .complete-row{
  margin-top:18px;
  padding-top:14px;
}
.culture-card .complete-btn{
  --completion-accent:var(--accent);
  --completion-accent-strong:var(--accent-2);
  --completion-bg:var(--card);
  --completion-border:var(--line);
  --completion-text:var(--ink-soft);
  --completion-done-bg:var(--accent-soft);
}
.culture-card .section-meta{padding:4px 7px;font-size:10px;}

/* ---------- Comparison blocks ---------- */
.comparison-card{
  margin:18px 0 26px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--card);
  box-shadow:var(--shadow);
}
.comparison-card h4{
  margin:0 0 4px;
  font-size:18px;
}
.comparison-card > p{
  margin:0 0 10px;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.6;
}
.comparison-card .table-wrap{margin:10px 0 0;}
.culture-compare-table{
  min-width:680px;
  font-size:13px;
  line-height:1.5;
}
.culture-compare-table th,
.culture-compare-table td{
  padding:9px 10px;
  text-align:start;
  vertical-align:top;
}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .culture-reader-page .culture-reader{padding-inline:22px;}
}

@media(max-width:900px){
  .culture-reader-page .culture-app{grid-template-columns:1fr;}
  .culture-reader-page .culture-sidebar{
    position:fixed;
    top:var(--shared-topbar-height);
    bottom:0;
    left:0;
    width:min(320px,88vw);
    height:auto;
    z-index:1070;
    transform:translateX(-104%);
    transition:transform .2s ease;
    box-shadow:var(--shadow-lg);
  }
  .culture-reader-page .culture-sidebar.open,
  .culture-reader-page .culture-sidebar.active{transform:translateX(0);}
  .culture-reader-page .culture-topbar{
    grid-template-columns:minmax(0,1fr) auto auto !important;
    padding-inline:10px !important;
  }
  .culture-menu-button{display:inline-flex;align-items:center;justify-content:center;}
  .culture-topbar-brand{display:none;}
  .culture-reader-page .culture-reader{padding:24px 14px 66px;}
}

@media(max-width:640px){
  body.culture-reader-page{font-size:16px;}
  .culture-reader-page .culture-topbar{
    height:var(--shared-topbar-height) !important;
    min-height:var(--shared-topbar-height) !important;
    gap:6px !important;
    padding:6px 8px !important;
  }
  .culture-topbar-title{max-width:30vw;font-size:.7rem;}
  .culture-topbar .shared-study-topbar__completion{
    max-width:112px;
    padding:5px 7px;
    font-size:.65rem;
  }
  .culture-topbar-button{
    min-width:39px;
    min-height:32px;
    height:32px;
    padding:0 7px;
    font-size:.66rem;
  }
  .culture-reader-page .culture-reader{padding:18px 12px 56px;}
  .culture-reader-page .page-breadcrumb{margin:0 4px 12px;}
  .culture-hero{
    padding:20px 16px 22px;
    border-radius:16px;
  }
  .culture-hero h1{
    width:100%;
    font-size:clamp(28px,5vw,30px);
    line-height:1.2;
  }
  .culture-hero p{font-size:15px;line-height:1.68;}
  .culture-hero::after{right:-36px;top:-38px;width:126px;height:126px;border-width:22px;}
  .culture-region{margin-bottom:40px;}
  .culture-region-heading h2{font-size:27px;}
  .culture-category{margin:26px 0 38px;}
  .culture-category-heading{padding:10px 12px;}
  .culture-category-heading h3{font-size:21px;}
  .culture-card{padding:18px 14px;border-radius:13px;}
  .culture-card > .song-title{gap:8px;font-size:20px;}
  .song-title .idx{width:31px;height:31px;font-size:10px;}
  .song-lead{font-size:15px;text-align:start;}
  .song-block{padding:12px;}
  .song-block h5,.exam-facts h5{font-size:15.5px;}
  .song-block p,.song-block li,.exam-fact,.fact-callout,.song-type-desc{font-size:14px;}
  .fact-callout{grid-template-columns:1fr;gap:3px;}
  .exam-fact{grid-template-columns:1fr;gap:3px;}
  .exam-term{width:max-content;max-width:100%;white-space:normal;}
  .culture-compare-table{min-width:650px;}
}

@media(max-width:500px){
  .culture-topbar-title{display:none;}
  .culture-topbar [data-print-page]{display:none;}
  .culture-hero{padding:18px 14px 20px;}
  .culture-hero h1{font-size:28px;}
  .culture-hero .hero-meta{gap:6px;}
  .culture-hero .hero-meta span{font-size:9.5px;padding:5px 7px;}
  .culture-card > .song-title{flex-wrap:wrap;}
  .song-title .actions{margin-left:39px;}
  .culture-tags span{font-size:10.5px;}
  .comparison-card{padding:13px 12px;}
}

@media(max-width:390px){
  .culture-topbar .shared-study-topbar__completion{max-width:104px;font-size:.61rem;}
  .culture-topbar-button{min-width:37px;padding-inline:6px;}
  .culture-reader-page .culture-reader{padding-inline:9px;}
  .culture-hero{padding-inline:12px;}
  .culture-card{padding:16px 12px;}
  .song-title .actions{margin-left:0;width:100%;}
  .culture-bookmark{margin-left:39px;}
}

@media(prefers-reduced-motion:reduce){
  .culture-reader-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important;}
}

@media print{
  body.culture-reader-page{padding-top:0;}
  .culture-sidebar,.culture-bookmark,.complete-row{display:none!important;}
  .culture-reader-page .culture-app{display:block;}
  .culture-reader-page .culture-reader{width:100%;max-width:none;padding:0;}
  .culture-hero,.culture-card,.comparison-card{box-shadow:none;break-inside:avoid;}
  .culture-compare-table{min-width:0;width:100%;}
}

@media(max-width:480px){
}

/* ========================================================================
   Shared topic-card layer: Lok Nritya, Vadya Yantra and Lok Chitra
   ======================================================================== */
.culture-card > .culture-topic-title{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 18px;
  padding:0 0 14px;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:clamp(21px,2.15vw,27px);
  font-weight:700;
  line-height:1.36;
}
.culture-card > .culture-topic-title::before,
.culture-card > .culture-topic-title::after{
  display:none!important;
  content:none!important;
}
.culture-topic-title > span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere;}
.culture-topic-title .idx{
  display:inline-grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  margin:0;
  padding:0;
  border-radius:9px;
  background:var(--accent);
  color:#fff;
  box-shadow:none;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  font-weight:800;
  line-height:1;
}
.culture-topic-title .actions{flex:0 0 auto;margin-left:auto;}

.topic-lead,
.category-intro{
  margin:0 0 14px;
  color:var(--ink-soft);
  font-size:15.5px;
  line-height:1.72;
  text-align:start;
}
.category-intro{
  margin:0 0 18px;
  padding:12px 14px;
  border-left:3px solid var(--accent);
  border-radius:0 10px 10px 0;
  background:var(--accent-soft);
}

.culture-topic-body{min-width:0;color:var(--ink-soft);}
.culture-topic-body > :first-child{margin-top:0;}
.culture-topic-body > :last-child{margin-bottom:0;}
.culture-topic-body p,
.culture-topic-body li{
  color:var(--ink-soft);
  font-size:14.5px;
  line-height:1.72;
  text-align:start;
}
.culture-topic-body p{margin:9px 0;}
.culture-topic-body ul,
.culture-topic-body ol{
  margin:10px 0 12px;
  padding-inline-start:24px;
}
.culture-topic-body li{margin:6px 0;}
.culture-topic-body li > ul,
.culture-topic-body li > ol{margin-top:5px;margin-bottom:5px;}
.culture-topic-body strong,
.culture-topic-body b{color:var(--ink);}
.culture-topic-body em{color:var(--ink-soft);}
.culture-topic-body h4{
  margin:22px 0 9px;
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.42;
}
.culture-topic-body h4::before,
.culture-topic-body h4::after,
.culture-topic-body h5::before,
.culture-topic-body h5::after{display:none!important;content:none!important;}
.culture-topic-body h5{
  margin:15px 0 7px;
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:15.5px;
  font-weight:700;
  line-height:1.45;
}
.culture-topic-body blockquote{
  margin:14px 0 17px;
  padding:12px 14px;
  border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));
  border-left:4px solid var(--accent);
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--ink-soft);
  font-size:14.5px;
  font-style:normal;
  line-height:1.7;
}

/* Lok Nritya notes are intentionally simple, text-first lists. */
.nritya-notes > ul{margin-top:0;}
.nritya-notes > ul > li{
  /* Preserve the shared hollow bullet's reserved space. Removing this
     indentation placed the bullet directly over the first Hindi word. */
  padding:8px 0 8px 25px;
  border-bottom:1px dashed var(--line-soft);
}
.nritya-notes > ul > li:last-child{border-bottom:0;}
.nritya-notes h4{
  padding:10px 12px;
  border-left:3px solid var(--accent);
  border-radius:0 9px 9px 0;
  background:var(--accent-soft);
}

/* Vadya Yantra */
.vadya-category{margin-bottom:58px;}
.vadya-glance{
  margin:0 0 20px;
  background:var(--accent-soft);
}
.glance-box__title{
  margin:0 0 8px;
  color:var(--ink);
  font-family:'Poppins','Tiro Devanagari Hindi','Hind',sans-serif;
  font-size:16px;
  font-weight:700;
}
.glance-list{margin:0;padding-inline-start:21px;}
.glance-list li{margin:5px 0;color:var(--ink-soft);font-size:13.5px;line-height:1.65;}
.instrument-card{overflow:hidden;}
.instrument-card .culture-topic-title{margin-bottom:14px;}
.instrument__media.culture-media{
  width:min(100%,680px);
  margin:14px auto 18px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  text-align:center;
}
.instrument__media.culture-media img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:430px;
  margin:auto;
  object-fit:contain;
  border-radius:8px;
}
.culture-fact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:15px 0 0;
}
.vadya-reader-page .culture-fact-grid{
  /* Instrument facts are revision notes: keep a single reading flow. */
  grid-template-columns:minmax(0,1fr);
}
.culture-fact-grid .fact-card{
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--line-soft);
  border-radius:11px;
  background:color-mix(in srgb,var(--paper) 72%,var(--card));
}
.culture-fact-grid .fact-card:first-child:nth-last-child(3),
.culture-fact-grid .fact-card:first-child:nth-last-child(3) ~ .fact-card{
  /* Three facts stay balanced without forcing a tiny third column. */
}
.culture-fact-grid .fact-card h4{margin:0 0 8px;font-size:15.5px;}
.culture-fact-grid .fact-card ul{margin:0;padding-inline-start:21px;}
.culture-fact-grid .fact-card li{font-size:13.8px;line-height:1.68;}
.hl{
  color:var(--accent-2);
  font-weight:800;
}
.instrument-card .pro-tip{
  display:block;
  grid-template-columns:none;
  margin-top:13px;
  border-left:4px solid var(--gold);
  background:var(--gold-soft);
}
.instrument-card .pro-tip b{color:var(--ink);}
.misc-note{
  margin-top:16px;
  background:color-mix(in srgb,var(--accent-soft) 48%,var(--card));
}
.misc-note h4{margin:0 0 6px;font-size:16px;}
.misc-note p,.misc-note li{font-size:13.5px;line-height:1.65;}

/* Content contrast for culture readers. Shared topbar/footer colours remain
   owned by their common shell files. */
:is(html[data-theme="dark"],html.dark) body.culture-reader-page{
  --ink:#f4f7fb;
  --ink-soft:#d0d8e5;
  --ink-faint:#afbbce;
  --line:rgba(193,207,232,.30);
  --line-soft:rgba(193,207,232,.18);
}
:is(html[data-theme="dark"],html.dark) .culture-topic-body,
:is(html[data-theme="dark"],html.dark) .culture-topic-body p,
:is(html[data-theme="dark"],html.dark) .culture-topic-body li,
:is(html[data-theme="dark"],html.dark) .topic-lead,
:is(html[data-theme="dark"],html.dark) .category-intro{
  color:var(--ink-soft);
}

/* Lok Chitra */
.lokchitra-card .culture-tags{margin-bottom:10px;}
.culture-key-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0 18px;
}
.fact-pill{
  min-width:0;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
}
.fact-label{
  margin-bottom:3px;
  color:var(--ink-faint);
  font-size:10.5px;
  font-weight:800;
  line-height:1.3;
}
.fact-value{
  color:var(--accent-2);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.culture-info-card{
  margin:12px 0 17px;
  padding:13px 14px;
  border:1px solid var(--line-soft);
  border-radius:11px;
  background:color-mix(in srgb,var(--paper) 70%,var(--card));
}
.culture-info-card > :first-child{margin-top:0;}
.culture-info-card > :last-child{margin-bottom:0;}
.lineage-flow{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 18px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper);
}
.lineage-node{
  min-width:92px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  color:var(--ink);
  font-size:13px;
  font-weight:800;
  text-align:center;
}
.lineage-node.is-last{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2);}
.lineage-sub{display:block;margin-top:2px;color:var(--ink-faint);font-size:9.5px;font-weight:700;}
.lineage-arrow{color:var(--accent-2);font-weight:800;}

/* The shared reader must never allow a heading or card to force viewport overflow. */
.culture-reader-page main,
.culture-reader-page .reader,
.culture-reader-page .culture-article,
.culture-reader-page .culture-region,
.culture-reader-page .culture-card{min-width:0;max-width:100%;}
.culture-reader-page img{max-width:100%;}

@media(max-width:720px){
  .culture-fact-grid{grid-template-columns:1fr;}
  .culture-key-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .lineage-flow{align-items:stretch;}
  .lineage-node{flex:1 1 120px;}
  .lineage-arrow{align-self:center;}
}

@media(max-width:640px){
  .culture-card > .culture-topic-title{gap:8px;font-size:20px;}
  .culture-topic-title .idx{flex-basis:31px;width:31px;height:31px;font-size:10px;}
  .topic-lead,.category-intro{font-size:14.5px;line-height:1.68;}
  .culture-topic-body p,.culture-topic-body li,.culture-topic-body blockquote{font-size:14px;}
  .culture-topic-body h4{font-size:16.5px;}
  .culture-topic-body h5{font-size:15px;}
  .instrument__media.culture-media{padding:8px;}
  .culture-key-facts{gap:8px;}
  .fact-pill{padding:9px;}
  .lineage-flow{gap:6px;padding:10px;}
}

@media(max-width:500px){
  .culture-card > .culture-topic-title{flex-wrap:wrap;}
  .culture-topic-title .actions{width:100%;margin-left:39px;}
  .culture-key-facts{grid-template-columns:1fr;}
  .instrument__media.culture-media img{max-height:340px;}
  .lineage-flow{display:grid;grid-template-columns:1fr;}
  .lineage-arrow{text-align:center;transform:rotate(90deg);}
  .lineage-node{width:100%;}
}

@media(max-width:390px){
  .culture-topic-title .actions{margin-left:0;}
  .culture-topic-title .culture-bookmark{margin-left:39px;}
}

/* Mobile title actions must wrap without increasing the card's scroll width. */
@media(max-width:500px){
  .culture-topic-title .actions{width:auto;max-width:calc(100% - 39px);}
}
@media(max-width:390px){
  .culture-topic-title .actions{max-width:100%;}
}


/* Shared navigation controls: the global topbar owns menu/home/theme/brand. */
.culture-reader-page .culture-bookmark{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  margin-left:8px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:8px !important;
  font-size:0 !important;
}
.culture-reader-page .reader-bookmark-icon{width:18px;height:18px;display:block;fill:none;}
.culture-reader-page .culture-bookmark.active .reader-bookmark-icon{fill:currentColor;}
.culture-reader-page .complete-btn{min-width:0;}
