﻿/* Community stories and the Traditions & Sites craft showcase. */
.nc-cultural-heritage { --nc-records-surface: #f8f4eb; }
.nc-narratives {
  --craft-gold: #e9b966;
  --craft-ivory: #f8f3e7;
  isolation: isolate;
  color: var(--craft-ivory);
  background: #082d21;
}
.nc-narratives [hidden] { display: none !important; }
.nc-narratives :is(a, button):focus-visible { outline: 2px solid var(--craft-gold); outline-offset: 5px; }
.nc-narratives-landscape {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(2, 29, 20, .93), rgba(3, 35, 24, .7) 48%, rgba(2, 30, 22, .93)), linear-gradient(0deg, #082d21 5%, rgba(8, 45, 33, .15) 65%, rgba(8, 45, 33, .55)), url('../images/mtapo_highlights/lake-venado-hero.jpg');
  background-size: cover;
  background-position: center;
}
.nc-narratives-shell { position: relative; width: min(1380px, calc(100% - 96px)); margin-inline: auto; padding: 30px 0 34px; }
.nc-narratives-masthead { margin-bottom: 20px; }
.nc-narratives-brand > div { display: flex; align-items: center; gap: 20px; }
.nc-narratives-brand p, .nc-narratives-brand span { font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.nc-narratives-brand p { color: var(--craft-gold); }
.nc-narratives-brand span { border-left: 1px solid #c1b69366; padding-left: 20px; color: #dce2d5; }
.nc-craft-stage { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 44px); min-height: 0; }
.nc-craft-intro { min-width: 0; padding-block: 25px; }
.nc-narratives-eyebrow { margin-bottom: 15px; color: var(--craft-gold); font-size: 10px; line-height: 1.7; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nc-craft-intro h4 { margin: 0; max-width: 100%; font: 700 clamp(34px, 3.4vw, 54px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.nc-craft-intro h4 em { color: var(--craft-gold); font-style: normal; }
.nc-craft-intro-text { max-width: 26ch; margin-top: 20px; color: #d5ded1; font-size: 14px; font-weight: 400; line-height: 1.7; text-wrap: pretty; }
.nc-craft-artwork { position: relative; isolation: isolate; min-width: 0; width: 100%; height: clamp(340px, 32vw, 450px); pointer-events: none; }
.nc-craft-paper { position: absolute; z-index: -1; top: 12%; right: 8%; width: 76%; height: 76%; border-radius: 48% 52% 45% 49%; background: #d7c8a7 url('../images/patterns/magp-paper.svg'); opacity: .8; }
.nc-craft-artwork:has(.nc-craft-visual--cutout[hidden]) .nc-craft-paper { opacity: 0; }
.nc-craft-visual { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.nc-craft-visual img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.nc-craft-visual--cutout img { width: 100%; height: 100%; border-radius: 0; object-position: center bottom; mask-image: linear-gradient(#000 95%, transparent); filter: drop-shadow(0 10px 14px #01170b45); }
.nc-craft-image-fallback { display: grid; place-items: center; width: 100%; height: 85%; font: italic 32px Georgia, serif; color: var(--craft-gold); }
.nc-craft-reading { position: relative; min-width: 0; padding-block: 25px; }
.nc-craft-stories { min-height: 225px; }
.nc-craft-story-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nc-craft-story h4 { margin: 0; color: var(--craft-ivory); font: 700 clamp(34px, 3.25vw, 52px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.nc-craft-story > p { color: #e0e6d9; font-size: 15px; font-weight: 400; line-height: 1.7; text-wrap: pretty; }
.nc-craft-read { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 13px; min-height: 44px; border-top: 1px solid #c7bc904d; color: var(--craft-gold); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nc-craft-read > span { font-size: 20px; font-weight: 400; transition: transform .2s; }
.nc-craft-read:hover > span { transform: translateX(4px); }
.nc-craft-preview-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.nc-craft-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; min-width: 0; gap: 8px; }
.nc-craft-previews a { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid #b8a47788; border-radius: 5px; opacity: .65; transition: opacity .2s, border-color .2s; }
.nc-craft-previews a:is(:hover, [aria-pressed='true']) { opacity: 1; border-color: #ffe7b9; }
.nc-craft-previews img { width: 100%; height: 100%; object-fit: cover; }
.nc-craft-previews a > span { padding: 5px; font-size: 10px; }
.nc-craft-controls { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.nc-craft-controls button { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; margin: 0; border: 1px solid #c5a05c; border-radius: 50%; color: #f6d291; line-height: 1; transition: color .2s, background .2s; }
.nc-craft-controls button svg { display: block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
.nc-craft-controls button:hover { color: #082d21; background: var(--craft-gold); }
.nc-craft-collection { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 20px; padding: 10px 0 14px; }
.nc-craft-item { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding-bottom: 20px; }
.nc-craft-item:not(:last-child)::after { content: ''; position: absolute; width: 100%; height: 1px; bottom: 0; left: 50%; background: #c6ba897d; }
.nc-craft-item-image { position: relative; display: block; width: 100%; height: clamp(95px, 8vw, 128px); transition: transform .2s; }
.nc-craft-object { position: absolute; top: 50%; left: 50%; width: 82%; max-width: 144px; aspect-ratio: 1; transform: translate(-50%, -50%); background: url('../images/community-narratives/craft-objects.webp') no-repeat; background-size: 300% 200%; filter: drop-shadow(0 6px 5px #001b15); }
.nc-craft-object--0 { background-position: 0 0; }
.nc-craft-object--1 { background-position: 50% 0; }
.nc-craft-object--2 { background-position: 100% 0; }
.nc-craft-object--3 { background-position: 0 100%; }
.nc-craft-object--4 { background-position: 50% 100%; }
.nc-craft-object--5 { background-position: 100% 100%; }
.nc-craft-item-image > img { width: 85%; height: 100%; margin: auto; object-fit: contain; }
.nc-craft-item-label { position: relative; z-index: 1; display: grid; min-width: 80%; min-height: 34px; padding: 5px 10px; place-items: center; font: 700 clamp(15px, 1.3vw, 20px)/1.2 Georgia, 'Times New Roman', serif; text-align: center; }
.nc-craft-item-label::before { content: ''; position: absolute; z-index: -1; inset: -1px -2%; opacity: 0; background: #e9b966; clip-path: polygon(6% 5%, 85% 2%, 83% 8%, 98% 9%, 94% 21%, 100% 27%, 93% 35%, 98% 47%, 93% 57%, 96% 63%, 91% 71%, 93% 78%, 78% 85%, 82% 94%, 8% 100%, 13% 92%, 0 91%, 7% 77%, 1% 69%, 7% 60%, 0 51%, 5% 41%, 2% 33%, 10% 24%, 3% 15%, 9% 11%); transition: opacity .2s; }
.nc-craft-item[aria-pressed='true'] .nc-craft-item-label { color: #112d20; }
.nc-craft-item[aria-pressed='true'] .nc-craft-item-label::before { opacity: 1; }
.nc-craft-item:is(:hover, [aria-pressed='true']) .nc-craft-item-image { transform: translateY(-4px); }
.nc-craft-item-dot { position: absolute; z-index: 2; bottom: -5px; width: 11px; height: 11px; border: 1px solid #cfb673; border-radius: 50%; background: #082d21; }
.nc-craft-item[aria-pressed='true'] .nc-craft-item-dot { border: 2px solid var(--craft-gold); background: #fff8e7; }
.nc-narratives-empty { padding: 60px 0; }
.nc-narratives-empty h4 { margin-bottom: 18px; font: 700 34px/1.2 Georgia, serif; }
@media (max-width: 1199px) {
  .nc-narratives-shell { width: calc(100% - 64px); }
  .nc-craft-stage { gap: 25px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); }
  .nc-craft-intro h4 { font-size: 37px; }
  .nc-craft-story h4 { font-size: 37px; }
  .nc-craft-story > p { font-size: 14px; }
  .nc-craft-preview-row { flex-wrap: wrap; gap: 12px; }
  .nc-craft-previews { flex-basis: 100%; max-width: 270px; }
  .nc-craft-controls { margin-left: auto; }
  .nc-craft-stories { min-height: 225px; }
}
@media (max-width: 899px) {
  .nc-narratives-shell { width: calc(100% - 48px); padding-top: 26px; }
  .nc-narratives-masthead { margin-bottom: 28px; }
  .nc-craft-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 30px; }
  .nc-craft-intro { grid-column: 1 / -1; padding: 0; }
  .nc-craft-intro h4 { max-width: 100%; font-size: clamp(36px, 5.5vw, 44px); }
  .nc-craft-intro h4 br { display: none; }
  .nc-craft-intro-text { max-width: none; margin-top: 12px; }
  .nc-craft-artwork { height: 330px; }
  .nc-craft-reading { padding-block: 10px; }
  .nc-craft-stories { min-height: 215px; }
  .nc-craft-preview-row { flex-wrap: nowrap; }
  .nc-craft-previews { flex-basis: auto; }
  .nc-craft-controls { flex-direction: column; gap: 7px; }
  .nc-craft-collection { margin-top: 24px; }
  .nc-craft-object { width: 90%; }
}
@media (max-width: 599px) {
  .nc-narratives-shell { width: calc(100% - 40px); padding: 25px 0 25px; }
  .nc-narratives-brand > div { flex-wrap: wrap; gap: 8px 14px; }
  .nc-narratives-brand p, .nc-narratives-brand span { font-size: 9px; letter-spacing: .12em; }
  .nc-narratives-brand span { padding-left: 14px; }
  .nc-narratives-masthead { margin-bottom: 24px; }
  .nc-craft-stage { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .nc-narratives-eyebrow { font-size: 9px; margin-bottom: 10px; }
  .nc-craft-intro h4 { font-size: clamp(34px, 9.5vw, 45px); }
  .nc-craft-intro h4 br { display: initial; }
  .nc-craft-intro-text { font-size: 13px; max-width: 34ch; margin-top: 12px; }
  .nc-craft-artwork { height: clamp(270px, 85vw, 350px); }
  .nc-craft-reading { padding: 0; scroll-margin-top: 105px; }
  .nc-craft-stories { min-height: 0; }
  .nc-craft-story-heading { margin-bottom: 12px; }
  .nc-craft-story h4 { font-size: 37px; }
  .nc-craft-story > p { font-size: 14px; }
  .nc-craft-preview-row { margin-top: 15px; }
  .nc-craft-previews { max-width: none; }
  .nc-craft-controls { flex-direction: row; }
  .nc-craft-controls button { flex-basis: 36px; width: 36px; height: 36px; }
  .nc-craft-collection { grid-auto-columns: 112px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #bc9659 #133b2c; margin: 23px -20px 0; padding: 10px 20px 22px; }
  .nc-craft-item { scroll-snap-align: center; }
  .nc-craft-item-image { height: 94px; }
  .nc-craft-item-label { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nc-narratives.is-enhanced .nc-craft-story:not([hidden]), .nc-narratives.is-enhanced .nc-craft-visual:not([hidden]) { animation: nc-craft-reveal .3s ease both; }
  @keyframes nc-craft-reveal { from { opacity: .35; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .nc-narratives *, .nc-narratives *::before, .nc-narratives *::after { transition: none !important; } }

/* The title and craft stage share one landscape and one content alignment. */
.nc-traditions-showcase { margin-bottom: 0; }
.nc-traditions-showcase .nc-narratives-shell { padding-top: 56px; padding-bottom: 48px; }
.nc-traditions-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 36px; margin-bottom: 32px; padding-bottom: 30px; border-bottom: 1px solid #c7bc904d; }
.nc-traditions-heading .nc-narratives-eyebrow { margin-bottom: 10px; }
.nc-traditions-heading h2 { margin: 0; color: var(--craft-ivory); font: 700 clamp(34px, 3.4vw, 52px)/1.12 Georgia, serif; letter-spacing: -.035em; }
.nc-traditions-description { justify-self: end; max-width: 46ch; color: #d5ded1; font-size: 15px; line-height: 1.7; }
.nc-traditions-showcase .nc-craft-intro > .nc-narratives-eyebrow { max-width: 32ch; }

/* Community narratives: a warm editorial spread with a landscape portrait. */
.nc-community { position: relative; isolation: isolate; background: #f8f4eb url('../images/patterns/magp-paper.svg'); color: #4b321f; scroll-margin-top: 6rem; }
.nc-community-shell { width: min(1380px, calc(100% - 96px)); margin-inline: auto; padding: 64px 0 0; }
.nc-community-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; padding-bottom: 56px; }
.nc-community-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: #85581f; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nc-community-eyebrow::before { content: ''; width: 32px; height: 1px; background: #a77937; }
.nc-community-heading h3 { margin: 0; font: 700 clamp(38px, 4vw, 62px)/1.09 Georgia, serif; letter-spacing: -.045em; }
.nc-community-heading h3 em { color: #37634a; font-weight: 400; }
.nc-community-description { max-width: 44ch; margin-top: 24px; color: #685a49; font-size: 16px; line-height: 1.85; }
.nc-community-note { display: flex; gap: 16px; align-items: start; margin-top: 32px; padding-top: 24px; border-top: 1px solid #d9cbb5; max-width: 420px; }
.nc-community-note-mark { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 7px; border: 1px solid #9d7338; transform: rotate(45deg); }
.nc-community-note p { margin-bottom: 6px; font: 700 19px/1.3 Georgia, serif; }
.nc-community-note span:not(.nc-community-note-mark) { display: block; color: #756550; font-size: 13px; line-height: 1.7; }
.nc-community-landscape { position: relative; margin: 0; padding: 14px 14px 0 0; }
.nc-community-landscape::before { content: ''; position: absolute; top: 0; right: 0; bottom: 22px; left: 18px; border: 1px solid #b8a17b; border-radius: 48% 48% 0 0; z-index: -1; }
.nc-community-photo { overflow: hidden; border-radius: 48% 48% 0 0; background: #294b3a; }
.nc-community-photo img { display: block; width: 100%; height: clamp(300px, 28vw, 390px); object-fit: cover; object-position: center; }
.nc-community-landscape figcaption { position: relative; margin: -80px 0 0 -30px; width: fit-content; min-width: 220px; padding: 22px 28px; color: #f8f3e7; background: #224634; border-bottom: 3px solid #c69c58; }
.nc-community-landscape figcaption > span { color: #e7c68f; font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.nc-community-landscape figcaption p { margin-top: 10px; font: 400 25px/1.25 Georgia, serif; }
.nc-community-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid #d9cbb5; }
.nc-community-footer > p { color: #7a684f; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.nc-community-footer a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: #345a43; font-size: 12px; font-weight: 600; }
.nc-community-footer a > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #a48a62; border-radius: 50%; font-size: 20px; }
.nc-community-footer a:hover > span { background: #224634; color: #fff8e7; }
.nc-cultural-transition--in .nc-cultural-transition-prev { color: #345a43; }
.nc-community-stories { display: grid; gap: 36px; padding-block: 28px 48px; }
.nc-community-story { display: flex; align-items: center; gap: 36px; padding-top: 32px; border-top: 1px solid #d9cbb5; }
.nc-community-story > a { flex: 0 0 38%; }
.nc-community-story > a img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 4px; }
.nc-community-story > div { flex: 1; min-width: 0; }
.nc-community-story h4 { margin-bottom: 18px; font: 700 34px/1.2 Georgia, serif; }
.nc-community-story p { color: #685a49; line-height: 1.7; }
.nc-community-read { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; margin-top: 14px; color: #345a43; font-size: 12px; font-weight: 600; }
@media (max-width: 1199px) {
  .nc-community-shell { width: calc(100% - 64px); }
  .nc-community-intro { gap: 48px; }
}
@media (max-width: 899px) {
  .nc-community-shell { width: calc(100% - 48px); padding-top: 44px; }
  .nc-community-intro { gap: 32px; }
  .nc-community-description { font-size: 14px; }
  .nc-community-landscape figcaption { margin-left: -12px; min-width: 0; padding: 18px 20px; }
  .nc-community-landscape figcaption p { font-size: 22px; }
  .nc-traditions-heading { gap: 24px; }
}
@media (max-width: 599px) {
  .nc-community-shell { width: calc(100% - 40px); }
  .nc-community-intro { grid-template-columns: 1fr; padding-bottom: 32px; }
  .nc-community-heading h3 { font-size: clamp(35px, 9.3vw, 48px); }
  .nc-community-description { margin-top: 18px; }
  .nc-community-note { margin-top: 24px; padding-top: 20px; }
  .nc-community-landscape { margin-left: 12px; }
  .nc-community-photo img { height: 300px; }
  .nc-community-footer { flex-wrap: wrap; gap: 10px; }
  .nc-community-story { flex-direction: column; align-items: stretch; gap: 20px; }
  .nc-traditions-showcase .nc-narratives-shell { padding-top: 36px; padding-bottom: 36px; }
  .nc-traditions-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; padding-bottom: 24px; }
  .nc-traditions-description { justify-self: start; font-size: 14px; }
}
