.trainer-directory { color:#333; }
.engineering-trainers .trainer-status:empty { display:none; }
.trainer-directory [hidden] { display:none !important; }
.trainer-directory table { border-collapse:collapse; width:100%; font-size:12px; margin:12px 0; }
.trainer-directory th { text-align:left; background:#ead9bd; color:#750b00; border:1px solid #a89170; padding:8px; }
.trainer-directory td { border:1px solid #c1ad90; padding:9px 8px; vertical-align:middle; }
.trainer-ranks caption { text-align:left; font-weight:bold; color:#a40000; margin:0 0 7px; }
.trainer-ranks td,.trainer-ranks th { padding:6px 8px; }
.trainer-filters { display:flex; flex-wrap:wrap; gap:10px 14px; padding:12px; margin-top:18px; background:#eadbc4; border-top:1px solid #9b8260; border-bottom:1px solid #9b8260; }
.trainer-filters label { display:flex; flex-direction:column; gap:5px; font-weight:bold; }
.trainer-filters select,.trainer-filters input[type=search] { box-sizing:border-box; font:inherit; color:#333; border:1px solid #a99170; background:#fff9ef; padding:6px; height:30px; }
.trainer-filters input[type=search] { width:190px; }
.trainer-filters .trainer-more { flex-direction:row; align-items:center; width:100%; font-weight:normal; }
.trainer-count { font-size:11px; margin:9px 0 6px !important; }
.trainer-table { table-layout:fixed; }
.trainer-table th:nth-child(1) { width:29%; }
.trainer-table th:nth-child(2) { width:37%; }
.trainer-table th:nth-child(3) { width:18%; }
.trainer-table th:nth-child(4) { width:16%; }
.trainer-table .trainer-row:nth-of-type(4n+1) { background:#f3e8d8; }
.trainer-table .trainer-row:hover { background:#f9edcf; }
.trainer-row td:first-child strong,.trainer-row small { display:block; margin-top:3px; }
.trainer-row small { color:#665746; font-size:10px; }
.trainer-faction { display:inline-block; font-size:10px; font-weight:bold; }
.trainer-faction.alliance { color:#244c7b; }
.trainer-faction.horde { color:#9c1c17; }
.trainer-faction.neutral { color:#5c6037; }
.trainer-directory button { font:inherit; cursor:pointer; border:1px solid #aa8c62; padding:5px 7px; color:#5a2508; background:#efe0c6; border-radius:2px; }
.trainer-directory button:hover { background:#fff1d7; border-color:#735536; }
.trainer-directory button:focus-visible,.trainer-directory input:focus-visible,.trainer-directory select:focus-visible { outline:2px solid #245781; outline-offset:2px; }
.trainer-directory button.trainer-coordinates { padding:4px 2px; border:0; background:none; color:#173d83; text-decoration:underline dotted; white-space:nowrap; }
.trainer-map-toggle { width:100%; }
.trainer-directory .trainer-detail td { padding:13px; background:#e7d6b8; }
.trainer-detail-content { display:flex; gap:16px; align-items:flex-start; }
.trainer-map { position:relative; width:65%; flex-shrink:0; border:2px solid #786247; line-height:0; background:#cfb58d; }
.trainer-map img { display:block; width:100%; height:auto; }
.trainer-pin { position:absolute; width:14px; height:14px; transform:translate(-50%,-50%); border:2px solid #fff4b5; background:#b00000; border-radius:50%; box-shadow:0 0 0 2px #5a180a,0 2px 5px #000; }
.trainer-map-info { min-width:0; flex:1; font-size:12px; }
.trainer-map-info strong { color:#8a1200; }
.trainer-map-info p { line-height:1.45; margin:7px 0 12px; }
.trainer-map-info label { display:block; font-size:11px; }
.trainer-command,.trainer-copy-fallback input { box-sizing:border-box; width:100%; font:11px monospace; padding:7px 4px; margin:5px 0 7px; border:1px solid #ac9370; background:#fff7e7; color:#333; }
.trainer-hint { padding:8px 10px; border-left:3px solid #a98a52; background:#eadcc6; }
.trainer-status { color:#365127; min-height:15px; font-size:12px; }
.trainer-source { font-size:11px; color:#675e50; line-height:1.5; }
.trainer-empty { font-weight:bold; padding:12px; background:#eadbc4; }
.trainer-rank-choices { display:flex; gap:7px; margin:12px 0 8px; }
.trainer-directory .trainer-rank-choices button { flex:1; padding:9px 7px; text-align:left; border-radius:0; }
.trainer-rank-choices strong { display:inline; margin-right:5px; }
.trainer-rank-choices small { display:block; margin-top:5px; font-size:11px; }
.trainer-directory .trainer-rank-choices button[aria-pressed=true] { background:#d9bd89; border-color:#76552e; box-shadow:inset 0 -2px #8d3018; }
.trainer-requirement { margin:8px 0 12px !important; line-height:1.5; }
.trainer-directory .trainer-filters { margin-top:8px; }
/* Shared profession teacher overview v5. */
.profession-panel,.engineering-trainers .trainer-table { background:#f6efe3; border:1px solid #8a6a43; box-shadow:0 1px 2px #3c230a2e; }
.profession-ui-label,.engineering-trainers .trainer-table thead th { font-size:11px; font-weight:bold; color:#5b1a06; text-transform:uppercase; letter-spacing:.05em; }
.profession-rank-heading,.engineering-trainers .engineering-rank th { border-left:3px solid #990000; background:#e2c9a3; }
.coordinate-copy-status,.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.faction-crest { display:inline-block; flex:none; width:var(--crest-size,18px); height:var(--crest-size,18px); border:1px solid #c89b5a; border-radius:50%; overflow:hidden; box-shadow:0 0 0 1px #3a2510; background:#1a1209; vertical-align:middle; line-height:0; }
.faction-crest img,.engineering-specializations-v7 .faction-crest img { display:block; box-sizing:border-box; width:100%; height:100%; padding:0; margin:0; border:0; border-radius:0; object-fit:cover; transform:scale(1.25); }

.engineering-factions { display:flex; align-items:center; gap:10px; margin:14px 0 10px; }
.engineering-factions > div { display:flex; border:1px solid #8a6a43; box-shadow:0 1px 0 #ffffff80,inset 0 1px 2px #3c230a1f; }
.engineering-trainers .engineering-factions button { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:5px 14px; border:0; border-radius:0; font-weight:bold; color:#68431e; background:linear-gradient(#f7eedd,#ead9bd); }
.engineering-trainers .engineering-factions button + button { border-left:1px solid #b89c74; }
.engineering-trainers .engineering-factions button:hover { filter:brightness(1.04); }
.engineering-trainers .engineering-factions button[aria-pressed=true] { color:#fff6e8; background:linear-gradient(#86613b,#6a4a2a); box-shadow:inset 0 1px 2px #00000059; }
.engineering-table-scroll { overflow-x:auto; padding-bottom:3px; }
.engineering-trainers .trainer-table { margin:0; min-width:620px; border-collapse:separate; border-spacing:0; }
.engineering-trainers .trainer-table th:nth-child(1) { width:36%; }
.engineering-trainers .trainer-table th:nth-child(2) { width:30%; }
.engineering-trainers .trainer-table th:nth-child(3) { width:18%; }
.engineering-trainers .trainer-table th:nth-child(4) { width:16%; }
.engineering-trainers .trainer-table thead th { padding:6px 8px; border:0; border-bottom:1px solid #8a6a43; background:#d9c09a; }
.engineering-trainers .trainer-table thead th:first-child { padding-left:10px; }
.engineering-trainers .trainer-table thead th:last-child { text-align:center; }
.engineering-trainers .trainer-row { background:#f6efe3; }
.engineering-trainers .trainer-row[data-extra] { background:#ece2d0; }
.engineering-trainers .trainer-row:hover { background:#f3e9d8; }
.engineering-trainers .trainer-row.open { background:#eadbc2; }
.engineering-trainers .trainer-row td { padding:7px 8px; border:0; border-top:1px solid #d3bf9e; }
.engineering-trainers .trainer-row td:first-child { padding-left:10px; border-left:3px solid transparent; }
.engineering-trainers .trainer-row.open td:first-child { border-left-color:#990000; }
.engineering-trainer-name,.engineering-trainer-crests { display:flex; align-items:center; gap:8px; }
.engineering-trainer-crests { flex:none; width:41px; gap:3px; }
.engineering-trainer-name a { min-width:0; }
.engineering-trainer-name a.wow-item { color:#0000cc; text-decoration:none; }
.engineering-trainer-name a.wow-item:hover,.engineering-trainer-name a.wow-item:focus-visible { text-decoration:underline; }
.engineering-trainer-name strong { display:inline !important; margin:0 !important; }
.engineering-place { line-height:1.3; }
.engineering-place b { color:#3d3226; }
.engineering-trainers .engineering-place small { margin:0; font-size:10px; color:#6b5a42; }
.engineering-trainers button.trainer-coordinates,.trainer-directory button.profession-coordinates,button.profession-coordinates { display:inline-flex; align-items:center; gap:5px; font:inherit; padding:3px 6px; border:1px solid transparent; border-radius:3px; color:#333; background:transparent; text-decoration:none; cursor:copy; white-space:nowrap; font-variant-numeric:tabular-nums; }
.engineering-trainers button.trainer-coordinates:hover,.trainer-directory button.profession-coordinates:hover,button.profession-coordinates:hover { background:#f6eddc; border-color:#aa8c62; }
.engineering-trainers button.trainer-coordinates svg,button.profession-coordinates svg { flex:none; opacity:.7; }
button.profession-coordinates:focus-visible { outline:2px solid #245781; outline-offset:2px; }
.engineering-trainers .engineering-map-cell { padding:4px 8px; text-align:center; }
.engineering-trainers button.trainer-map-toggle { display:inline-flex; width:auto; align-items:center; justify-content:center; gap:5px; min-width:76px; min-height:26px; padding:3px 9px; border-radius:3px; font-size:11px; font-weight:bold; }
.engineering-trainers button.trainer-map-toggle svg { flex:none; }
.engineering-trainers button.trainer-map-toggle:hover { background:#e6d2ad; }
.engineering-trainers .trainer-row.open button.trainer-map-toggle { color:#fff6e8; background:#745332; border-color:#5a3f22; }
.engineering-trainers .engineering-rank th { padding:7px 10px; border-top:0; border-right:0; border-bottom:0; color:#554b3d; font-weight:normal; }
.engineering-trainers tbody + tbody .engineering-rank th { border-top:1px solid #8a6a43; }
.engineering-rank th > span { display:inline-flex; align-items:center; gap:8px; }
.engineering-rank strong { color:#990000; font-size:13px; }
.engineering-range { padding:0 6px; border:1px solid #c4a984; border-radius:9px; background:#f1e5cc; color:#6c421d; font-size:11px; font-weight:bold; }
.engineering-rank small { float:right; margin-top:2px; font-size:11px; color:#5f4a2e; }
.engineering-trainers .engineering-more td { padding:0; border:0; }
.engineering-trainers button.engineering-more-toggle { display:flex; align-items:center; gap:8px; width:100%; padding:7px 10px 7px 12px; border:0; border-top:1px dashed #b89c74; border-radius:0; background:#e9dcc4; color:#6c421d; font-size:11px; font-weight:bold; text-align:left; }
.engineering-trainers button.engineering-more-toggle:hover { background:#ece0c9; }
.engineering-more-arrow { display:inline-block; flex:none; width:10px; color:#990000; transition:transform .15s; }
.engineering-more-toggle[aria-expanded=true] .engineering-more-arrow { transform:rotate(90deg); }
.engineering-more-hint { color:#7a6346; font-weight:normal; }
.engineering-more-toggle[aria-expanded=true] .engineering-more-hint { display:none; }
.engineering-trainers .trainer-detail td { border:0; border-top:1px solid #c1ad90; border-left:3px solid #990000; padding:12px 12px 14px; background:#e7d6b8; box-shadow:inset 0 2px 4px #3c230a1f; }
.engineering-trainers .trainer-rank-path td { padding:8px 10px; border:0; border-top:1px solid #c4a984; background:#efe3cf; line-height:1.5; }
.engineering-trainers .trainer-map { box-shadow:0 1px 3px #28140559; }
.engineering-trainers .trainer-map-info label { font-weight:bold; color:#5f4a2e; }
.engineering-trainers .trainer-map-info button[data-copy] { margin-top:8px; padding:5px 10px; border-radius:3px; font-size:11px; font-weight:bold; }
.engineering-trainers button[data-copy].copied,button.profession-coordinates.copied { color:#3f5e1f; background:#e3ecd0; border-color:#6f8f4a; }
[data-native-waypoints] .tomtom-option { margin-top:14px; padding-top:12px; border-top:1px solid #b39b79; }
[data-native-waypoints] .trainer-map-info .native-waypoint-primary label,[data-native-waypoints] .trainer-map-info .tomtom-option label { font-weight:bold; color:#5f4a2e; }
[data-native-waypoints] .trainer-map-info .native-waypoint-help { margin:7px 0 0; font-size:11px; line-height:1.4; }
.recipe-directory[data-native-waypoints] .trainer-map-info label { display:block; font-size:11px; font-weight:bold; }
.recipe-directory[data-native-waypoints] .trainer-map-info button[data-copy] { font-size:11px; font-weight:bold; }
.recipe-directory[data-native-waypoints] button[data-copy].copied { color:#3f5e1f; background:#e3ecd0; border-color:#6f8f4a; }
/* Engineering v6.1: one row per teacher, with a selected learning rank. */
.engineering-trainers-v61 .engineering-v61-filters { display:flex; flex-direction:column; gap:8px; margin:14px 0 10px; }
.engineering-trainers-v61 .engineering-factions { margin:0; }
.engineering-trainers-v61 .engineering-factions > strong { flex:none; width:92px; }
.engineering-trainers-v61 .engineering-v61-rank-buttons { min-width:0; }
.engineering-trainers-v61 .engineering-v61-rank-buttons button { white-space:nowrap; padding:5px 10px; }
.engineering-trainers-v61 .engineering-v61-rank-buttons small { font-size:10px; font-weight:normal; opacity:.8; }
.engineering-trainers-v61 .trainer-table { min-width:700px; }
.engineering-trainers-v61 .trainer-table th:nth-child(1) { width:31%; }
.engineering-trainers-v61 .trainer-table th:nth-child(2) { width:24%; }
.engineering-trainers-v61 .trainer-table th:nth-child(3) { width:16%; }
.engineering-trainers-v61 .trainer-table th:nth-child(4) { width:16%; }
.engineering-trainers-v61 .trainer-table th:nth-child(5) { width:13%; }
.engineering-trainers-v61 button.trainer-map-toggle { box-sizing:border-box; width:100%; padding:3px 5px; }
.engineering-trainers-v61 .engineering-rank small { max-width:58%; text-align:right; }
.engineering-trainers-v61 .trainer-row.dim { opacity:.42; }
.engineering-trainers-v61 .engineering-v61-requirement { margin:0 0 10px; padding:6px 10px; border:1px solid #c4a984; border-left:3px solid #990000; background:#f6efe3; font-size:11px; line-height:1.45; }
.engineering-v61-requirement > strong:first-child { color:#990000; }
.engineering-v61-pips { display:flex; gap:3px; }
.engineering-v61-pip { display:block; width:18px; height:7px; border:1px solid #c4a984; border-radius:2px; background:#efe3cf; }
.engineering-v61-pip.taught { border-color:#6e0000; background:#990000; }
.engineering-v61-pip.taught.selected { background:#e0a020; }
.engineering-trainers-v61 .trainer-row .engineering-v61-rank-name { display:block; margin:3px 0 0; color:#5b1a06; font-size:10px; font-weight:bold; }
.engineering-trainers-v61 .trainer-map-info .engineering-v61-map-name { margin:0 0 4px; }
.engineering-trainers-v61 .trainer-map-info .engineering-v61-map-rank { margin:0 0 10px; color:#5f4a2e; font-size:11px; }
.profession-trainers-v61 .trainer-identity { min-width:0; }
.engineering-trainers-v61 button.engineering-more-toggle { border-top:1px solid #8a6a43; }
.engineering-trainers-v61 .trainer-intro { display:grid; grid-template-columns:minmax(0,1fr) 180px; grid-template-areas:"copy art"; align-items:center; gap:20px; margin:14px 0 20px; }
.engineering-trainers-v61 .trainer-intro-copy { min-width:0; grid-area:copy; }
.engineering-trainers-v61 .trainer-intro-copy > p { margin:0; line-height:1.55; }
.engineering-trainers-v61 .trainer-intro-art { display:block; width:180px; line-height:0; grid-area:art; }
.engineering-trainers-v61 .trainer-intro-art img { display:block; width:100%; height:auto; border:0; }
@media (max-width:600px) {
 .engineering-trainers { max-width:calc(100vw - 90px); }
 .engineering-factions { flex-wrap:wrap; }
 .engineering-trainers-v61 .engineering-factions > strong { width:100%; }
 .engineering-trainers-v61 .engineering-v61-rank-buttons { flex-wrap:wrap; max-width:100%; }
 .engineering-trainers-v61 .engineering-v61-rank-buttons button { flex:1 1 120px; border:0; border-right:1px solid #b89c74; border-bottom:1px solid #b89c74; }
 .engineering-trainers-v61 .trainer-intro { grid-template-columns:minmax(0,1fr) 112px; grid-template-areas:"copy art" "filters filters"; gap:12px; }
 .engineering-trainers-v61 .trainer-intro-copy { display:contents; }
 .engineering-trainers-v61 .trainer-intro-copy > p { grid-area:copy; }
 .engineering-trainers-v61 .trainer-intro-with-notes { grid-template-areas:"copy art" "notes notes" "filters filters"; }
 .engineering-trainers-v61 .trainer-intro-notes { grid-area:notes; }
 .engineering-trainers-v61 .trainer-intro-copy > .engineering-v61-filters { grid-area:filters; margin:0; }
 .engineering-trainers-v61 .trainer-intro-art { grid-area:art; }
 .engineering-trainers-v61 .trainer-intro-art { width:112px; }
}
