/* P2: Homepage: a blank canvas that clearly waits for the guild (its look stays open until Rob's creative shot) */
:root { --paper: #fbfaf8; --ink: #2b2b2b; --quiet: #8c8a86; --line: #e4e1dc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: inherit; }
header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 28px; }
.policies { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.policies a { text-decoration: none; color: var(--quiet); }
.policies a:hover { color: var(--ink); }
.brand { font-weight: 600; text-decoration: none; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px; }
main.canvas { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
h1 { font-size: 34px; margin: 0 0 8px; }
#guildName { font-size: 56px; font-weight: 600; letter-spacing: .02em; margin: 0 0 32px; }
.placeholder { color: var(--quiet); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 10px; }
.ways { display: flex; gap: 14px; margin-top: 36px; }
.way { text-decoration: none; border: 1px solid var(--ink); border-radius: 6px; padding: 10px 22px; }
footer { padding: 18px 28px; text-align: center; font-size: 13px; color: var(--quiet); }
/* P108: Blizzard's attribution, small and grey at the foot of every page, under everything else */
footer.blizzard { padding: 14px 28px 18px; font-size: 12px; line-height: 1.5; }
footer.blizzard p { max-width: 760px; margin: 0 auto; }
footer.blizzard p + p { margin-top: 4px; }
/* P107: Not part of wotop: Rob's sentence, values set as inline code */
.not-in-wotop { max-width: 560px; }
/* P114: Not in the Discord yet: the one line and its link, above the rest */
.not-in-discord { max-width: 560px; }
code { font: .92em/1 Consolas, "Cascadia Mono", monospace; padding: 2px 5px; border-radius: 4px; background: #efece7; }
button { font: inherit; border: 1px solid var(--ink); border-radius: 6px; padding: 10px 22px; background: #fff; cursor: pointer; }
section + section { margin-top: 28px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 24px; }
.tabs a { text-decoration: none; padding: 8px 14px; color: var(--quiet); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 28px; }
.side + .side { border-left: 1px solid var(--line); }
.split > .side { margin-top: 0; }  /* P17: both sides start level (section + section spaces stacked sections only) */
.side h2 { margin: 0 0 6px; font-size: 20px; }
.side button { width: 100%; max-width: 260px; }
/* P17: the sign-in page's states; P19: your account's facts */
[hidden] { display: none !important; }
.side form { width: 100%; display: flex; justify-content: center; margin: 0; }
.notice { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--quiet); }
.progress { width: 100%; max-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.progress ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.progress li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.progress .missing { color: var(--quiet); }
button.quiet { border-color: var(--line); color: var(--quiet); }
/* P17, R142: the declined state grays out every sign-in control */
.side button:disabled { border-color: var(--line); color: var(--quiet); cursor: default; }
/* P17, R141: the pop-up before Battle.net: its sentence, the privacy policy in a frame, Confirm and Reject at its foot */
dialog.popup { width: min(780px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px)); max-width: none;
  max-height: none; box-sizing: border-box; border: 1px solid var(--ink); border-radius: 10px; padding: 0;
  background: var(--paper); color: var(--ink); }
dialog.popup[open] { display: flex; flex-direction: column; }
dialog.popup::backdrop { background: rgba(0, 0, 0, .45); }
dialog.popup h2 { margin: 0; padding: 22px 28px 0; font-size: 1.35rem; }
dialog.popup .lead { padding: 10px 28px 0; line-height: 1.55; }
dialog.popup .lead p { margin: 0 0 10px; }
dialog.popup iframe { display: block; flex: 1 1 auto; min-height: 200px; margin: 6px 28px 0; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; }
dialog.popup .buttons { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px 20px; }
dialog.popup .buttons button { min-width: 120px; }
dialog.popup #battlenetPopupConfirm { background: var(--ink); color: #fff; }
@media (max-width: 600px) {
  dialog.popup { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  dialog.popup h2 { padding: 16px 16px 0; font-size: 1.15rem; }
  dialog.popup .lead { padding: 8px 16px 0; font-size: .95rem; }
  dialog.popup iframe { margin: 4px 16px 0; }
  dialog.popup .buttons { padding: 12px 16px 14px; }
  dialog.popup .buttons button { flex: 1; min-width: 0; }
}
/* R141: the privacy policy as the pop-up frames it (/rules?embed): the policy alone, no site header, title, tabs or footer */
.embed header, .embed main > h1, .embed .tabs, .embed #blizzardNotice { display: none; }
.embed main { margin: 0; padding: 4px 22px 22px; max-width: none; }
.embed body { min-height: 0; }
@media (max-width: 600px) { .embed main { padding: 0 12px 12px; } }
.facts p { display: flex; gap: 16px; margin: 6px 0; }
.facts b { min-width: 90px; font-weight: 500; color: var(--quiet); }
/* P92: a fact that is a list (the waiting application's availability, one run a bullet, the zone under them) */
.facts .fact { display: flex; gap: 16px; margin: 6px 0; }
.facts .runs { margin: 0 0 2px; padding-left: 18px; }
/* P19: your characters, each opening to its gear; item names in the game's quality colors (darkened to read on paper) */
.characters { list-style: none; padding: 0; margin: 8px 0; }
.characters summary { cursor: pointer; padding: 4px 0; }
.characters ul { margin: 4px 0 10px; padding-left: 22px; font-size: 14px; }
.q-poor { color: #9d9d9d; }
.q-uncommon { color: #1a8c00; }
.q-rare { color: #0070dd; }
.q-epic { color: #a335ee; }
.q-legendary { color: #d96d00; }
.tag { font-size: 12px; color: var(--quiet); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
/* P19: beside each character, the one thing you can do with it (R36) */
.characters li.character { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.characters li.character > details { flex: 1; }
.characters .control { white-space: nowrap; padding-top: 2px; }
.characters .control form { margin: 0; }
.characters .control button { padding: 2px 12px; font-size: 14px; }
/* P19: Your profile page: a wider column, so a character's card and its buttons sit side by side */
main.profile { max-width: 820px; }
.profile .way { display: inline-block; }
header .sign-out { margin: 0; }  /* P19: Sign out at the profile's top right, after the header's links */
header .sign-out button { padding: 4px 14px; font-size: 14px; }
/* P90: Character card, the one designed thing on the site (Rob, 2026-11-19: "I do want the effort to be put into that
   'card' to be handled beautifully and look like how the WoW Armory cards look"): a dark plate with a fine gold
   bevel; at its left the faction's banner hanging from a gilded bar (our own CSS and SVG, never Blizzard's art: Horde
   red, Alliance blue, slate when unknown) with the headshot framed over it and the level in a ring at its corner; then
   "Firstname Lastname", "<guild>" and race and class, the class word in its class color (P94); to its right the big
   buttons, styled like the plate, side by side. A headshot that does not load gives way to a monogram on the class's
   color. The plate is not a link yet; it will open the character's own profile */
.cards { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
/* the row never wraps beside a phone's width: the plate gives up width so what a card's buttons say stays to its right
   (Rob, 2026-11-22, F64: This should be right of the character where it failed, not next-line'ed) */
.card { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.plate { --faction: #464a53; --faction-deep: #1e2025; --gold: #c9a447; --gold-light: #f2d98c;
  position: relative; flex: 0 1 470px; min-width: 240px; min-height: 132px; display: flex; align-items: center; gap: 16px;
  padding: 0 22px 0 14px; overflow: hidden; color: #e9e4d6; border: 1px solid #08090a; border-radius: 6px;
  background:
    radial-gradient(150px 170px at 60px 46%, color-mix(in srgb, var(--faction) 42%, transparent), transparent 72%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #26282e 0%, #18191d 56%, #0f1013 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 71, .30), inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .28); }
.plate::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 71, .45), transparent); }
.plate[data-faction="horde"] { --faction: #a8191c; --faction-deep: #470a0b; }
.plate[data-faction="alliance"] { --faction: #2353ad; --faction-deep: #0b1d47; }
.crest { position: relative; flex: none; align-self: stretch; width: 92px; min-height: 132px; }
.crest .pole { position: absolute; z-index: 1; left: 3px; right: 3px; top: 7px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #6f5419); box-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.crest .pole::before, .crest .pole::after { content: ""; position: absolute; top: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold-light), var(--gold) 55%, #5c4512); }
.crest .pole::before { left: -4px; }
.crest .pole::after { right: -4px; }
.crest .cloth { position: absolute; left: 9px; right: 9px; top: 10px; bottom: 4px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.crest .cloth::before { content: ""; position: absolute; inset: 0 2px 3px; clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, color-mix(in srgb, var(--faction) 82%, #fff) 0%, var(--faction) 30%, var(--faction-deep) 100%); }
.crest .sigil { position: absolute; left: 50%; bottom: 13%; width: 24px; height: 24px; margin-left: -12px; display: none;
  fill: var(--gold-light); opacity: .9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)); }
.plate[data-faction="horde"] .sigil-horde, .plate[data-faction="alliance"] .sigil-alliance { display: block; }
.portrait { position: absolute; z-index: 2; left: 14px; top: 22px; width: 64px; height: 64px; overflow: hidden; border-radius: 4px;
  border: 2px solid var(--gold); background: #0c0d0f; box-shadow: 0 0 0 1px #000, 0 4px 10px rgba(0, 0, 0, .6); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font: 600 34px/1 "Palatino Linotype", "Book Antiqua", Georgia, serif; color: #fff; background-color: #6b6f78;
  background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .38), transparent 58%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .28));
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.crest .level { position: absolute; z-index: 3; left: 62px; top: 72px; min-width: 28px; height: 28px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 2px solid var(--gold);
  font: 700 13px/1 "Segoe UI", system-ui, sans-serif; color: var(--gold-light);
  background: radial-gradient(circle at 50% 30%, #34363c, #0a0a0c 70%); box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, .7); }
.plate .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plate .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #f7f2e6; letter-spacing: .01em;
  font: 600 24px/1.2 "Palatino Linotype", "Book Antiqua", Georgia, serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.plate .guild { font: 15px/1.3 "Palatino Linotype", "Book Antiqua", Georgia, serif; color: #d8bd6f; }
.plate .kind { font-size: 14px; color: #c3c6cd; }
.plate .class { font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .8); }
.moves { display: flex; align-items: stretch; gap: 10px; }
.moves form { display: flex; margin: 0; }
.move { display: flex; align-items: center; justify-content: center; width: 136px; min-height: 132px; margin: 0; padding: 0 14px;
  border: 1px solid #08090a; border-radius: 6px; cursor: pointer; text-align: center; color: var(--gold-light, #f2d98c);
  font: 600 17px/1.25 "Palatino Linotype", "Book Antiqua", Georgia, serif; letter-spacing: .02em; text-shadow: 0 1px 2px #000;
  background: radial-gradient(90px 70px at 50% 0%, rgba(201, 164, 71, .14), transparent 70%),
    linear-gradient(180deg, #2b2d34 0%, #1a1b20 58%, #111215 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 71, .38), inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .28);
  transition: box-shadow .15s ease, color .15s ease; }
button.move { color: #f2d98c; }
.move:hover { color: #fff3c8; box-shadow: inset 0 0 0 1px rgba(242, 217, 140, .85), inset 0 0 22px rgba(201, 164, 71, .2), 0 2px 10px rgba(0, 0, 0, .35); }
.move:active { transform: translateY(1px); }
.move:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* R127: Get Invite grayed out while no in-game client is configured */
button.move:disabled, button.move:disabled:hover { color: #a6aab2; opacity: .5; cursor: default; box-shadow: none; transform: none; }
.move.done, .move.done:hover { cursor: default; color: #a6aab2; transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 8px rgba(0, 0, 0, .2); }
/* P90: the buttons' line, small and red (the problems' red) to the right of where the invite stands, in the same row
   (Rob, 2026-11-20, F61: This text, when it happens, should be red and appear to the right of "Requesting invite"); a
   fixed width, so the row stays beside the plate */
.moves .card-problem { flex: 0 0 140px; align-self: center; margin: 0; font-size: 13px; line-height: 1.4; color: #b42318; }
@media (max-width: 640px) {
  .card { flex-wrap: wrap; }
  .plate { flex-basis: 100%; }
  .moves { flex-basis: 100%; }
  .moves form, .move { flex: 1; }
  .move { width: auto; min-height: 56px; }
}
/* P101: the guild rules a held person reads before Accept or Reject (P105: the Raider Rules, before Accept) */
.rules-text { margin: 18px 0; }
/* P26, P104: the caveat under each set of rules, part of their text (Rob, 2026-11-22: "Include a standard caveat under
   both sets of rules") */
.caveat { font-size: 14px; color: var(--quiet); }
/* P27: the privacy policy's Last updated line, quiet like the caveat */
.updated { font-size: 14px; color: var(--quiet); }
/* P19: a quiet line of help or state under a heading (the profile, Apply to Raid) */
.help { font-size: 14px; color: var(--quiet); }
/* P92: Apply to Raid, a page of its own: the questions, the waiting application, the buttons, in a column wide enough
   for the week grid */
main.apply { max-width: 820px; }
.apply input[type="checkbox"] { accent-color: var(--ink); }
fieldset.question { border: 0; padding: 0; margin: 18px 0 8px; }
fieldset.question legend { padding: 0; font-weight: 600; }
fieldset.question label { display: block; padding: 3px 0; }
.actions { display: flex; gap: 12px; margin-top: 20px; }
/* P92: a form's problems, small and red, to the left of its Submit (P100: its Save) (Rob, 2026-11-19: "This should be
   small/in red/somewhere not here, like left of it"); the buttons sit at the form's right edge, so a problem showing
   never moves them, and on a narrow screen the problems take a line of their own above them */
.actions.form-end { flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.problems { flex: 1 1 240px; text-align: right; font-size: 13px; line-height: 1.4; color: #b42318; }
.problems p { margin: 0; }
/* P92: a question's small red (!) beside its heading while a problem is about it, the problems' own red (Rob,
   2026-11-20: "there should ALSO be a red (!) or something near the actual questions"; P100: beside the page's heading) */
.mark { margin-left: 6px; font-size: 13px; font-weight: 700; color: #b42318; vertical-align: middle; }
.toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toggle button { padding: 5px 12px; font-size: 14px; }
.toggle button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
/* P50: the week grid of the guild's evenings, Google Calendar's way in the site's black and white: days across, half
   hours down (a line each hour, a fainter one each half hour, a darker one at midnight); Preferred filled in ink,
   Available a light fill outlined in ink, each run of one level drawn as one rounded block. The Available / Preferred /
   Erase switch shows only on a screen with a touch pointer, where there is no right-click to paint Preferred with */
#brushSwitch { display: none; }
@media (any-pointer: coarse) { #brushSwitch { display: flex; } }
.slot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin: 14px 0 10px; }
.slots { --gutter: 62px; --row: 26px; padding: 0 0 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.slots-head { display: grid; grid-template-columns: var(--gutter) repeat(7, 1fr); height: 32px; align-items: center;
  margin-right: 6px; text-align: center; font-size: 13px; color: var(--quiet); }
.slots-body { display: grid; grid-template-columns: var(--gutter) 1fr; margin-right: 6px; }
.slots-times { display: grid; grid-auto-rows: var(--row); padding-right: 8px; text-align: right; font-size: 11px;
  line-height: var(--row); color: var(--quiet); white-space: nowrap; }
.slots-times span:nth-child(even) { opacity: .6; }
.slots-cells { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: var(--row); touch-action: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; font: inherit; cursor: pointer;
  background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell.half { border-top-color: color-mix(in srgb, var(--line) 45%, #fff); }
.cell.midnight { border-top-color: var(--quiet); }
@media (hover: hover) { .cell:hover { background: color-mix(in srgb, var(--line) 35%, #fff); } }
.cell:focus-visible { z-index: 2; outline: 2px solid var(--ink); outline-offset: -2px; }
.cell.bad { z-index: 1; outline: 2px dashed var(--ink); outline-offset: -3px; }
.cell.preferred::before, .cell.possible::before { content: ""; position: absolute; left: 3px; right: 3px; top: -1px; bottom: 0; }
.cell.top::before { top: 2px; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.cell.bottom::before { bottom: 2px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.cell.preferred::before { background: var(--ink); }
.cell.possible::before { background: var(--line); border: 0 solid var(--ink); border-left-width: 2px; border-right-width: 2px; }
.cell.possible.top::before { border-top-width: 2px; }
.cell.possible.bottom::before { border-bottom-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 13px; color: var(--quiet); }
.swatch { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 3px;
  background: #fff; border: 1px solid var(--line); }
.swatch.preferred { background: var(--ink); border-color: var(--ink); }
.swatch.possible { background: var(--line); border: 2px solid var(--ink); }
@media (max-width: 520px) { .slots { --gutter: 50px; } .slots-times { padding-right: 5px; font-size: 10px; } }
