/* Technique glossary (task 823.10): the explainer pop-over on technique words in recipe steps (recipe page and cook
   mode), and the /techniques pages. Colors come from site.css. Loaded on recipe, cook and technique pages only. */
.step-list .step-p { margin: 0 0 6px; font-size: 1.05rem; position: relative; }
.step-text { position: relative; }

/* The word: a <details> kept inline, its summary looks like a dotted-underlined word. Its content box is taken out of
   the flow (display: contents) so a closed pop-over never breaks the line; browsers without ::details-content drop that
   rule and still work, with a line break after the word. */
.tech { display: inline; }
.tech::details-content { display: contents; }
.tech:not([open]) .tech-pop { display: none; }
.tech > .tech-word { display: inline; list-style: none; cursor: pointer; color: inherit; text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; border-radius: 4px; }
.tech > .tech-word::-webkit-details-marker { display: none; }
.tech > .tech-word:hover { color: var(--link); }
.tech[open] > .tech-word { background: var(--honey-soft); text-decoration-style: solid; }
/* The pop-over: below the line it sits on, full width of the step. */
.tech-pop { position: absolute; z-index: 20; left: 0; right: 0; margin-top: 4px; display: block; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; font: 400 .93rem/1.5 var(--sans); text-align: left; }
.tech-pop > span { display: block; }
.tech-h { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 2px; }
.tech-what { margin-bottom: 6px; }
.tech-steps { margin-bottom: 6px; }
.tech-step { display: block; padding-left: 1.4em; text-indent: -1.4em; margin-bottom: 2px; }
.tech-step b { display: inline-block; width: 1.4em; text-indent: 0; }
.tech-done, .tech-safe { margin-bottom: 4px; }
.tech-safe { color: var(--muted); }
.tech-pop .tech-more { display: inline-block; margin-top: 2px; font-weight: 600; font-size: .88rem; color: var(--link); }
.cook-step .tech-pop { font-size: 1.02rem; max-width: 760px; }
.tech-hint { margin: 4px 0 18px; }

/* /techniques */
.tech-search { max-width: 640px; margin: 8px 0 20px; }
.tech-jump { margin-top: 8px; }
.tech-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tech-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tech-card:hover { border-color: var(--accent); color: var(--ink); }
.tech-card-title { font: 700 1.1rem/1.25 var(--serif); }
.tech-card-count { color: var(--link); font-weight: 600; margin-top: auto; }
.tech-results { padding-top: 0; }
.tech-safety { max-width: 72ch; background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.tech-safety p { margin: 0; }
.tech-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; margin-top: 8px; }
.tech-cols .panel + .panel { margin-top: 18px; }
.tech-step-list { margin: 0; }
.tech-mistakes { padding-left: 1.2em; margin: 0; }
.tech-mistakes li { margin-bottom: 6px; }
.tech-done-panel p { margin: 0; }
@media (max-width: 760px) {
  .tech-cols { grid-template-columns: 1fr; }
  .tech-pop { padding: 10px 12px; font-size: .9rem; }
  .step-list .tech-pop { left: -44px; }
}
@media print {
  .tech-pop, .tech-hint { display: none !important; }
  .tech > .tech-word { text-decoration: none; }
}
/* Cooking with kids (task 823.33): the band before a kid-helper recipe's steps and each step's mark. */
.kid-band { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); }
.badge-inline.kid-step { background: var(--honey-soft); }
.badge-inline.kid-adult { background: transparent; border: 1.5px solid var(--field-line); }
@media print { .kid-band { display: none; } }
