/* GORJE-221: Domen's questionnaire (Moja družina, /sportnik, /klub-soglasja) and the open page /tekmovalci.
   Built from the site's own pieces (kartica, gumb, vnos, znacka, cip, kolo, md-razkrij); this file adds layout only. */

/* the folding row in the 3 closed places */
.pd-telo { gap: 0.75rem; }
.pd-stanje { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0; }
.pd-opomba { background: var(--led); border-radius: var(--r-plosca); padding: 0.75rem; margin: 0; }
.pd-odgovori { display: grid; gap: 0.25rem; margin: 0; }
.pd-odgovori dt { margin-top: 0.5rem; }
.pd-odgovori dt:first-child { margin-top: 0; }
.pd-odgovori dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pd-gumbi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.pd-vprasaj { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; width: 100%; }
.pd-vprasaj p { flex-basis: 100%; margin: 0; }
.pd-obrazec { display: grid; gap: 1rem; }
.pd-obrazec .polje { margin: 0; }
/* short answers get a short field, longer ones more lines (the site's textarea is 7.5rem for letters) */
.pd-obrazec textarea.vnos { resize: vertical; }
.pd-obrazec textarea.vnos.pd-vrst-1 { height: 3.25rem; }
.pd-obrazec textarea.vnos.pd-vrst-2 { height: 4.75rem; }
.pd-obrazec textarea.vnos.pd-vrst-3 { height: 6.25rem; }
.pd-obrazec .namig:empty { display: none; }
/* GORJE-582: the example sits under its question, close to it (one group: question + example + field) */
.pd-obrazec .polje > label + .namig { margin-top: -0.3rem; margin-bottom: 0; }
.pd-obrazec .pd-uvod { margin: 0; max-width: 40rem; }
.pd-objavi { margin: 0; }
.sg-otrok .md-razkrij { margin-top: 0.75rem; }
.ot-predstavitev .md-razkrij { border-top: 0; }

/* GORJE-448 (Kir 11.11.2026, variant C): on the child's own page /sportnik a page of a friendship book - the group's Svizec as a
   photo on tape, the first name in hand, the answers «written by hand» on the lines of a notebook. Patrick Hand comes with otrok.css
   (Svizec's balloons). Two pages side by side from 64rem, one under the other below. Only /sportnik: Moja družina and the coach keep the row. */
.pd-album { --pd-roka: "Patrick Hand", "Comic Neue", "Chalkboard SE", cursive; --pd-crnilo: #2E211B; --pd-papir: #FFFDF6;
  display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-kartica); background: var(--pd-papir); box-shadow: var(--senca-kartica); overflow: hidden; }
.pd-album-list { --pd-rob: clamp(1.5rem, 4vw, 2.75rem); padding: var(--pd-rob); min-width: 0; }
.pd-album-levo { display: grid; gap: .75rem; justify-items: center; align-content: start; text-align: center; }
.pd-album-foto { position: relative; margin: .5rem 0 .25rem; padding: .6rem .6rem 0; background: var(--bela); rotate: -3deg;
  box-shadow: 0 10px 24px -14px rgba(39, 66, 84, .45), 0 1px 3px rgba(39, 66, 84, .12); }
.pd-album-foto img { display: block; width: clamp(9rem, 30vw, 12rem); height: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; background: var(--dogodek-tekma); }
.pd-album-foto figcaption { font-family: var(--pd-roka); font-size: 1.9rem; line-height: 1; padding: .45rem .25rem .55rem; color: var(--pd-crnilo); max-width: clamp(9rem, 30vw, 12rem); overflow-wrap: anywhere; }
.pd-album-trak { position: absolute; top: -.7rem; left: 50%; width: 5.5rem; height: 1.5rem; translate: -50% 0; rotate: 4deg; background: rgb(118 212 197 / .55); }
.pd-album-kje { margin: 0; }
.pd-album-stanje { display: grid; gap: .75rem; justify-items: center; width: 100%; }
.pd-album-stanje .pd-stanje, .pd-album-stanje .pd-gumbi, .pd-album-stanje .pd-vprasaj { justify-content: center; text-align: center; }
.pd-album-stanje .pd-opomba { text-align: left; }
.pd-album-stanje .pd-gumbi { margin-top: .25rem; }
/* the lined page: one line = --pd-vrsta, a label takes half a line, an answer whole lines (the text sits on the line) */
.pd-album-desno { --pd-vrsta: 2.25rem; border-top: 1px dashed var(--ivje);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--pd-vrsta) - 1px), var(--ivje) calc(var(--pd-vrsta) - 1px) var(--pd-vrsta));
  background-position: 0 calc(var(--pd-rob) + .25rem + 3px); }   /* the lines follow the padding: a ruled line just under every row of text (title margin .25rem) */
.pd-album-naslov { margin: 0 0 .25rem; font-family: var(--pd-roka); font-size: clamp(2rem, 4.5vw, 2.6rem); line-height: var(--pd-vrsta); color: var(--jezero); }
.pd-album-odg { margin: 0; display: grid; }
.pd-album-odg > div { padding-top: calc(var(--pd-vrsta) * .5); }
.pd-album-odg dt { font-size: var(--t-sm); font-weight: 600; color: var(--megla); line-height: calc(var(--pd-vrsta) * .5); }
.pd-album-odg dd { margin: 0; font-family: var(--pd-roka); font-size: 1.5rem; line-height: var(--pd-vrsta); color: var(--noc); white-space: pre-line; overflow-wrap: anywhere; }
.pd-album-prazno { margin: var(--pd-vrsta) 0 0; font-family: var(--pd-roka); font-size: 1.4rem; line-height: var(--pd-vrsta); color: var(--megla); }
.pd-album-popravil { margin: calc(var(--pd-vrsta) * .5) 0 0; line-height: calc(var(--pd-vrsta) * .5); }
/* while writing: the form on plain paper, the left buttons hidden (the form has its own) */
.pd-album--uredi .pd-album-desno { background-image: none; }
.pd-album-telo .pd-obrazec { margin-top: 1.25rem; padding: 0; }   /* the page has its own padding */
@media (min-width: 64rem) {
  .pd-album { grid-template-columns: minmax(15rem, 2fr) minmax(0, 3fr); }
  .pd-album-desno { border-top: 0; border-left: 1px dashed var(--ivje); }
}

/* the open page */
.tk { padding-bottom: 3rem; }
.tk-cipi { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.tk-skupina { padding: 1.5rem 0 0; }   /* the heading on the line of the page title */
.tk-skupina h2 { margin: 0 0 1rem; }
.tk-mreza { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tk-mreza > li { display: grid; }   /* cards in a row: one height, the link at the bottom */
.tk-kartica { display: grid; grid-template-rows: auto auto auto 1fr auto; justify-items: center; gap: 0.25rem; text-align: center;
  padding: 1.5rem 1rem 1.25rem; border: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.tk-kartica .tk-obraz { margin-bottom: 0.5rem; }
.tk-ime { font-weight: 600; line-height: 1.2; }
.tk-uvod { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--noc); margin-top: 0.25rem; font-style: italic; }
.tk-vec { align-self: end; margin-top: 0.5rem; }
.tk-kartica:hover .tk-vec .pu { translate: 0.25rem 0; }
.tk-vec .pu { transition: translate .2s ease; }
.tk-obraz { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--led); }
.tk-obraz--svizec { object-fit: contain; object-position: 50% 100%; }

.tk-okno { border: 0; border-radius: var(--r-kartica); padding: 0; width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: var(--senca-dvig); color: var(--noc); }
.tk-okno::backdrop { background: rgb(30 52 68 / .35); }
.tk-okno-glava { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--led); }
.tk-okno-glava h2, .tk-okno-glava p { margin: 0; }
.tk-okno-glava .tk-obraz { width: 4rem; height: 4rem; }
.tk-zapri { align-self: start; font-size: 1.5rem; line-height: 1; }
.tk-odgovori { margin: 0; padding: 1rem 1.25rem 1.5rem; display: grid; gap: 1rem; }
.tk-odgovori dt { margin-bottom: 0.25rem; }
.tk-odgovori dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 48rem) {
  .tk-okno-glava { padding: 1.5rem 1.5rem 1.25rem; }
  .tk-okno-glava .tk-obraz { width: 5rem; height: 5rem; }
  .tk-odgovori { padding: 1.25rem 1.5rem 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .tk-vec .pu { transition: none; } }
/* GORJE-531: the storži line «+5 storžev enkrat, za vsaj 3 odgovore» (album left column) and the quiet «Izpolni namesto otroka» */
.pd-nagrada { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .25rem 0 0; color: var(--jezero); font-weight: 600; }
.pd-nagrada .pu { flex: none; width: 1.25rem; height: 1.25rem; }
.pd-namesto { color: var(--megla); }
@media (max-width: 47.99rem) { .pd-gumbi .pd-namesto { flex-basis: 100%; text-align: left; } }
