/* Tools catalogue, on its own section after the skills board. Each category is a native disclosure: its icon and
   name are the summary, its tools are the content. Every chip carries one mark (a licensed brand logo, a Commons
   logo, or a Lucide line icon) and its name. The section closes with the Certifications and learning button.

   The groups start closed so the catalogue scans as a short list of areas. Opening one is a native details
   toggle, so it works without JavaScript, and Show all details and print open every group.

   The group icon sits beside the label, matching the issuer mark in a Credentials group summary. It rests in the
   muted colour and takes the accent when its group is open or hovered, so a group stays quieter than the marks of
   the tools inside it. */

#tools .section-heading h2{max-width:22ch}
#tools .tools-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 0 12px}

.tool-group{border-top:1px solid var(--rule)}
#tools .tools-list>.tool-group:first-child{border-top:0}
.tool-group>summary{display:flex;align-items:center;gap:10px;padding:16px 0;color:var(--ink);font-size:15px;font-weight:600;line-height:1.35;cursor:pointer;list-style:none}
.tool-group>summary::-webkit-details-marker{display:none}
.tool-group>summary::before{content:"";width:7px;height:7px;flex:0 0 auto;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg)}
.tool-group[open]>summary::before{transform:rotate(45deg);border-color:var(--accent)}
.group-icon{display:block;width:18px;height:18px;flex:0 0 auto;color:var(--muted);overflow:visible}
.tool-group[open]>summary .group-icon{color:var(--accent)}
.motion-on .tool-group>summary::before{transition:transform 180ms var(--ease-arrive),border-color 160ms}
.motion-on .tool-group>summary .group-icon{transition:color 160ms var(--ease-arrive)}
.motion-on .tool-group>summary{transition:transform 120ms var(--ease-arrive)}
.motion-on .tool-group>summary:active{transform:scale(.995)}
@media(hover:hover) and (pointer:fine){
  .tool-group>summary:hover{color:var(--accent)}
  .tool-group>summary:hover::before{border-color:var(--accent)}
  .tool-group>summary:hover .group-icon{color:var(--accent)}
}
.tool-group>summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:4px}

.tool-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:2px 0 20px 19px;list-style:none}
.tool-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:5px 13px 5px 7px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);font-size:14px;line-height:1.3;color:var(--ink);white-space:nowrap;list-style:none}
.tool-mark{display:block;height:18px;width:auto;max-width:72px;flex:0 0 auto;color:var(--ink);overflow:visible}
.tool-chip .tool-mark{color:var(--accent)}
.tool-name{white-space:normal}

.tools-more{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0}
.tools-more .button{gap:10px}
.tools-more .button-mark{width:18px;height:18px;flex:0 0 auto;color:var(--accent);overflow:visible}

@media(max-width:700px){
  .tool-group>summary{padding:14px 0}
  .tool-chips{padding:2px 0 16px 19px}
  .tool-chip{min-height:32px;font-size:13px;padding:4px 11px 4px 6px}
  .tools-more{margin-top:22px}
}

@media print{
  .tool-group>summary::before{display:none}
  .tool-mark,.tools-more .button-mark{display:none}
  .tool-chip{border:0;padding:0}
}
