@page { size: letter landscape; margin: 0.35in; }

:root {
  --hyjal-page-bg: #071510;
  --hyjal-sheet-bg: #2B2B2B;
  --hyjal-panel-bg: #383838;
  --hyjal-panel-bg-soft: #242424;
  --hyjal-border: #55524A;
  --hyjal-border-soft: rgba(255, 255, 255, 0.14);
  --hyjal-text: #F1EFE8;
  --hyjal-text-soft: #D3D1C7;
  --hyjal-muted: #B8B4A8;
  --hyjal-assigned: #F3D39C;

  --hyjal-tank-bg: #4A351C;
  --hyjal-tank-text: #F3D39C;
  --hyjal-healer-bg: #263A20;
  --hyjal-healer-text: #CBE7B0;
  --hyjal-dps-bg: #4A2424;
  --hyjal-dps-text: #F0B4B4;
  --hyjal-phase-bg: #20394E;
  --hyjal-phase-text: #B9DAF5;
}

html {
  min-height: 100%;
  background: var(--hyjal-page-bg);
}

body {
  --hyjal-boss-background-image: none;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hyjal-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(64, 96, 66, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(7, 15, 12, 0.82), rgba(18, 35, 27, 0.82) 52%, rgba(20, 16, 13, 0.88)),
    var(--hyjal-boss-background-image),
    var(--hyjal-page-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
}

body[data-boss-id="rage-winterchill"],
body[data-boss-id="anetheron"] {
  --hyjal-boss-background-image: url("../../assets/hyjal/backgrounds/alliancecamp.webp");
}

body[data-boss-id="kazrogal"],
body[data-boss-id="azgalor"] {
  --hyjal-boss-background-image: url("../../assets/hyjal/backgrounds/Hordecamp.webp");
}

body[data-boss-id="archimonde"] {
  --hyjal-boss-background-image: url("../../assets/hyjal/backgrounds/summit.webp");
}

body[data-boss-id="trash"] {
  --hyjal-boss-background-image: url("../../assets/hyjal/backgrounds/hyjal.webp");
}

.page-nav,
.screen-only {
  max-width: 1280px;
  margin: 0 auto 16px;
}

.page-nav {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.page-nav a {
  text-decoration: none;
}

.sheet {
  background: var(--hyjal-sheet-bg);
  border-color: var(--hyjal-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  color: var(--hyjal-text);
}

.boss-header {
  border-left: 4px solid #6F925F;
  padding-left: 12px;
}

.boss-name {
  color: var(--hyjal-text);
}

.boss-zone,
.sheet-footer,
.image-card-label,
.image-card-caption {
  color: var(--hyjal-muted);
}

.setup-block {
  background: var(--hyjal-panel-bg);
  border: 1px solid var(--hyjal-border);
  border-radius: 8px;
  color: var(--hyjal-text-soft);
  margin-bottom: 14px;
  padding: 12px 16px;
}

.setup-label {
  margin-bottom: 8px;
  color: var(--hyjal-text);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.setup-grid {
  color: var(--hyjal-text-soft);
  font-size: 12px;
  gap: 12px;
}

.setup-grid .setup-col-misdirect-wide {
  flex: 0 0 auto;
}

body[data-boss-id="trash"] .setup-col-utility {
  min-width: 0;
}

body[data-boss-id="trash"] .setup-col-utility .setup-line {
  align-items: flex-start;
  min-width: 0;
}

body[data-boss-id="trash"] .setup-col-utility .line-text,
body[data-boss-id="trash"] .setup-col-utility .role {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

body[data-boss-id="trash"] .trash-misdirect-col:not(:has(.setup-line:not([style*="display: none"]))) {
  display: none;
}

.setup-col-label,
.setup-grid b {
  color: var(--hyjal-text);
}

.setup-block .role {
  color: var(--hyjal-assigned);
  font-weight: 500;
}

.setup-block .assignment-target {
  color: var(--hyjal-text-soft);
  font-weight: 500;
}

.setup-col-label {
  font-size: 10px;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.setup-line {
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.setup-line span.line-text,
.setup-line .line-text {
  line-height: 1.45;
}

.setup-line .role-icon-inline {
  background: rgba(244, 241, 232, 0.08);
  border-color: var(--hyjal-border-soft);
}

.setup-line .role-icon-inline.raid-marker-inline {
  background: transparent;
  border-color: transparent;
}

.setup-block .role.unassigned,
.role.unassigned {
  color: var(--hyjal-muted);
  font-style: italic;
  font-weight: 400;
}

.setup-block .role-label,
.setup-block .tank-paren,
.role-label {
  color: #D0D0D0;
  opacity: 0.78;
}

.role-pill {
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--hyjal-border-soft);
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

.role-tank,
.col-tank {
  background: var(--hyjal-tank-bg);
  color: var(--hyjal-tank-text);
}

.role-healer,
.col-healer {
  background: var(--hyjal-healer-bg);
  color: var(--hyjal-healer-text);
}

.role-dps,
.col-dps {
  background: var(--hyjal-dps-bg);
  color: var(--hyjal-dps-text);
}

.phase-bar {
  margin-bottom: 7px;
  padding: 8px 12px;
  background: var(--hyjal-phase-bg);
  border: 1px solid var(--hyjal-border-soft);
  border-radius: 6px;
  color: var(--hyjal-phase-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.col {
  padding: 10px;
  border: 0.5px solid var(--hyjal-border-soft);
  border-radius: 6px;
}

.mech-name,
.role {
  color: var(--hyjal-text);
}

.mech-name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.mech-name.danger,
.critical .mech-name {
  color: #FFB3B3;
}

.mech-desc {
  font-size: 11.5px;
  color: var(--hyjal-text-soft);
}

.image-card {
  background: var(--hyjal-panel-bg-soft);
  border-color: var(--hyjal-border);
}

.image-placeholder {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--hyjal-border-soft);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(56, 72, 57, 0.32), rgba(20, 24, 21, 0.78));
  color: var(--hyjal-text-soft);
  font-size: 12px;
  letter-spacing: 0.2px;
  text-align: center;
}

.reminder-card {
  background: #3A2424;
  border-color: #7D3D3D;
}

.reminder-card-label {
  color: #FFB3B3;
}

.reminder-list,
.reminder-list li {
  color: #F0D0D0;
}

.sheet-footer {
  border-top-color: var(--hyjal-border);
}

/* Trash guide cards are scoped so the other Hyjal sheets retain their layout. */
.trash-guide {
  display: block;
}

.trash-guide .sheet-content {
  width: 100%;
}

.trash-mob-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trash-mob-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  overflow: hidden;
  background: var(--hyjal-panel-bg-soft);
  border: 1px solid var(--hyjal-border);
  border-radius: 7px;
  break-inside: avoid;
}

.trash-guide .trash-priority-1 { border-color: #b94f4f; box-shadow: 0 0 0 1px rgba(185, 79, 79, 0.32); }
.trash-guide .trash-priority-2 { border-color: #b96845; box-shadow: 0 0 0 1px rgba(185, 104, 69, 0.28); }
.trash-guide .trash-priority-3 { border-color: #b97c43; box-shadow: 0 0 0 1px rgba(185, 124, 67, 0.26); }
.trash-guide .trash-priority-4 { border-color: #b99145; box-shadow: 0 0 0 1px rgba(185, 145, 69, 0.24); }
.trash-guide .trash-priority-5 { border-color: #ad9f4b; box-shadow: 0 0 0 1px rgba(173, 159, 75, 0.22); }
.trash-guide .trash-priority-6 { border-color: #91a34f; box-shadow: 0 0 0 1px rgba(145, 163, 79, 0.22); }
.trash-guide .trash-priority-7 { border-color: #6f9d58; box-shadow: 0 0 0 1px rgba(111, 157, 88, 0.22); }
.trash-guide .trash-priority-8 { border-color: #668d5b; box-shadow: 0 0 0 1px rgba(102, 141, 91, 0.20); }
.trash-guide .trash-priority-9 { border-color: #5c7956; box-shadow: 0 0 0 1px rgba(92, 121, 86, 0.18); }

.trash-mob-portrait {
  display: grid;
  min-height: 150px;
  overflow: hidden;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 32%, rgba(125, 157, 113, 0.28), transparent 32%),
    linear-gradient(155deg, #263329, #151A17);
  border-right: 1px solid var(--hyjal-border-soft);
  color: var(--hyjal-text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.trash-mob-portrait:has(.trash-mob-img) {
  padding: 0;
}

.trash-mob-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.trash-mob-portrait span {
  padding: 8px 4px;
  border-block: 1px solid rgba(185, 218, 245, 0.28);
}

.trash-mob-body {
  min-width: 0;
  padding: 9px 10px;
}

.trash-mob-body header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hyjal-border-soft);
}

.trash-mob-name {
  margin: 0;
  color: var(--hyjal-text);
  font-size: 14px;
  line-height: 1.2;
}

.trash-kill-priority {
  flex: 0 0 auto;
  color: #F2C98B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.trash-ability-list {
  margin: 7px 0;
  padding: 0;
  list-style: none;
}

.trash-ability-list .mech {
  margin: 0 0 5px;
  padding: 0;
}

.trash-ability-list .mech-name {
  display: inline;
  margin-right: 4px;
}

.trash-ability-list .mech-name::after {
  content: " —";
  color: var(--hyjal-muted);
}

.trash-ability-list .mech-desc {
  display: inline;
}

.trash-tag {
  display: inline-block;
  margin: 0 3px 2px 0;
  padding: 1px 5px;
  border: 1px solid rgba(185, 218, 245, 0.34);
  border-radius: 999px;
  background: rgba(32, 57, 78, 0.72);
  color: var(--hyjal-phase-text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.trash-card-tags {
  margin-top: 6px;
}

.trash-handling {
  margin: 7px 0 0;
  padding: 6px 8px;
  background: rgba(77, 91, 67, 0.22);
  border-left: 2px solid #6F925F;
  color: var(--hyjal-text-soft);
  font-size: 11px;
  line-height: 1.4;
}

.trash-handling .role-label {
  display: block;
  margin-bottom: 1px;
  color: #CBE7B0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 1;
  text-transform: uppercase;
}

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html,
  body { background: white; background-image: none; }
  body { padding: 0; }
  .screen-only { display: none !important; }
  .sheet { box-shadow: none; border: none; padding: 0; max-width: none; }
  .phase-block, .setup-block, .header-row, .image-card, .reminder-card { page-break-inside: avoid; }
  .trash-mob-card { break-inside: avoid; page-break-inside: avoid; }
}

/* No-JS camp selector; kept local to the trash guide. */
.trash-camp-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.trash-camp-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.trash-camp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hyjal-border);
  border-radius: 6px;
  background: var(--hyjal-panel-bg-soft);
  color: var(--hyjal-text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.trash-camp-button-icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hyjal-border-soft);
  border-radius: 4px;
  background-color: var(--hyjal-phase-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.trash-camp-button-icon-alliance {
  background-image: url("https://wow.zamimg.com/images/wow/icons/large/achievement_boss_zuldazar_jaina.jpg");
}

.trash-camp-button-icon-horde {
  background-image: url("https://wow.zamimg.com/images/wow/icons/large/achievement_leader_-thrall.jpg");
}

.trash-camp-radio:focus-visible + .trash-camp-button {
  outline: 2px solid var(--hyjal-phase-text);
  outline-offset: 2px;
}

#hyjal-trash-alliance:checked + .trash-camp-button,
#hyjal-trash-horde:checked + .trash-camp-button {
  border-color: #7FA06F;
  background: var(--hyjal-phase-bg);
  color: var(--hyjal-phase-text);
}

.trash-camp-panel {
  display: none;
}

.trash-camp-guide:has(#hyjal-trash-alliance:checked) .trash-camp-panel-alliance,
.trash-camp-guide:has(#hyjal-trash-horde:checked) .trash-camp-panel-horde {
  display: block;
}

@media print {
  .trash-camp-selector { display: none; }
}
