/* Band Booster IELTS: the look of the signed-in profile (public/my-lessons.html), added on top of the page's own inline styles.
   Owner's order, 23 Nov 2026: "work on the design of the profiles, make the background more interesting, especially the vocab Leitner box part".

   Rules this file keeps (so a later edit does not undo them):
   - Colours only from the brand: navy #0F1D33, gold #C89B3C, cream #F3E7C9 (the page's own custom properties).
   - CSS only: gradients, dots and small inline-SVG icons inside data: URIs. No picture file, no font, no library, nothing from another host.
   - Nothing here changes a word, a size that makes text overflow, or what a control does. Text stays AA: every text colour below was
     picked against the lightest and the darkest part of the background it sits on.
   - Movement exists only inside (prefers-reduced-motion: no-preference); with reduced motion the page is still, never hidden.
   - The page has no dark theme (it is light only), so nothing here reads the colour-scheme preference.
   - Specificity: the page's inline rules use #myLeitner ...; every selector here keeps that prefix and comes later, so it wins.
   Raise ?v= in my-lessons.html whenever this file changes (Hosting caches CSS for a week). */

/* ------------------------------------------------------------------ page background */
body{
  min-height:100vh;
  background-color:#F6F3EA;
  background-image:
    radial-gradient(1000px 460px at 100% 0,rgba(200,155,60,.15),transparent 64%),
    radial-gradient(800px 560px at 0 420px,rgba(31,58,99,.04),transparent 62%),
    radial-gradient(rgba(15,29,51,.055) 1.2px,transparent 1.7px),
    linear-gradient(180deg,rgba(255,255,255,0) 55%,rgba(243,231,201,.55) 100%);
  background-size:auto,auto,24px 24px,auto;
  background-repeat:no-repeat,no-repeat,repeat,no-repeat;
}

/* ------------------------------------------------------------------ welcome strip (the title, on navy, under the header) */
.hero{position:relative;overflow:hidden;color:#F3E7C9;border-bottom:3px solid var(--gold);
  background:
    radial-gradient(520px 200px at 88% 130%,rgba(200,155,60,.34),transparent 70%),
    repeating-linear-gradient(135deg,rgba(243,231,201,.055) 0 1px,transparent 1px 22px),
    linear-gradient(135deg,#0F1D33 0%,#142748 55%,#1F3A63 100%);
  box-shadow:0 10px 24px -14px rgba(15,29,51,.55)}
.hero-in{max-width:760px;margin:0 auto;padding:20px 18px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}
.hero h1{margin:0;font-size:28px;line-height:1.15;letter-spacing:.005em;color:#F3E7C9}
.hero h1:focus{outline:none}
.hero-mark{flex:none;width:92px;height:auto;display:block}
.wrap{padding-top:26px}

/* ------------------------------------------------------------------ cards: depth and a gold tab */
.card{position:relative;border:1px solid rgba(15,29,51,.09);border-radius:16px;
  box-shadow:0 1px 2px rgba(15,29,51,.05),0 14px 28px -18px rgba(15,29,51,.35)}
.card::before{content:"";position:absolute;left:20px;top:-1px;width:46px;height:4px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#C89B3C,#E2BE6A)}
#aiLinks{background:radial-gradient(440px 170px at 100% 0,rgba(200,155,60,.16),transparent 70%),#fff}
#myPlan,#myReports{background:linear-gradient(180deg,#fff 0,#fff 62%,#FCFAF3 100%)}
.kv{background:rgba(243,231,201,.22);border-color:rgba(15,29,51,.10)}

/* section icons: a navy chip with a gold line drawing, drawn by the heading's own pseudo-element (decorative, never read out) */
#aiLinks h2::before,#myPlan h2::before,#myReports h2::before,#speakingAi h2::before,#writingAi h2::before,#libPacks .card>h2::before,#myLeitner>h2::before{
  content:"";display:inline-block;width:30px;height:30px;margin-right:10px;vertical-align:-8px;border-radius:9px;
  background:#0F1D33 center/18px 18px no-repeat;box-shadow:inset 0 0 0 1px rgba(200,155,60,.45)}
#aiLinks h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 17v4M17 19h4'/%3E%3C/svg%3E")}
#myPlan h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4'/%3E%3Cpath d='M6 5h11l-2.5 3.5L17 12H6'/%3E%3C/svg%3E")}
#myReports h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M10 17v-3M13 17v-5M16 17v-2'/%3E%3C/svg%3E")}
#speakingAi h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M6 11a6 6 0 0012 0M12 17v4'/%3E%3C/svg%3E")}
#writingAi h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16 5l3 3L8 19z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E")}
#libPacks .card>h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10a3 3 0 013 3v13H8a3 3 0 01-3-3z'/%3E%3Cpath d='M5 17a3 3 0 013-3h10'/%3E%3C/svg%3E")}
#myLeitner>h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='14' height='11' rx='2'/%3E%3Cpath d='M8 6h8M10.5 3h3'/%3E%3C/svg%3E");background-color:rgba(200,155,60,.16);box-shadow:inset 0 0 0 1px rgba(200,155,60,.7)}

/* buttons: a little depth; gold stays dark-on-gold (AA) on hover too */
.btn-gold{background:linear-gradient(180deg,#D4A94B,#C89B3C);box-shadow:0 6px 14px -8px rgba(168,129,29,.75),inset 0 1px 0 rgba(255,255,255,.35)}
.btn-gold:hover{background:linear-gradient(180deg,#C9993A,#B8892B);color:#1A1400}
.btn-navy{box-shadow:0 6px 14px -9px rgba(15,29,51,.8)}
.btn-outline{box-shadow:0 1px 2px rgba(15,29,51,.06)}
.btn{transition:background-color .15s,box-shadow .15s,transform .15s}
@media (prefers-reduced-motion:no-preference){ .btn:not([aria-disabled="true"]):not(:disabled):active{transform:translateY(1px)} }

/* ------------------------------------------------------------------ the Leitner box: a learning desk */
#myLeitner{padding:0 20px 22px;border-color:rgba(200,155,60,.5);
  background:
    radial-gradient(rgba(200,155,60,.22) 1px,transparent 1.5px) 0 0/20px 20px,
    linear-gradient(180deg,#FFFDF8 0%,#FBF6E8 100%);
  box-shadow:0 1px 2px rgba(15,29,51,.05),0 20px 36px -22px rgba(15,29,51,.5)}
#myLeitner::before{display:none}
/* the navy desk top: heading, then a gold-tinted ribbon with the one-line intro */
#myLeitner>h2{margin:0 -20px 16px;padding:20px 20px 17px;border-radius:15px 15px 0 0;color:#F3E7C9;font-size:20px;
  background:
    radial-gradient(340px 120px at 100% 130%,rgba(200,155,60,.34),transparent 70%),
    repeating-linear-gradient(135deg,rgba(243,231,201,.06) 0 1px,transparent 1px 18px),
    linear-gradient(135deg,#0F1D33 0%,#1F3A63 100%);
  border-bottom:3px solid var(--gold)}
#myLeitner>h2+.sub{margin:-16px -20px 18px;padding:12px 20px;color:#3F485B;background:linear-gradient(90deg,rgba(200,155,60,.20),rgba(200,155,60,.07));border-bottom:1px solid rgba(200,155,60,.4)}
#myLeitner .ltn-h3{color:var(--navy)}
#myLeitner .ltn-h3::before{content:"";display:inline-block;width:6px;height:16px;margin-right:9px;vertical-align:-2px;border-radius:3px;background:linear-gradient(180deg,#E2BE6A,#C89B3C)}

/* the five boxes: a rising row like the brand mark, each with a level of "how many cards are in me" */
#myLeitner .ltn-boxes{gap:8px;align-items:end;margin:20px 0 16px}
#myLeitner .ltn-boxes li{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto auto;justify-items:center;align-items:center;
  gap:0;padding:0 2px 10px;border:1px solid rgba(15,29,51,.16);border-radius:12px 12px 8px 8px;background:#fff;
  box-shadow:0 10px 14px -12px rgba(15,29,51,.55),inset 0 -3px 0 rgba(15,29,51,.05)}
#myLeitner .ltn-boxes li:nth-child(1){min-height:128px}
#myLeitner .ltn-boxes li:nth-child(2){min-height:140px}
#myLeitner .ltn-boxes li:nth-child(3){min-height:152px}
#myLeitner .ltn-boxes li:nth-child(4){min-height:164px}
#myLeitner .ltn-boxes li:nth-child(5){min-height:176px}
/* the level: a tint that rises from the bottom to the share this box holds of the biggest box (the page sets --fill, 0 to 1) */
#myLeitner .ltn-boxes li::before{content:"";position:absolute;left:0;right:0;bottom:0;z-index:-1;height:calc(var(--fill,0) * 100%);
  background:linear-gradient(180deg,rgba(200,155,60,.34),rgba(200,155,60,.16))}
#myLeitner .ltn-boxes li:nth-child(5)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--gold)}
#myLeitner .ltn-boxes li.has-due{border:1px solid var(--gold);padding:0 2px 10px;
  background:#fff;box-shadow:0 0 0 2px var(--gold),0 14px 18px -12px rgba(168,129,29,.85)}
#myLeitner .ltn-boxn{align-self:start;justify-self:stretch;padding:6px 2px;background:#0F1D33;color:#F3E7C9;font-size:12.5px;font-weight:600;letter-spacing:.02em}
#myLeitner .ltn-count{font-size:28px;font-weight:800;line-height:1;color:var(--navy)}
#myLeitner .ltn-every{color:#3F485B;font-size:12.5px}
#myLeitner .ltn-dueN{margin-top:5px;padding:2px 8px;border-radius:99px;background:var(--gold);color:#1A1400;font-size:12px;font-weight:700;white-space:nowrap}
@media (max-width:380px){ #myLeitner .ltn-dueN{padding:2px 5px;font-size:11.5px} }
#myLeitner .ltn-dueN:empty,#myLeitner .ltn-every:empty{display:none}
@media (prefers-reduced-motion:no-preference){
  #myLeitner .ltn-boxes li::before{animation:ltn-rise .7s cubic-bezier(.2,.7,.2,1) both}
  @keyframes ltn-rise{from{height:0}}
}

/* today */
#myLeitner .ltn-state{display:flex;align-items:center;gap:10px;margin:12px 0 14px;padding:11px 14px;border-radius:12px;background:#fff;
  border:1px solid rgba(200,155,60,.55);box-shadow:0 8px 16px -14px rgba(15,29,51,.6)}
#myLeitner .ltn-state::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#F0D58E,#C89B3C 70%);box-shadow:0 0 0 4px rgba(200,155,60,.22)}
#myLeitner .ltn-acts .btn{min-height:48px}
#myLeitner .ltn-tools{margin-top:18px}

/* the vocabulary library on the home view: a navy panel with the one big gold call to action */
#myLeitner .ltn-libbox{position:relative;isolation:isolate;overflow:hidden;margin-top:22px;padding:18px 18px 8px;border:0;border-radius:16px;color:#F3E7C9;
  background:
    radial-gradient(300px 150px at 100% 0,rgba(200,155,60,.34),transparent 70%),
    repeating-linear-gradient(135deg,rgba(243,231,201,.05) 0 1px,transparent 1px 16px),
    linear-gradient(135deg,#0F1D33 0%,#1F3A63 100%);
  box-shadow:0 16px 28px -18px rgba(15,29,51,.85)}
#myLeitner .ltn-libbox::after{content:"";position:absolute;right:20px;top:16px;width:44px;height:30px;border-radius:7px;background:#F3E7C9;transform:rotate(8deg);z-index:-1;
  box-shadow:-9px 5px 0 -1px rgba(243,231,201,.55),-18px 10px 0 -2px rgba(243,231,201,.28)}
#myLeitner .ltn-libbox .ltn-h3{margin-top:0;padding-right:88px;color:#F3E7C9}
#myLeitner .ltn-libbox .ltn-h3::before{background:linear-gradient(180deg,#F0D58E,#C89B3C)}
#myLeitner .ltn-libbox .sub{color:#D5DBE6}
#myLeitner .ltn-libbox .btn-gold{min-height:52px;font-size:16px;padding-left:22px;padding-right:22px}
#myLeitner .ltn-libbox .btn-outline{background:rgba(255,255,255,.08);color:#F3E7C9;border-color:rgba(243,231,201,.55);box-shadow:none}
#myLeitner .ltn-libbox .btn-outline:hover{background:rgba(255,255,255,.16)}

/* a study round: an index card on a little stack, with a progress rail */
#myLeitner .ltn-step{color:#3F485B}
#myLeitner .ltn-bar{height:10px;background:rgba(15,29,51,.11);box-shadow:inset 0 1px 2px rgba(15,29,51,.18)}
#myLeitner .ltn-bar span{background:linear-gradient(90deg,#C89B3C,#E2BE6A);border-radius:99px}
#myLeitner .ltn-last{padding:7px 11px;border-radius:9px;background:rgba(243,231,201,.5);color:#3F485B}
#myLeitner .ltn-card{display:flex;flex-direction:column;justify-content:center;margin:10px 0 30px;padding:28px 20px 24px;min-height:240px;text-align:center;
  border:1px solid rgba(15,29,51,.16);border-top:6px solid var(--gold);border-radius:16px;
  background:
    radial-gradient(rgba(15,29,51,.07) 1px,transparent 1.5px) 0 0/16px 16px,
    linear-gradient(180deg,#FFFFFF,#FBF6E8);
  box-shadow:0 6px 0 -2px #F6EFD9,0 6px 0 -1px rgba(15,29,51,.14),0 12px 0 -4px #EFE4C4,0 12px 0 -3px rgba(15,29,51,.11),0 26px 34px -16px rgba(15,29,51,.45)}
#myLeitner .ltn-front{font-size:26px;line-height:1.3;font-weight:700;color:var(--navy)}
#myLeitner .ltn-sep{width:54px;margin:18px auto;border:0;border-top:3px solid var(--gold);border-radius:3px}
#myLeitner .ltn-backtext{font-size:19px;line-height:1.45}
#myLeitner .ltn-example{color:#2D3547}
#myLeitner .ltn-tag{display:inline-block;margin:4px 3px 0;padding:3px 10px;border-radius:99px;background:rgba(15,29,51,.07);color:#3F485B}
#myLeitner .ltn-study-keys,#myLeitner .ltn-body>.hint{text-align:center}
#myLeitner .ltn-card~.acts .btn{min-height:54px;font-size:16px}
@media (prefers-reduced-motion:no-preference){
  #myLeitner .ltn-card{animation:ltn-deal .32s cubic-bezier(.2,.7,.2,1) both}
  #myLeitner .ltn-card.is-flipped{transform-origin:50% 0;animation:ltn-flip .42s cubic-bezier(.2,.7,.2,1) both}
  @keyframes ltn-deal{from{opacity:0;transform:translateX(28px) rotate(1.6deg)}}
  @keyframes ltn-flip{from{opacity:.25;transform:perspective(900px) rotateX(-62deg)}}
}
@media (max-width:420px){
  #myLeitner .ltn-front{font-size:23px}
  #myLeitner .ltn-card{padding:24px 14px 20px;min-height:210px}
}

/* the five levels: tiles that darken as the words get harder; each shows how much of the level is already in the box */
#myLeitner .ltn-levels{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:12px;margin:12px 0 6px}
#myLeitner .ltn-levels>li{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;
  gap:16px;padding:16px 16px 20px;min-height:158px;border:1px solid rgba(15,29,51,.14);border-radius:16px;
  box-shadow:0 12px 20px -16px rgba(15,29,51,.6)}
#myLeitner .ltn-levels>li::before{content:attr(data-level);content:attr(data-level) / "";position:absolute;right:10px;bottom:-26px;z-index:-1;font-size:112px;font-weight:800;line-height:1;opacity:.09;color:currentColor}
#myLeitner .ltn-levels>li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:linear-gradient(90deg,#C89B3C calc(var(--lvl,0) * 100%),rgba(15,29,51,.13) 0)}
#myLeitner .ltn-levels .what{flex:0 0 auto}
#myLeitner .ltn-levels .what strong{font-size:16.5px;line-height:1.3}
#myLeitner .ltn-levels .what span{margin-top:4px;color:#3F485B;line-height:1.4}
#myLeitner .ltn-levels>li[data-level="1"]{background:linear-gradient(160deg,#FFFFFF,#FFFCF2);color:var(--ink)}
#myLeitner .ltn-levels>li[data-level="2"]{background:linear-gradient(160deg,#FFFFFF,#FBF1D6);color:var(--ink)}
#myLeitner .ltn-levels>li[data-level="3"]{background:linear-gradient(160deg,#FBF1D6,#F1E2B8);color:var(--ink)}
#myLeitner .ltn-levels>li[data-level="4"],#myLeitner .ltn-levels>li[data-level="5"]{color:#F3E7C9;border-color:rgba(15,29,51,.5)}
#myLeitner .ltn-levels>li[data-level="4"]{background:linear-gradient(160deg,#2A4B7B,#1B3258)}
#myLeitner .ltn-levels>li[data-level="5"]{background:radial-gradient(240px 140px at 100% 0,rgba(200,155,60,.32),transparent 70%),linear-gradient(160deg,#16294A,#0F1D33)}
#myLeitner .ltn-levels>li[data-level="4"] .what span,#myLeitner .ltn-levels>li[data-level="5"] .what span{color:#D5DBE6}
#myLeitner .ltn-levels>li[data-level="4"] .btn-outline,#myLeitner .ltn-levels>li[data-level="5"] .btn-outline{background:rgba(255,255,255,.08);color:#F3E7C9;border-color:rgba(243,231,201,.55);box-shadow:none}
#myLeitner .ltn-levels>li[data-level="4"] .btn-outline:hover,#myLeitner .ltn-levels>li[data-level="5"] .btn-outline:hover{background:rgba(255,255,255,.16)}

/* lists of cards and words: a quiet gold edge so a row reads as a card */
#myLeitner .ltn-list>li{padding:12px 0 12px 12px;border-left:3px solid rgba(200,155,60,.55);margin-top:8px;border-top:0;background:rgba(255,255,255,.7);border-radius:0 10px 10px 0;box-shadow:0 1px 0 rgba(15,29,51,.07)}
#myLeitner .ltn-list>li.ltn-none{border-left:0;background:none;box-shadow:none;padding-left:0}
#myLeitner .ltn-fine{color:#3F485B}

/* ------------------------------------------------------------------ account.html (same palette; it has no welcome strip, so the header carries the accent) */
body.profile-account header{background:linear-gradient(135deg,#0F1D33 0%,#1F3A63 100%);border-bottom:3px solid var(--gold);box-shadow:0 10px 24px -14px rgba(15,29,51,.55)}
body.profile-account .card>h2::before{content:"";display:inline-block;width:6px;height:16px;margin-right:9px;vertical-align:-2px;border-radius:3px;background:linear-gradient(180deg,#E2BE6A,#C89B3C)}
body.profile-account .sum-links a{border-color:rgba(168,129,29,.65);background:linear-gradient(180deg,#fff,#FCF7E8);box-shadow:0 1px 2px rgba(15,29,51,.06)}
body.profile-account .session{box-shadow:0 8px 16px -14px rgba(15,29,51,.6)}
body.profile-account .session.next{box-shadow:0 0 0 1px var(--gold),0 10px 18px -14px rgba(168,129,29,.8)}

/* Windows high-contrast and similar: drop the decoration, keep the borders */
@media (forced-colors:active){
  .hero,.card,#myLeitner>h2,#myLeitner .ltn-libbox,#myLeitner .ltn-levels>li{background:Canvas;color:CanvasText;border:1px solid CanvasText}
  .card::before,#myLeitner .ltn-boxes li::before,#myLeitner .ltn-boxes li::after,#myLeitner .ltn-libbox::after,#myLeitner .ltn-levels>li::before{display:none}
}
