/* ============================================================
   modern.css — නවීන පෙනුම (main.css ට පසුව load වේ)
   Warm paper + saffron + temple maroon · soft surfaces · motion
   ============================================================ */

/* ---------- Tokens: Dark (default) ---------- */
:root,
html:root.dark,
html:root[data-theme="dark"] {
  --font-ui: 'Noto Sans Sinhala', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Noto Serif Sinhala', Georgia, serif;

  --bg-main: #0d0b0a;
  --bg-surface: #16130f;
  --bg-elevated: #1b1713;
  --bg-hover: #221d18;
  --bg-input: #16130f;
  --bg-table-header: #18140f;
  --bg-folder: #16130f;
  --bg-folder-hover: #1f1a15;
  --border-color: rgba(255, 236, 205, 0.08);
  --border-light: rgba(255, 236, 205, 0.14);
  --text-main: #ece6dc;
  --text-bright: #fffaf2;
  --text-muted: #bdb3a4;
  --text-dim: #8a8073;
  --accent-gold: #f4b740;
  --accent-soft: rgba(244, 183, 64, 0.12);
  --accent-ring: rgba(244, 183, 64, 0.32);
  --maroon: #6d1229;
  --maroon-deep: #2a0710;
  --glass-bg: rgba(13, 11, 10, 0.72);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 48px -12px rgba(0,0,0,.6);
  --glow: 0 0 0 1px var(--accent-ring), 0 18px 40px -16px rgba(244,183,64,.35);
  --header-tint: rgba(13, 11, 10, 0.7);
  --header-border: rgba(255, 236, 205, 0.08);
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Tokens: Light ---------- */
html:root.light,
html:root[data-theme="light"] {
  --bg-main: #f8f4ec;
  --bg-surface: #ffffff;
  --bg-elevated: #fdfbf7;
  --bg-hover: #f4eee3;
  --bg-input: #ffffff;
  --bg-table-header: #f6f1e8;
  --bg-folder: #ffffff;
  --bg-folder-hover: #faf5ec;
  --border-color: rgba(60, 38, 10, 0.10);
  --border-light: rgba(60, 38, 10, 0.18);
  --text-main: #2a221b;
  --text-bright: #1a140f;
  --text-muted: #5b4f43;
  --text-dim: #8a7d6e;
  --accent-gold: #a4500c;
  --accent-soft: rgba(164, 80, 12, 0.09);
  --accent-ring: rgba(164, 80, 12, 0.26);
  --maroon: #7a1530;
  --maroon-deep: #3a0a17;
  --glass-bg: rgba(248, 244, 236, 0.78);
  --shadow-sm: 0 1px 2px rgba(60,38,10,.06), 0 4px 14px rgba(60,38,10,.05);
  --shadow-lg: 0 2px 6px rgba(60,38,10,.06), 0 24px 48px -16px rgba(60,38,10,.18);
  --glow: 0 0 0 1px var(--accent-ring), 0 18px 40px -18px rgba(164,80,12,.35);
  --header-tint: rgba(248, 244, 236, 0.78);
  --header-border: rgba(60, 38, 10, 0.10);
  color-scheme: light;
}

/* ---------- Base ---------- */
html body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(109, 18, 41, .14), transparent 60%),
    var(--bg-main);
  background-attachment: fixed;
}
html.light body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(244,183,64,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(122,21,48,.06), transparent 60%),
    var(--bg-main);
}
h1, h2, h3, .section-title, .brand-name, .footer-brand-name,
.playstore-app-title, .page-head h1, .doc-article h2 {
  font-family: var(--font-display);
}
.container { max-width: 1200px; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-gold); color: #1a140f; }

/* ==========================================================
   Header — floating glass bar
   ========================================================== */
html .site-header {
  background: var(--header-tint);
  background-image: none;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
html .site-header::after { display: none; }
html .site-header.is-scrolled {
  border-bottom-color: var(--header-border);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.45);
}
html .header-inner { height: 70px; gap: 14px; }
html .site-header .brand { color: var(--text-bright); }
html .site-header .brand-name { color: var(--text-bright); font-size: 1.12rem; font-weight: 700; }
/* Brand icon (.brand-mark) — මුල් සැලසුම එලෙසම (main.css) */

/* nav links */
html .site-header .site-nav { display: flex; gap: 2px; margin-left: 8px; }
html .site-header .site-nav a {
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  border: 0;
  transition: color .2s, background .2s;
}
html .site-header .site-nav a:hover { color: var(--text-bright); background: var(--bg-hover); }
html .site-header .site-nav a[aria-current="page"],
html .site-header .site-nav a.is-active {
  color: var(--text-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}

/* search */
html .site-header .search-wrapper { max-width: 420px; margin-left: auto; }
html .site-header .search-box input {
  height: 42px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-family: var(--font-ui);
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
html .site-header .search-box input::placeholder { color: var(--text-dim); }
html .site-header .search-box input:hover { border-color: var(--border-light); }
html .site-header .search-box input:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 4px var(--accent-soft); }
html .site-header .search-icon { color: var(--text-dim); }
html .site-header .search-results {
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
html .site-header .search-result-item { border-radius: 12px; }
html .site-header .search-result-item:hover { background: var(--bg-hover); }

/* lang + theme */
html .site-header .lang-switch,
html .site-footer .lang-switch {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 3px;
  box-shadow: none;
}
html .lang-switch button {
  font-family: var(--font-ui);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}
html .lang-switch button:hover { color: var(--text-bright); background: transparent; }
html .site-header .lang-switch button.active,
html .site-header .lang-switch button[aria-pressed="true"],
html.light .site-header .lang-switch button.active {
  background: linear-gradient(135deg, #ffd27a, #f4b740 55%, #e0911f);
  color: #1a140f;
  box-shadow: 0 2px 8px -2px rgba(244,183,64,.6);
}
html .site-header .theme-toggle {
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  box-shadow: none;
  transition: transform .4s var(--ease), border-color .2s;
}
html .site-header .theme-toggle:hover { border-color: var(--accent-ring); transform: rotate(20deg); background: var(--bg-surface); }

/* ==========================================================
   Hero (index) — rounded image card with gradient + stats
   ========================================================== */
html .hero-banner {
  width: auto;
  margin: 28px 0 72px;
  padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 64px);
  border: 1px solid rgba(255, 210, 140, .16) !important;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  min-height: 0;
  background-color: var(--maroon-deep);
  background-image:
    linear-gradient(100deg, rgba(26,6,11,.94) 0%, rgba(42,7,16,.86) 42%, rgba(42,7,16,.35) 100%),
    url("Gemini_Generated_Image_10kmon10kmon10km.jpg");
  background-size: cover;
  background-position: center right;
}
html .hero-banner::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(244,183,64,.28), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
html .hero-banner-content {
  max-width: 720px;
  margin: 0;
  padding: 0;
  background: none;
  text-align: left;
}
html .hero-eyebrow {
  font-family: var(--font-ui);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fdebd0;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
html .hero-eyebrow .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); animation: m-pulse 2.4s infinite; }
html .hero-banner-title {
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  line-height: 1.35;
  font-weight: 800;
  text-align: left;
  margin-bottom: 18px;
  text-shadow: none;
  color: #fffaf2;
  background: linear-gradient(180deg, #fffaf2 30%, #ffd88a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html .hero-banner-desc {
  font-family: var(--font-ui);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.95;
  color: rgba(255, 244, 228, .82);
  text-align: left;
  text-shadow: none;
  max-width: 640px;
}
html[lang="en"] .hero-banner-desc { text-align: left; }

html .hero-actions { margin: 30px 0 0; gap: 12px; }
html .hero-btn {
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
html .hero-btn-primary {
  background: linear-gradient(135deg, #ffd27a, #f4b740 50%, #e0911f) !important;
  color: #1a140f !important;
  border: 0 !important;
  box-shadow: 0 10px 30px -10px rgba(244,183,64,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
html .hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(244,183,64,.8); filter: brightness(1.06); }
html .hero-btn-ghost {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fffaf2 !important;
  backdrop-filter: blur(8px);
}
html .hero-btn-ghost:hover { background: rgba(255,255,255,.16) !important; transform: translateY(-2px); border-color: rgba(255,255,255,.35) !important; }


/* ==========================================================
   Sections
   ========================================================== */
html .section-block { margin-bottom: 88px; scroll-margin-top: 90px; }
html .section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--text-bright);
  border: 0;
  padding: 0;
  margin-bottom: 6px;
  scroll-margin-top: 96px;
}
html .section-title svg {
  box-sizing: content-box;
  padding: 10px;
  width: 22px; height: 22px;
  border-radius: 14px;
  color: var(--accent-gold);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0 0 28px 56px;
  max-width: 640px;
}

/* ==========================================================
   App cards
   ========================================================== */
html .apps-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
html .playstore-card {
  background: linear-gradient(145deg, #26151a 0%, #1b1512 58%, #17130f 100%);
  border: 1px solid rgba(231, 186, 117, .2);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
html.light .playstore-card {
  background: linear-gradient(145deg, #fffdfa 0%, #fbf5ed 58%, #f7eee4 100%);
  border-color: rgba(122, 21, 48, .18);
}
html .playstore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 183, 64, .48);
  box-shadow: var(--glow);
}
html .playstore-card.expanded {
  transform: none;
  border-color: rgba(244, 183, 64, .48);
  box-shadow: var(--glow);
}
html .playstore-summary { gap: 16px; }
/* App icons — මුල් පෙනුම එලෙසම (main.css: 62px, 14px කොන්, මුල් වර්ණ) */
html .playstore-app-icon { border-color: #23232a; background-color: #18181c; }
html.light .playstore-app-icon { border-color: #e5e5e0; background-color: #f5f5f3; }
html .playstore-app-title { font-size: 1.05rem; font-weight: 700; color: var(--text-bright); line-height: 1.5; }
html .playstore-developer { font-family: var(--font-ui); font-size: .82rem; color: var(--text-dim); }
html .card-expand-arrow {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  transition: transform .35s var(--ease), background .2s;
}
html .playstore-card:hover .card-expand-arrow { background: var(--accent-soft); border-color: var(--accent-ring); }
html .playstore-details {
  border-top: 1px solid rgba(231, 186, 117, .22);
  margin-top: 18px;
  padding: 18px 2px 2px;
  background: linear-gradient(180deg, rgba(109, 18, 41, .14), transparent 55%);
}
html.light .playstore-details {
  border-top-color: rgba(122, 21, 48, .18);
  background: linear-gradient(180deg, rgba(122, 21, 48, .045), transparent 55%);
}
html .playstore-meta-row {
  display: flex;
  align-items: stretch;
  background: rgba(109, 18, 41, .2);
  border-radius: 16px;
  padding: 12px 8px;
  border: 1px solid rgba(231, 186, 117, .18);
}
html .playstore-meta-item { flex: 1 1 0; min-width: 0; }
html .playstore-meta-divider { align-self: center; flex: 0 0 1px; height: 24px; }
html.light .playstore-meta-row {
  background: #f5e9df;
  border-color: rgba(122, 21, 48, .14);
}
html .playstore-meta-val { font-family: 'Inter', var(--font-ui); color: var(--text-bright); }
html .playstore-meta-lbl { font-family: var(--font-ui); color: var(--text-muted); }
html.light .playstore-meta-lbl { color: #68584d; }
html .playstore-actions { gap: 10px; }
html .btn-playstore-install,
html [data-theme="dark"] .btn-playstore-install {
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  background: linear-gradient(135deg, #02a875, #01875f 58%, #007a55);
  color: #ffffff;
  border: 0;
  box-shadow: 0 8px 22px -10px rgba(1, 135, 95, .8);
}
html .btn-playstore-install:hover { filter: brightness(1.08); transform: translateY(-1px); }
html .btn-playstore-web,
html .btn-playstore-share {
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  background: rgba(1, 135, 95, .1);
  border: 1px solid rgba(1, 180, 126, .34);
  color: var(--text-bright);
}
html.light .btn-playstore-web,
html.light .btn-playstore-share {
  background: #f0faf6;
  border-color: rgba(1, 135, 95, .28);
  color: #075a43;
}
html .btn-playstore-web:hover,
html .btn-playstore-share:hover {
  border-color: #02a875;
  background: rgba(1, 135, 95, .2);
  color: var(--text-bright);
}
html.light .btn-playstore-web:hover,
html.light .btn-playstore-share:hover {
  border-color: #01875f;
  background: #dff4eb;
  color: #064d3b;
}
html .playstore-screenshot-img { border-radius: 14px; border: 1px solid rgba(231, 186, 117, .2); transition: transform .3s var(--ease); }
html.light .playstore-screenshot-img { border-color: rgba(122, 21, 48, .16); }
html .playstore-screenshot-img:hover { transform: scale(1.03); }
html .playstore-about { font-family: var(--font-ui); color: var(--text-main); line-height: 1.9; }
html .install-guide-toggle {
  border-radius: 14px;
  font-family: var(--font-ui);
  background: rgba(109, 18, 41, .18);
  border-color: rgba(231, 186, 117, .2);
}
html.light .install-guide-toggle {
  background: #f5e9df;
  border-color: rgba(122, 21, 48, .16);
}
html .install-guide-toggle:hover { border-color: var(--accent-ring); background: var(--accent-soft); }
html .install-guide-content.open {
  background: rgba(10, 8, 7, .24);
  border-color: rgba(231, 186, 117, .18);
}
html.light .install-guide-content.open {
  background: rgba(255, 253, 250, .82);
  border-color: rgba(122, 21, 48, .14);
}
html .install-tabs { border-radius: 999px; background: rgba(109, 18, 41, .2); padding: 4px; border: 1px solid rgba(231, 186, 117, .16); }
html.light .install-tabs { background: #f5e9df; border-color: rgba(122, 21, 48, .12); }
html .install-tab { border-radius: 999px; font-family: var(--font-ui); }
html .install-tab.active { background: var(--bg-surface); color: var(--text-bright); box-shadow: var(--shadow-sm); }
html .install-tab[onclick*="'android-"].active {
  background: #01875f;
  color: #ffffff;
}
html .install-tab[onclick*="'ios-"].active {
  background: #27272a;
  color: #ffffff;
}
html.light .install-tab[onclick*="'ios-"].active { background: #1f2937; }
html .install-tab[onclick*="'desktop-"].active {
  background: #2563eb;
  color: #ffffff;
}

/* ==========================================================
   Books table
   ========================================================== */
html #pdfFileList { min-height: 0; }
html .pdf-table {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
html .table-header {
  background: var(--bg-table-header);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-dim);
  padding: 14px 24px;
}
html .folder-header {
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  border-left: 0;
  transition: background .2s;
}
html .folder-header:hover { background: var(--bg-folder-hover); }
html .folder-group.open > .folder-header { background: var(--bg-folder-hover); box-shadow: inset 3px 0 0 var(--accent-gold); }
html .folder-count {
  font-family: var(--font-ui);
  font-size: .78rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-ring);
  padding: 2px 12px;
}
html .table-row {
  padding: 14px 24px 14px 56px;
  background: var(--bg-elevated);
  font-family: var(--font-ui);
  transition: background .2s, padding-left .25s var(--ease);
}
html .table-row:hover { background: var(--bg-hover); padding-left: 62px; }
html .pdf-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .04em;
  border-radius: 6px;
  background: rgba(239, 68, 68, .12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .25);
}
html.light .pdf-badge { color: #c42b2b; }
html .file-text { color: var(--text-bright); font-weight: 500; }
html .file-col-cat, html .file-col-count, html .file-col-size { color: var(--text-dim); font-size: .86rem; }

/* ==========================================================
   Inner pages (about / privacy / copyright / contact)
   ========================================================== */
html .page-main { padding-top: 40px; }
html .page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text-bright);
}
html .page-head::after {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), var(--border-color) 30%, transparent);
}
html .page-lede { font-size: 1.05rem; color: var(--text-muted); }
html .crumbs a { color: var(--text-muted); }
html .crumbs [aria-current="page"] { color: var(--accent-gold); }
html .doc-pages a,
html .doc-toc a { font-family: var(--font-ui); border-radius: 12px; }
html .doc-pages a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--text-bright);
}
html .doc-article h2 { font-size: 1.4rem; color: var(--text-bright); }
html .doc-article h2::before { border-radius: 4px; background: linear-gradient(180deg, #ffd27a, var(--accent-gold)); }
html .doc-article p, html .doc-article li { font-family: var(--font-ui); color: var(--text-muted); line-height: 1.95; }
html .doc-article a { color: var(--accent-gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html .doc-article ul.card-list li,
html .info-card {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
html .doc-article ul.card-list li:hover,
html .info-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); box-shadow: var(--glow); }
html .doc-article .info-table,
html .info-table {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
}
html .doc-article .note,
html .page-content .note {
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
}

/* contact form */
html .contact-form input,
html .contact-form textarea,
html .contact-form select,
html .form-row textarea {
  font-family: var(--font-ui);
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-bright);
  transition: border-color .2s, box-shadow .2s;
}
html .contact-form input:focus,
html .contact-form textarea:focus,
html .form-row textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
html .form-submit {
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  background: linear-gradient(135deg, #ffd27a, #f4b740 50%, #e0911f);
  color: #1a140f;
  border: 0;
  box-shadow: 0 10px 26px -12px rgba(244,183,64,.8);
}
html .form-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ==========================================================
   Footer
   ========================================================== */
html .site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, #101010, #000000);
  color: #ffffff;
}
html .site-footer::before { opacity: .5; }
html .site-footer .footer-col h3 { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; }
html .site-footer .footer-col h3::after { display: none; }
html .site-footer .footer-col a,
html .site-footer .footer-col .footer-link-btn { font-family: var(--font-ui); color: #ffffff; }
html .site-footer .footer-col a:hover,
html .site-footer .footer-col .footer-link-btn:hover { color: #ffd27a; }
html .site-footer .footer-about p,
html .site-footer .footer-contact-text { font-family: var(--font-ui); color: #ffffff; }
html .footer-brand-name { color: #ffffff; }
html .footer-chip {
  font-family: var(--font-ui);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #ffffff;
}
html .footer-cta {
  border-radius: 999px;
  font-family: var(--font-ui);
  background: linear-gradient(135deg, #ffd27a, #f4b740 50%, #e0911f);
  color: #1a140f;
  box-shadow: 0 10px 26px -12px rgba(244,183,64,.8);
}
html .footer-cta.footer-youtube,
html .site-footer .footer-col a.footer-youtube {
  margin-top: 10px;
  background: #ff0033;
  color: #ffffff;
  box-shadow: 0 8px 22px -12px rgba(255, 0, 51, .8);
}
html .footer-cta.footer-youtube:hover,
html .site-footer .footer-col a.footer-youtube:hover {
  background: #cc0029;
  color: #ffffff;
  transform: translateY(-2px);
}
html .footer-mail { color: #ffffff; font-family: var(--font-ui); overflow-wrap: anywhere; font-size: .88rem; }
html .footer-blessing span { color: #facc15; }
html .footer-copy { font-family: var(--font-ui); color: #ffffff; }
html .site-footer .lang-switch { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
html .site-footer .lang-switch button { color: #ffffff; }
html .site-footer .lang-switch button.active,
html .site-footer .lang-switch button[aria-pressed="true"],
html.light .site-footer .lang-switch button.active { background: #fffaf2; color: #1a140f; }
html .footer-top { border-radius: 999px; border-color: rgba(255,255,255,.18); color: #fffaf2; background: rgba(255,255,255,.06); }
html .footer-top:hover { background: #ffd27a; color: #1a140f; border-color: #ffd27a; }

/* cookie banner */
html .cookie-banner {
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
}
html .cookie-btn { border-radius: 999px; font-family: var(--font-ui); }
html .read-progress span { background: linear-gradient(90deg, #ffd27a, var(--accent-gold)); }

/* ==========================================================
   Motion
   ========================================================== */
@keyframes m-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(74,222,128,.18); } 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.05); } }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html .hero-eyebrow .dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1020px) {
  html .site-header .site-nav { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  html .header-inner { height: auto; gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  html .hero-banner {
    margin: 16px 0 56px;
    border-radius: 24px;
    padding: 30px 20px;
    background-image:
      linear-gradient(180deg, rgba(26,6,11,.9), rgba(42,7,16,.82)),
      url("Gemini_Generated_Image_10kmon10kmon10km.jpg");
  }
  html .hero-banner-title { font-size: 1.65rem; text-align: left; }
  html .hero-banner-desc { font-size: .95rem; line-height: 1.9; }
  html .hero-actions { flex-wrap: wrap; }
  html .hero-btn { flex: 1 1 140px; height: 48px; }
  .section-sub { margin-left: 0; margin-top: 10px; }
  html .section-block { margin-bottom: 64px; }
  html .apps-grid { grid-template-columns: 1fr; }
  html .table-row { padding-left: 24px; }
  html .table-row:hover { padding-left: 28px; }
}

/* ==========================================================
   Hero v2 — සම්පූර්ණ පළල, අඩු උස, මැදට මාතෘකාව, justify ඡේදය
   ========================================================== */
html .hero-banner {
  width: 100vw;
  margin: 0 0 64px calc(50% - 50vw);
  padding: 34px 24px 30px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 210, 140, .22) !important;
  border-radius: 0;
  box-shadow: 0 20px 40px -30px rgba(0,0,0,.6);
  background-image:
    linear-gradient(180deg, rgba(26,6,11,.80), rgba(42,7,16,.74)),
    url("Gemini_Generated_Image_10kmon10kmon10km.jpg");
  background-position: center;
}
html .hero-banner::before {
  inset: -40% auto auto 50%;
  transform: translateX(-50%);
  width: 760px; height: 420px;
  background: radial-gradient(ellipse, rgba(244,183,64,.20), transparent 65%);
}
html .hero-banner-content {
  max-width: 1152px;
  margin: 0 auto;
  text-align: center;
}
html .hero-eyebrow { margin-bottom: 12px; }
html .hero-banner-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 12px;
}
html .hero-banner-desc,
html[lang="en"] .hero-banner-desc {
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: center;
  line-height: 1.85;
  margin: 0;
}
html .hero-actions { justify-content: center; margin-top: 20px; }
html .hero-btn { height: 46px; }

@media (max-width: 768px) {
  html .hero-banner { margin: 0 0 48px calc(50% - 50vw); padding: 24px 16px 22px; border-radius: 0; }
  html .hero-banner-title { text-align: center; font-size: 1.45rem; }
  html .hero-banner-desc { font-size: .93rem; }
}

/* ==========================================================
   Hero v3 — මුල් වර්ණ (main.css හි තිබූ maroon overlay සහ රන්වන් මාතෘකාව)
   ========================================================== */
html .hero-banner {
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(rgba(48, 0, 14, 0.68), rgba(48, 0, 14, 0.68)),
    url("Gemini_Generated_Image_10kmon10kmon10km.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--accent-ring) !important;
  box-shadow: var(--shadow-sm);
}
html .hero-banner::before { display: none; }
html .hero-eyebrow {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--accent-ring);
  color: #ffffff;
  backdrop-filter: none;
}
html .hero-eyebrow .dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); animation: none; }
html .hero-banner-title {
  color: #fcd34d;
  background: none;
  -webkit-text-fill-color: #fcd34d;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
}
html .hero-banner-desc,
html[lang="en"] .hero-banner-desc {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
}
html .hero-actions { margin-bottom: 4px; }

/* Home page — dark editorial layout with warm Dhamma accents */
html .site-header {
  background: rgba(10, 9, 9, .94);
  border-bottom-color: rgba(244, 183, 64, .14);
  box-shadow: 0 10px 32px -24px rgba(0, 0, 0, .9);
}
html.light .site-header {
  background: rgba(250, 247, 241, .96);
  border-bottom-color: rgba(122, 21, 48, .16);
}
html .site-header .brand-mark {
  border-radius: 14px;
  color: #e87500;
  background: #fffaf2;
  border-color: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .32), 0 0 0 2px rgba(244, 183, 64, .22);
}
html .site-header .brand-mark svg { stroke-width: 2.2; }
html .site-header .search-box input {
  background: rgba(255, 250, 242, .055);
  border-color: rgba(255, 236, 205, .12);
}
html.light .site-header .search-box input {
  background: #fffdfa;
  border-color: rgba(60, 38, 10, .13);
}

html .dhamma-banner {
  isolation: isolate;
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: clamp(42px, 6vw, 72px) 24px 36px;
  background-color: #17090d;
  background-image:
    radial-gradient(ellipse 52% 78% at 50% 50%, rgba(20, 6, 12, .5), rgba(20, 6, 12, .18) 100%),
    linear-gradient(90deg, rgba(17, 8, 10, .26), rgba(42, 8, 20, .22) 48%, rgba(12, 13, 23, .12)),
    url("hero_bannar.jpg");
  background-size: cover;
  background-position: center 54%;
  border-bottom: 1px solid rgba(244, 183, 64, .32);
  box-shadow: 0 24px 54px -42px rgba(0, 0, 0, .9);
}
html.light .dhamma-banner {
  background-image:
    radial-gradient(ellipse 52% 78% at 50% 50%, rgba(24, 7, 12, .46), rgba(24, 7, 12, .16) 100%),
    linear-gradient(90deg, rgba(24, 7, 12, .24), rgba(42, 8, 20, .2) 48%, rgba(12, 13, 23, .1)),
    url("hero_bannar.jpg");
}
html .dhamma-banner::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 183, 64, .72), rgba(255, 250, 242, .32), rgba(244, 183, 64, .72), transparent);
  pointer-events: none;
}
html .banner-overlay {
  top: -70%;
  width: min(760px, 100vw);
  height: 760px;
  background: radial-gradient(circle, rgba(244, 183, 64, .16), transparent 68%);
}
html .banner-art { opacity: .06; }
html .dhamma-banner .banner-title,
html .dhamma-banner .banner-subtitle,
html .dhamma-banner .banner-blessing { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 16px rgba(0,0,0,.6); }
html .banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html .banner-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  order: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
}
html .banner-icon-wrapper {
  position: relative;
  display: inline-flex;
  width: 140px;
  height: 140px;
  align-items: center;
  justify-content: center;
  order: 2;
  justify-self: center;
  margin: 0;
  padding: 2px;
  border: 1px solid rgba(255, 248, 225, .18);
  border-radius: 50%;
  background: rgba(255, 248, 225, .035);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  filter: none;
}
html .banner-icon-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255, 226, 167, .14);
  border-radius: 50%;
  pointer-events: none;
}
html .banner-emblem {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 248, 225, .26);
  border-radius: 50%;
  object-fit: cover;
  animation: none;
}
html .banner-title {
  width: 100%;
  max-width: none;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  text-wrap: balance;
  text-align: center;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .65);
}
html .banner-subtitle {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 250, 242, .92);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
}
html .banner-blessing {
  display: inline-flex;
  margin: 0;
  padding: 7px 18px;
  border: 1px solid #c47d12;
  border-radius: 999px;
  background: #f4b740;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #321b05;
  font-size: .9rem;
  letter-spacing: .04em;
  box-shadow: 0 3px 12px rgba(125, 76, 9, .22);
}
html .banner-blessing-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
}

@media (min-width: 769px) {
  html .banner-title {
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(1.25rem, min(3.2vw, calc(4.1vw - 11.5px)), 3.4rem);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  html .banner-title {
    white-space: normal;
    text-wrap: balance;
    font-size: 2rem;
  }
}

html main.container {
  max-width: 1280px;
  padding-top: 30px;
  padding-right: clamp(18px, 4vw, 48px);
  padding-left: clamp(18px, 4vw, 48px);
}
html .library-columns {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}
html .section-block {
  margin-bottom: clamp(58px, 8vw, 92px);
}
html .library-columns > .section-block { min-width: 0; margin-bottom: 0; }
html .library-columns .section-title { font-size: clamp(1rem, 1.5vw, 1.3rem); }
html .library-columns .section-title svg { flex: 0 0 22px; }
html .library-columns .section-sub { margin: 8px 0 18px; font-size: .84rem; line-height: 1.7; }
html .section-title {
  position: relative;
  gap: 14px;
  padding: 0 0 15px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
html .section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}
html .section-title svg {
  border-radius: 12px;
}
html .section-sub {
  margin: 8px 0 24px 50px;
  max-width: 760px;
}
html .apps-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
html .library-apps .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html .playstore-card {
  position: relative;
  overflow: hidden;
}
html .library-apps .playstore-card { padding: 6px; border-radius: 16px; }
html .library-apps .playstore-summary {
  min-height: 72px;
  gap: 12px;
  border-radius: 12px;
  outline-offset: 3px;
}
html .library-apps .playstore-summary:focus-visible { outline: 2px solid var(--accent-ring); }
html .library-apps .playstore-app-icon { width: 58px; height: 58px; flex: 0 0 58px; }
html .library-apps .card-expand-arrow { display: none; }
html .library-apps .playstore-header-info { display: block; }
html .library-apps .playstore-app-title { font-size: .88rem; line-height: 1.45; }
html .library-apps .playstore-developer { font-size: .72rem; }
html .library-apps .playstore-details { margin: 8px 6px 4px; }
html .playstore-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-gold), rgba(109, 18, 41, .1));
  opacity: .65;
  transition: opacity .25s, width .25s;
}
html .playstore-card:hover::before,
html .playstore-card.expanded::before {
  width: 4px;
  opacity: 1;
}
html .playstore-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
html .playstore-card.expanded .playstore-app-icon {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px rgba(0, 0, 0, .28);
}
html .playstore-app-title { letter-spacing: .005em; }
html .playstore-details { border-top-style: solid; }
html .playstore-about {
  padding: 2px 2px 4px;
  font-size: .93rem;
}
html .playstore-screenshots-scroll {
  scrollbar-color: var(--accent-ring) transparent;
  scrollbar-width: thin;
}

html .pdf-table {
  border-radius: 22px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface) 46%);
}
html .table-header {
  background: linear-gradient(90deg, rgba(109, 18, 41, .24), var(--bg-table-header) 62%);
  border-bottom-color: var(--border-light);
}
html .folder-group { border-bottom-color: var(--border-color); }
html .folder-header {
  padding-top: 17px;
  padding-bottom: 17px;
}
html .folder-group.open > .folder-header {
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
html .table-row {
  border-top-color: var(--border-color);
}
html .table-row:hover {
  background: linear-gradient(90deg, var(--accent-soft), var(--bg-hover) 45%);
}

@media (min-width: 769px) and (max-width: 940px) {
  html .library-columns { grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  html .dhamma-banner {
    min-height: 0;
    padding: 32px 16px 26px;
    background-position: 52% center;
    background-image:
      linear-gradient(rgba(20, 6, 12, .46), rgba(20, 6, 12, .4)),
      url("hero_bannar.jpg");
  }
  html .banner-content {
    width: 100%;
    padding: 0;
  }
  html .banner-content { gap: 10px; }
  html .banner-art { opacity: .1; }
  html .banner-icon-wrapper { width: 88px; height: 88px; border-radius: 50%; }
  html .banner-icon-wrapper::before { inset: -3px; border-radius: 50%; }
  html .banner-emblem { width: 100%; height: 100%; border-radius: 50%; }
  html .banner-title { font-size: clamp(1.35rem, 5.6vw, 1.8rem); line-height: 1.35; }
  html .banner-subtitle { font-size: .82rem; line-height: 1.65; }
  html .banner-blessing { padding: 4px 10px; font-size: .72rem; }
  html .section-sub { margin: 8px 0 20px; }
  html .apps-grid { grid-template-columns: minmax(0, 1fr); }
  html .library-columns { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  html .library-columns > .section-block { margin-bottom: 0; }
  html .library-apps .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html main.container { padding-top: 24px; }
}

@media (max-width: 420px) {
  html .banner-content { gap: 8px; }
  html .banner-icon-wrapper { width: 68px; height: 68px; border-radius: 50%; }
  html .banner-icon-wrapper::before { inset: -2px; border-radius: 50%; }
  html .banner-emblem { border-radius: 50%; }
  html .banner-title { font-size: clamp(1.35rem, 6vw, 1.55rem); }
  html .banner-subtitle { font-size: .76rem; }
}

@media (min-width: 640px) and (max-width: 768px) {
  html .banner-title {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.65rem, 4.4vw, 2rem);
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html .playstore-card::before { transition: none; }
}

/* Keep the app and book library bright in both color themes. */
html .library-apps .playstore-card,
html.light .library-apps .playstore-card {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
html .library-apps .playstore-card:hover,
html .library-apps .playstore-card.expanded {
  border-color: #d1d5db;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .1);
}
html .library-apps .playstore-app-title { color: #111827; }
html .library-apps .playstore-developer { color: #64748b; }
html .library-apps .playstore-details {
  border-top-color: #e5e7eb;
  background: #ffffff;
  color: #1f2937;
}
html .library-apps .playstore-meta-row {
  border-color: #e5e7eb;
  background: #ffffff;
}
html .library-apps .playstore-meta-val { color: #111827; }
html .library-apps .playstore-meta-lbl { color: #64748b; }
html .library-apps .playstore-meta-divider { background: #e5e7eb; }
html .library-apps .playstore-about { color: #374151; }
html .library-apps .btn-playstore-install {
  border: 1px solid #047857;
  background: #047857;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(4, 120, 87, .2);
}
html .library-apps .btn-playstore-install:hover {
  border-color: #065f46;
  background: #065f46;
  color: #ffffff !important;
}
html .library-apps .btn-playstore-web,
html .library-apps .btn-playstore-web,
html.light .library-apps .btn-playstore-web {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
html .library-apps .btn-playstore-web:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}
html .library-apps .btn-playstore-share {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}
html .library-apps .btn-playstore-share:hover {
  border-color: #c4b5fd;
  background: #ede9fe;
  color: #5b21b6;
}
html .library-apps .install-guide-toggle,
html.light .library-apps .install-guide-toggle {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
html .library-apps .install-guide-toggle:hover {
  border-color: #fcd34d;
  background: #fef3c7;
  color: #78350f;
}
html .library-apps .install-guide-content.open {
  border-color: #dbeafe;
  background: #f8fafc;
}
html .library-apps .install-tabs {
  border-color: #e2e8f0;
  background: #eef2f7;
}
html .library-apps .install-tab {
  border-radius: 999px;
  color: #475569;
}
html .library-apps .install-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}
html .library-apps .install-tab.active {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(4, 120, 87, .2);
}
html .library-apps .install-steps li { color: #374151; }
html .library-apps .install-steps li strong { color: #111827; }
html .library-books .pdf-table {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
html .library-books .table-header {
  border-bottom-color: #e5e7eb;
  background: #ffffff;
  color: #64748b;
}
html .library-books .folder-group { border-bottom-color: #e5e7eb; }
html .library-books .folder-header {
  background: #ffffff;
  color: #1f2937;
}
html .library-books .folder-header:hover,
html .library-books .folder-group.open > .folder-header {
  background: #f9fafb;
}
html .library-books .folder-count {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #475569;
}
html .library-books .folder-empty {
  margin: 0;
  padding: 18px 24px;
  color: #64748b;
  font-family: var(--font-ui);
  font-size: .9rem;
}
html .library-books .table-row {
  border-bottom-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}
html .library-books .table-row:hover { background: #f9fafb; }
html .library-books .file-text { color: #111827; }
html .library-books .file-col-cat,
html .library-books .file-col-count,
html .library-books .file-col-size { color: #475569; }
html .library-books .file-col-size { color: #047857; }
html .library-books .pdf-badge {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

@media (min-width: 769px) {
  html .library-columns.has-expanded-app {
    grid-template-columns: minmax(0, 1fr);
  }
  html .library-columns.has-expanded-app .library-apps .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
  }
  html .library-columns.has-expanded-app .library-apps .playstore-card.expanded {
    grid-column: 1 / -1;
  }
  html .library-columns.has-expanded-app .library-apps .playstore-card.expanded .playstore-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px 24px;
  }
  html .library-columns.has-expanded-app .playstore-meta-row,
  html .library-columns.has-expanded-app .playstore-actions,
  html .library-columns.has-expanded-app .playstore-about {
    grid-column: 1 / -1;
  }
  html .library-columns.has-expanded-app .playstore-about {
    margin: 0;
  }
}
