:root{color-scheme:light;--ink:#2f1b22;--muted:#665257;--wine:#591d31;--paper:#faf3e7;--line:#dfcfba;--gold:#f4c78e}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,sans-serif}a{color:inherit}a:focus-visible,summary:focus-visible{outline:3px solid #ad582f;outline-offset:5px}.skip{position:absolute;top:-100px;left:1rem;background:white;padding:.6rem;z-index:2}.skip:focus{top:1rem}.wrap{width:min(1120px,calc(100% - 64px));margin-inline:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:23px;border-bottom:1px solid var(--line)}.brand{font:700 1.32rem Georgia,serif;text-decoration:none;white-space:nowrap}.brand span{color:#9b4d30;margin-right:.2rem}.header nav{display:flex;gap:clamp(.75rem,3vw,2rem);font-size:.9rem}.header nav a{text-decoration:none}.header nav a:hover,.actions>a:last-child:hover{text-decoration:underline}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,5vw,4.5rem);align-items:center;padding-block:clamp(3rem,8vw,7rem)}.eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.18em;color:#88422c;margin:0 0 .85rem}.hero h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.07;margin:0}.hero h1{font-size:clamp(2.85rem,5.7vw,5.3rem);letter-spacing:-.058em}.hero h1 em{color:var(--wine)}.intro{color:var(--muted);max-width:29rem;font-size:1.06rem;margin:1.35rem 0 1.65rem}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.4rem;font-weight:700;font-size:.92rem}.actions a{text-decoration:none}.button{display:inline-flex;align-items:center;gap:1rem;background:var(--wine);color:#fff7e9;padding:.75rem 1.15rem;border-radius:6px}.button:hover{background:#752b44}.plate{margin:0;background:radial-gradient(ellipse at 45% 40%,#773448,#431428 80%);color:var(--gold);border-radius:9px;overflow:hidden;box-shadow:0 14px 38px #48212c26}.plate svg{display:block;width:100%;height:auto}.plate figcaption{display:flex;justify-content:space-between;border-top:1px solid #e2ad744d;padding:.65rem 1rem;font-size:.78rem;letter-spacing:.07em}.course{background:#f2e5d2;border-block:1px solid var(--line);padding:3.6rem 0 4.2rem}h2{font-size:clamp(2rem,4.7vw,3.5rem);letter-spacing:-.035em}.section-intro{color:var(--muted);margin:.65rem 0 1.55rem}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.cards>a{display:flex;flex-direction:column;border:1px solid #d8c1a6;background:#fcf7ee;border-radius:8px;padding:1.3rem;text-decoration:none}.cards>a:hover{border-color:#8c4b35;background:white}.number{color:#924428;font:italic 1.45rem Georgia,serif;margin-bottom:.75rem}.cards h3{font-size:1.52rem}.cards p{color:var(--muted);font-size:.93rem;margin:.55rem 0 1rem}.card-link,.next{margin-top:auto;color:var(--wine);font-size:.9rem;font-weight:750}.narrow,.classroom{max-width:760px}.classroom article{padding-block:3rem;border-bottom:1px solid var(--line)}.classroom article:last-child{border-bottom:0}.classroom li{margin:.55rem 0}.classroom ol{padding-left:1.4rem}.tablebox{overflow-x:auto}table{border-collapse:collapse;width:100%;background:#fffaf2;text-align:left}caption{text-align:left;font-weight:700;padding:.45rem 0}td,th{border:1px solid var(--line);padding:.65rem .8rem}th{background:#f2e5d2}.practice{background:var(--wine);color:#fff7e9;padding:3rem 0 3.6rem}.practice .eyebrow{color:var(--gold)}details{border-bottom:1px solid #e7bd9866;padding:.75rem 0}summary{cursor:pointer;font-weight:650}details p{margin:.6rem 0 0 1.15rem}.glossary{padding-block:3.5rem}.glossary dl{display:grid;grid-template-columns:auto 1fr;gap:.8rem 1.3rem}.glossary dt{font-weight:750}.glossary dd{margin:0}.source{font-size:.87rem;color:var(--muted);margin-top:1.8rem}footer{border-top:1px solid var(--line);padding:1.35rem 0}footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}footer .wrap>span{color:var(--muted);font-size:.85rem}
@media(max-width:740px){.wrap{width:calc(100% - 36px)}.hero{grid-template-columns:1fr}.plate{width:min(100%,500px)}.cards{grid-template-columns:1fr}.header{flex-wrap:wrap}}
@media(max-width:400px){td,th{padding:.4rem;font-size:.85rem}.glossary dl{grid-template-columns:1fr;gap:.2rem}.glossary dd{margin-bottom:.7rem}}
.language{border:1px solid #ab7e64;border-radius:5px;color:var(--wine);font-weight:700;padding:.3rem .65rem;text-decoration:none;white-space:nowrap}.language:hover{background:#f2e5d2}.header nav{margin-left:auto}html[lang=hi] body{font-family:"Nirmala UI","Mangal","Noto Sans Devanagari",system-ui,sans-serif}html[lang=hi] :is(h1,h2,h3){font-family:inherit;letter-spacing:normal;line-height:1.2}html[lang=hi] .eyebrow{letter-spacing:.06em}html[lang=hi] .plate svg text{font-family:"Nirmala UI","Mangal","Noto Sans Devanagari",sans-serif;letter-spacing:0}
@media(max-width:450px){.header nav{order:1;width:100%;margin-left:0}}
.module-title{font-size:1.6rem;margin:1.9rem 0 .8rem}.cards h4{font:400 1.52rem/1.12 Georgia,serif;margin:0}html[lang=hi] .cards h4{font-family:inherit;line-height:1.2}.classroom details{border-bottom:1px solid var(--line)}.lesson-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 1.5rem;margin-top:1rem;color:var(--wine);font-weight:700;font-size:.9rem}.module-title:first-of-type{margin-top:1.3rem}
.lesson-depth h3{font-size:clamp(1.35rem,2.5vw,1.8rem);margin:1.6rem 0 .45rem}.lesson-depth h3+p{margin-top:.45rem}.lesson-exercise{background:#f2e5d2;border:1px solid var(--line);border-radius:8px;margin:1.5rem 0;padding:1.15rem}.lesson-exercise h3{margin-top:0}.lesson-exercise details{border-bottom:0;padding-bottom:0}.lesson-reference .tablebox{max-height:24rem;overflow:auto;margin:.65rem 0}.lesson-reference th{position:sticky;top:0}.lesson-reference td,.lesson-reference th{white-space:nowrap}.lesson-reference .tablebox:focus-visible{outline:3px solid #ad582f;outline-offset:3px}
.ramal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(1rem, 3vw, 1.65rem);
  background: #fcf7ee;
  border: 1px solid var(--line);
  border-left: 4px solid var(--wine);
  border-radius: 8px;
}
.ramal h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ramal p { margin: .45rem 0 0; color: var(--muted); }
.ramal .button { text-decoration: none; }

.welcome { padding-block: clamp(2.75rem, 7vw, 5rem); }
.welcome-intro { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.welcome h1 { font: 400 clamp(2.6rem, 6vw, 5rem)/1.06 Georgia, serif; letter-spacing: -.045em; margin: 0; }
.welcome-intro > p:last-child { color: var(--muted); font-size: 1.08rem; }
.welcome h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.learning-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.path-card { background: #fcf7ee; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.path-art { height: 180px; background: #f2e5d2; display: flex; justify-content: center; align-items: center; }
.path-art img { width: auto; height: 90%; object-fit: contain; }
.path-art-ramal { background: var(--wine); }
.path-art-ramal img { max-width: 100%; }
.path-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 3vw, 1.6rem); }
.path-copy h3 { font-size: 1.65rem; }
.path-copy p { color: var(--muted); margin: .55rem 0 1rem; }
.path-copy .button { margin-top: auto; text-decoration: none; }
.planned { color: var(--muted); margin: 1.25rem 0 0; }
.planned strong { color: var(--ink); margin-right: .5rem; }
.kp-identity { margin: 0; background: #f2e5d2; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; text-align: center; }
.kp-identity img { display: block; width: min(100%, 350px); height: auto; margin-inline: auto; }
.kp-header nav { flex-wrap: wrap; column-gap: clamp(.75rem, 2vw, 1.4rem); row-gap: .25rem; }
@media (max-width: 740px) {
  .kp-header nav { order: 1; width: 100%; margin-left: 0; }
}
@media (max-width: 600px) {
  .learning-paths { grid-template-columns: 1fr; }
  .path-art { height: 145px; }
}

.app-tools { margin-block: 1.5rem; }
.app-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.app-actions button { font: inherit; font-weight: 700; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--wine); border-radius: 6px; cursor: pointer; }
.app-actions .install-button { color: #fff7e9; background: var(--wine); }
.app-actions .offline-button { color: var(--wine); background: #fcf7ee; }
.app-actions button:disabled { opacity: .65; cursor: default; }
.app-actions button:focus-visible { outline: 3px solid #ad582f; outline-offset: 3px; }
.app-tools p { color: var(--muted); margin: .55rem 0 0; font-size: .9rem; }
.app-tools [data-offline-status]:empty { display: none; }

.kp-progress { margin-block: 1.25rem; padding: .85rem 1rem; background: #fcf7ee; border: 1px solid var(--line); border-radius: 8px; }
.kp-progress p { margin: 0 0 .45rem; }
.kp-progress progress { display: block; width: 100%; height: .75rem; margin: .6rem 0; accent-color: var(--wine); }
.kp-progress a { font-weight: 750; color: var(--wine); }
.kp-progress [data-progress-note] { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.lesson-complete { margin-top: 1rem; }
.lesson-complete, .lookup-actions button { min-height: 44px; padding: .45rem .8rem; font: inherit; font-weight: 700; color: var(--wine); background: #fcf7ee; border: 1px solid var(--wine); border-radius: 6px; cursor: pointer; }
.lesson-complete[aria-pressed="true"] { background: var(--wine); color: #fff7e9; }
.lookup { margin-block: 2.75rem 1rem; padding: clamp(1rem, 4vw, 2rem); background: #f2e5d2; border: 1px solid var(--line); border-radius: 10px; }
.lookup h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lookup-fields { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: .65rem; }
.lookup-fields label { display: grid; gap: .25rem; font-weight: 700; min-width: 0; }
.lookup-fields input, .lookup-fields select { width: 100%; min-width: 0; min-height: 44px; padding: .35rem .45rem; font: inherit; background: #fffaf2; color: var(--ink); border: 1px solid #ab7e64; border-radius: 5px; }
.lookup-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.lookup-actions button[type="submit"] { background: var(--wine); color: #fff7e9; }
.lookup-result { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: #fcf7ee; }
.lookup-result h3 { font-size: 1.45rem; }
.lookup-result dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem .75rem; }
.lookup-result dt { font-weight: 700; }
.lookup-result dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .lookup-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lookup-fields label:first-child { grid-column: 1 / -1; }
}

.topic-links { margin-top: 1.5rem; }
.topic-links h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.topic-links ul { display: flex; flex-wrap: wrap; gap: .45rem .65rem; padding: 0; margin: .7rem 0 0; list-style: none; }
.topic-links a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .75rem; background: #fcf7ee; color: var(--wine); font-weight: 650; }
