/* sinaq-h9.css — /grade-9's answer-sheet design "Cavab vərəqi" (src/Home9.php, config home9_design): linked on that page only, every rule under .sq-h9
   (and html for the desk colour around the paper). Colours are the owner's mockup; the app's own variables are re-pointed at them, so the shared
   pieces (status line, sign-in slot, notes) take the page's look without a rule of their own.
   Barlow and Barlow Condensed: SIL OFL 1.1, see fonts/Barlow-OFL.txt. The two Condensed files are preloaded (Home9::PRELOADS), same URL. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display:swap; src: url(fonts/barlow-condensed-600.woff2?v=1) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display:swap; src: url(fonts/barlow-condensed-700.woff2?v=1) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display:swap; src: url(fonts/barlow-400.woff2?v=2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display:swap; src: url(fonts/barlow-600.woff2?v=2) format("woff2"); }
/* until Barlow arrives: a phone's own font scaled to Barlow's widths, so no line wraps differently and nothing jumps when it is swapped in */
@font-face { font-family: "H9 Cond"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"); size-adjust: 76%; }
@font-face { font-family: "H9 Text"; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular"), local("Helvetica Neue"), local("HelveticaNeue"); size-adjust: 93%; }
@font-face { font-family: "H9 Text"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"); size-adjust: 92%; }

.sq-h9 { --h9-red: #a80f3c; --h9-rule: #e2487a; --h9-tint: #fdeef3; --h9-lead: #24242a; --h9-gap: 26px;
  --bg: #fff; --card: #fff; --ink: #24242a; --muted: #55555e; --line: #e2487a; --mark: #24242a; --mark-d: #000; --blue: #0b6fd6; --blue-d: #a80f3c; --warn-bg: #fdeef3; --ok-bg: #fdeef3;
  position: relative; background: #fff; color: var(--h9-lead); font: 400 17px/1.45 Barlow, "H9 Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.sq-h9 :focus-visible { outline: 3px solid #0b6fd6; outline-offset: 2px; }
.sq-h9 :where(.h9-page, .h9-sheet-body, .sq-bottom) :where(h1, h2, p) { margin: 0; }

/* the punched holes down the left edge */
.sq-h9::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 11px; pointer-events: none;
  background: repeating-linear-gradient(var(--h9-lead) 0 8px, transparent 8px 40px); }

/* the header: logo, beta, sign-in, the burger at every width (the tabs carry the exams, the drawer everything else) */
.sq-h9 .sq-top { position: relative; flex-wrap: nowrap; gap: 6px; min-height: 58px; padding: 0 16px 0 32px; background: none; border: 0; font-size: 17px; }
/* the same logo cut to the size this page draws it at: 4 KB instead of 26 KB on a phone's first visit */
.sq-h9 .sq-logo { background-image: url(qebulol-logo-300.png); }
.sq-h9 .sq-beta { margin: 0; padding: 2px 6px; background: none; border: 1.5px solid var(--h9-rule); border-radius: 9px; color: var(--h9-red); font: 600 13px/1 Barlow, "H9 Text", system-ui, sans-serif; }
.sq-h9 .sq-site-nav { display: none; }
.sq-h9 .sq-top > .sq-auth { margin-left: auto; gap: 2px; }
.sq-h9 .sq-top > .sq-auth .sq-auth-reg, .sq-h9 .sq-top > .sq-auth .sq-auth-pw { display: none; }
.sq-h9 .sq-top > .sq-auth .sq-auth-login, .sq-h9 .sq-top > .sq-auth .sq-auth-out { padding: 0 8px; color: var(--h9-lead); font-weight: 600; }
.sq-h9 .sq-top > .sq-auth .sq-auth-out { color: var(--muted); }
.sq-h9 .sq-top > .sq-auth .sq-auth-name { min-width: 44px; max-width: 26vw; padding: 0 2px; color: var(--h9-lead); text-decoration: none; }
.sq-h9 .sq-menu-toggle { display: block; width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; color: transparent; font-size: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' fill='none' stroke='%2324242a' stroke-width='2.4'/%3E%3C/svg%3E") center / 24px no-repeat; }
.sq-h9 .sq-auth[hidden] + .sq-menu-toggle { margin-left: auto; }
@media (max-width: 340px) { .sq-h9 .sq-top:has(.sq-auth-name:not([hidden])) .sq-beta { display: none; } }

/* the drawer */
.sq-h9 .sq-menu-drawer { width: min(84vw, 340px); padding: 22px 20px; border-left: 6px solid var(--h9-red); font-size: 17px; }
.sq-h9 .sq-menu-backdrop { background: rgba(10, 20, 30, .55); }
.sq-h9 .sq-menu-close { display: flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; color: var(--h9-red); font-weight: 600; }
.sq-h9 .sq-menu-drawer nav a { min-height: 52px; padding: 0; border-bottom: 1.6px solid var(--h9-rule); border-radius: 0; font: 600 21px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .sq-menu-drawer a[aria-current] { background: none; color: var(--h9-red); font-weight: 700; }
.sq-h9 .sq-menu-auth { margin-top: 18px; padding: 0; border: 0; }
.sq-h9 .sq-menu-auth .sq-auth { margin: 0; gap: 8px; }
.sq-h9 .sq-menu-auth .sq-auth-login { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 25px; background: var(--h9-lead); color: #fff; font: 700 20px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .sq-menu-auth .sq-auth-reg, .sq-h9 .sq-menu-auth .sq-auth-out, .sq-h9 .sq-menu-auth .sq-auth-pw { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 2px solid var(--h9-lead); border-radius: 25px; background: #fff; color: var(--h9-lead); font: 700 20px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .sq-menu-auth .sq-auth-name { min-height: 44px; }

/* the page */
.sq-h9 .sq-main { max-width: none; padding: 0 16px 0 32px; overflow-x: clip; }
.sq-h9 .sq-switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; margin: 0 0 20px; overflow: visible; border-top: 2px solid var(--h9-red); border-bottom: 2px solid var(--h9-red); }
.sq-h9 .sq-switch a { display: flex; flex: none; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 0; border: 0;
  color: var(--h9-red); font: 600 16.5px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.sq-h9 .sq-switch a::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.6px solid var(--h9-rule); border-radius: 50%; }
.sq-h9 .sq-switch a[aria-current] { color: var(--h9-lead); font-weight: 700; }
.sq-h9 .sq-switch a[aria-current]::before { background: var(--h9-lead); border-color: var(--h9-lead); }
.sq-h9 .h9-hero h1 { margin: 0 0 14px; font: 700 9.35vw/1.05 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
@supports not (overflow: clip) { .sq-h9 .h9-hero h1 { white-space: normal; } }

/* the figure: its box is known before it draws (width and height on the svg, aspect-ratio here) */
.sq-h9 .h9-grid { display: block; width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 12px; }
.sq-h9 .h9-fig { max-width: 230px; margin-left: auto; margin-right: auto; }     /* owner 2026-11-05: the figure smaller on every exam, the button higher */
.sq-h9 .h9-bub { fill: none; stroke: var(--h9-rule); stroke-width: 1.7; }
.sq-h9 .h9-num { fill: var(--h9-red); font: 600 13px "Barlow Condensed", "H9 Cond", system-ui, sans-serif; text-anchor: middle; }
.sq-h9 .h9-mark { fill: var(--h9-lead); }
.sq-h9 .h9-mark ellipse { animation: h9-pencil .18s calc(.2s + var(--i) * 28ms) both cubic-bezier(.2, .8, .3, 1); }
@keyframes h9-pencil { from { opacity: 0; } to { opacity: 1; } }

.sq-h9 .h9-sum { margin: 12px 0 16px; color: var(--h9-red); font: 600 21px/1.2 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .h9-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; padding: 0 16px; border: 0; border-radius: 31px; background: var(--h9-lead); color: #fff;
  font: 700 26px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; cursor: pointer; transition: background .12s; }
.sq-h9 .h9-go:hover { background: #000; }
.sq-h9 .h9-free { margin-top: 16px; font-weight: 600; }
.sq-h9 .h9-wallet { margin-top: 16px; }
.sq-h9 .h9-wallet b { font-weight: 600; }
.sq-h9 .h9-wallet a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; color: var(--h9-red); font-weight: 600; }
.sq-h9 .h9-listen { margin-top: 10px; }
.sq-h9 .sq-pool-open { margin: 8px 0; padding: 10px 12px; background: var(--h9-tint); }
.sq-h9 .sq-pool-open .sq-btn { display: flex; width: max-content; margin-top: 6px; background: #fff; color: var(--h9-lead); }

/* the red strips over each part, and the answer rows under them */
.sq-h9 .h9-strip, .sq-h9 .sq-mine h2, .sq-h9 .sq-invite h2 { margin: var(--h9-gap) 0 0; padding: 7px 10px; background: var(--h9-red); color: #fff; font: 600 22px/1.15 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .h9-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 64px; padding: 0; border: 0; border-bottom: 1.6px solid var(--h9-rule); border-radius: 0;
  background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sq-h9 .h9-row::before { content: ""; width: 26px; height: 26px; border: 1.8px solid var(--h9-rule); border-radius: 50%; transition: background .12s, border-color .12s; }
.sq-h9 .h9-row:hover::before, .sq-h9 .h9-row:focus-visible::before, .sq-h9 .h9-row:active::before { background: var(--h9-lead); border-color: var(--h9-lead); }
.sq-h9 .h9-row b { display: block; font-size: 18.5px; font-weight: 600; line-height: 1.2; }
.sq-h9 .h9-row small { display: block; color: var(--muted); font-size: 14.5px; font-weight: 400; line-height: 1.3; }
.sq-h9 .h9-price { padding-left: 8px; color: var(--h9-red); font: 700 22px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; white-space: nowrap; }
.sq-h9 .h9-after { padding-top: 16px; }
.sq-h9 .h9-after b { color: var(--h9-red); font-weight: 600; }

/* Mənim nəticələrim */
.sq-h9 .sq-mine { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sq-h9 .sq-mine ul { margin: 0; padding: 0; list-style: none; }
.sq-h9 .sq-mine li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 4px 0; border-bottom: 1.6px solid var(--h9-rule); color: inherit; text-decoration: none; }
.sq-h9 .sq-mine li b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.sq-h9 .sq-mine p { padding-top: 10px; }
.sq-h9 .sq-mine p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--h9-red); font-weight: 600; }

/* buttons: graphite pills; the app's main button full, the others outlined */
.sq-h9 .sq-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 2px solid var(--h9-lead); border-radius: 25px; background: #fff; color: var(--h9-lead);
  font: 700 20px/1 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; text-align: center; text-decoration: none; }
.sq-h9 .sq-btn-main { background: var(--h9-lead); color: #fff; }
.sq-h9 .sq-btn-main:hover { background: #000; }
.sq-h9 .sq-top .sq-auth .sq-btn { padding: 0 20px; }

/* the invite panel */
.sq-h9 .sq-invite { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sq-h9 .sq-invite-rule { padding-top: 12px; color: inherit; }
.sq-h9 .sq-invite-progress { margin: 12px 0 0; font-weight: 400; }
.sq-h9 .sq-invite-acts { gap: 8px; margin: 12px 0 0; }
.sq-h9 .sq-invite-link { margin: 8px 0 0; overflow-wrap: anywhere; word-break: normal; }
.sq-h9 .sq-invite-link code { color: var(--h9-red); font: 600 15px Barlow, "H9 Text", system-ui, sans-serif; }
.sq-h9 .sq-ref-note { margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 0; background: var(--h9-tint); }

/* Şikayət / təklif */
.sq-h9 .sq-bottom { max-width: none; margin: var(--h9-gap) 16px 0 32px; padding: 0 0 20px; border-top: 2px solid var(--h9-red); }
.sq-h9 .sq-fb { display: flex; align-items: center; min-height: 48px; padding: 0; color: var(--h9-red); font-weight: 600; text-decoration: none; }
.sq-h9 .sq-fb-box textarea { padding: 10px; border: 1.8px solid var(--h9-rule); border-radius: 0; background: var(--h9-tint); color: var(--h9-lead); font: 400 17px/1.4 Barlow, "H9 Text", system-ui, sans-serif; }
.sq-h9 .sq-fb-box .sq-btn { justify-self: start; }

/* the start and no-credit screens as a sheet over the page */
.sq-h9 .h9-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sq-h9 .h9-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; padding: 0; border: 0; background: rgba(10, 20, 30, .55); cursor: pointer; }
.sq-h9 .h9-sheet-body { position: relative; width: 100%; max-width: 560px; max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 22px 20px 24px; border-top: 6px solid var(--h9-red); background: #fff; }
.sq-h9 .sq-sheet h2 { font: 700 32px/1.05 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .sq-sheet h2:focus { outline: none; }
.sq-h9 .sq-sheet .sq-card-meta { margin-top: 6px; color: var(--h9-red); font-size: inherit; font-weight: 600; }
.sq-h9 .sq-sheet .sq-lead { margin-top: 14px; padding: 10px 0; border-top: 1.6px solid var(--h9-rule); border-bottom: 1.6px solid var(--h9-rule); color: var(--h9-lead); font-size: 18.5px; font-weight: 600; }
.sq-h9 .sq-sheet .sq-note { margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: none; color: #44444c; font-size: 15.5px; }
.sq-h9 .sq-sheet-acts { flex-wrap: nowrap; gap: 8px; margin: 16px 0 0; }
.sq-h9 .sq-sheet-acts .sq-btn { min-height: 56px; border-radius: 28px; }
.sq-h9 .sq-sheet-acts .sq-pool-begin { flex: 1; font-size: 24px; }
.sq-h9 .sq-sheet > p > a.sq-btn { margin-top: 14px; }
.sq-h9 .sq-sheet > .sq-sheet-acts > a.sq-btn { margin-top: 0; }     /* Geri beside Başla, level with it */
.sq-h9 .sq-sheet .sq-invite h2 { font: 600 22px/1.15 "Barlow Condensed", "H9 Cond", system-ui, sans-serif; }
.sq-h9 .sq-pool-msg { margin-top: 12px; font-weight: 600; }
.sq-h9 .sq-pool-msg:empty { display: none; }
.sq-h9 .sq-pool-msg .sq-btn { display: flex; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .sq-h9 *, .sq-h9 *::before, .sq-h9 *::after { animation: none !important; transition: none !important; }
}

/* a wide screen: the paper on the desk, two columns */
@media (min-width: 768px) {
  html { background: #f7dbe5; }
  .sq-h9 { max-width: 1120px; margin: 28px auto; box-shadow: 0 1px 0 #d9b6c4; }
  .sq-h9::before { left: 18px; width: 14px; background: repeating-linear-gradient(var(--h9-lead) 0 9px, transparent 9px 42px); }
  .sq-h9 .sq-top { padding: 6px 36px 0 56px; }
  .sq-h9 .sq-main { padding: 0 36px 0 56px; }
  .sq-h9 .sq-bottom { margin: var(--h9-gap) 36px 0 56px; }
  .sq-h9 .sq-switch { justify-content: flex-start; gap: 28px; }
  .sq-h9 .sq-switch a { font-size: 19px; }
  .sq-h9 .h9-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; align-items: start; }
  .sq-h9 .h9-hero { grid-template-rows: auto 1fr; }
  .sq-h9 .h9-hero h1 { grid-column: 1; grid-row: 1; margin-bottom: 12px; font-size: clamp(50px, 6.6vw, 84px); line-height: .98; white-space: normal; }
  .sq-h9 .h9-fig { grid-column: 2; grid-row: 1 / span 2; }
  .sq-h9 .h9-lead { grid-column: 1; grid-row: 2; }
  .sq-h9 .h9-sum { font-size: 26px; }
  .sq-h9 .h9-sheet { align-items: center; }
}
