/* fermadraugiem.lv — «Palīdzība» /palidziba/ (site-help, task 6e18c40d): the list of questions with its search and one page per
   question, written by landing/tools/build-palidziba.mjs. Loaded after pages.css: the wood, the paper, the numbered steps
   (.pg-steps) and the call to play come from there; this file lays out only what is new. */

/* the hero's picture: the game's own painting or sprite, never larger than it was drawn */
.hp-art img{max-width:min(100%,300px);max-height:300px;width:auto;height:auto}
@media (min-width:900px){.hp-art img{max-width:340px;max-height:340px}}

/* the answer */
.hp-answer>p{margin:0 0 .7em}
.hp-answer>.pg-steps{margin:0 0 .9em}
.hp-rows{margin:0 0 .9em;padding:10px 16px;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 12px stretch}
.hp-rows dt{margin:.5em 0 .1em;font-weight:700;color:#2A6E16}
.hp-rows dt:first-child{margin-top:0}
.hp-rows dd{margin:0}
.hp-more{margin:.4em 0 0}
.hp-more a{font-weight:700}

/* «Līdzīgi jautājumi»: one question a line, a finger high */
.hp-rel{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.hp-rel li{margin:0;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 9px stretch}
.hp-rel a{display:flex;align-items:center;min-height:44px;padding:4px 12px;font-weight:700}

/* the list: the search line (shown when the script runs), then the questions part by part */
.hp-find{margin:0 0 18px}
.hp-find label{display:block;margin:0 0 6px;font-weight:700}
.hp-find input{width:100%;min-height:50px;box-sizing:border-box;padding:0 14px;font:17px/1.2 var(--g-font);color:var(--g-ink);
  background:#FFF9EE;border:3px solid #8A5A2B;border-radius:14px;box-shadow:inset 0 2px 0 rgba(90,46,12,.12)}
.hp-find input::placeholder{color:#7a5a3a}
.hp-find p{margin:10px 0 0}
.hp-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.hp-list li{margin:0;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 9px stretch}
.hp-list a{display:flex;align-items:center;min-height:44px;padding:4px 12px;font-weight:700}
.fd-page main a.hp-q{color:#6E3200}                              /* the site's link colour (pages.css a:not([class])) */
.fd-page main a.hp-q:hover{color:#401C00}
.hp-find[hidden],.hp-topic[hidden],.hp-list li[hidden],.hp-find p[hidden]{display:none}
