/* The card of the flashcards and of the parsing drill (Daniel, 2026-11-18: "can all the flashcards and parsing drill
   cards be made the same size, something in between. and ... some subtle golden ornamentation on the margin").
   Written by a script for the preview; one card size for both pages, and the ornament in the card's margin only. */
:root { --hb-card-w: 760px; --hb-card-h: clamp(380px, 58vh, 520px); }
.hb-card { position: relative; box-sizing: border-box; width: 100%; max-width: var(--hb-card-w); margin-left: auto; margin-right: auto; }

/* Daniel's pick (2026-11-18, option B): the tagin crown, small and upright, in the four corners of the card, each with a
   short scroll line along the edges; in the margin only, never on the Hebrew or the text */
.hb-card::after { content: ""; position: absolute; inset: 7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(3 3) scale(.62)' fill='%23b0850f' opacity='0.6'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M26 6 C32 6 36 4 41 6 M6 30 C6 34 4 37 6 41' fill='none' stroke='%23b0850f' stroke-opacity='0.6' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") left top / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(20 3) scale(.62)' fill='%23b0850f' opacity='0.6'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M18 6 C12 6 8 4 3 6 M38 30 C38 34 40 37 38 41' fill='none' stroke='%23b0850f' stroke-opacity='0.6' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") right top / 44px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(3 22) scale(.62)' fill='%23b0850f' opacity='0.6'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M26 38 C32 38 36 40 41 38 M6 14 C6 10 4 7 6 3' fill='none' stroke='%23b0850f' stroke-opacity='0.6' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(20 22) scale(.62)' fill='%23b0850f' opacity='0.6'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M18 38 C12 38 8 40 3 38 M38 14 C38 10 40 7 38 3' fill='none' stroke='%23b0850f' stroke-opacity='0.6' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") right bottom / 44px no-repeat; }

/* Daniel's pick (2026-11-18, option B): the tagin crown, small and upright, in the four corners of the card, each with a
   short scroll line along the edges; in the margin only, never on the Hebrew or the text */
:root[data-theme="dark"] .hb-card::after { content: ""; position: absolute; inset: 7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(3 3) scale(.62)' fill='%23c9a54a' opacity='0.5'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M26 6 C32 6 36 4 41 6 M6 30 C6 34 4 37 6 41' fill='none' stroke='%23c9a54a' stroke-opacity='0.5' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") left top / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(20 3) scale(.62)' fill='%23c9a54a' opacity='0.5'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M18 6 C12 6 8 4 3 6 M38 30 C38 34 40 37 38 41' fill='none' stroke='%23c9a54a' stroke-opacity='0.5' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") right top / 44px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(3 22) scale(.62)' fill='%23c9a54a' opacity='0.5'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M26 38 C32 38 36 40 41 38 M6 14 C6 10 4 7 6 3' fill='none' stroke='%23c9a54a' stroke-opacity='0.5' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='translate(20 22) scale(.62)' fill='%23c9a54a' opacity='0.5'%3E%3Cpath d='M5.85 22.4 L6.48 12.6 L7.52 12.6 L8.15 22.4 Z'/%3E%3Cpath d='M3.6 12.4 C5 8.6 9.6 8.4 10.4 10.6 C9 13.6 5.4 14.2 3.6 12.4 Z'/%3E%3Cpath d='M13.85 22.4 L14.48 6.6 L15.52 6.6 L16.15 22.4 Z'/%3E%3Cpath d='M11.6 6.4 C13 2.6 17.6 2.4 18.4 4.6 C17 7.6 13.4 8.2 11.6 6.4 Z'/%3E%3Cpath d='M21.85 22.4 L22.48 12.6 L23.52 12.6 L24.15 22.4 Z'/%3E%3Cpath d='M19.6 12.4 C21 8.6 25.6 8.4 26.4 10.6 C25 13.6 21.4 14.2 19.6 12.4 Z'/%3E%3Cpath d='M3 21.6 L26 21.1 C27.6 21.1 28.2 22 28.2 23.4 L27.4 28.2 L25.4 25.6 L3 25.8 Z'/%3E%3C/g%3E%3Cpath d='M18 38 C12 38 8 40 3 38 M38 14 C38 10 40 7 38 3' fill='none' stroke='%23c9a54a' stroke-opacity='0.5' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") right bottom / 44px no-repeat; }

/* a phone: a card that fits with its buttons, a slimmer margin */
@media (max-width: 640px) { :root { --hb-card-h: min(470px, 56vh); } }
