/* Word Connections: on top of the Patterns look (../patterns/patterns.css), the trees, word cards and building pieces */
.heb { font-family: "Noto Serif Hebrew", "Times New Roman", serif; direction: rtl; unicode-bidi: isolate; }
.grk { font-family: "Noto Serif", Georgia, serif; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.chips button { padding: 6px 13px; }
.lbl { font: 400 22px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; color: var(--aqua); margin: 14px 0 6px; }
.say { color: var(--yellow); font-weight: 700; }
.note { font-size: 16px; line-height: 1.5; opacity: .92; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--aqua); font-weight: 700; }
details.more p, details.more li { font-size: 15px; line-height: 1.5; }

/* the language tree: the root on top, its relatives below, joined by lines drawn in the kind's own style */
.tree { position: relative; margin: 10px 0 4px; }
.tree svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rootbox { position: relative; display: block; margin: 14px 0 0; width: min(100%, 300px); text-align: center; background: var(--deep); border: 3px solid var(--yellow); border-radius: 16px; padding: 10px 12px; color: var(--mist); }
.rootbox .w { font: 700 34px/1.1 "Atkinson Hyperlegible", sans-serif; color: var(--yellow); }
.rootbox .m { font-size: 16px; }
.kids { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .kids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* each language hangs straight off Latin's trunk on its own branch: they are sisters, none comes from another */
#kids { grid-template-columns: 1fr; gap: 10px; padding-left: 46px; max-width: 460px; }
#kids .wbox { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 14px; }
.wbox { display: block; width: 100%; text-align: center; background: var(--aqua); color: var(--plum); border: 3px solid var(--aqua); border-radius: 14px; padding: 8px 6px; cursor: pointer; font: inherit; }
.wbox .w { font-weight: 800; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.wbox .l { font-size: 14px; }
.wbox[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }
.wbox.borrowed { background: #f4ef9c; border-color: #f4ef9c; }
.wbox.related { background: #ffc9e0; border-color: #ffc9e0; }
.engrow { margin-top: 26px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; margin: 12px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 30px; border-top: 3px solid var(--aqua); }
.legend i.borrowed { border-top: 3px dashed var(--yellow); }
.legend i.related { border-top: 3px dotted var(--pink); }
.detail { margin-top: 14px; background: var(--deep); border: 2px solid var(--yellow); border-radius: 16px; padding: 12px 14px; }
.detail h3 { margin: 0 0 4px !important; color: var(--yellow) !important; font-size: 28px !important; }
.detail p { margin: 4px 0 !important; }

/* Build a Word */
.pieces { display: flex; gap: 6px; flex-wrap: wrap; }
.pieces button { padding: 6px 12px; font-size: 17px; }
.pieces button small { display: block; font-size: 12px; opacity: .8; font-weight: 400; }
.made { margin-top: 14px; text-align: center; background: var(--deep); border: 2px solid var(--yellow); border-radius: 16px; padding: 14px; min-height: 120px; }
.made .big { font: 700 34px/1.1 "Atkinson Hyperlegible", sans-serif; color: var(--yellow); overflow-wrap: anywhere; }
.made .big b { color: var(--aqua); }
.found { font-size: 15px; opacity: .85; text-align: center; margin-top: 6px; }
.rootsTable { width: 100%; border-collapse: collapse; font-size: 16px; }
.rootsTable td { padding: 6px 4px; border-top: 1px solid rgba(147, 204, 211, .3); vertical-align: top; }
.rootsTable td:first-child { font-weight: 800; color: var(--yellow); }

/* Hebrew */
.alefbet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; direction: rtl; }
@media (min-width: 640px) { .alefbet { grid-template-columns: repeat(11, minmax(0, 1fr)); } }
.alefbet button { padding: 4px 0 2px; border-radius: 12px; background: #fff4dc; color: var(--plum); border: 2px solid #fff4dc; display: grid; justify-items: center; }
.alefbet button .heb { font-size: 30px; line-height: 1.25; }
.alefbet button small { font-size: 11px; direction: ltr; }
.alefbet button[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }
.hroot { text-align: center; background: var(--deep); border: 3px solid var(--yellow); border-radius: 16px; padding: 10px; margin: 6px 0 14px; }
.hroot .heb { font-size: 46px; color: var(--yellow); line-height: 1.3; }
.hword { background: rgba(20, 6, 26, .35); border: 2px solid var(--aqua); border-radius: 16px; padding: 10px 14px; margin: 0 0 12px; }
.hword .top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hword .heb { font-size: 38px; color: var(--yellow); line-height: 1.3; }
.hword .tr { font-weight: 800; font-size: 22px; }
.verse { margin: 8px 0 0; padding: 8px 10px; border-left: 4px solid var(--yellow); background: rgba(20, 6, 26, .35); border-radius: 0 10px 10px 0; font-size: 16px; line-height: 1.5; }
.verse cite { display: block; font-style: normal; font-weight: 700; color: var(--aqua); font-size: 14px; }
.verse mark { background: var(--yellow); color: var(--plum); border-radius: 4px; padding: 0 3px; font-weight: 700; }

/* the fun name first, then what it is */
.tile .kicker { margin: 0 0 8px; font: 400 21px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .05em; color: var(--mist); opacity: .85; }
