/* SAICONS: manga catalogue. Shared navigation and languages stay in site.js. */
.manga-page {
  --mg-paper: #e7dfd1;
  --mg-copy: #d7cbbb;
  --mg-muted: #b8aa96;
  --mg-rule: rgba(191, 164, 111, .23);
  background: #0d0d0c;
  color: var(--mg-copy);
}

.manga-page [hidden] { display: none !important; }
.manga-page a:focus-visible,
.manga-page button:focus-visible {
  outline: 2px solid var(--dourado2, #d4bd8e);
  outline-offset: 5px;
}
.manga-page .mg-skip {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  max-width: calc(100vw - 24px);
  padding: 10px 16px;
  background: var(--dourado2, #d4bd8e);
  color: #111;
  font-size: .84rem;
  text-decoration: none;
  transform: translateY(-180%);
}
.manga-page .mg-skip:focus { transform: translateY(0); }
.manga-page .mg-main {
  position: relative;
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
  padding: 152px 0 70px;
}
.manga-page .mg-main:focus { outline: none; }
.manga-page .mg-intro { max-width: 720px; margin-bottom: 64px; }
.manga-page .mg-eyebrow {
  color: var(--dourado, #bfa46f);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.8;
  text-transform: uppercase;
}
.manga-page .mg-intro h1 {
  margin: 17px 0 20px;
  color: var(--mg-paper);
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: clamp(3.2rem, 7.4vw, 6.3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.manga-page .mg-lead {
  max-width: 530px;
  color: var(--mg-copy);
  font-size: 1rem;
  line-height: 1.8;
}
.manga-page .mg-language-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 25px;
  color: var(--mg-muted);
  font-size: .74rem;
  line-height: 1.7;
}
.manga-page .mg-language-code {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--dourado, #bfa46f);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.9;
}
.manga-page .mg-language-note p { min-width: 0; }
.manga-page .mg-collection { padding: 0; }
.manga-page .mg-collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mg-rule);
}
.manga-page .mg-collection-heading h2,
.manga-page .mg-content-note h2 {
  color: var(--mg-muted);
  font-size: .69rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.manga-page .mg-collection-heading > p {
  flex: 0 0 auto;
  color: var(--mg-muted);
  font-size: .7rem;
  letter-spacing: .035em;
}
.manga-page .mg-story {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(40px, 7vw, 100px);
  padding: 52px 0 62px;
  border-bottom: 1px solid var(--mg-rule);
}
.manga-page .mg-story-art {
  width: min(100%, 370px);
  margin: 0 auto;
}
.manga-page .mg-paper {
  background: var(--mg-paper);
  border: 1px solid rgba(231, 223, 209, .34);
  padding: 7px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}
.manga-page .mg-paper img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #fff;
}
.manga-page .mg-story-art figcaption {
  margin-top: 13px;
  color: var(--mg-muted);
  font-size: .64rem;
  line-height: 1.7;
  letter-spacing: .03em;
}
.manga-page .mg-story-copy { min-width: 0; padding: 16px 0; }
.manga-page .mg-story-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  color: var(--dourado, #bfa46f);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.6;
  text-transform: uppercase;
}
.manga-page .mg-story-rule {
  display: block;
  width: 29px;
  height: 1px;
  background: var(--dourado, #bfa46f);
  opacity: .55;
}
.manga-page .mg-story h3 {
  margin: 23px 0 21px;
  color: var(--mg-paper);
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.manga-page .mg-story h3 a { color: inherit; text-decoration: none; }
.manga-page .mg-story h3 a:hover { color: var(--dourado2, #d4bd8e); }
.manga-page .mg-story-description {
  max-width: 425px;
  color: var(--mg-copy);
  font-size: .9rem;
  line-height: 1.9;
}
.manga-page .mg-story-details {
  margin-top: 24px;
  color: var(--mg-muted);
  font-size: .72rem;
  line-height: 1.8;
  letter-spacing: .025em;
}
.manga-page .mg-story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 27px;
}
.manga-page .mg-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}
.manga-page .mg-action-primary {
  color: #11110e;
  background: var(--dourado, #bfa46f);
  border-color: var(--dourado, #bfa46f);
}
.manga-page .mg-action-primary:hover {
  background: var(--dourado2, #d4bd8e);
  border-color: var(--dourado2, #d4bd8e);
}
.manga-page .mg-action-continue {
  padding-inline: 0;
  color: var(--dourado2, #d4bd8e);
  border-bottom-color: rgba(191, 164, 111, .4);
}
.manga-page .mg-action-continue:hover { border-bottom-color: var(--dourado2, #d4bd8e); }
.manga-page .mg-progress {
  margin-top: 17px;
  color: var(--mg-muted);
  font-size: .72rem;
  line-height: 1.7;
}
.manga-page .mg-content-note {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-top: 27px;
}
.manga-page .mg-content-note h2 { flex: 0 0 auto; }
.manga-page .mg-content-note p {
  color: var(--mg-muted);
  font-size: .74rem;
  line-height: 1.8;
}
.manga-page footer { position: relative; }
.manga-page .footer-copy { color: #a39785; letter-spacing: .13em; }

@media (min-width: 1280px) {
  .manga-page > nav { padding-inline: clamp(24px, 3vw, 64px); }
  .manga-page > nav .nav-links { gap: clamp(16px, 1.7vw, 25px); }
  .manga-page > nav .nav-links a { letter-spacing: 1.8px; }
  .manga-page > nav .lang-switcher { margin-left: 20px; }
}
@media (max-width: 760px) {
  .manga-page .mg-main { width: calc(100% - 48px); padding: 116px 0 48px; }
  .manga-page .mg-intro { margin-bottom: 44px; }
  .manga-page .mg-intro h1 { font-size: clamp(3rem, 12vw, 4.6rem); }
  .manga-page .mg-eyebrow { font-size: .61rem; letter-spacing: .11em; }
  .manga-page .mg-lead { font-size: .94rem; }
  .manga-page .mg-story { grid-template-columns: 1fr; gap: 28px; padding: 34px 0 40px; }
  .manga-page .mg-story-art { width: min(78%, 300px); }
  .manga-page .mg-story-copy { padding: 0; }
  .manga-page .mg-story h3 { margin: 18px 0 15px; font-size: clamp(1.6rem, 6.3vw, 2.25rem); }
  .manga-page .mg-story-description { max-width: 100%; }
  .manga-page .mg-story-details { margin-top: 19px; }
  .manga-page .mg-story-actions { margin-top: 22px; }
  .manga-page .mg-title-break { display: none; }
  .manga-page .mg-content-note { display: block; padding-top: 23px; }
  .manga-page .mg-content-note h2 { margin-bottom: 8px; }
  .manga-page footer { padding: 42px 24px; }
  .manga-page .footer-epigrafe { font-size: .88rem; line-height: 1.8; }
}
@media (max-width: 380px) {
  .manga-page > nav { padding-inline: 12px; }
  .manga-page .nav-logo { font-size: .92rem; letter-spacing: 1.6px; }
  .manga-page .lang-switcher { gap: 4px; }
  .manga-page .lang-btn { min-height: 40px; padding: 5px; gap: 4px; letter-spacing: .5px; }
  .manga-page .lang-btn .flag { width: 15px; height: 11px; }
  .manga-page .nav-toggle { width: 40px; height: 40px; margin-left: 8px; }
  .manga-page .mg-main { width: calc(100% - 40px); padding-top: 108px; }
  .manga-page .mg-collection-heading { gap: 10px; }
  .manga-page .mg-collection-heading h2 { font-size: .62rem; letter-spacing: .07em; }
  .manga-page .mg-collection-heading > p { font-size: .64rem; }
  .manga-page .mg-story-art { width: min(84%, 280px); }
  .manga-page .mg-story-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .manga-page .mg-action-primary { width: 100%; }
  .manga-page .mg-action-continue { align-self: flex-start; }
  .manga-page .mg-language-note { gap: 10px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .manga-page { scroll-behavior: auto; }
  .manga-page .mg-action { transition: none; }
}
