@charset "UTF-8";
/* MHGU theme — scoped under .mh-layout
 *
 * Relocated unchanged from resources/css/_mh-theme.scss as part of the
 * themes/ split. MhLayout.vue applies `class="mh-layout"` to its root element.
 */
.mh-layout {
  --mhgu-parchment: #e8dcc4;
  --mhgu-parchment-light: #f0e8d4;
  --mhgu-parchment-dark: #d4c8a8;
  --mhgu-cream: #f5efe0;
  --mhgu-teal: #5bb8c9;
  --mhgu-teal-dark: #3a8fa0;
  --mhgu-teal-light: #8fd4e0;
  --mhgu-red: #8b3a3a;
  --mhgu-red-light: #a05050;
  --mhgu-red-dark: #6b2828;
  --mhgu-gold: #d8a030;
  --mhgu-gold-light: #e8c060;
  --mhgu-gold-dark: #b08020;
  --mhgu-brown: #6e5a44;
  --mhgu-brown-dark: #4a3c2c;
  --mhgu-brown-light: #8a7860;
  --mhgu-text: #3a2e20;
  --mhgu-text-muted: #7a6e5e;
  --mhgu-text-red: #a04040;
  --mhgu-text-teal: #2a7888;
  --mhgu-row-blue: #c8e8f0;
  --mhgu-row-blue-alt: #b0d8e4;
  --mhgu-row-hover: #a0d0e0;
  --mhgu-bg: #f0e8d4;
  --mhgu-bg-dark: #2e2820;
  --mhgu-border: #c0b090;
  --mhgu-border-teal: #70c0d0;
  color: var(--mhgu-text);
  background: var(--mhgu-bg);
  font-family: "Work Sans", "Inter", sans-serif;
}

/* MHGU Panel — parchment box with thin border */
.mhgu-panel {
  background: linear-gradient(180deg, #f0e8d4 0%, #e8dcc4 100%);
  border: 2px solid var(--mhgu-border);
  border-radius: 3px;
  position: relative;
}

/* Geometric arrow border — repeating triangle pattern */
.mhgu-arrow-border {
  height: 16px;
  position: relative;
  overflow: hidden;
  background: var(--mhgu-parchment-dark);
}

.mhgu-arrow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mhgu-teal) 33%, transparent 33%) -10px 0, linear-gradient(225deg, var(--mhgu-teal) 33%, transparent 33%) -10px 0, linear-gradient(315deg, var(--mhgu-teal) 33%, transparent 33%), linear-gradient(45deg, var(--mhgu-teal) 33%, transparent 33%);
  background-size: 20px 16px;
  background-color: var(--mhgu-parchment-dark);
}

/* Red-brown header bar (section titles) */
.mhgu-header-bar {
  background: var(--mhgu-red);
  color: #fff;
  padding: 8px 16px;
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Dark weapon-shop panel */
.mhgu-dark-panel {
  background: var(--mhgu-bg-dark);
  color: #e8dcc4;
  border-radius: 3px;
}

/* Quest row — teal gradient */
.mhgu-quest-row {
  background: linear-gradient(135deg, var(--mhgu-row-blue) 0%, var(--mhgu-row-blue-alt) 100%);
  border: 1px solid var(--mhgu-border-teal);
  border-radius: 2px;
  transition: background 0.15s ease;
}

.mhgu-quest-row:hover {
  background: linear-gradient(135deg, var(--mhgu-row-hover) 0%, var(--mhgu-row-blue) 100%);
}

/* Rarity tag colors */
.mhgu-tag-lr {
  background: rgba(110, 90, 68, 0.15);
  color: var(--mhgu-brown);
}

.mhgu-tag-hr {
  background: rgba(91, 184, 201, 0.2);
  color: var(--mhgu-teal-dark);
}

.mhgu-tag-gr {
  background: rgba(216, 160, 48, 0.2);
  color: var(--mhgu-gold-dark);
}

.mhgu-tag-deviant {
  background: rgba(139, 58, 58, 0.15);
  color: var(--mhgu-red);
}

/* MH prose — article body styling */
.mh-prose {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mhgu-text);
}
.mh-prose h1, .mh-prose h2, .mh-prose h3, .mh-prose h4, .mh-prose h5, .mh-prose h6 {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: var(--mhgu-red);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.mh-prose h1 {
  font-size: 1.75rem;
}
.mh-prose h2 {
  font-size: 1.5rem;
}
.mh-prose h3 {
  font-size: 1.25rem;
}
.mh-prose a {
  color: var(--mhgu-teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.mh-prose a:hover {
  color: var(--mhgu-gold);
}
.mh-prose a.attachment-file-tile {
  color: inherit;
  text-decoration: none;
}
.mh-prose a.attachment-file-tile:hover {
  color: inherit;
}
.mh-prose p {
  margin-bottom: 1em;
}
.mh-prose blockquote {
  border-left: 4px solid var(--mhgu-gold);
  background: var(--mhgu-parchment-dark);
  padding: 12px 16px;
  margin: 1.5em 0;
  border-radius: 2px;
}
.mh-prose code {
  background: var(--mhgu-bg-dark);
  color: var(--mhgu-parchment-light);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.875em;
}
.mh-prose pre {
  background: var(--mhgu-bg-dark);
  color: var(--mhgu-parchment-light);
  padding: 16px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.mh-prose pre code {
  background: none;
  padding: 0;
}
.mh-prose img {
  border: 2px solid var(--mhgu-gold-dark);
  border-radius: 3px;
  margin: 1.5em 0;
}

/* Action Text image galleries — responsive grid (overrides Trix flex overflow) */
.mh-prose.trix-content {
  overflow-x: clip;
  min-width: 0;
}

.mh-prose.trix-content .attachment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin: 1.5em 0;
}

@media (min-width: 640px) {
  .mh-prose.trix-content .attachment-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .mh-prose.trix-content .attachment-gallery {
    grid-template-columns: 1fr;
  }
}

.mh-prose.trix-content .attachment-gallery.attachment-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mh-prose.trix-content .attachment-gallery:has(> action-text-attachment:only-child),
.mh-prose.trix-content .attachment-gallery:has(> .attachment:only-child) {
  grid-template-columns: 1fr;
}

.mh-prose.trix-content .attachment-gallery > action-text-attachment,
.mh-prose.trix-content .attachment-gallery > .attachment {
  flex: unset !important;
  flex-basis: unset !important;
  width: 100%;
  max-width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
}

.mh-prose.trix-content .attachment-gallery .attachment.attachment--preview {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
}

.mh-prose.trix-content .attachment-gallery__link {
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

.mh-prose.trix-content .attachment-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border: 2px solid var(--mhgu-gold-dark);
  border-radius: 3px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.mh-prose.trix-content .attachment-gallery__link:hover img,
.mh-prose.trix-content .attachment-gallery__link:focus-visible img {
  border-color: var(--mhgu-teal);
}

.mh-prose.trix-content .attachment--preview > .attachment-gallery__link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 2px solid var(--mhgu-gold-dark);
  border-radius: 3px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.mh-prose action-text-attachment:has(.embed) {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 1.5em auto;
}

.mh-prose .embed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--mhgu-gold-dark);
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}

.mh-prose .embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mh-prose action-text-attachment:has(.attachment--file) {
  display: inline-block;
  width: 8.5rem;
  margin: 0 0.75rem 1rem 0;
  vertical-align: top;
}
.mh-prose .attachment--file {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.mh-prose .attachment-file-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0.5rem;
  background: linear-gradient(180deg, #f0e8d4 0%, #e8dcc4 100%);
  border: 2px solid var(--mhgu-border);
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mh-prose .attachment-file-tile:hover {
  border-color: var(--mhgu-teal);
  background: #fffaf0;
  color: inherit;
}
.mh-prose .attachment-file-tile__icon {
  display: block;
  width: 3rem;
  height: 3.5rem;
  border-radius: 4px;
  background: var(--mhgu-parchment-dark);
  border: 1px solid var(--mhgu-gold-dark);
  position: relative;
}
.mh-prose .attachment-file-tile__icon::before {
  content: "";
  position: absolute;
  inset: 0.7rem 0.85rem 0.85rem 0.85rem;
  border: 2px solid #7a6e5e;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
.mh-prose .attachment-file-tile--audio .attachment-file-tile__icon::before,
.mh-prose .attachment-file-tile--video .attachment-file-tile__icon::before {
  inset: 0;
  border: 0;
  background: #7a6e5e;
  clip-path: polygon(38% 24%, 38% 76%, 72% 50%);
}
.mh-prose .attachment-file-tile--archive .attachment-file-tile__icon::before {
  inset: 0.8rem 0.7rem;
  border: 2px solid #7a6e5e;
  border-radius: 2px;
}
.mh-prose .attachment-file-tile__name {
  display: block;
  width: 100%;
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mhgu-brown);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mh-prose .attachment-file-tile__caption {
  margin: 0.35rem 0 0;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--mhgu-text-muted, #7a6e5e);
  text-align: center;
}
.mh-prose ul, .mh-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.mh-prose li {
  margin-bottom: 0.25em;
}
.mh-prose li::marker {
  color: var(--mhgu-teal);
}
.mh-prose hr {
  border: 0;
  height: 1px;
  width: 80%;
  margin: 2.5em auto;
  background: linear-gradient(90deg, transparent 0%, var(--mhgu-border) 15%, var(--mhgu-gold-dark) 50%, var(--mhgu-border) 85%, transparent 100%);
  position: relative;
  overflow: visible;
}
.mh-prose hr::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--mhgu-gold);
  border: 1px solid var(--mhgu-gold-dark);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

/* MH comment section */
.mh-layout .mh-comment-section {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.mh-layout .mh-comment-section__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mh-layout .mh-comment-section__head .mhgu-header-bar {
  margin: 0;
}

.mh-layout .mh-comment-section__count {
  font-family: "Work Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mhgu-text-muted);
}

.mh-layout .mh-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mh-layout .mh-comment-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  background: var(--mhgu-parchment-light);
  border: 1px solid var(--mhgu-border);
  border-left: 3px solid var(--mhgu-teal);
  border-radius: 2px;
}

.mh-layout .mh-comment-item__avatar {
  border: 2px solid var(--mhgu-border);
  border-radius: 2px;
  flex-shrink: 0;
}

.mh-layout .mh-comment-item__content {
  flex: 1;
  min-width: 0;
}

.mh-layout .mh-comment-item__author {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: var(--mhgu-red);
  margin-bottom: 0.375rem;
}

.mh-layout .mh-comment-item__body {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mhgu-text);
}

.mh-layout .mh-comment-item__date {
  display: block;
  margin-top: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--mhgu-text-muted);
}

.mh-layout .mh-comment-item__actions {
  margin-top: 0.5rem;
}

.mh-layout .mh-comment-item .comment-quote-btn {
  padding: 0;
  border: none;
  background: none;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--mhgu-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.mh-layout .mh-comment-item .comment-quote-btn:hover {
  color: var(--mhgu-text);
}

.mh-layout .mh-comment-section__empty {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: "Inter", sans-serif;
  color: var(--mhgu-text-muted);
}

.mh-layout .mh-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mh-layout .mh-comment-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 639px) {
  .mh-layout .mh-comment-form__fields {
    grid-template-columns: 1fr;
  }
}
.mh-layout .mh-comment-form__input,
.mh-layout .mh-comment-form__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: var(--mhgu-text);
  background: var(--mhgu-cream);
  border: 2px solid var(--mhgu-border);
  border-radius: 2px;
}

.mh-layout .mh-comment-form__input:focus,
.mh-layout .mh-comment-form__textarea:focus {
  outline: none;
  border-color: var(--mhgu-teal);
}

.mh-layout .mh-comment-form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.mh-layout .mh-comment-form__submit {
  align-self: flex-start;
  padding: 0.625rem 1.25rem;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--mhgu-teal-dark);
  border: 2px solid var(--mhgu-teal-dark);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mh-layout .mh-comment-form__submit:hover {
  background: var(--mhgu-gold-dark);
  border-color: var(--mhgu-gold-dark);
}

/* Shared gallery lightbox — MH hub palette (dialog is on body, outside .mh-layout) */
body:has(.mh-layout-root) .gallery-lightbox {
  --gallery-lightbox-backdrop: rgba(46, 40, 32, 0.94);
  --gallery-lightbox-border: #c0b090;
  --gallery-lightbox-control-bg: rgba(74, 60, 44, 0.96);
  --gallery-lightbox-text: #f0e8d4;
  --gallery-lightbox-text-dim: #a89880;
  --gallery-lightbox-accent: #5bb8c9;
}

body:has(.mh-layout-root) .gallery-lightbox__close,
body:has(.mh-layout-root) .gallery-lightbox__nav {
  border-radius: 2px;
  font-family: "Work Sans", sans-serif;
  border-width: 2px;
}

body:has(.mh-layout-root) .gallery-lightbox__close:hover,
body:has(.mh-layout-root) .gallery-lightbox__close:focus-visible,
body:has(.mh-layout-root) .gallery-lightbox__nav:hover,
body:has(.mh-layout-root) .gallery-lightbox__nav:focus-visible {
  border-color: var(--mhgu-gold);
  color: var(--mhgu-gold-light);
  background: rgba(58, 46, 30, 0.98);
}

body:has(.mh-layout-root) .gallery-lightbox__image {
  border: 2px solid #b08020;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(20, 14, 8, 0.45);
}

body:has(.mh-layout-root) .gallery-lightbox__counter {
  font-family: "Work Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

