/* ---------------------------------------------------------------
   title-docket.css -- title.php, one Dominion's history, as a page of the docket.

   Same sheet as the other docket pages (docket.css and docket-dark.css load
   first). This file holds only what is particular to this page: the reign
   register, the log of what happened in each reign, and the Longest Reigns
   bars. Everything is under .docket.is-title, a class only title.php puts on the
   sheet, so nothing here can reach any other page.

   The accent is gold, the same Dominion gold dominions.php uses, since this is
   that page's other half.
   --------------------------------------------------------------- */

.docket.is-dark.is-title { --moral: #e4b84a; }

.docket.is-title .reg-title { margin-top: 22px; }
.docket.is-title h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); }
.docket.is-title .block.gap { margin-top: 38px; }

/* ---- The facts strip: a vacant belt is present, but plainly nobody's ---- */
.docket.is-title .facts dd.is-vacant { color: var(--muted); font-style: italic; }

/* How the current reign began, in one line under the facts. */
.docket.is-title .t-beat {
  margin: 14px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Links in running text: the docket's links look like plain text until you hover,
   which would hide where a show can be opened from. Here they carry a quiet
   underline. The chain of :not()s is the site's own link rule, repeated so this
   beats it. */
.docket.is-title .t-beat a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark),
.docket.is-title .ev-text a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark),
.docket.is-title .lg-who a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.docket.is-title .t-beat a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover,
.docket.is-title .ev-text a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover,
.docket.is-title .lg-who a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover {
  color: var(--moral);
  text-decoration-color: var(--moral);
}

/* ---- One reign ---- */
.docket.is-title .reigns { border-top: 1px solid var(--rule); }
.docket.is-title .reign {
  position: relative;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--rule-soft);
}
/* The reign running now: the gold rule the Dominion register uses for what is
   live, set into the margin so the text stays in line with the others. */
.docket.is-title .reign.is-current {
  padding-left: 15px;
  margin-left: -18px;
  border-left: 3px solid var(--moral);
}

.docket.is-title .rg-range {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.docket.is-title .rg-range span { color: var(--moral); }
.docket.is-title .rg-holder {
  margin: 6px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: none;
  color: var(--ink);
}
.docket.is-title .rg-comp {
  margin: 6px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---- What happened in it, newest first ---- */
.docket.is-title .log {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.docket.is-title .ev {
  padding-left: 14px;
  border-left: 2px solid var(--rule);
}
.docket.is-title .ev-kind {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.docket.is-title .ev-text {
  margin: 3px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink);
}
/* How it started, and a roster change that did not stop it: the Dominion's gold.
   How it ended: the muted rule. A defence: the plain one. */
.docket.is-title .ev-entered,
.docket.is-title .ev-switch { border-left-color: var(--moral); }
.docket.is-title .ev-entered .ev-kind,
.docket.is-title .ev-switch .ev-kind { color: var(--moral); }
.docket.is-title .ev-ended,
.docket.is-title .ev-vacated { border-left-color: var(--muted); }
.docket.is-title .ev-defended { border-left-color: var(--rule); }

/* ---- Longest reigns ---- */
.docket.is-title .lg {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.docket.is-title .lg-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.docket.is-title .lg-photo {
  display: block;
  width: 3.4rem;
  height: 4.4rem;
  overflow: hidden;
  background: #2a2236;
}
.docket.is-title .lg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(0.2) contrast(1.04);
}
.docket.is-title .lg-who { display: block; min-width: 0; }
.docket.is-title .lg-who a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark),
.docket.is-title .lg-name {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.docket.is-title .lg-dates {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* The bar is the length of the reign against the longest; the length itself is
   written beside it, so it is never clipped inside a short bar. */
.docket.is-title .lg-meter { display: flex; align-items: center; gap: 14px; min-width: 0; }
.docket.is-title .lg-bar {
  display: block;
  flex: 1 1 auto;
  height: 0.7rem;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}
.docket.is-title .lg-fill { display: block; height: 100%; background: var(--moral); }
.docket.is-title .lg-len {
  flex: 0 0 auto;
  min-width: 8rem;
  text-align: right;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* ---- A phone ---- */
@media (max-width: 800px) {
  .docket.is-title .reign.is-current { margin-left: -12px; padding-left: 10px; }
  .docket.is-title .lg-row { grid-template-columns: 3rem minmax(0, 1fr); gap: 8px 14px; }
  .docket.is-title .lg-photo { width: 3rem; height: 3.9rem; }
  .docket.is-title .lg-meter { grid-column: 1 / -1; }
  .docket.is-title .lg-len { min-width: 0; }
}
