.topnav { flex-wrap: wrap; }
.topnav a { padding-inline: 22px; }
.skill-reference { min-width: 0; scroll-margin-top: 16px; }
.skill-intro { max-width: 65ch; }
.skill-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 0; margin: 16px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #12110e; }
.tabs-ready .skill-tabs { position: sticky; top: 0; z-index: 5; box-shadow: 0 8px 12px #0008; }
.skill-tabs a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 5px; border: 1px solid #564329; background: linear-gradient(#282219, #12110e); color: #d5bc91; text-decoration: none; text-align: center; font: 13px/1.4 Arial, sans-serif; }
.skill-tabs a:hover { background: #3a2c1c; color: #fff0cb; }
.tabs-ready .skill-tabs a[aria-selected="true"] { border-color: #d6aa62; background: linear-gradient(#643322, #30180f); color: #fff0c4; box-shadow: inset 0 -3px #bb8645; }
.skill-tabs a:focus-visible, .skill-table:focus-visible, .skill-panel:focus-visible { outline: 2px solid #f2cd7e; outline-offset: 3px; }
.skill-panel[hidden] { display: none; }
.skill-panel { min-width: 0; outline: none; }
.skill-panel h2 { margin: 30px 0 12px; color: var(--light); font-size: 25px; font-weight: normal; line-height: 1.25; }
.skill-panel h2:first-child { margin-top: 0; }
.skill-panel h3 { margin: 28px 0 12px; color: #dfbe84; font-size: 19px; font-weight: normal; line-height: 1.4; scroll-margin-top: 165px; }
.skill-panel p { margin: 13px 0; }
.skill-panel ul, .skill-panel ol { padding-left: 23px; }
.skill-panel li { margin: 8px 0; }
.skill-panel strong { color: #e5c994; }
.skill-panel code { overflow-wrap: anywhere; }
.skill-table { margin: 18px 0 24px; max-width: 100%; overflow-x: auto; border: 1px solid #53422c; }
.skill-table table { width: 100%; border-collapse: collapse; font: 13px/1.65 Arial, sans-serif; }
.skill-table th, .skill-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #423725; overflow-wrap: break-word; }
.skill-table th { color: #ecd5ab; background: #2d2418; font-weight: 600; }
.skill-table td { color: #d0c7b5; }
.skill-table td:first-child { color: #e2c492; }
.skill-table tr:nth-child(even) td { background: #1d1a14; }
.skill-table tr:last-child td { border-bottom: 0; }
.skill-shared { margin: 16px 0; padding: 14px; border: 1px solid #51402a; background: #12110e; }
.skill-shared:last-child { border: 1px solid #51402a; }
.skill-shared summary { font-size: 17px; line-height: 1.5; }
.skill-shared[open] summary { padding-bottom: 15px; border-bottom: 1px solid #51402a; margin-bottom: 20px; }
.skill-shared h2 { font-size: 22px; }
.skill-reference .reference-date { font: 12px/1.5 Arial, sans-serif; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1050px) {
  .skill-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .skill-panel h3 { scroll-margin-top: 115px; }
}
@media (max-width: 600px) {
  .skill-tabs a { font-size: 12px; }
  .skill-table { overflow: visible; border: 0; }
  .skill-table table, .skill-table tbody { display: block; width: 100%; }
  .skill-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .skill-table tbody tr { display: block; margin: 12px 0; border: 1px solid #51402a; background: #16140f; }
  .skill-table td { display: block; width: 100%; border: 0; padding: 10px 12px; }
  .skill-table td:first-child { background: #2d2418; font-size: 15px; }
  .skill-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #bca37a; font-size: 11px; font-weight: bold; }
  .skill-table td:first-child::before { color: #bca37a; }
  .skill-table tr:nth-child(even) td { background: transparent; }
  .skill-table tr:nth-child(even) td:first-child { background: #2d2418; }
  .skill-shared { padding: 12px; }
}
@media print {
  .skill-tabs, .topnav, aside, .banner, .download-grid, .skill-reference > .skill-intro { display: none; }
  .skill-panel[hidden] { display: block; }
  .skill-panel { break-before: page; }
  .skill-table { overflow: visible; }
}
/* Skill reference panels use the same inset basalt as the main portal. */
.skill-tabs{background:#0d0f10 url('assets/dark-basalt.webp') center/650px;border-color:#404244;padding:10px;box-shadow:inset 0 0 12px #000}
.skill-tabs a{border:2px ridge #46484a;background:linear-gradient(#151719b8,#090b0ce6),url('assets/dark-basalt.webp') center/420px;color:#c7c4bc;text-shadow:1px 2px #000;box-shadow:inset 0 0 6px #000}
.skill-tabs a:hover{background:linear-gradient(#282b2dcc,#121416e8),url('assets/dark-basalt.webp') center/420px;color:#eee6d7}
.tabs-ready .skill-tabs a[aria-selected="true"]{border-color:#717575;background:linear-gradient(#303437c9,#111517d9),url('assets/dark-basalt.webp') center/420px;color:#ede5d5;box-shadow:inset 0 -2px #7b7b72,inset 0 0 10px #000}
.skill-table,.skill-shared,.skill-shared:last-child,.skill-shared[open] summary{border-color:#424547}
.skill-table th{background:linear-gradient(#151719b5,#111315ce),url('assets/dark-basalt.webp') center/540px;color:#ded8ca}
.skill-table td{background:#111315a8;color:#c9c9c3;border-color:#35383a}
.skill-table td:first-child{color:#d8cdb8}
.skill-table tr:nth-child(even) td{background:#1a1c1db0}
.skill-shared{background:linear-gradient(#101214e3,#101214e3),url('assets/dark-basalt.webp') center/540px}
.skill-panel h3,.skill-panel strong{color:#d5cbb7}
@media(max-width:600px){.skill-table tbody tr{background:#111315d9;border-color:#424547}.skill-table td:first-child,.skill-table tr:nth-child(even) td:first-child{background:linear-gradient(#17191ac2,#101213dc),url('assets/dark-basalt.webp') center/480px}.skill-table td::before,.skill-table td:first-child::before{color:#aaa99f}}
