/* assets/general.css — GENERAL IELTS (/general), look "A · Post office" (gn1, 27 Nov 2026; gn4 28 Nov: coloured skill stamps that open their tests, Listening tickets, Speaking cue cards).
   Everything is scoped to #gn (prefix gn-). Day = default, night = html.dark (the site's switch).
   Fonts: the site's Inter and Orbitron (no new font). Motion stops when the phone asks for less motion. */

html:has(#gn) .cp { background-image: none; background-color: #f4f3fb; }
html.dark:has(#gn) .cp { background-color: #070b1c; }

#gn {
  --paper: #fffdf6; --note: #fbf3dc; --ink: #12102e; --sub: #45436a; --muted: #625f85;
  --line: #e7e2d3; --line2: #d8cfb4; --acc: #5235b8; --on: #ffffff; --stamp: #c2412d; --env: #fbf3dc;
  --kl: #1f6fc4; --kr: #5235b8; --kw: #b25a00; --ks: #0f8a5f;
  --te-bg: #e3efff; --te: #1d5fa8; --tw-bg: #fff0dc; --tw: #97510a; --tl-bg: #def6ea; --tl: #0b6e4b;
  --shadow: 0 14px 26px -18px rgba(18, 16, 46, .55);
  max-width: 1180px; margin: 0 auto; padding: 18px 0 56px;
  display: flex; flex-direction: column; gap: 20px; color: var(--ink);
}
html.dark #gn {
  --paper: #0f1430; --note: #1a1f45; --ink: #f2f3ff; --sub: #c9cbe8; --muted: #a4a6c8;
  --line: #262c55; --line2: #3a4178; --acc: #b6a2ff; --on: #12102e; --stamp: #ff8a70; --env: #1a1f45;
  --kl: #7cc4ff; --kr: #b6a2ff; --kw: #ffb86b; --ks: #6fe0b5;
  --te-bg: #24305f; --te: #9fd0ff; --tw-bg: #3a2a12; --tw: #ffc98a; --tl-bg: #14392d; --tl: #86ecc4;
  --shadow: 0 14px 26px -18px rgba(0, 0, 0, .9);
}
#gn a { color: inherit; text-decoration: none; }
#gn h1, #gn h2 { color: var(--ink); }

/* breadcrumb */
#gn .gn-crumb { display: flex; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
#gn .gn-crumb a:hover { color: var(--acc); }
#gn .gn-crumb span:last-child { color: var(--ink); }

/* the hero: a sheet of paper with a postmark and a floating envelope */
#gn .gn-hero { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; }
#gn .gn-mark { position: absolute; right: -30px; top: -34px; width: 140px; height: 140px; opacity: .3; fill: none; stroke: var(--stamp); stroke-width: 2.5;
  animation: gnSpin 24s linear infinite; }
#gn .gn-hero-txt { position: relative; display: flex; flex-direction: column; gap: 10px; }
#gn .gn-kick { font-family: Orbitron, Inter, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--acc); }
#gn h1 { margin: 0; font-size: 28px; line-height: 1.12; font-weight: 800; }
#gn h1 span { color: var(--acc); }
#gn .gn-lead { font-size: 15px; line-height: 1.55; color: var(--sub); max-width: 560px; }
#gn .gn-env { position: relative; width: 96px; height: 78px; margin-top: 6px; animation: gnFloat 4.5s ease-in-out infinite; }
#gn .gn-env .b { fill: var(--env); stroke: var(--ink); stroke-width: 2.5; }
#gn .gn-env .f { fill: none; stroke: var(--ink); stroke-width: 2.5; }
#gn .gn-env .s { fill: var(--stamp); }
#gn .gn-env .c { fill: var(--paper); }

/* the four skills: postage stamps, each in its own colour (gn4). Pressing one opens its tests under the stamps. */
#gn .gn-stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#gn .gn-stamp { --c: var(--kl); --c2: #0e4f96; --cs: #e6f1ff; position: relative; display: block; border-radius: 16px; padding: 6px;
  background: radial-gradient(circle at 6px 6px, transparent 4px, var(--c) 4.5px) -6px -6px / 14px 14px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; display: flex; }
#gn .gn-stamp > .gn-in { flex: 1; }
#gn .gn-stamp.k-r { --c: #5235b8; --c2: #36208a; --cs: #efeaff; }
#gn .gn-stamp.k-w { --c: #c25e00; --c2: #8a3f00; --cs: #fff1e0; }
#gn .gn-stamp.k-s { --c: #0f8a5f; --c2: #0a5e40; --cs: #e2f7ee; }
#gn .gn-stamp.k-l { --c: #1f6fc4; --c2: #0e4f96; --cs: #e6f1ff; }
html.dark #gn .gn-stamp.k-l { --c: #2f7fd6; --c2: #164a85; --cs: #12284a; }
html.dark #gn .gn-stamp.k-r { --c: #6a4ed6; --c2: #3b2694; --cs: #221a4a; }
html.dark #gn .gn-stamp.k-w { --c: #d4720f; --c2: #8a4300; --cs: #3a2710; }
html.dark #gn .gn-stamp.k-s { --c: #17a171; --c2: #0b5e41; --cs: #10342a; }
#gn .gn-stamp:hover, #gn .gn-stamp:focus-visible { transform: translateY(-3px) rotate(-1deg); }
#gn .gn-stamp:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#gn .gn-in { position: relative; overflow: hidden; border-radius: 10px; padding: 14px 12px 12px; min-height: 150px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: #fff;
  background: linear-gradient(155deg, var(--c), var(--c2)); border: 2px solid rgba(255, 255, 255, .35); }
#gn .gn-in::after { content: ""; position: absolute; right: -26px; top: -26px; width: 86px; height: 86px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 9px rgba(255, 255, 255, .08); }
#gn .gn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); margin-bottom: 6px; }
#gn .gn-stamp svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gn .gn-stamp b { font-size: 18px; font-weight: 800; line-height: 1.15; }
#gn .gn-cnt { font-family: Orbitron, Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .4px; }
#gn .gn-stamp small { font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .86); }
#gn .gn-tap { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; font-weight: 800;
  background: #fff; color: var(--c2); border-radius: 99px; padding: 0 10px 0 12px; }
#gn .gn-tap svg { width: 16px; height: 16px; stroke: var(--c2); stroke-width: 2.5; transition: transform .25s; }
#gn .gn-tap-c { display: none; }
#gn .gn-stamp.on { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--c), var(--shadow); }
#gn .gn-stamp.on .gn-tap-o { display: none; } #gn .gn-stamp.on .gn-tap-c { display: inline; }
#gn .gn-stamp.on .gn-tap svg { transform: rotate(180deg); }
#gn .gn-tap { position: relative; }
#gn .gn-in > * { position: relative; z-index: 1; }

/* the open skill: its cards under the stamps */
#gn [hidden] { display: none !important; }
#gn .gn-open { display: contents; }
#gn .gn-panel { --c: var(--kl); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; animation: gnRise .35s ease both;
  border-top: 4px solid var(--c); padding-top: 14px; }
#gn .gn-panel.k-r { --c: var(--kr); } #gn .gn-panel.k-w { --c: var(--kw); } #gn .gn-panel.k-s { --c: var(--ks); }
#gn .gn-ph { display: flex; flex-direction: column; gap: 6px; }
#gn .gn-ph h2 { margin: 0; font-size: 22px; font-weight: 800; }
#gn .gn-ph h2 span { font-size: 14px; font-weight: 700; color: var(--c); margin-left: 6px; }
#gn .gn-ph p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); }
#gn .gn-find { display: flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--paper); border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 12px; min-height: 46px; max-width: 420px; }
#gn .gn-find:focus-within { border-color: var(--c); }
#gn .gn-find svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
#gn .gn-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 15px/1.2 Inter, system-ui, sans-serif; height: 44px; }
#gn .gn-wait, #gn .gn-none { font-size: 14px; color: var(--muted); margin: 0; }
#gn .gn-wait a { color: var(--acc); text-decoration: underline; }
#gn .gn-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
#gn .gn-more button { min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--c); background: var(--paper); color: var(--ink); font: 800 15px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
#gn .gn-more .gn-all { border: 0; background: none; color: var(--muted); text-decoration: underline; font-weight: 700; font-size: 14px; }

/* a Listening card: a ticket */
#gn .gn-tix { position: relative; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 280px; }
#gn .gn-tix header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; background: linear-gradient(135deg, #1f6fc4, #0e4f96);
  border-bottom: 2px dashed rgba(255, 255, 255, .5); }
#gn .gn-tix header .gn-lab { color: #fff; opacity: .9; }
#gn .gn-tix header .gn-num { font-size: 30px; margin-left: auto; color: #fff; }
#gn .gn-tix header .gn-best { order: 3; }
#gn .gn-parts { list-style: none; margin: 0; padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
#gn .gn-parts li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--sub); }
#gn .gn-parts i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800;
  color: var(--te); background: var(--te-bg); }
#gn .gn-tix footer, #gn .gn-cue footer { padding: 10px 16px 14px; margin-top: auto; }
#gn .gn-tix .gn-go { background: #1f6fc4; color: #fff; }

/* a Speaking card: a cue card */
#gn .gn-cue { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
#gn .gn-cue header { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
#gn .gn-cue header .gn-lab { color: var(--ks); }
#gn .gn-cue header .gn-num { margin-left: auto; font-size: 30px; color: var(--ks); }
#gn .gn-card { margin: 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--tl-bg); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.35;
  border-left: 4px solid var(--ks); }
#gn .gn-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--tl); margin-bottom: 2px; }
#gn .gn-p13 { margin: 0 16px; font-size: 13px; line-height: 1.4; color: var(--sub); }
#gn .gn-p13 b { color: var(--ink); margin-right: 4px; }
#gn .gn-cue .gn-go { background: #0f8a5f; color: #fff; }
html.dark #gn .gn-tix .gn-go { background: #2f7fd6; } html.dark #gn .gn-cue .gn-go { background: #17a171; }

/* how General is different: three short notes */
#gn .gn-diff { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#gn .gn-diff li { background: var(--note); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--sub); }
#gn .gn-diff b { display: block; color: var(--ink); font-size: 14px; }

/* the two lists */
#gn .gn-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
#gn .gn-sec h2 { margin: 8px 0 0; font-size: 22px; font-weight: 800; }
#gn .gn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px 20px; }
#gn .gn-lab { font-family: Orbitron, Inter, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--acc); }
#gn .gn-num { font-family: Orbitron, Inter, sans-serif; font-size: 38px; font-weight: 800; line-height: 1.1; }
#gn .gn-best { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--tl-bg); color: var(--tl); }
#gn .gn-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: var(--acc); color: var(--on); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 0 16px; white-space: nowrap; }
#gn .gn-go span { transition: transform .2s; }
#gn .gn-go:hover span { transform: translateX(3px); }
#gn footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* "coming soon" */
#gn .gn-soon { border: 2px dashed var(--line2); border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
#gn .gn-soon svg { width: 32px; height: 32px; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gn .gn-soon b { font-size: 16px; }
#gn .gn-soon span { font-size: 14px; color: var(--muted); }

/* a Reading card: a note pinned to the board */
#gn .gn-note { position: relative; background: var(--note); border-radius: 6px 18px 18px 18px; padding: 26px 16px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; animation: gnRise .5s cubic-bezier(.2, .8, .2, 1) both; }
#gn .gn-note:nth-child(3n+1) { transform: rotate(-.5deg); } #gn .gn-note:nth-child(3n+2) { transform: rotate(.4deg); }
#gn .gn-pin { position: absolute; top: -10px; left: 22px; width: 22px; height: 30px; transform-origin: 50% 100%; animation: gnWob 3s ease-in-out infinite; }
#gn .gn-pin circle { fill: var(--stamp); } #gn .gn-pin path { stroke: var(--ink); stroke-width: 2; }
#gn .gn-note header { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 10px; }
#gn .gn-note header .gn-lab { flex: 0 0 100%; }
#gn .gn-note header .gn-best { margin: 0 0 8px auto; }
#gn .gn-secs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#gn .gn-secs li { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 10px; padding: 8px 10px; }
#gn .gn-tag { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; }
#gn .t-e { background: var(--te-bg); color: var(--te); } #gn .t-w { background: var(--tw-bg); color: var(--tw); } #gn .t-l { background: var(--tl-bg); color: var(--tl); }
#gn .gn-t { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--sub); }
#gn .gn-q { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }

/* a Writing card: an envelope */
#gn .gn-env-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; animation: gnRise .5s cubic-bezier(.2, .8, .2, 1) both; }
#gn .gn-flap { display: block; width: 100%; height: 46px; }
#gn .gn-flap path { fill: var(--env); stroke: var(--line); stroke-width: 1.5; }
#gn .gn-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
#gn .gn-body header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#gn .gn-post { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--stamp); border: 2px solid var(--stamp); border-radius: 6px; padding: 3px 7px; transform: rotate(-4deg); white-space: nowrap; }
#gn .gn-t1 { background: var(--note); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--sub); }
#gn .gn-t2 { font-size: 13.5px; line-height: 1.45; color: var(--sub); flex: 1; }
#gn .gn-t1 b, #gn .gn-t2 b { color: var(--ink); }
#gn .gn-body footer .gn-best { margin-right: 4px; }

/* the sign-in line keeps the site's style; only the gap around it */
#gn .cp-note { margin: 0; }

/* laptop */
@media (min-width: 760px) {
  #gn { padding-top: 26px; gap: 24px; }
  #gn .gn-hero { padding: 40px 44px; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; }
  #gn .gn-mark { width: 200px; height: 200px; right: -40px; top: -50px; }
  #gn h1 { font-size: 44px; line-height: 1.1; }
  #gn .gn-lead { font-size: 16px; }
  #gn .gn-env { width: 230px; height: 188px; margin: 0; justify-self: center; }
  #gn .gn-stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  #gn .gn-in { padding: 18px 16px 14px; min-height: 176px; }
  #gn .gn-stamp b { font-size: 20px; }
  #gn .gn-ph h2 { font-size: 26px; }
  #gn .gn-diff { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  #gn .gn-sec h2 { font-size: 24px; }
}

@keyframes gnFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes gnSpin { to { transform: rotate(360deg); } }
@keyframes gnWob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes gnRise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  #gn .gn-env, #gn .gn-mark, #gn .gn-pin, #gn .gn-note, #gn .gn-env-card { animation: none; }
  #gn .gn-stamp, #gn .gn-go span, #gn .gn-tap svg { transition: none; }
  #gn .gn-panel { animation: none; }
}
html.lk-lite #gn .gn-env, html.lk-lite #gn .gn-mark, html.lk-lite #gn .gn-pin { animation: none; }
