/* One grammar card. Every size is in container units (cqw), so the same card
   is a thumbnail in the grid, a page in the viewer and a 1080x1350 PNG. */
.gc {
  --gc-ink: #1c2036;
  --gc-ink-2: #4b4f63;
  --gc-cherry: #8f1f33;
  --gc-cherry-soft: #f5e6e4;
  --gc-gold: #c99a3c;
  --gc-gold-soft: #f3e3bd;
  --gc-green: #1f6b55;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 2.4cqw;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 230, 228, .9), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(243, 227, 189, .55), transparent 40%),
    #fbf6ee;
  color: var(--gc-ink);
  font-family: 'Manrope', system-ui, sans-serif;
  box-sizing: border-box;
  text-align: left;
}
.gc *, .gc *::before, .gc *::after { box-sizing: border-box; }
/* The same look on the site page (styles.css) and in the PNG and PDF (no site CSS) */
.gc { line-height: 1.3; letter-spacing: normal; }
.gc p, .gc ul, .gc li, .gc h3, .gc table { margin-top: 0; }
.gc td, .gc th { line-height: 1.3; }
.gc-frame {
  position: absolute; inset: 3.2cqw; padding: 4.2cqw 5.6cqw 2.6cqw;
  border: .16cqw solid rgba(201, 154, 60, .75);
  border-radius: 1.2cqw;
  display: flex; flex-direction: column;
}
.gc-frame::before { content: ''; position: absolute; inset: .9cqw; border: .1cqw solid rgba(201, 154, 60, .38); border-radius: .8cqw; pointer-events: none; }
.gc-corner { position: absolute; width: 2cqw; height: 2cqw; background: #fbf6ee; }
.gc-corner::after { content: ''; position: absolute; left: .45cqw; top: .45cqw; width: 1.1cqw; height: 1.1cqw; background: var(--gc-gold); transform: rotate(45deg); }
.gc-corner.tl { left: -1cqw; top: -1cqw; } .gc-corner.tr { right: -1cqw; top: -1cqw; }
.gc-corner.bl { left: -1cqw; bottom: -1cqw; } .gc-corner.br { right: -1cqw; bottom: -1cqw; }

.gc-title { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 7.2cqw; line-height: .95; color: var(--gc-cherry); letter-spacing: -.01em; }
.gc-title span { font-size: 3.8cqw; color: var(--gc-ink-2); margin-left: 1.6cqw; font-weight: 500; }
/* .gc p resets margin-top, so the subtitle needs the longer selector */
.gc .gc-ua { margin: 1.25cqw 0 0; font-size: 2.15cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-ink-2); }

.gc-rule { position: relative; height: 1px; margin: 1.7cqw 0 1.9cqw; background: linear-gradient(90deg, rgba(201,154,60,.8), rgba(201,154,60,.15)); }
.gc-rule i { position: absolute; left: 0; top: 50%; width: 1.1cqw; height: 1.1cqw; margin-top: -.55cqw; background: var(--gc-gold); transform: rotate(45deg); }

.gc-label { display: block; margin: 0 0 .8cqw; font-size: 1.6cqw; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gc-gold); }
.gc-use { margin: 0 0 2cqw; padding: 0; list-style: none; }
.gc-use li { position: relative; padding-left: 2.4cqw; font-size: 2.5cqw; line-height: 1.4; color: var(--gc-ink-2); margin-bottom: .45cqw; }
.gc-use li::before { content: ''; position: absolute; left: .2cqw; top: 1.35cqw; width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--gc-cherry); opacity: .75; }
.gc i { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.12em; color: var(--gc-ink); }

.gc-forms { margin: 0 0 2.2cqw; padding: 1.2cqw 1.9cqw; background: #fff; border: .12cqw solid rgba(201, 154, 60, .45); border-radius: 1.6cqw; }
.gc-forms p { display: flex; align-items: center; gap: 1.5cqw; margin: 0; padding: .7cqw 0; font-size: 2.55cqw; line-height: 1.3; }
.gc-forms p + p { border-top: .1cqw dashed rgba(201, 154, 60, .45); }
.gc-sign { flex: none; width: 3.5cqw; height: 3.5cqw; border-radius: 50%; background: var(--gc-cherry); color: #fbf6ee; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.2cqw; line-height: 1; }
.gc-sign.wide { width: auto; min-width: 3.5cqw; padding: 0 1.1cqw; border-radius: 1.8cqw; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 2.5cqw; }
.gc b { font-weight: 800; color: var(--gc-cherry); }
/* An ending we add (work-s, work-ing): bigger and heavier than the word */
.gc b.end { font-size: 1.2em; line-height: .8; letter-spacing: .01em; }

.gc-table { width: 100%; margin: 0 0 2.2cqw; border-collapse: collapse; background: #fff; border: .12cqw solid rgba(201, 154, 60, .45); border-radius: 1.6cqw; overflow: hidden; font-size: 2.45cqw; }
.gc-table th, .gc-table td { padding: .42cqw 1.9cqw; text-align: left; border-bottom: .1cqw dashed rgba(201, 154, 60, .45); }
.gc-table tr:last-child th, .gc-table tr:last-child td { border-bottom: 0; }
.gc-table th { width: 26%; color: var(--gc-ink-2); font-weight: 600; }
.gc-table td { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.22em; color: var(--gc-cherry); }
.gc-table tr:first-child th:empty + td, .gc-table tr:first-child th:empty ~ td { font-family: 'Manrope', sans-serif; font-style: normal; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-gold); }
.gc-table .gc-plain { font-family: 'Manrope', system-ui, sans-serif; font-style: normal; font-weight: 600; font-size: .78em; color: var(--gc-ink); }
.gc-table .gc-ipa { font-family: 'Manrope', system-ui, sans-serif; font-style: normal; font-weight: 500; font-size: .78em; letter-spacing: .02em; color: var(--gc-ink-2); }

.gc-ex { margin: 0 0 1.8cqw; padding: 0; list-style: none; }
.gc-ex li { position: relative; margin-bottom: .8cqw; padding-left: 2.4cqw; border-left: .3cqw solid var(--gc-gold-soft); }
.gc-en { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 3.25cqw; line-height: 1.12; color: var(--gc-ink); }
.gc-tr { display: block; font-size: 2.1cqw; color: var(--gc-ink-2); margin-top: .2cqw; }

.gc-markers { display: flex; flex-wrap: wrap; align-items: center; gap: .6cqw; margin: 0 0 1.4cqw; }
.gc-markers .gc-label { margin: 0 .6cqw 0 0; }
.gc-chip { font-size: 2cqw; padding: .35cqw 1.3cqw; border-radius: 3cqw; background: var(--gc-cherry-soft); color: #6e1526; font-weight: 600; }
/* Markers with a translation: label on its own line, "always завжди" */
.gc-markers.tr { gap: .8cqw .7cqw; }
.gc-markers.tr .gc-label { width: 100%; margin: 0 0 .1cqw; }
.gc-chip small { margin-left: .9cqw; padding-left: .9cqw; border-left: .1cqw solid rgba(143, 31, 51, .25); font-size: .88em; font-weight: 500; color: var(--gc-ink-2); }
.gc-note { margin: 0 0 1.6cqw; font-size: 2.4cqw; color: var(--gc-ink-2); padding: .9cqw 1.6cqw; background: var(--gc-cherry-soft); border-radius: 1.4cqw; }

.gc-mistake { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4cqw 2.2cqw; padding: 1.1cqw 1.9cqw; border-radius: 1.6cqw; background: #fff; border: .12cqw solid rgba(201, 154, 60, .45); }
.gc-mistake .gc-label { width: 100%; margin: 0; }
.gc-wrong, .gc-right { display: inline-flex; align-items: center; gap: 1.1cqw; }
.gc-wrong { font-size: 2.5cqw; color: var(--gc-ink-2); }
.gc-right { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 700; font-size: 3.2cqw; color: var(--gc-green); }
.gc-x, .gc-v { position: relative; flex: none; display: inline-block; width: 3cqw; height: 3cqw; border-radius: 50%; }
.gc-x { background: #c0392b; }
.gc-x::before, .gc-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.7cqw; height: .34cqw; margin: -.17cqw 0 0 -.85cqw; background: #fff; border-radius: .2cqw; transform: rotate(45deg); }
.gc-x::after { transform: rotate(-45deg); }
.gc-v { background: var(--gc-green); }
.gc-v::after { content: ''; position: absolute; left: 1.05cqw; top: .6cqw; width: .8cqw; height: 1.45cqw; border: solid #fff; border-width: 0 .34cqw .34cqw 0; transform: rotate(45deg); }

/* Footer: QR to more cards, the logo, level and number */
.gc-foot { display: flex; align-items: center; gap: 1.7cqw; margin-top: 1.2cqw; padding-top: 1.2cqw; border-top: .1cqw solid rgba(201, 154, 60, .32); }
.gc-qr { flex: none; width: 7.6cqw; height: 7.6cqw; padding: .5cqw; background: #fff; border: .1cqw solid rgba(201, 154, 60, .55); border-radius: .9cqw; }
.gc-qr svg, .gc-logo svg { display: block; width: 100%; height: auto; }
.gc-more { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .6cqw; }
.gc-more-t { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 700; font-size: 3cqw; line-height: 1; color: var(--gc-cherry); }
.gc-more-c { font-size: 1.85cqw; font-weight: 600; line-height: 1.1; color: var(--gc-ink); }
.gc-more-u { font-size: 1.45cqw; letter-spacing: .1em; line-height: 1; color: rgba(75, 79, 99, .75); }
.gc-mark { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1cqw; }
.gc-logo { display: block; width: 14cqw; }
.gc-num { font-size: 1.45cqw; font-weight: 800; letter-spacing: .2em; line-height: 1; color: var(--gc-gold); }

/* Tile schemes: every word on its own tile, like the school's classroom charts.
   .s is the part only he, she, it get, .a the helper words, .e an empty slot. */
/* Blocks share the free height evenly; notes and footer sit at the bottom */
.gt-body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.gt-block { margin: 0 0 1.7cqw; }
.gt-dia { flex: none; width: 1.5cqw; height: 1.5cqw; margin: 0 .8cqw; background: var(--gc-gold); transform: rotate(45deg); }
.gt-h { align-self: end; padding: 0 0 .2cqw; text-align: center; font-size: 1.4cqw; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gc-gold); }
/* Schemes with few rows get bigger tiles (size: 'roomy'), long ones smaller (size: 'dense') */
.gc-roomy .gt { height: 7.6cqw; font-size: 4.6cqw; }
.gc-roomy .gt.p { font-size: 2.9cqw; }
.gc-roomy .gt.s { font-size: 6.2cqw; }
.gc-roomy .gt-grid { gap: 1cqw; }
/* Few rows of long phrases (conditionals): taller tiles, the text a little bigger */
.gc-airy .gt { height: 7.2cqw; font-size: 4.2cqw; }
.gc-airy .gt.s { font-size: 5cqw; }
.gc-airy .gt-grid { gap: 1cqw; }
/* A full table on one card (passive in every tense): small tiles, tight blocks */
.gt-lab { display: flex; align-items: center; justify-content: flex-start; padding-left: .3cqw; font-family: 'Manrope', system-ui, sans-serif; font-size: 1.75cqw; font-weight: 700; color: var(--gc-ink-2); white-space: nowrap; }
.gt-grid.tall .gt { height: auto; min-height: 6.2cqw; padding: .55cqw .8cqw; }
.gt-2l { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.gt-2l > span { font-size: 1.2em; }
.gt-2l small { margin-top: .3cqw; font-size: .66em; font-weight: 600; letter-spacing: .02em; opacity: .92; }
.gc-tight .gt { height: 4.8cqw; font-size: 2.9cqw; }
.gc-tight .gt.p { font-size: 2.1cqw; }
.gc-tight .gt.s { font-size: 2.45cqw; font-family: 'Manrope', system-ui, sans-serif; font-style: normal; font-weight: 800; }
.gc-tight .gt-grid { gap: .55cqw; }
.gc-tight .gt-block { margin-bottom: 1cqw; }
.gc-tight .gt-head { margin-bottom: .6cqw; }
.gc-dense .gt { height: 4.9cqw; font-size: 3.5cqw; }
.gc-dense .gt.p { font-size: 2.4cqw; }
.gc-dense .gt.s { font-size: 4.2cqw; }
.gt-head { display: flex; align-items: center; gap: 1.2cqw; margin: 0 0 .9cqw; font-size: 1.6cqw; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gc-gold); }
.gt-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 154, 60, .6), rgba(201, 154, 60, 0)); }
.gt-head .gc-sign { width: 3.1cqw; height: 3.1cqw; font-size: 2cqw; }
.gt-grid { display: grid; gap: .75cqw; }
.gt { position: relative; display: flex; align-items: center; justify-content: center; height: 5.7cqw; padding: 0 .8cqw; border-radius: 1cqw; background: #f6ecdc; border: .1cqw solid rgba(201, 154, 60, .3); font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 3.9cqw; line-height: 1; color: var(--gc-ink); white-space: nowrap;
  box-shadow: inset 0 .16cqw 0 rgba(255, 255, 255, .8), 0 .3cqw .7cqw rgba(110, 72, 30, .07); }
.gt.p { font-family: 'Manrope', system-ui, sans-serif; font-style: normal; font-weight: 600; font-size: 2.55cqw; color: var(--gc-ink-2); letter-spacing: .01em; }
.gt.p.f { background: #f2e0b8; border-color: rgba(201, 154, 60, .5); color: var(--gc-ink); }
.gt-dot { white-space: pre; color: var(--gc-gold); font-weight: 800; }
.gt.a { background: var(--gc-cherry-soft); border-color: rgba(143, 31, 51, .16); color: var(--gc-cherry); font-weight: 700; }
.gt.s { background: linear-gradient(165deg, #a02a40, var(--gc-cherry) 55%, #7a1729); border-color: #7a1729; color: #fbf6ee; font-weight: 700; font-size: 5.6cqw; box-shadow: inset 0 .16cqw 0 rgba(255, 255, 255, .18), 0 .6cqw 1.5cqw rgba(143, 31, 51, .25); }
/* a fine gold line inside the cherry tiles, like a hotel key card */
.gt.s::after { content: ''; position: absolute; inset: .45cqw; border: .1cqw solid rgba(243, 227, 189, .55); border-radius: .6cqw; pointer-events: none; }
/* Two tiles glued into one word: work + s */
.gt-word { display: grid; grid-template-columns: 1.6fr 1fr; gap: .25cqw; }
.gt-word.short { grid-template-columns: 2.6fr 1fr; }
.gt-word > .gt:first-child { border-top-right-radius: .2cqw; border-bottom-right-radius: .2cqw; }
.gt-word > .gt:last-child { border-top-left-radius: .2cqw; border-bottom-left-radius: .2cqw; }
/* Read as one word: the stem leans right, the ending left, close to the seam.
   The ending is only a little bigger and lifted a touch, so both sit on one
   baseline; its gold inner line stays open on the seam side. */
.gt-word > .gt:first-child { justify-content: flex-end; padding-right: .45cqw; }
.gt-word > .gt:last-child { justify-content: flex-start; padding-left: .3cqw; }
.gt-word > .gt.s { font-size: 4.6cqw; padding-bottom: .45cqw; }
.gt-word > .gt.s::after { left: 0; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gc .gt-hint { order: 3; margin-left: 1cqw; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 2.85cqw; letter-spacing: 0; text-transform: none; color: var(--gc-cherry); }
.gt.e { background: transparent; border: .14cqw dashed rgba(201, 154, 60, .5); box-shadow: none; }
.gt-q { color: var(--gc-gold); margin-left: .06em; }
/* An arrow or sign between tiles, without a tile of its own */
.gt-sym { display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 4.4cqw; color: var(--gc-gold); }
.gt-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; margin: .2cqw 0 0; }
.gt-notes p { margin: 0; padding: .9cqw 1.4cqw; background: #fff; border: .12cqw solid rgba(201, 154, 60, .45); border-radius: 1.4cqw; font-size: 2.3cqw; line-height: 1.45; color: var(--gc-ink-2); }
.gt-notes .gc-label { margin-bottom: .4cqw; }
