/* One-time tips (job TIPS1): the tip shows open once, with "Got it", then lives behind its "i". The "i" itself and
   where it sits are the page's own (goals.css: details.goal-tip, town-tiles.css: details.here-tip); this file adds
   what every tip shares. */
details.tip > .tipbody p:last-of-type { margin-bottom:0; }
/* the Here tip's words sit in the same box the goal tip's do */
details.here-tip > .tipbody { position:absolute; right:0; top:40px; width:min(280px, 78vw); padding:10px 12px; background:var(--night); border:1px solid var(--honey);
                              border-radius:10px; font:14.5px/1.4 var(--plain); color:var(--bone); box-shadow:0 6px 20px rgba(0,0,0,.5); }
details.here-tip > .tipbody p { margin:0; }
/* the first showing: the words are a note laid over the page, so only "Got it" takes a tap and the screen under it still works */
details.tip[data-first] > .tipbody { pointer-events:none; border-color:var(--bone); }
a.tip-got { pointer-events:auto; display:inline-flex; align-items:center; min-height:34px; margin-top:8px; padding:3px 14px; border-radius:17px;
            background:var(--honey); color:var(--night); font:600 14px var(--plain); text-decoration:none; }
a.tip-got:focus-visible { outline:3px solid var(--bone); outline-offset:2px; }
/* a goal's long tip must not be cut off by the card it opens from (that hid "Got it"): the card lets it overflow and the
   picture keeps the card's rounded top; on that page "Got it" is the first thing in the note, so it is never below the fold */
.goal-hero { overflow:visible; }
.goal-hero .goal-pic img { border-radius:14px 14px 0 0; }
.goal-page details.tip[data-first] > .tipbody { display:flex; flex-direction:column; }
.goal-page details.tip[data-first] a.tip-got { order:-1; align-self:flex-start; margin:0 0 8px; }
/* Craft's tip (job TIPS2): craft.css is the page's, and it holds no "i", so this is the one place the Craft "i" is placed,
   in the look of the goal tip (goals.css), at the right of the list's top or of the preview's heading */
.craft-tiprow { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.craft-tiprow > h2 { margin:0; }
details.craft-tip { position:relative; flex:none; margin-left:auto; }
details.craft-tip summary { list-style:none; cursor:pointer; width:34px; height:34px; border-radius:50%; border:1.5px solid var(--dim); color:var(--dim);
                            display:grid; place-items:center; font:italic 600 17px var(--world); }
details.craft-tip summary::-webkit-details-marker { display:none; }
details.craft-tip[open] summary { border-color:var(--honey); color:var(--honey); }
details.craft-tip > .tipbody { position:absolute; right:0; top:40px; z-index:2; width:min(300px, 80vw); margin:0; padding:10px 12px; background:var(--night);
        border:1px solid var(--honey); border-radius:10px; font:14.5px/1.4 var(--plain); color:var(--bone); box-shadow:0 6px 20px rgba(0,0,0,.5); }
details.craft-tip > .tipbody p { margin:0 0 8px; }
/* The tutorial's menu lines and tooltips (job TUT6b; research/tutorial-design-2026-11-19/design.md, b step 11 and d).
   A menu line: the page's one line, a strip in the page under its title, its "i" at the title's right (TUT6a's look). */
.menu-head { position:relative; }
details.menu-tip > summary { position:absolute; list-style:none; cursor:pointer; width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
        font:italic 600 17px var(--world); border:1.5px solid var(--dim); color:var(--dim); z-index:2; }
details.menu-tip > summary::-webkit-details-marker { display:none; }
details.menu-tip[open] > summary { border-color:var(--honey); color:var(--honey); }
details.menu-tip > .tipbody { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin:8px 0 10px; padding:10px 14px; background:var(--night);
        border:1px solid var(--honey); border-radius:10px; font:15px/1.45 var(--plain); color:var(--bone); text-align:left; }
details.menu-tip > .tipbody p { margin:0; flex:1 1 220px; }
details.menu-tip > .tipbody a.tip-got { margin:0 0 0 auto; }
.menu-head details.menu-tip > summary { right:0; top:-4px; }
.menu-head > h1 { padding-right:44px; }
/* a small "i": the shared look of the tooltips' own "i"s */
details.qual-tip > summary, details.tile-tip > summary, details.ring-tip > summary, details.strip-tip > summary, details.train-tip > summary {
        list-style:none; cursor:pointer; border-radius:50%; display:grid; place-items:center; font:italic 600 15px var(--world); }
details.qual-tip > summary::-webkit-details-marker, details.tile-tip > summary::-webkit-details-marker, details.ring-tip > summary::-webkit-details-marker,
details.strip-tip > summary::-webkit-details-marker, details.train-tip > summary::-webkit-details-marker { display:none; }
details.qual-tip > .tipbody p, details.tile-tip > .tipbody p, details.ring-tip > .tipbody p, details.strip-tip > .tipbody p, details.train-tip > .tipbody p { margin:0 0 6px; }
details.qual-tip > .tipbody p:last-of-type, details.tile-tip > .tipbody p:last-of-type, details.ring-tip > .tipbody p:last-of-type,
details.strip-tip > .tipbody p:last-of-type, details.train-tip > .tipbody p:last-of-type { margin-bottom:0; }
/* tooltip 10 on Today's crafting slots and 9 by "Ready to train": an "i" in the line, its words opening under it in the page */
details.qual-tip, details.train-tip { display:inline-block; vertical-align:middle; margin:2px 0 0 6px; }
details.qual-tip > summary, details.train-tip > summary { width:30px; height:30px; border:1.5px solid var(--dim); color:var(--dim); }
details.qual-tip[open] > summary, details.train-tip[open] > summary { border-color:var(--honey); color:var(--honey); }
details.qual-tip > .tipbody, details.train-tip > .tipbody { margin:6px 0 4px; padding:10px 12px; background:var(--night); border:1px solid var(--honey); border-radius:10px;
        font:14.5px/1.4 var(--plain); color:var(--bone); text-align:left; }
details.qual-tip[open], details.train-tip[open] { display:block; }
details.qual-tip[open] > summary, details.train-tip[open] > summary { margin-left:auto; }
/* tooltips 4, 5 and 7 on Today's tiles: the "i" on the picture's top right, the words under the tile in its own cell, so two
   open at once never cover each other or another tile */
.today-category__tasks > li { position:relative; }
.today-category__tasks:has(details.tile-tip[open]) { align-items:start; }
.today-category__tasks:has(details.tile-tip[open]) > li > .today-category__task { height:auto; }
details.tile-tip > summary { position:absolute; right:10px; top:10px; width:30px; height:30px; border:1.5px solid var(--bone); color:var(--bone);
        background:rgba(42,29,53,.85); z-index:2; }
details.tile-tip[open] > summary { border-color:var(--honey); color:var(--honey); }
details.tile-tip > .tipbody { margin:6px 0 0; padding:9px 10px; background:var(--night); border:1px solid var(--honey); border-radius:10px;
        font:14px/1.4 var(--plain); color:var(--bone); text-align:left; }
details.tile-tip > .tipbody a.tip-got { margin-top:6px; }
.today-category__placeholder { position:relative; }
.today-category__placeholder details.tile-tip { max-width:320px; margin:0 auto; }
.today-category__placeholder details.tile-tip > summary { right:max(10px, calc(50% - 150px)); }
/* tooltip 8 on Goals: an "i" at the top left of the followed goal's picture, the ring at its foot; its words open under it,
   over the picture. Out of the card's flow, so the wide screen's grid (goals.css) never gives it a cell. */
.goal-hero { position:relative; }
.goal-hero > details.ring-tip { position:absolute; left:10px; top:10px; z-index:3; margin:0; }
details.ring-tip > summary { width:34px; height:34px; border:1.5px solid var(--bone); color:var(--bone); background:rgba(42,29,53,.85); font-size:17px; }
details.ring-tip[open] > summary { border-color:var(--honey); color:var(--honey); }
details.ring-tip > .tipbody { position:absolute; left:0; top:44px; width:min(280px, 78vw); padding:10px 12px; background:var(--night);
        border:1px solid var(--honey); border-radius:10px; font:14.5px/1.4 var(--plain); color:var(--bone); box-shadow:0 6px 20px rgba(0,0,0,.5); text-align:left; }
/* tooltips 1 and 2 in the top strip: a small "i" after the meals and after the night's clock; the words open as a note
   under the strip, across the screen (two at once are stacked by base.html's script, with one Got it) */
header.strip details.strip-tip { flex:none; position:static; }
details.strip-tip > summary { width:22px; height:22px; border:1px solid var(--dim); color:var(--dim); font-size:12.5px; margin-left:-2px; }
details.strip-tip[open] > summary { border-color:var(--honey); color:var(--honey); }
header.strip details.strip-tip > .tipbody { position:absolute; left:8px; right:8px; top:calc(100% + 6px); max-width:560px; margin:0 auto; padding:10px 12px;
        background:var(--night); border:1px solid var(--honey); border-radius:10px; font:14.5px/1.4 var(--plain); color:var(--bone); white-space:normal;
        box-shadow:0 6px 20px rgba(0,0,0,.5); text-align:left; }
header.strip details.strip-tip > .tipbody { display:block; }   /* not the strip's own row (game.css: header.strip div) */
header.strip details.strip-tip a.tip-got { color:var(--night); padding:3px 14px; white-space:nowrap; }
