.guide-content {
  --guide-bronze: #8c643b;
  --guide-divider: #88613e61;
  --guide-gold: #f4d098;
  --avlu-card: linear-gradient(135deg, #302116ed, #1c1511f5 68%, #291d13f2),
    url('../avlu/nav-avlu-stone.webp') center / cover;
}
.guide-content [hidden] { display: none; }
.guide-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 14px;
}
.guide-search label { color: var(--guide-gold); font: 700 clamp(17px, 2.2cqw, 25px)/1.2 Georgia, serif; }
.guide-search-field { position: relative; grid-row: 2; grid-column: 1 / -1; }
.guide-search-field::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 14px;
  width: 11px;
  height: 11px;
  margin-block: auto;
  border: 1px solid #d8b586;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -5px #d8b586;
  pointer-events: none;
}
.guide-search-field .input { min-height: 43px; padding-inline-start: 36px; }
.guide-search-field input::placeholder { color: #bca78d; }
.guide-search p { font-size: 13px; color: #d3b690; text-align: right; }
.guide-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.guide-filters button {
  min-height: 35px;
  padding: 5px 11px;
  border: 1px solid var(--guide-divider);
  color: #e8cda7;
  background: #21170f;
  font: 600 13px/1.2 var(--font-ui);
  cursor: pointer;
}
.guide-filters button:hover { border-color: #bc8d57; }
.guide-filters button[aria-pressed="true"] { color: #ffdc9e; background: linear-gradient(#553021, #2b1a11); border-color: #b48253; }
.guide-topics { display: grid; gap: 12px; min-width: 0; }
.guide-topic {
  min-width: 0;
  border: 1px solid var(--guide-bronze);
  background: var(--avlu-card);
  box-shadow: inset 0 0 0 2px #140d09, 0 5px 18px #0a060483;
  scroll-margin-block-start: 16px;
}
.guide-topic-head {
  display: grid;
  grid-template-columns: clamp(100px, 22cqw, 240px) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: clamp(115px, 14cqw, 150px);
  list-style: none;
  cursor: pointer;
  transition: background-color .17s, color .17s;
}
.guide-topic-head::-webkit-details-marker { display: none; }
.guide-topic-head:is(:hover, :focus-visible) { background-color: #be865028; }
.guide-topic-head:focus-visible { outline: 2px solid var(--guide-gold); outline-offset: 2px; }
.guide-topic-media {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--guide-divider);
  background: #17100c;
}
.guide-topic-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  object-position: center;
}
.guide-topic-head::after {
  content: '';
  align-self: center;
  width: 10px;
  height: 10px;
  margin-inline: clamp(13px, 2.7cqw, 28px);
  border: solid #d4a669;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}
.guide-topic[open] .guide-topic-head { border-bottom: 1px solid var(--guide-bronze); }
.guide-topic[open] .guide-topic-head::after { rotate: 225deg; }
.guide-topic-label { align-self: center; display: grid; min-width: 0; gap: 5px; padding: 13px clamp(10px, 2cqw, 22px); }
.guide-topic-label small { color: #dcab77; font-size: 12px; font-weight: 700; }
.guide-topic-label strong { color: var(--guide-gold); font: 700 clamp(19px, 3.2cqw, 33px)/1.1 Georgia, serif; overflow-wrap: anywhere; }
.guide-topic-label > span { color: #e5ceb0; font-size: clamp(13px, 1.6cqw, 16px); }
.guide-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; padding: clamp(13px, 2.7cqw, 28px); color: #ead9c0; font-size: 15px; line-height: 1.55; }
.guide-article :is(h3,h4) { color: var(--guide-gold); font: 700 clamp(17px, 2.2cqw, 23px)/1.25 Georgia, serif; }
.guide-article h3 { margin-top: 7px; }
.guide-article strong { color: #f3ddba; }
.guide-facts,
.guide-rewards,
.guide-gallery { display: grid; gap: 10px; margin: 0; }
.guide-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-facts div, .guide-rewards section { min-width: 0; padding: 11px 13px; border: 1px solid var(--guide-divider); background: #180f0bb3; }
.guide-facts dt { color: #cfa878; font-size: 12px; }
.guide-facts dd { margin: 2px 0 0; color: #ffe1af; font-weight: 700; }
.guide-steps { display: grid; gap: 7px; margin: 0; padding-inline-start: 22px; list-style: decimal; }
.guide-steps li::marker { color: #e2ad6d; font-weight: 700; }
.guide-inline-icon { display: inline-block; width: 18px; height: auto; vertical-align: middle; }
.guide-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-gallery figure, .guide-wide { min-width: 0; margin: 0; border: 1px solid var(--guide-divider); background: #120e0b; }
.guide-gallery a, .guide-wide a { display: grid; place-items: center; min-height: 100px; padding: 8px; }
.guide-gallery img, .guide-wide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 420px; object-fit: contain; }
.guide-gallery img { max-height: 290px; }
.guide-panel-gallery img { max-height: clamp(320px, 44cqw, 450px); }
.guide-market-gallery { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.guide-gallery figcaption, .guide-wide figcaption { padding: 8px 11px; border-top: 1px solid var(--guide-divider); color: #dabc93; font-size: 13px; }
.guide-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-rewards ul { display: grid; gap: 2px; margin: 7px 0 5px; padding: 0; list-style: none; }
.guide-rewards li { display: flex; align-items: center; gap: 8px; min-width: 0; padding-block: 4px; border-bottom: 1px solid #93683d31; }
.guide-rewards li img { width: 31px; height: 31px; flex: none; object-fit: contain; }
.guide-rewards li span { min-width: 0; overflow-wrap: anywhere; }
.guide-rewards p { margin-top: 8px; color: #e4bd87; }
.guide-note { padding: 9px 12px; border-left: 2px solid #bd8950; background: #6140223d; }
.guide-item-note { display: flex; align-items: center; gap: 9px; }
.guide-item-note img { width: 34px; height: 34px; flex: none; object-fit: contain; }
.guide-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-item-grid li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--guide-divider);
  background: #1a120dd9;
}
.guide-item-grid img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.guide-item-grid li > span { min-width: 0; overflow-wrap: anywhere; }
.guide-item-grid b { color: var(--guide-gold); }
.guide-item-grid small { display: block; margin-top: 3px; color: #ddc5a5; font-size: 13px; }
.guide-subtopic { min-width: 0; border: 1px solid var(--guide-divider); background: #1b130f; }
.guide-subtopic summary { padding: 8px 11px; color: var(--guide-gold); cursor: pointer; }
.guide-subtopic summary:focus-visible { outline: 2px solid var(--guide-gold); outline-offset: -2px; }
.guide-subtopic p { padding: 4px 11px 8px; }
.guide-table-wrap { max-width: 100%; overflow-x: auto; }
.guide-table { min-width: 455px; width: 100%; border-collapse: collapse; }
.guide-table :is(td, th) { padding: 6px 10px; border-top: 1px solid var(--guide-divider); text-align: left; }
.guide-table th { background: #382619; color: #f4d098; }
.guide-table tr:nth-child(even) td { background: #241910; }
.guide-link { color: #f0c47f; }
.guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide-no-results { color: #e5ceb0; }

@container (max-width: 490px) {
  .guide-topic-head { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .guide-topic-label { gap: 4px; }
  .guide-topic-label strong { font-size: 19px; }
  .guide-facts, .guide-gallery, .guide-rewards, .guide-item-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-topic-head { transition: none; }
}
