/*
Theme Name: Tenzin Jigmey — Science, Education & Tibet
Description: Personal portfolio, Tibet research, physics and chemistry, scientific explorers and a YouTube video library.
Author: Tenzin Jigmey
Version: 1.6.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: tenzin-jigmey
*/

:root {
  color-scheme: light;
  --ink: #142b2d;
  --green: #174647;
  --deep: #102f31;
  --light: #f8f8f3;
  --cream: #f2f1e9;
  --muted: #516363;
  --line: #d9dfd7;
  --accent: #b96c36;
  --paper: #fffefb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --wide: 1200px;
  --shadow: 0 16px 50px rgba(18,47,49,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--light); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #cf863f; outline-offset: 4px; }
[hidden] { display: none !important; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.1; }
h1,h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h3 { letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
.panel-width { max-width: var(--wide); width: calc(100% - 100px); margin: 0 auto; }
.skip-link { position: fixed; top: -60px; left: 12px; padding: 10px 16px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header { background: rgba(248,248,243,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.nav-wrap { max-width: 1360px; width: calc(100% - 100px); margin: auto; min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { background: var(--green); color: #f8f5e9; display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; font-family: var(--serif); font-size: 21px; letter-spacing: -2px; border-radius: 50%; font-weight: 400; }
.brand strong, .footer-brand strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.brand small, .footer-brand small { font-size: 12px; letter-spacing: .025em; color: var(--muted); display: block; line-height: 1.4; margin-top: 4px; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 39px); }
nav a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--accent); }
nav .nav-contact { border: 1px solid var(--green); padding: 8px 18px; border-radius: 4px; }
nav .nav-contact:hover { background: var(--green); color: white; }
.menu-button { display: none; background: transparent; border: 1px solid var(--line); padding: 7px 12px; border-radius: 4px; }
.hero { max-width: 1360px; margin: 0 auto; width: calc(100% - 100px); display: grid; grid-template-columns: .93fr 1.07fr; min-height: 590px; padding: 52px 0 46px; align-items: stretch; gap: 50px; }
.hero-text { padding: 24px 0 12px; align-self: center; }
.eyebrow { display: flex; gap: 9px; align-items: center; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; line-height: 1.4; font-weight: 700; color: var(--accent); }
.rule { width: 26px; height: 2px; display: inline-block; background: currentColor; flex: 0 0 26px; }
.hero h1 { font-size: clamp(3.7rem, 5.4vw, 6.8rem); line-height: .99; margin: 28px 0 27px; }
.hero h1 em { color: #316e69; font-weight: 400; }
.hero-deck { font-size: clamp(1.05rem, 1.45vw, 1.2rem); max-width: 525px; color: var(--muted); line-height: 1.75; }
.hero-deck strong { color: var(--ink); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: .91rem; font-weight: 700; text-decoration: none; padding: 13px 21px; min-height: 48px; border-radius: 4px; transition: background .18s,border-color .18s,color .18s; }
.button.primary { color: white; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: #286060; border-color: #286060; }
.button.secondary { color: var(--green); border-color: #92aaa4; background: transparent; }
.button.secondary:hover { background: #e6eee9; }
.button.light { color: var(--deep); background: #f8f5e9; border-color: #f8f5e9; }
.button.light:hover { background: white; }
.hero-credentials { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 31px; font-size: .81rem; color: #536b67; font-weight: 600; }
.hero-credentials span:not(:last-child)::after { content: "·"; margin-left: 17px; color: #86a19a; }
.hero-photo { min-height: 500px; position: relative; overflow: hidden; border-radius: 5px 5px 5px 88px; isolation: isolate; background: #7594ad; }
.hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 62% center; }
.photo-shade { z-index: 1; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(8,27,30,.65) 0%, transparent 36%); }
.hero-photo figcaption { position: absolute; z-index: 2; left: 38px; bottom: 28px; color: white; display: flex; gap: 12px; align-items: center; font-size: .93rem; font-weight: 600; line-height: 1.5; }
.photo-pin { display: block; border: 2px solid #fff; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.2); }
.hero-photo figcaption small { font-size: .78rem; font-weight: 400; color: #e2e9e5; }
.principles { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 31px 0; gap: 20px; }
.principles > div { display: flex; gap: 16px; padding: 0 14px 0 22px; border-left: 1px solid var(--line); }
.principles > div:first-child { border: 0; padding-left: 0; }
.principles h2 { font-family: var(--sans); font-size: 1.15rem; letter-spacing: -.025em; font-weight: 700; margin-bottom: 7px; }
.principles p { font-size: .92rem; color: var(--muted); line-height: 1.55; max-width: 280px; }
.section { padding: 92px 0; }
.section-header { display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; align-items: end; margin-bottom: 34px; }
.section-header h2, .about-left h2, .contact-wrapper h2 { font-size: clamp(2.45rem,4.3vw,4.3rem); margin-top: 14px; line-height: 1.08; }
.section-intro { line-height: 1.7; color: var(--muted); max-width: 470px; padding-bottom: 4px; }
.feature-article { display: grid; grid-template-columns: 1.25fr .75fr; border-radius: 6px; overflow: hidden; background: var(--green); color: #fffef6; min-height: 326px; }
.feature-copy { padding: 40px 48px; align-self: center; }
.meta { color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.5; }
.feature-copy .meta { color: #c7ddd6; }
.feature-copy .meta span { padding: 0 4px; }
.feature-copy h3 { font-family: var(--serif); font-size: clamp(2.15rem,3.6vw,3.6rem); font-weight: 400; letter-spacing: -.045em; margin: 16px 0 7px; }
.feature-subtitle { font-size: 1.12rem; font-weight: 600; color: #dfece5; line-height: 1.4; }
.feature-copy p:not(.feature-subtitle) { color: #d2e2db; margin: 17px 0 22px; max-width: 620px; }
.feature-visual { position: relative; background: radial-gradient(circle at 50% 39%,#386765 0%,#224d4e 43%,#143737 75%); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; overflow: hidden; isolation: isolate; }
.feature-visual::after,.feature-visual::before { content: ""; border: 1px solid rgba(212,229,211,.15); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%); width: 320px; height: 320px; border-radius: 50%; z-index: -1; }
.feature-visual::after { width: 400px; height: 400px; }
.copper-ring { border-radius: 100%; height: 176px; width: 176px; display: grid; place-items: center; background: repeating-conic-gradient(from 30deg,#e0a16e 0deg 14deg,#a35c2c 14deg 22deg,#e5b08d 22deg 29deg); border: 1px solid #deac8a; box-shadow: 0 0 0 10px #bd85502b, 0 0 0 11px #e2b98b30,0 12px 36px #06252780; }
.element-symbol { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 143px; width: 143px; border-radius: 100%; background: #153d3d; border: 1px solid #f2bf96; color: #e9b48a; line-height: 1.1; }
.element-symbol span { font-family: var(--serif); font-size: 68px; letter-spacing: -4px; }
.element-symbol small { font-size: 14px; }
.feature-visual-caption { text-align: center; font-size: .9rem; line-height: 1.5; margin-top: 26px; color: #f7e8da; }
.feature-visual-caption span { color: #c2d3d0; font-size: .81rem; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 36px 0 17px; }
.filter-title { font-weight: 700; font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 8px 15px; color: #405b58; background: transparent; border: 1px solid #bdccc4; border-radius: 999px; font-size: .83rem; line-height: 1.4; font-weight: 600; transition: background .15s; }
.chip.active { background: var(--green); color: white; border-color: var(--green); }
.chip:not(.active):hover { background: #e7eeea; }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.article-card { display: flex; min-width: 0; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.article-color { min-height: 94px; padding: 23px 22px; display: flex; justify-content: space-between; align-items: center; color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.article-color::after { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; right: -29px; top: -33px; box-shadow: 0 0 0 13px rgba(255,255,255,.05), 0 0 0 28px rgba(255,255,255,.04); z-index: -1; }
.article-color span { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.25rem); line-height: 1; letter-spacing: -.05em; }
.article-color small { font-size: .65rem; letter-spacing: .08em; font-weight: 700; line-height: 1.25; max-width: 110px; text-align: right; }
.mineral { background: #536865; }.education-mark { background: #a66030; }.earth { background: #305f67; }.culture-mark { background: #635b78; }.rare { background: #36624b; }
.article-info { padding: 20px 22px 23px; flex: 1; display: flex; flex-direction: column; align-items: start; }
.article-info h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.18; margin: 10px 0; }
.article-info p:not(.meta) { color: var(--muted); font-size: .95rem; padding-bottom: 19px; line-height: 1.6; flex: 1; }
.article-info a { font-weight: 700; color: var(--green); font-size: .87rem; text-decoration-color: #8baca1; text-underline-offset: 4px; }
.article-info a:hover { text-decoration-color: currentColor; color: #8f4c20; }

.explorer-shell { border: 1px solid #c4d5cd; background: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.explorer-tabs { display: grid; grid-template-columns: repeat(3,1fr); background: #e5eeea; }
.explorer-tab { border: 0; border-bottom: 3px solid transparent; border-right: 1px solid #c9d9d0; background: transparent; text-align: left; color: var(--muted); padding: 18px 25px 16px; }
.explorer-tab:last-child { border-right: 0; }
.explorer-tab span { display: block; font-size: 1.03rem; font-weight: 700; color: var(--ink); }
.explorer-tab small { display: block; font-size: .83rem; }
.explorer-tab.active { border-bottom-color: #5f9989; background: #fffefb; }
.explorer-tab:hover:not(.active) { background: #dbe8e0; }
.lab-panel { display: grid; grid-template-columns: .96fr 1.04fr; min-height: 450px; }
.lab-visual { background: #183e40; color: #e1efe8; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px,3.5vw,47px); min-width: 0; overflow: hidden; }
.altitude-visual { background: linear-gradient(150deg,#264e58,#153c3e); }
.altitude-scene { height: 235px; position: relative; margin-bottom: 24px; border-bottom: 1px solid #789b92; overflow: visible; }
.mountain { position: absolute; bottom: 0; clip-path: polygon(0 100%,43% 16%,48% 27%,62% 0,100% 100%); }
.m1 { width: 75%; height: 86%; left: -13%; background: #467878; opacity: .65; }
.m2 { width: 77%; height: 99%; left: 12%; background: linear-gradient(160deg,#dfebe6 0 26%,#82a6a3 27% 41%,#457779 42%); }
.m3 { width: 65%; height: 64%; right: -6%; background: #669286; clip-path: polygon(0 100%,55% 0,100% 100%); opacity: .94; }
.altitude-marker { position: absolute; bottom: 60%; left: 0; right: 0; height: 0; z-index: 1; border-top: 1px dashed #ffda9f; transition: bottom .15s ease; }
.altitude-marker span { display: inline-block; padding: 4px 9px; color: #302a19; background: #ffda9f; border-radius: 3px; position: absolute; right: 2px; top: -28px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.visual-title { font-size: .98rem; font-weight: 600; margin-bottom: 9px; }
.meter { height: 12px; background: #0b272a; border-radius: 10px; overflow: hidden; border: 1px solid #537c75; }
.meter span { display: block; width: 64%; height: 100%; border-radius: 10px; background: linear-gradient(90deg,#9ec6ae,#efbb89); transition: width .15s ease; }
.meter-labels { display: flex; justify-content: space-between; color: #c2d8cf; font-size: .78rem; margin-top: 7px; gap: 9px; font-variant-numeric: tabular-nums; }
.lab-controls { padding: 33px clamp(24px,3.2vw,44px); }
.lab-controls h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem,2.7vw,2.2rem); margin-bottom: 12px; }
.lab-controls > p { color: var(--muted); line-height: 1.6; margin-bottom: 19px; }
.slider-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; margin-bottom: 5px; font-size: .9rem; font-weight: 600; }
.slider-label output { font-variant-numeric: tabular-nums; color: var(--green); font-size: 1.01rem; font-weight: 700; }
input[type="range"] { width: 100%; height: 25px; margin: 0; cursor: pointer; accent-color: #276f67; }
.preset-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 5px 0 19px; }
.preset-row button { border: 1px solid #b6c9bf; background: #f2f6f0; border-radius: 4px; padding: 4px 7px; font-size: .78rem; color: var(--green); font-weight: 600; }
.preset-row button:hover { background: #e2ece4; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.results > div { background: #edf3ee; border-radius: 4px; padding: 13px; }
.results small { display: block; font-size: .76rem; color: #536b65; line-height: 1.4; }
.results strong { font-size: 1.66rem; color: #174f49; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.2; margin-top: 5px; display: block; }
.results strong span { font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.science-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size: .87rem; }
.science-details summary { cursor: pointer; color: var(--green); font-weight: 700; }
.science-details p { margin-top: 11px; }
.science-details a { display: inline-block; margin-top: 7px; color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.science-details code { font-family: var(--sans); font-weight: 700; color: #174647; }
.wave-display { position: relative; height: 215px; margin-bottom: 24px; border: 1px solid #406363; border-radius: 5px; overflow: hidden; background-image: linear-gradient(#375b5b66 1px,transparent 1px), linear-gradient(90deg,#375b5b66 1px,transparent 1px); background-size: 26px 26px; }
.wave-display canvas { width: 100%; height: 100%; display: block; }
.wave-readout { position: absolute; left: 12px; bottom: 10px; color: white; font-size: 1.02rem; font-weight: 600; }
.spectrum-bar { position: relative; height: 19px; background: linear-gradient(90deg,#713ae8,#4135ed,#205cf9,#23b8fe,#2abf4d,#b1db21,#f8df27,#ef7b1e,#e82724,#a92020); border: 1px solid #638e81; border-radius: 3px; }
.spectrum-bar span { position: absolute; top: -7px; width: 3px; height: 32px; border-radius: 4px; background: white; left: 46%; box-shadow: 0 0 0 1px #233e3b; }
.battery-icon { position: relative; border: 3px solid #9dbeb2; background: #143335; height: 156px; width: min(93%,320px); margin: 15px auto 45px; border-radius: 18px; padding: 8px; }
.battery-terminal { height: 50px; width: 17px; background: #9dbeb2; position: absolute; right: -19px; top: 49px; border-radius: 0 7px 7px 0; }
.battery-inner { position: relative; height: 100%; overflow: hidden; border-radius: 7px; display: grid; place-items: center; }
#battery-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(120deg,#4f9a80,#80c4a1); width: 32%; transition: width .2s; }
#battery-label { position: relative; color: white; font-size: 1.8rem; font-weight: 700; text-shadow: 0 2px 6px #1f3837; }
.explore-note { display: flex; gap: 17px; align-items: stretch; max-width: 870px; margin-top: 23px; }
.note-rule { width: 3px; background: #b96c36; border-radius: 3px; flex: 0 0 3px; }
.explore-note p { color: var(--muted); font-size: .95rem; }
.about-section { background: #143c3d; color: #f8f5e9; padding: 78px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 65px; }
.about-left .eyebrow { color: #dfa875; }
.about-left h2 { font-size: clamp(2.6rem,4vw,4.1rem); }
.about-lede { color: #d3e4da; margin-top: 23px; font-size: 1.14rem; line-height: 1.75; }
.about-right > p { color: #e0ece4; margin-bottom: 16px; line-height: 1.75; }
.about-details { border-top: 1px solid #587d74; margin-top: 28px; padding-top: 21px; display: grid; gap: 18px; }
.about-details > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; }
.about-details h3 { color: #efc39e; font-size: .91rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.about-details p { color: #d7e5de; font-size: .94rem; line-height: 1.5; }
.contact-section { padding: 61px 0; }
.contact-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.contact-wrapper h2 { font-size: clamp(2.25rem,3.6vw,3.5rem); margin-bottom: 10px; }
.contact-wrapper p:not(.eyebrow) { color: var(--muted); }
.contact-wrapper .button { white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { height: 36px; width: 36px; flex-basis: 36px; font-size: 19px; }
.footer-brand strong { font-size: 15px; }
.footer-inner > p, .footer-inner > a { font-size: .82rem; color: var(--muted); }
.footer-inner > a { text-underline-offset: 4px; }
dialog { border: 1px solid #c4d5cb; border-radius: 6px; padding: 0; width: min(690px,calc(100% - 28px)); max-height: calc(100% - 32px); color: var(--ink); background: var(--paper); box-shadow: 0 22px 80px #102c2c50; }
dialog::backdrop { background: #0f262bc5; backdrop-filter: blur(3px); }
.dialog-inner { padding: 32px; }
.dialog-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 15px; }
.dialog-top button { border: 1px solid #bccbc3; background: transparent; color: var(--green); border-radius: 4px; font-size: .84rem; padding: 6px 9px; }
.dialog-inner h2 { font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 10px; }
@media (max-width: 1050px) {
  .hero { gap: 30px; padding-top: 37px; min-height: 520px; }
  .hero-photo { min-height: 450px; }
  .nav-wrap,.hero,.panel-width { width: calc(100% - 64px); }
  .hero h1 { font-size: clamp(3.3rem,5.7vw,5.5rem); }
  .about-grid { gap: 36px; }
  .article-info { padding: 18px; }
}
@media (max-width: 780px) {
  .nav-wrap,.hero,.panel-width { width: calc(100% - 36px); }
  .nav-wrap { min-height: 70px; gap: 12px; }
  .menu-button { display: block; font-size: .87rem; font-weight: 600; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 13px 18px 20px; gap: 0; background: var(--light); box-shadow: 0 14px 25px #183e3e15; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: 10px; font-size: .95rem; }
  nav .nav-contact { padding: 10px; border: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 31px 0; min-height: unset; }
  .hero-text { padding: 5px 0 0; }
  .hero h1 { font-size: clamp(3.4rem,11vw,5rem); margin: 20px 0; }
  .hero-deck { font-size: 1.05rem; }
  .hero-actions { margin-top: 24px; }
  .hero-credentials { margin-top: 20px; }
  .hero-photo { min-height: 360px; border-bottom-left-radius: 54px; }
  .principles { grid-template-columns: 1fr; gap: 15px; padding: 22px 0; }
  .principles > div, .principles > div:first-child { border-left: 0; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
  .principles > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .principles p { max-width: none; }
  .section { padding: 56px 0; }
  .section-header { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .section-header h2, .about-left h2 { font-size: 2.7rem; }
  .feature-article { grid-template-columns: 1fr; }
  .feature-copy { padding: 28px 24px; }
  .feature-visual { padding: 30px; min-height: 250px; }
  .feature-visual-caption { margin-top: 16px; }
  .copper-ring { height: 144px; width: 144px; }
  .element-symbol { height: 117px; width: 117px; }
  .element-symbol span { font-size: 56px; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 25px; }
  .article-grid { grid-template-columns: repeat(2,1fr); gap: 13px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .lab-panel { grid-template-columns: 1fr; }
  .lab-visual { padding: 24px 28px; }
  .altitude-scene { height: 180px; }
  .wave-display { height: 180px; }
  .explorer-tab { padding: 12px 9px; }
  .explorer-tab span { font-size: .86rem; }
  .explorer-tab small { font-size: .7rem; line-height: 1.35; }
  .lab-controls { padding: 25px 20px; }
  .about-section { padding: 52px 0; }
  .contact-section { padding: 39px 0; }
  .contact-wrapper { align-items: flex-start; flex-direction: column; gap: 21px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .brand small { font-size: 11px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-photo { min-height: 290px; }
  .hero-photo figcaption { left: 24px; bottom: 19px; }
  .button { padding: 12px 14px; font-size: .85rem; }
  .hero-credentials { gap: 6px 8px; font-size: .74rem; }
  .hero-credentials span:not(:last-child)::after { margin-left: 8px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-color { min-height: 82px; }
  .results strong { font-size: 1.45rem; }
  .about-details > div { grid-template-columns: 1fr; gap: 3px; }
  .dialog-inner { padding: 23px 18px; }
  .footer-inner { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Media gallery */
.media-section { padding: 80px 0; background: #e8efea; }
.channel-banner { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; gap: 22px; background: var(--deep); color: var(--paper); border-radius: 6px; }
.channel-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.channel-identity h3 { font-family: var(--serif); font-size: clamp(1.3rem,2.5vw,1.7rem); font-weight: 400; line-height: 1.2; }
.channel-identity p { color: #c4dbd5; font-size: .9rem; margin-top: 5px; }
.channel-identity p span { margin-left: 3px; margin-right: 3px; }
.platform-mark { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #ba2b2c; color: white; font-size: 20px; }
.youtube-mark::after, .play-mark::after { content: ""; display: block; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid white; margin-left: 3px; }
.facebook-mark { background: #315f9a; font-family: Arial,sans-serif; font-size: 28px; font-weight: 700; }
.channel-banner > a { flex-shrink: 0; }
.media-toolbar { display: flex; align-items: flex-end; gap: 20px; justify-content: space-between; margin-top: 30px; }
.media-search { display: grid; gap: 4px; width: 235px; flex-shrink: 0; }
.media-search label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.media-search input { min-width: 0; background: var(--paper); color: var(--ink); border: 1px solid #b6c9be; padding: 9px 13px; border-radius: 4px; font-size: .91rem; }
.media-count { margin: 12px 0 16px; font-size: .85rem; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.media-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid #c8d8ce; background: var(--paper); border-radius: 5px; overflow: hidden; }
.media-thumbnail { position: relative; display: grid; place-items: center; background: linear-gradient(145deg,#3b6666,#153e3f); padding: 0; width: 100%; border: 0; aspect-ratio: 16/9; overflow: hidden; }
.media-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-thumbnail .play-mark { position: relative; display: grid; place-items: center; width: 52px; height: 52px; background: #102b2dd9; color: white; border: 1px solid #ffffffc0; border-radius: 50%; font-size: 20px; padding-left: 3px; transition: background .15s,transform .15s; }
.media-thumbnail:hover .play-mark { background: var(--green); transform: scale(1.1); }
.media-thumbnail:focus-visible { outline-offset: -4px; }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: #0a2427dd; color: #fff; font-size: .78rem; padding: 3px 7px; border-radius: 3px; font-weight: 700; }
.media-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 17px 20px 20px; }
.media-info h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2; margin: 9px 0 14px; flex: 1; }
.original-video-link { font-size: .86rem; font-weight: 700; color: var(--green); text-underline-offset: 4px; text-decoration-color: #8baca1; }
.media-empty { padding: 34px 24px; text-align: center; background: var(--paper); border: 1px solid #c8d8ce; border-radius: 5px;}
.media-empty p { margin-bottom: 16px; color: var(--muted); }
.facebook-state { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 24px; padding: 24px 26px; background: var(--paper); border: 1px solid #c8d8ce; border-radius: 5px; }
.facebook-state h3 { font-size: 1.38rem; }
.facebook-state .channel-identity p { color: var(--muted); }
.facebook-state > p { color: var(--muted); max-width: 490px; font-size: .95rem; }
.video-dialog { width: min(940px,calc(100% - 28px)); }
.video-dialog .dialog-inner h2 { font-size: clamp(1.65rem,4vw,2.4rem); }
.video-player { width: 100%; aspect-ratio: 16/9; margin-top: 18px; background: var(--deep); border-radius: 4px; overflow: hidden; }
.video-player.vertical-video { aspect-ratio: 9/16; width: min(360px,100%,calc(64vh * 9/16)); margin-left: auto; margin-right: auto; }
.video-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.video-dialog-footer p { color: var(--muted); font-size: .9rem; }
@media (max-width: 1050px) {
  .nav-wrap nav { gap: 18px; }
  .media-grid { gap: 14px; }
  .media-toolbar { flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .nav-wrap nav { gap: 0; }
  .media-section { padding: 56px 0; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .media-toolbar { gap: 12px; align-items: stretch; flex-direction: column; }
  .media-search { width: 100%; max-width: 350px; }
  .channel-banner,.facebook-state { align-items: flex-start; flex-direction: column; padding: 22px; gap: 17px; }
}
@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-info h3 { font-size: 1.4rem; }
}


/* WordPress pages, posts and administrator toolbar */
.admin-bar .site-header { top: 32px; }
.content-page { min-height: 52vh; max-width: 900px; }
.content-page .entry-title { font-size: clamp(2.4rem, 5vw, 4.1rem); margin: 0 0 28px; }
.content-page .entry-content { max-width: 780px; }
.entry-content p,.entry-content ul,.entry-content ol,.entry-content blockquote { margin: 0 0 1.25em; }
.entry-content h2,.entry-content h3 { margin: 1.5em 0 .5em; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { color: var(--green); text-underline-offset: 4px; }
.post-list article { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-list .entry-title { font-size: 2rem; margin-bottom: 14px; }
.post-list .entry-title a { text-decoration: none; }
.post-list .entry-title a:hover { text-decoration: underline; }
.post-list .entry-meta { color: var(--muted); font-size: .85rem; margin: 0 0 16px; }
.post-nav { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); }
.comments-area { margin-top: 35px; border-top: 1px solid var(--line); padding-top: 20px; }
.comments-area textarea,.comments-area input:not([type=submit]) { max-width: 100%; }
@media(max-width:782px) { .admin-bar .site-header { top: 46px; } }
@media(max-width:600px) { .admin-bar .site-header { top: 0; } }

/* Tibetan-language future science category */
@font-face {
  font-family: "Noto Serif Tibetan";
  src: url("assets/NotoSerifTibetan-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
[lang="bo"] { font-family: "Noto Serif Tibetan",serif; }
.future-nav { font-family: "Noto Serif Tibetan",serif; font-size: 14px; font-weight: 400; }
.future-section { background: #f0f2e9; padding: 84px 0; }
.future-header { grid-template-columns: 1.08fr .92fr; align-items: center; margin-bottom: 28px; }
.future-header h2 { font-size: clamp(1.7rem,3.3vw,2.9rem); letter-spacing: 0; font-weight: 400; line-height: 1.8; margin-top: 9px; }
.future-header .section-intro { font-size: 1.15rem; line-height: 1.95; }
.future-feature { background: var(--paper); border: 1px solid #c7d8ca; border-radius: 8px; display: grid; grid-template-columns: 1.48fr 1fr; overflow: hidden; }
.future-feature-copy { padding: 34px clamp(24px,3vw,42px); }
.future-status { font-size: .91rem; line-height: 1.8; color: #527569; }
.future-feature h3, .future-card h3 { font-family: "Noto Serif Tibetan",serif; font-weight: 400; letter-spacing: 0; line-height: 1.8; color: var(--ink); }
.future-feature h3 { font-size: clamp(1.6rem,2.4vw,2.1rem); margin-top: 16px; }
.future-english { font-family: var(--sans); font-size: .91rem !important; font-weight: 600; color: #60716f; margin-bottom: 16px; line-height: 1.4 !important; }
.future-feature-copy > p:not(.future-status):not(.future-english):not(.future-sources),.future-card > p:not(.future-status):not(.future-english):not(.future-sources) { font-size: 1.12rem; line-height: 1.95; color: #334b49; }
.future-facts { margin: 23px 0 13px; border-top: 1px solid var(--line); padding-top: 17px; display: grid; gap: 12px; }
.future-facts h4 { font-size: 1.1rem; margin: 0 0 5px; color: #1b5f55; }
.future-facts p { font-size: 1.04rem; line-height: 1.95; color: #334b49; }
.future-data { background: linear-gradient(145deg,#234c50,#123638); padding: 35px 30px; color: #edf7ee; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.future-atom { width: 116px; height: 116px; border-radius: 50%; border: 1px solid #a8c5b4; box-shadow: 0 0 0 10px #8cb39b18, 0 0 0 21px #8cb39b0f; background: #315f5b; margin: 0 auto 34px; display: grid; place-items: center; font-family: var(--serif); font-size: 3.2rem; color: #f1bd8d; }
.future-atom sup { font-size: 1.4rem; }
.future-data h4 { margin: 0 0 7px; font-size: 1.32rem; font-weight: 400; line-height: 1.8; }
.future-data-sub { font-family: var(--sans); font-size: .88rem; color: #c3d9d0; line-height: 1.5; margin-bottom: 20px; }
.battery-comparison { display: grid; gap: 20px; }
.battery-bar > div { font-family: var(--sans); font-size: .83rem; display: flex; justify-content: space-between; gap: 9px; align-items: center; }
.battery-bar strong { font-variant-numeric: tabular-nums; }
.bar-track { display: block; margin-top: 6px; height: 11px; width: 100%; background: #09272a; border-radius: 3px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: #8ec4af; border-radius: 3px; }
.battery-bar:first-child .bar-track span { background: #edb77c; }
.future-data-note { font-size: .98rem; line-height: 1.95; color: #bad5c7; margin-top: 24px; border-top: 1px solid #537d72; padding-top: 16px; }
.future-details { border-top: 1px solid #d6e0d5; padding-top: 11px; margin-top: 14px; }
.future-details summary { color: #19574e; font-size: 1.05rem; line-height: 1.9; cursor: pointer; font-weight: 600; }
.future-details p { font-size: 1.04rem; color: #334b49; margin: 12px 0; line-height: 1.95; }
.future-equation { padding: 12px 14px; border: 1px solid #ccded1; background: #edf3ee; color: #184c44; border-radius: 4px; font-family: var(--sans); font-weight: 600; font-size: 1.12rem; line-height: 1.6; margin: 10px 0; }
.future-text-link { color: var(--green); display: inline-block; text-underline-offset: 4px; }
.future-sources { font-size: .89rem; color: #60746c; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin-top: 18px; line-height: 1.8; }
.future-sources a { font-family: var(--sans); color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.future-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 23px; }
.future-card { background: var(--paper); padding: 26px 28px; border: 1px solid #c7d8ca; border-radius: 6px; display: flex; flex-direction: column; }
.future-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.science-symbol { font-family: var(--serif); display: grid; place-items: center; flex: 0 0 auto; height: 47px; min-width: 47px; padding: 0 10px; border-radius: 4px; font-size: 1.2rem; font-weight: 400; background: #e5eee8; color: #22564e; }
.science-symbol sup,.science-symbol sub { font-size: .73em; }
.future-card h3 { font-size: 1.5rem; margin: 6px 0; }
.future-card .future-sources { margin-top: auto; padding-top: 17px; }
.future-date { text-align: right; font-size: .86rem; line-height: 1.8; color: var(--muted); margin-top: 19px; }
.future-date time { font-family: var(--sans); }
@media (max-width: 1030px) {
  .nav-wrap .menu-button { display: block; font-size: .87rem; font-weight: 600; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 13px 18px 20px; gap: 0; background: var(--light); box-shadow: 0 14px 25px #183e3e15; border-bottom: 1px solid var(--line); }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 10px; font-size: .95rem; }
  #site-nav .nav-contact { padding: 10px; border: none; }
}
@media (max-width: 780px) {
  .future-section { padding: 54px 0; }
  .future-header,.future-feature,.future-grid { grid-template-columns: 1fr; }
  .future-header { gap: 12px; }
  .future-header h2 { font-size: 1.8rem; }
  .future-header .section-intro { font-size: 1.08rem; }
  .future-feature-copy { padding: 25px 20px; }
  .future-data { padding: 35px 22px; }
  .future-card { padding: 23px 20px; }
  .future-card h3 { font-size: 1.35rem; }
}

/* Scholarly research library */
.paper-library { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 39px; }
.paper-library-header { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; margin-bottom: 26px; }
.paper-library-header h3 { font-family: var(--serif); font-size: clamp(2rem,3.8vw,3.25rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.14; margin: 12px 0 8px; }
.paper-library-header .paper-tibetan { font-family: "Noto Serif Tibetan",serif; font-size: 1.22rem; line-height: 1.8; color: #316e69; }
.paper-library-header > p { color: var(--muted); line-height: 1.7; }
.paper-library-jump { display: inline-block; margin-top: 13px; color: var(--green); text-underline-offset: 4px; font-size: .92rem; font-weight: 700; }
.paper-controls { border: 1px solid #c9d7ce; background: #eaf0e9; padding: 19px; border-radius: 6px; }
.paper-filters { gap: 8px; }
.paper-filters .chip { font-size: .84rem; }
.paper-filters .chip span { margin-left: 5px; font-variant-numeric: tabular-nums; opacity: .88; }
.paper-form { display: grid; grid-template-columns: 1fr 203px; gap: 16px; margin-top: 17px; }
.paper-form label { font-size: .84rem; color: var(--muted); font-weight: 600; display: grid; gap: 6px; }
.paper-form input,.paper-form select { width: 100%; min-width: 0; background: var(--paper); color: var(--ink); border: 1px solid #b6c9be; border-radius: 4px; padding: 11px 12px; font-size: .91rem; font-family: var(--sans); }
.paper-form select { appearance: none; padding-right: 33px; background-image: linear-gradient(45deg,transparent 50%,#476660 50%),linear-gradient(135deg,#476660 50%,transparent 50%); background-position: calc(100% - 17px) 50%,calc(100% - 12px) 50%; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; }
.paper-count-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 17px 0; color: var(--muted); font-size: .85rem; }
#paper-count { font-weight: 700; color: var(--ink); }
.paper-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.paper-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 23px 25px; min-width: 0; }
.paper-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.paper-topic { color: #295c54; font-size: .77rem; line-height: 1.5; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: #eaf0e8; }
.paper-topic.topic-mining { color: #8a4d25; background: #f5e7da; }
.paper-topic.topic-climate { color: #2c6370; background: #e1edf0; }
.paper-topic.topic-adaptation { color: #335e51; background: #e0eee4; }
.paper-topic.topic-education { color: #755d8b; background: #eee8f3; }
.paper-topic.topic-archaeology { color: #71613a; background: #f2ecdb; }
.paper-year { color: var(--muted); font-size: .8rem; font-weight: 600; }
.paper-card h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.36rem; font-weight: 400; line-height: 1.25; letter-spacing: -.023em; }
.paper-citation { color: #536b65; font-weight: 600; font-size: .84rem; line-height: 1.5; margin-bottom: 8px; }
.paper-note { color: var(--muted); font-size: .94rem; line-height: 1.56; margin-bottom: 18px; }
.paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: auto; }
.paper-links a { font-weight: 700; color: var(--green); font-size: .88rem; text-underline-offset: 4px; }
.paper-doi { color: #65756f; font-size: .75rem; overflow-wrap: anywhere; margin-top: 9px; }
.paper-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.paper-library-foot { text-align: right; margin-top: 15px; font-size: .81rem; color: var(--muted); }
.paper-empty { background: var(--paper); border: 1px solid var(--line); padding: 30px; text-align: center; border-radius: 5px; }
.paper-empty p { margin-bottom: 14px; color: var(--muted); }
@media (max-width:780px) {
  .paper-library { margin-top: 37px; padding-top: 28px; }
  .paper-library-header { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .paper-form { grid-template-columns: 1fr; gap: 12px; }
  .paper-grid { grid-template-columns: 1fr; gap: 12px; }
  .paper-controls,.paper-card { padding: 17px; }
}

/* Tibet physics and chemistry research */
.pc-section { background: #e8efea; padding: 75px 0; }
.pc-tibetan { font-size: 1.15rem; color: #28635a; margin-top: 12px; line-height: 1.9; }
.pc-feature { display: grid; grid-template-columns: 1.25fr .75fr; border: 1px solid #c5d7cb; background: var(--paper); border-radius: 7px; overflow: hidden; margin-bottom: 21px; }
.pc-feature-body { padding: 33px 38px; }
.pc-tag,.pc-disciplinary { color: #4c7167; font-size: .78rem; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .055em; }
.pc-feature h3 { font: 400 clamp(1.9rem,3.5vw,2.9rem)/1.14 var(--serif); letter-spacing: -.04em; margin: 12px 0 17px; }
.pc-feature-body > p:not(.pc-tag),.pc-card > p { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.pc-feature-body > p.pc-example,.pc-card > p.pc-example { font-size: .91rem; color: #415f58; }
.pc-equation { background: #edf3ed; border: 1px solid #cbdccf; border-radius: 4px; padding: 12px 15px; margin: 19px 0 13px; display: flex; flex-direction: column; gap: 3px; color: #174a42; }
.pc-equation strong { font-family: var(--serif); font-size: clamp(1.28rem,2vw,1.5rem); font-weight: 600; letter-spacing: -.02em; }
.pc-equation span { font-size: .82rem; color: #536f65; }
.pc-action-row { margin-top: 20px; }
.pc-references { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 22px; display: grid; gap: 11px; }
.pc-references h4 { margin: 0; font-size: .93rem; color: var(--ink); font-weight: 700; }
.pc-references a { color: #21594f; font-size: .89rem; line-height: 1.5; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pc-references a span { display: block; color: var(--muted); font-size: .77rem; margin-top: 2px; }
.pc-references a.pc-model-link { font-weight: 700; }
.pc-feature-visual { background: linear-gradient(150deg,#2a535d,#133b3b); padding: 37px 30px; color: #e7f2eb; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pc-elevation-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .95rem; font-weight: 600; }
.pc-elevation-label strong { font-size: .95rem; color: #f0cdab; }
.pc-pressure-bar { height: 12px; background: #0d2c30; border: 1px solid #51716e; border-radius: 4px; margin: 12px 0 21px; overflow: hidden; }
.pc-pressure-bar > div { height: 100%; background: linear-gradient(90deg,#8ec4ac,#e3b180); border-radius: 3px; }
.pc-metric-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pc-metric-row small { display: block; color: #c1d8d1; font-size: .8rem; line-height: 1.4; }
.pc-metric-row strong { font-size: clamp(1.45rem,2.5vw,2.12rem); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; color: #f7f5e9; font-variant-numeric: tabular-nums; }
.pc-metric-row strong span { font-size: .78rem; letter-spacing: 0; color: #c1d8d1; }
.pc-feature-rule { border-top: 1px solid #5a7e78; margin: 30px 0; }
.pc-visual-note { color: #cbdfd8; font-size: .85rem; line-height: 1.6; margin-top: 27px; }
.pc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.pc-card { background: var(--paper); border: 1px solid #c5d7cb; border-radius: 6px; display: flex; flex-direction: column; min-width: 0; padding: 24px 27px; }
.pc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.pc-symbol { color: #275e55; background: #e5eee8; border-radius: 4px; min-width: 47px; padding: 7px 10px; text-align: center; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.pc-card h3 { font: 400 1.78rem/1.18 var(--serif); letter-spacing: -.035em; margin-bottom: 12px; }
.pc-card .pc-references { margin-top: auto; padding-top: 16px; border-top: none; }
.pc-card .pc-references h4 { border-top: 1px solid var(--line); padding-top: 14px; }
.pc-bottom { margin-top: 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.pc-bottom p { color: var(--muted); font-size: .94rem; }
.pc-bottom .button { flex-shrink: 0; }
@media(max-width:1100px) {
  .nav-wrap nav { gap: 14px; }
}
@media(max-width:1030px) {
  .nav-wrap nav { gap: 0; }
}
@media(max-width:780px) {
  .pc-section { padding: 50px 0; }
  .pc-feature,.pc-grid { grid-template-columns: 1fr; }
  .pc-feature-body,.pc-card { padding: 23px 20px; }
  .pc-feature-visual { padding: 28px 20px; }
  .pc-card h3 { font-size: 1.6rem; }
  .pc-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Community discussion */
.discussion-section { background: #edf1eb; border-top: 1px solid var(--line); }
.discussion-tibetan { font-family: 'Noto Serif Tibetan', serif; color: var(--green); font-size: 1.18rem; line-height: 1.9; margin-top: 10px; }
.discussion-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.discussion-form,.discussion-thread { padding: clamp(22px,3vw,32px); background: var(--paper); border: 1px solid #d4dfd6; border-radius: 7px; min-width: 0; }
.discussion-form h3,.discussion-thread h3 { font: 400 1.65rem/1.25 var(--serif); letter-spacing: -.025em; }
.discussion-form label,.discussion-form .comment-form label { display: block; margin-top: 17px; margin-bottom: 5px; color: var(--ink); font-size: .93rem; font-weight: 600; }
.discussion-form input:not([type=checkbox]):not([type=submit]),.discussion-form select,.discussion-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #b7c9c2; border-radius: 4px; color: var(--ink); background: #fff; font: 1rem/1.5 var(--sans); }
.discussion-form textarea { resize: vertical; min-height: 136px; }
.discussion-form select:focus-visible,.discussion-form textarea:focus-visible { outline: 3px solid #cf863f; outline-offset: 3px; }
.discussion-form-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; }
#comment-length,.discussion-note,#comment-feed-status { color: var(--muted); font-size: .88rem; }
.discussion-note { margin-top: 14px; }
#comment-status { color: var(--green); font-size: .93rem; margin-top: 12px; }
#comment-status:empty { display: none; }
.comment-text-button { background: transparent; padding: 4px 0; border: 0; color: var(--green); text-decoration: underline; font-weight: 600; font-size: .89rem; text-underline-offset: 3px; }
.discussion-thread-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
#comment-count { font: 600 .9rem/1.3 var(--sans); color: var(--muted); margin-left: 6px; }
#comment-feed-status { background: #edf2ed; border: 1px solid #d9e3d8; padding: 18px; border-radius: 5px; }
.comment-card { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
.comment-card:last-child { padding-bottom: 0; }
.comment-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dfece4; color: var(--green); font-weight: 700; }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.comment-author { overflow-wrap: anywhere; }
.comment-meta time,.comment-topic { color: var(--muted); font-size: .84rem; }
.comment-topic { display: inline-block; margin-top: 3px; color: var(--green); }
.comment-body-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans), 'Noto Serif Tibetan', serif; margin: 9px 0; line-height: 1.65; }
.comment-delete { color: #9a5031; }
.discussion-form button:disabled { opacity: .65; cursor: wait; }
.field-required { color: var(--accent); }
@media (min-width:1031px) { .nav-wrap nav { gap: clamp(10px,1.2vw,21px); } }
@media (max-width:780px) { .discussion-grid { grid-template-columns: 1fr; gap: 16px; } }

.discussion-form .comment-notes,.discussion-form .logged-in-as { font-size: .9rem; margin-top: 12px; color: var(--muted); }
.discussion-form .form-submit { margin-top: 18px; }
.discussion-form .comment-form-cookies-consent { margin-top: 12px; }
.discussion-form .comment-form-cookies-consent label { display: inline; font-size: .86rem; font-weight: 400; }

/* Tibetan science learning hub */
.learning-hub { background: #f5f6f0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learning-bo { font-family: 'Noto Serif Tibetan',serif; font-weight: 400; letter-spacing: 0 !important; line-height: 1.9; }
.learning-title { color: var(--green); font-size: 1.35rem; margin-top: 8px; }
.learning-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.learning-link { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 6px; border: 1px solid #cddbd2; background: var(--paper); color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .2s, background .2s; }
.learning-link:hover { border-color: var(--green); background: #eaf2e9; }
.learning-icon,.learning-formula { display: grid; place-items: center; min-width: 43px; height: 43px; padding: 0 9px; border-radius: 5px; background: #dae9e1; color: var(--green); font-family: var(--serif); font-size: 1.1rem; }
.learning-link strong { display: block; line-height: 1.35; font-size: 1rem; }
.learning-link .learning-bo { display: block; color: #225a51; font-size: 1rem; margin: 3px 0; }
.learning-link p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.learning-subheader { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px; margin: 62px 0 23px; padding-top: 24px; border-top: 1px solid #c8d5ce; }
.learning-subheader h3 { font: 400 clamp(1.9rem,3.4vw,3rem)/1.13 var(--serif); letter-spacing: -.04em; }
.learning-subheader > p { color: var(--muted); line-height: 1.6; }
.learning-subtitle { color: var(--green); font-size: 1.14rem; margin-top: 6px; }
.learning-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.learning-card { display: flex; flex-direction: column; border: 1px solid #cddbd2; border-radius: 6px; padding: 24px; background: var(--paper); min-width: 0; }
.learning-card h4 { color: var(--ink); font-size: 1.33rem; margin: 9px 0 2px; }
.learning-formula { align-self: flex-start; font-size: 1.25rem; }
.learning-english-title { color: var(--green); font-weight: 700; font-size: .97rem; line-height: 1.45; margin: 3px 0 9px; }
.learning-copy { font-size: 1.09rem; color: #304b48; margin: 4px 0 12px; }
.learning-detail { margin: 9px 0 12px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: .95rem; }
.learning-detail summary { cursor: pointer; font-weight: 650; color: var(--green); }
.learning-detail p { margin-top: 8px; }
.learning-equation { background: #edf3ed; font: 600 1.18rem/1.5 var(--serif); padding: 12px 14px; border: 1px solid #d0dfd5; border-radius: 4px; color: var(--green); margin: auto 0 12px; }
.learning-card > a,.scientist-card a,.learning-source-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); font-size: .91rem; font-weight: 600; margin-top: 7px; }
.dictionary-shell { padding: 24px; border: 1px solid #cddbd2; border-radius: 7px; background: #e6eee7; }
.dictionary-controls { display: grid; grid-template-columns: 1fr 240px; gap: 12px; align-items: end; }
.dictionary-controls label { color: var(--ink); font-weight: 600; font-size: .9rem; }
.dictionary-controls input,.dictionary-controls select,.comment-filter-label select { display: block; width: 100%; color: var(--ink); background: white; font: 1rem/1.5 var(--sans); border: 1px solid #b7c9c2; border-radius: 4px; padding: 10px 12px; margin-top: 5px; }
#dictionary-count { color: var(--muted); font-size: .9rem; margin: 13px 0; }
.dictionary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.dictionary-entry { background: var(--paper); border: 1px solid #ccd9cf; border-radius: 5px; padding: 15px; min-width: 0; }
.dictionary-term-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
.dictionary-discipline { font-size: .76rem; font-weight: 700; color: var(--accent); }
.dictionary-audio { display: flex; gap: 4px; }
.dictionary-audio button { font-size: .8rem; border: 1px solid #c6d7cc; background: #eaf1e9; color: var(--green); border-radius: 3px; padding: 3px 7px; }
.dictionary-entry h4 { font-size: 1.25rem; margin: 9px 0 1px; color: var(--green); }
.dictionary-english { font-weight: 700; margin-bottom: 8px; }
.dictionary-entry > .learning-bo:not(h4) { font-size: 1rem; margin-bottom: 6px; }
.dictionary-definition { color: var(--muted); font-size: .89rem; line-height: 1.5; }
.dictionary-more { margin-top: 16px; }
#dictionary-audio-status { color: var(--green); margin: 8px 0; font-size: .9rem; }
.learning-source-note { margin-top: 14px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.learning-news-edition { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; background: var(--green); color: white; border-radius: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.learning-news-edition .learning-bo { color: #d8e9df; font-size: 1.05rem; }
.learning-news-edition select { padding: 8px; border: 1px solid #bed6cd; border-radius: 4px; font: .94rem var(--sans); background: white; color: var(--ink); }
.news-meta { color: var(--accent); font-size: .83rem; font-weight: 650; }
.science-mind-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ask-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 25px; padding: 28px; border: 1px solid #d1ded4; border-radius: 6px; background: var(--paper); }
.ask-feature h4 { font-size: 1.5rem; margin: 6px 0 12px; }
.ask-feature p { color: var(--muted); margin: 0 0 18px; }
.ask-examples { background: #e7eee7; border-radius: 5px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-examples a { font-size: .95rem; color: var(--green); text-underline-offset: 3px; }
.scientist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.scientist-card { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 14px; padding: 23px; background: var(--paper); border: 1px solid #d1ded4; border-radius: 5px; }
.scientist-avatar { display: grid; place-items: center; color: var(--green); background: #deebe1; border-radius: 50%; width: 45px; height: 45px; font-weight: 600; }
.scientist-card h4 { font: 400 1.42rem/1.2 var(--serif); margin: 0; }
.scientist-card p:not(.learning-english-title) { color: var(--muted); margin-bottom: 8px; }
.virtual-lab-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.virtual-lab-card { padding: 23px; background: var(--paper); border: 1px solid #d1ded4; border-radius: 6px; min-width: 0; }
.virtual-lab-card h4 { font: 400 1.58rem/1.2 var(--serif); margin: 5px 0 8px; }
.virtual-lab-card > p:not(.learning-bo) { color: var(--muted); line-height: 1.55; font-size: .92rem; }
.virtual-lab-card label { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 3px; gap: 7px; font-weight: 600; font-size: .9rem; }
.virtual-lab-card input[type=range] { width: 100%; accent-color: var(--green); }
.virtual-lab-card label output { color: var(--green); }
.lab-visual { display: flex; align-items: center; gap: 15px; min-height: 135px; background: #234b4c; padding: 16px; color: white; border-radius: 5px; margin: 15px 0; }
.lab-visual strong { display: block; font: 400 1.8rem/1.3 var(--serif); white-space: nowrap; }
.lab-visual span { display: block; color: #c6e0d5; font-size: .8rem; }
.boil-vessel { position: relative; flex: 0 0 50px; height: 80px; background: #214246; border: 2px solid #a4d5d1; border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
#boil-water { position: absolute; bottom: 0; inset-inline: 0; background: #77c0ce; height: 60%; transition: height .2s; }
.solar-grid { flex: 0 0 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: skewY(-7deg); background: #b6d3cd; padding: 3px; }
.solar-grid i { display: block; height: 24px; background: #316b85; border: 1px solid #78a4ac; }
.thermometer { width: 26px; flex-shrink: 0; height: 85px; border: 2px solid #d8e4d9; border-radius: 16px; overflow: hidden; position: relative; }
#heat-level { width: 100%; position: absolute; bottom: 0; background: #f0a467; height: 60%; }
.reply-context { background: #e7eee7; padding: 10px 12px; margin: 12px 0; border-radius: 5px; display: flex; gap: 12px; justify-content: space-between; font-size: .92rem; }
.comment-filter-label { display: block; margin-bottom: 12px; font-size: .89rem; font-weight: 600; }
.comment-replies { margin-left: 25px; padding-left: 12px; border-left: 2px solid #d5e5d9; }
.comment-actions { display: flex; gap: 15px; }
@media (max-width:1180px) { .learning-links { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:1170px) {
  .nav-wrap .menu-button { display: block; font-size: .87rem; font-weight: 600; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 13px 18px 20px; gap: 0; background: var(--light); box-shadow: 0 14px 25px #183e3e15; border-bottom: 1px solid var(--line); }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 10px; font-size: .95rem; }
  #site-nav .nav-contact { padding: 10px; border: none; }
}
@media (max-width:900px) { .learning-links,.dictionary-grid,.science-mind-grid,.virtual-lab-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .learning-links,.learning-subheader,.learning-card-grid,.dictionary-controls,.dictionary-grid,.science-mind-grid,.ask-feature,.scientist-grid,.virtual-lab-grid { grid-template-columns: 1fr; } .learning-subheader { margin-top: 38px; gap: 8px; } .learning-card,.dictionary-shell,.ask-feature,.scientist-card,.virtual-lab-card { padding: 17px; } }

.facebook-state .button { flex-shrink: 0; white-space: nowrap; }

/* Featured bilingual study guide */
.learning-featured-article { margin-top: 20px; display: grid; grid-template-columns: minmax(95px,.25fr) 1fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid #cddbd2; border-radius: 6px; padding: clamp(20px,3vw,32px); }
.learning-feature-symbol { min-height: 135px; align-self: stretch; display: grid; place-items: center; color: #f4e9d4; background: #174647; font: 400 4.5rem/.9 var(--serif); border-radius: 5px; }
.learning-feature-copy h3 { font: 400 clamp(1.65rem,2.6vw,2.2rem)/1.15 var(--serif); margin: 10px 0 5px; }
.learning-feature-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 10px; }
.learning-feature-copy .learning-bo { color: var(--green); }
.content-page .entry-content h2.learning-bo,.content-page .entry-content h3.learning-bo { line-height: 1.8; }
@media(max-width:620px) { .learning-featured-article { grid-template-columns: 1fr; gap: 15px; } .learning-feature-symbol { min-height: 86px; font-size: 3.2rem; } }
