/* Player Manual: Fable connected catalog, interactive Albion map & launch planner */

.fable-catalog article,
.fable-guide article {
  max-width: 900px;
}

.fable-nav-bar,
.fable-chips,
.fable-stat-chips,
.fable-quest-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .85rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.fable-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1px solid #c9bc9f;
  border-radius: .35rem;
  background: #fdf9f0;
  color: #2c2419;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.fable-chip:hover,
.fable-chip:focus-visible {
  background: #f1e8d3;
  border-color: #8f6b32;
  color: #1c150c;
}

.fable-chip-active {
  background: #2f4b37;
  border-color: #2f4b37;
  color: #fffdf7;
}

.fable-chip-active:hover,
.fable-chip-active:focus-visible {
  background: #243b2a;
  color: #fffdf7;
}

.fable-chip span {
  font-size: .78rem;
  font-weight: 500;
  opacity: .78;
}

.fable-stat-chips li {
  padding: .32rem .68rem;
  border: 1px solid #d5cab2;
  border-radius: .35rem;
  background: #f7f2e5;
  font-size: .9rem;
  color: #2a2117;
}

.fable-badge {
  display: inline-block;
  padding: .16rem .48rem;
  border-radius: .25rem;
  font-size: .76rem;
  font-weight: 700;
  background: #e3ebdf;
  color: #24402c;
}

.fable-tag {
  display: inline-block;
  padding: .14rem .45rem;
  border-radius: .25rem;
  font-size: .78rem;
  font-weight: 600;
  background: #efe8d8;
  color: #4a3a23;
}

.fable-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: .95rem;
  margin: 1rem 0 1.4rem;
}

.fable-entity-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .95rem 1rem;
  border: 1px solid #d7ccb6;
  border-radius: .4rem;
  background: #fffdf8;
}

.fable-entity-card:target,
tr[id^="char-"]:target {
  outline: 2px solid #8f6b32;
  background: #fbf4e3;
}

.fable-entity-card[hidden],
[data-fable-row][hidden] {
  display: none;
}

.fable-entity-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem;
}

.fable-entity-head h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.28;
}

.fable-entity-meta {
  margin: 0;
  font-size: .86rem;
  color: #5b4d3b;
  line-height: 1.42;
}

.fable-item-links {
  margin: .35rem 0 0;
  font-size: .85rem;
  line-height: 1.48;
  color: #463b2d;
}

.fable-card-foot {
  margin: auto 0 0;
  padding-top: .45rem;
  font-size: .9rem;
  font-weight: 650;
}

.fable-tool {
  margin: 1.45rem 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid #d5cab2;
  border-radius: .45rem;
  background: #faf6ec;
}

.fable-tool h2 {
  margin-top: 0;
}

.fable-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: .7rem;
  margin: .85rem 0;
}

.fable-filter-bar label {
  display: grid;
  gap: .28rem;
  font-size: .86rem;
  font-weight: 650;
  color: #2f2519;
}

.fable-filter-bar input,
.fable-filter-bar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .65rem;
  font: inherit;
  font-size: .92rem;
  background: #fffdf8;
  color: #241c13;
  border: 1px solid #a8997c;
  border-radius: .32rem;
}

.fable-filter-reset {
  margin: 0 0 .85rem;
}

.fable-filter-status {
  margin: .35rem 0 .8rem;
  font-size: .88rem;
  font-weight: 650;
  color: #3d3224;
}

.fable-map-wrap {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #d5cab2;
  border-radius: .5rem;
  background: #faf6ec;
}

.fable-map-head h2 {
  margin: 0 0 .35rem;
}

.fable-map-head p {
  margin: 0 0 .85rem;
  font-size: .92rem;
  color: #514332;
}

.fable-albion-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .45rem;
  border: 1px solid #c6b799;
  margin-bottom: .75rem;
}

.fable-map-water {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  fill: #4f6b72;
}

.fable-map-region-bg {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  fill: #8d7b5d;
  opacity: .75;
}

.fable-map-caption {
  font-size: 10.5px;
  fill: #64553e;
}

.fable-map-label {
  font-size: 12.5px;
  font-weight: 700;
  fill: #241c13;
  paint-order: stroke;
  stroke: #f6eedb;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.fable-map-pin {
  cursor: pointer;
}

.fable-map-pin:focus-visible {
  outline: none;
}

.fable-map-pin:hover .fable-pin-dot,
.fable-map-pin:focus-visible .fable-pin-dot {
  fill: #9c2d1f;
  r: 12;
  stroke: #21192a;
  stroke-width: 3.2;
}

.fable-mesh-box {
  margin-top: 1.75rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #d5cab2;
  border-radius: .4rem;
  background: #f8f5ec;
}

.fable-mesh-box h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.fable-mesh-lead {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: #514332;
}

.fable-mesh-dl {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.fable-mesh-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: .35rem .8rem;
  align-items: start;
}

.fable-mesh-row dt {
  margin: 0;
  padding-top: .28rem;
  font-size: .86rem;
  font-weight: 700;
  color: #2f2519;
}

.fable-mesh-row dd {
  margin: 0;
}

.fable-entity-link {
  text-decoration: underline;
  text-decoration-color: rgba(143, 107, 50, .55);
  text-underline-offset: .16em;
}

.fable-entity-link:hover {
  text-decoration-color: #2f4b37;
}

.fable-planner-output {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cbbda1;
  border-radius: .4rem;
  background: #fffdf8;
}

.fable-planner-output h3 {
  margin: 0 0 .6rem;
  font-size: 1.15rem;
}

.fable-planner-output ul {
  margin: 0 0 .85rem;
  padding-left: 1.2rem;
}

.fable-planner-output li {
  margin-bottom: .45rem;
}

.fable-checklist {
}

.fable-check-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16.5rem);
  gap: .9rem 1.2rem;
  align-items: start;
}

.fable-check-head h2 {
  margin: 0 0 .35rem;
}

.fable-check-head p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.48;
  color: #463b2d;
}

.fable-check-summary {
  display: grid;
  gap: .45rem;
  padding: .75rem .85rem;
  border: 1px solid #d5cab2;
  border-radius: .38rem;
  background: #fffdf8;
}

.fable-check-status {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  color: #24402c;
}

.fable-check-bar {
  height: .5rem;
  background: #e6dfd0;
  border-radius: 999px;
  overflow: hidden;
}

.fable-check-bar span {
  display: block;
  height: 100%;
  background: #2f4b37;
  transition: width .2s ease;
}

.fable-check-reset {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .85rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  color: #2f4b37;
  background: transparent;
  border: 1px solid #a8997c;
  border-radius: .32rem;
  cursor: pointer;
}

.fable-check-reset:hover,
.fable-check-reset:focus-visible {
  background: #f1e8d3;
}

.fable-check-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .95rem 0 .85rem;
}

.fable-check-filters[hidden],
.fable-check-item[hidden],
.fable-check-reset[hidden] {
  display: none;
}

.fable-check-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .85rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  color: #2c2419;
  background: #fffdf8;
  border: 1px solid #c9bc9f;
  border-radius: .35rem;
  cursor: pointer;
}

.fable-check-filter.is-active {
  background: #2f4b37;
  border-color: #2f4b37;
  color: #fffdf7;
}

.fable-check-filter:focus-visible,
.fable-check-item input:focus-visible {
  outline: 2px solid #8f6b32;
  outline-offset: 2px;
}

.fable-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: .75rem;
}

.fable-check-item {
  padding: .8rem .9rem;
  border: 1px solid #d7ccb6;
  border-radius: .38rem;
  background: #fffdf8;
}

.fable-check-item.is-done {
  background: #edf3ea;
  border-color: #9cb39d;
}

.fable-check-item.is-done label {
  text-decoration: line-through;
  color: #425444;
}

.fable-check-main {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}

.fable-check-main input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: .12rem 0 0;
  accent-color: #2f4b37;
  cursor: pointer;
}

.fable-check-copy {
  display: grid;
  gap: .3rem;
}

.fable-check-copy label {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.32;
  color: #241c13;
  cursor: pointer;
}

.fable-check-copy .fable-tag {
  justify-self: start;
}

.fable-check-copy p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.45;
  color: #463b2d;
}

.fable-check-guide {
  justify-self: start;
  font-size: .85rem;
  font-weight: 650;
}

.fable-check-noscript {
  margin: .85rem 0 0;
  font-size: .88rem;
  color: #5b4d3b;
}

@media (max-width: 720px) {
  .fable-check-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .fable-mesh-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .fable-chip {
    min-height: 44px;
  }
  .fable-nav-bar .fable-chip {
    font-size: .84rem;
    padding: .35rem .62rem;
  }
}
