/* Shared design of 10minutesplease.com: Jetil teal + the book's lesson colours (--c is set per lesson). */
@font-face { font-family: Naskh; src: url(/fonts/naskh.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --c: #007F72; --c-d: #005F56; --teal: #007F72; --ink: #17233A; --mut: #566273; --line: #DCE4E2; --bg: #F4F7F6; --card: #FFFFFF;
  --amber: #B86E00; --amber-l: #FFF4DF; --r: 18px; --sh: 0 1px 2px rgba(23,35,58,.06), 0 6px 18px rgba(23,35,58,.07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid #F2A93B; outline-offset: 2px; border-radius: 6px; }
.ar { font-family: Naskh, serif; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic.fill { fill: currentColor; stroke: none; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.wrap.nar { max-width: 620px; }

/* top bar */
.bar { background: var(--c); color: #fff; }
.bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.bar .home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.bar img { width: 30px; height: 30px; display: block; }
.bar .back { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; text-decoration: none; font-weight: 700; font-size: 15px; direction: ltr; }

/* home hero */
.hero { background: linear-gradient(160deg, #006A5F, #008F80 70%, #12A594); color: #fff; padding: 22px 0 62px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%; border: 54px solid rgba(255,255,255,.06); pointer-events: none; }
.hero .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.hero .brand img { width: 34px; height: 34px; }
.hero h1 { margin: 22px 0 0; font: 700 clamp(38px, 9vw, 60px)/1.45 Naskh, serif; text-align: right; }
.hero p { margin: 0; font-size: 17px; font-weight: 600; opacity: .95; text-align: right; }

/* action cards */
.acts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: -40px; position: relative; z-index: 1; }
.act { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 92px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh); text-decoration: none; transition: box-shadow .2s, background-color .2s; }
.act:hover { box-shadow: 0 2px 4px rgba(23,35,58,.08), 0 12px 28px rgba(23,35,58,.13); }
.act .bub { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; background: #DDF2EE; color: var(--teal); font-size: 24px; }
.act.alt .bub { background: #FDEBD8; color: #B04A0C; }
.act b { display: block; font: 700 23px/1.45 Naskh, serif; }
.act span.k { display: block; color: var(--mut); font-size: 14px; font-weight: 600; direction: ltr; text-align: right; }
.act .go { margin-inline-start: auto; color: var(--mut); }

/* exercise code box */
.code { margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh); }
.code label { display: block; }
.code b { display: block; font: 700 21px/1.5 Naskh, serif; }
.code .k { display: block; color: var(--mut); font-size: 14px; font-weight: 600; direction: ltr; text-align: right; }
.crow { display: flex; gap: 8px; margin-top: 10px; direction: ltr; }
.crow input { flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; border: 2px solid var(--line); border-radius: 13px; font: 800 24px/1 Nunito, sans-serif; letter-spacing: 2px; text-align: center; color: var(--ink); background: #fff; }
.crow input:focus { outline: none; border-color: var(--teal); }
.crow button { width: 58px; min-height: 54px; border-radius: 13px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 22px; transform: scaleX(-1); }
.cerr { margin: 8px 0 0; color: #B3261E; font-weight: 700; font-size: 14px; direction: ltr; text-align: right; }
/* install card */
.inst { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: #E3F3F0; border: 1px solid #B9E0D9; }
.inst[hidden] { display: none; }
.inst .bub { width: 46px; height: 46px; border-radius: 13px; background: #fff; color: var(--teal); display: grid; place-items: center; flex: none; font-size: 22px; }
.inst b { display: block; font-weight: 800; direction: ltr; text-align: right; }
.inst .k { display: block; color: var(--mut); font-size: 13px; font-weight: 600; direction: ltr; text-align: right; }
.inst > span:nth-child(2) { flex: 1; }
.inst button { min-height: 44px; padding: 0 16px; border-radius: 11px; background: var(--teal); color: #fff; font-weight: 800; flex: none; }
.inst button[hidden] { display: none; }

/* sections */
.sec-h { margin: 30px 0 12px; }
.sec-h h2 { margin: 0; font: 700 26px/1.5 Naskh, serif; }
.sec-h p { margin: 0; color: var(--mut); font-weight: 600; font-size: 14px; direction: ltr; text-align: right; }

/* lesson cards */
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.les { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); text-decoration: none; transition: box-shadow .2s; }
.les:hover { box-shadow: 0 2px 4px rgba(23,35,58,.08), 0 12px 28px rgba(23,35,58,.13); }
.les .ph { position: relative; aspect-ratio: 16 / 10; background: var(--c); }
.les .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.les .no { position: absolute; top: 8px; right: 8px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 16px/1 Nunito, sans-serif; }
.les .tx { padding: 8px 12px 12px; border-top: 4px solid var(--c); flex: 1; display: flex; flex-direction: column; }
.les b { font: 700 19px/1.5 Naskh, serif; }
.les .k { color: var(--mut); font-size: 13px; font-weight: 600; direction: ltr; text-align: right; margin-bottom: 8px; }
.prog { margin-top: auto; height: 6px; background: #E7ECEB; border-radius: 9px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--c); border-radius: 9px; }
.les small { display: block; margin-top: 5px; color: var(--mut); font-size: 12px; font-weight: 700; direction: ltr; text-align: right; }

/* lesson page */
.lhead { position: relative; background: var(--c); color: #fff; overflow: hidden; }
.lhead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.lhead .wrap { position: relative; padding-top: 22px; padding-bottom: 24px; }
.lhead h1 { margin: 0; font: 700 clamp(30px, 7vw, 44px)/1.45 Naskh, serif; }
.lhead p { margin: 0; font-weight: 700; direction: ltr; text-align: right; }
.rows { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); margin: 16px 0; overflow: hidden; }
.rw { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; text-decoration: none; border-top: 1px solid var(--line); transition: background-color .15s; }
.rw:first-child { border-top: 0; }
.rw:hover { background: #F7FAF9; }
.tag { flex: none; min-width: 52px; text-align: center; padding: 3px 7px; border-radius: 9px; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; direction: ltr; }
.rw .ti { flex: 1; min-width: 0; font: 600 17px/1.55 Naskh, serif; }
.rw .pg { display: block; font: 600 12px/1.3 Nunito, sans-serif; color: var(--mut); direction: ltr; text-align: right; }
.st { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.st.on { background: var(--c); color: #fff; }
.st.off { background: #EEF1F0; color: #6F7A85; }

/* exercise page */
.ex { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; margin: 16px 0; }
.ex .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex .pg { color: var(--mut); font-weight: 700; font-size: 14px; }
.ex h1 { margin: 12px 0 2px; font: 700 clamp(23px, 6vw, 29px)/1.65 Naskh, serif; }
.ex .kz { margin: 0 0 16px; color: var(--mut); font-weight: 600; direction: ltr; text-align: right; }
.soon { background: var(--amber-l); border: 1px solid #F1D3A2; border-radius: 14px; padding: 16px; text-align: center; }
.soon .ic { color: var(--amber); font-size: 26px; }
.soon .a { font: 700 21px/1.8 Naskh, serif; }
.soon p { margin: 0; color: #5F4310; font-size: 15px; font-weight: 600; direction: ltr; text-align: center; }

/* audio player */
.pl { background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 16px; padding: 14px; direction: ltr; }
.pl .main { display: flex; align-items: center; gap: 12px; }
.pl .play { width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; font-size: 22px; box-shadow: 0 4px 12px rgba(23,35,58,.2); }
.pl input[type=range] { flex: 1; min-width: 0; height: 44px; accent-color: var(--c); cursor: pointer; }
.pl .time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; min-width: 42px; text-align: center; }
.pl .ctl { display: flex; gap: 8px; margin-top: 12px; }
.pl .ctl button { flex: 1; min-height: 46px; border-radius: 11px; background: #fff; border: 2px solid var(--line); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .15s, border-color .15s, color .15s; }
.pl .ctl button.on { background: var(--c); border-color: var(--c); color: #fff; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; direction: ltr; }
.pn a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; background: var(--card); border-radius: 13px; box-shadow: var(--sh); text-decoration: none; font-weight: 800; }
.pn a.off { visibility: hidden; }
footer { text-align: center; color: var(--mut); font-size: 13px; font-weight: 600; padding: 22px 16px 28px; }

@media (min-width: 720px) {
  .acts { grid-template-columns: 1fr 1fr; }
  .lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
