/* MK-30b sample: GTA VI place page replicating DMZ Medical Wing structure in GTA VI colors.
   Every rule is scoped to main.gpd-page, so no other page changes. */

/* ---- Page spacing & bright readable body text ---- */
main.gpd-page .mission{margin-top:8px}
main.gpd-page .intro,
main.gpd-page .task-section p,
main.gpd-page .task-section li,
main.gpd-page .gta-facts dd{color:#F4EEF6;font-size:.96rem;line-height:1.55}
main.gpd-page .gta-facts dt{color:#FFC4DC}
main.gpd-page figcaption,
main.gpd-page .hero-main__cap{color:#DDD0E4}
main.gpd-page .gpd-steps{margin:0 0 14px;padding-left:1.3rem}
main.gpd-page .gpd-steps li{margin:0 0 6px}
main.gpd-page .gta-list{margin:12px 0 0;padding-left:1.3rem}
main.gpd-page .gta-list li{margin:0 0 6px}

/* ---- Golden TREASURES & SECRETS box (Medical Wing .found-here replica) ---- */
main.gpd-page .found-here{
  --pc:#E4C25A;
  --pc-rgb:228,194,90;
  flex:1 1 auto;
  margin-top:14px;
  padding:12px 14px 14px calc(14px + 8px);
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:linear-gradient(180deg,rgba(20,16,8,.90),rgba(8,7,5,.96));
  border:1px solid rgba(228,194,90,.48);
  box-shadow:inset 3px 0 0 #E4C25A,0 0 0 1px rgba(228,194,90,.10),0 0 22px -8px rgba(228,194,90,.55);
  border-radius:16px;
}
main.gpd-page .found-here > h2{
  margin:0;
  display:inline-flex;
  align-self:start;
  padding:4px 12px;
  border-radius:999px;
  border:1px solid rgba(228,194,90,.65);
  background:rgba(228,194,90,.12);
  box-shadow:0 0 12px -3px rgba(228,194,90,.65);
  font-family:"Chakra Petch",sans-serif;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#FFF3C4;
  text-shadow:0 0 10px rgba(228,194,90,.85);
}
main.gpd-page .found-here__groups{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px 12px;
  flex:1 1 auto;
  min-width:0;
  align-content:start;
}
main.gpd-page .found-here__group{min-width:0}
main.gpd-page .found-here__lab{
  margin:0 0 6px;
  font-family:"Chakra Petch",sans-serif;
  font-weight:700;
  font-size:.66rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#FFF3C4;
  text-shadow:0 0 8px rgba(228,194,90,.5);
}
main.gpd-page .found-here .mk-drops-list{margin:0;max-width:none}
main.gpd-page .gpd-htag--empty{opacity:.9}
main.gpd-page .gpd-rarity-pending{color:#FFE48A;border-color:rgba(228,194,90,.55);background:rgba(228,194,90,.10)}
main.gpd-page .gpd-treasures__note{margin:2px 0 0;font-size:.82rem;color:#EFE3C2}
@media (max-width:520px){
  main.gpd-page .found-here__groups{grid-template-columns:minmax(0,1fr)}
}

/* ---- Two-column .area-body below the split (matching Medical Wing) ---- */
@media (min-width:1024px){
  main.gpd-page .task-layout:has(> .task-hero) > .task-lead > .task-extras{
    display:flex !important;
    flex-direction:column !important;
    grid-column:1 / -1;
    grid-row:3;
    align-items:stretch;
    width:100%;
    max-width:100%;
  }
}
main.gpd-page .area-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  gap:14px;
  min-width:0;
  width:100%;
}
main.gpd-page .area-body__col{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:100%}
@media (max-width:719px){
  main.gpd-page .area-body{grid-template-columns:minmax(0,1fr)}
}

/* ---- Section cards + BRIGHTER, BIGGER GTA VI section headings ---- */
main.gpd-page .task-section{
  --pc:var(--c-gta-a,#FF4F9A);
  --pc-rgb:var(--c-gta-a-rgb,255,79,154);
  margin:0;
  padding:16px 18px !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,rgba(24,13,22,.90),rgba(8,6,11,.96)) !important;
  border:1px solid rgba(var(--c-gta-a-rgb),.40) !important;
  box-shadow:inset 3px 0 0 var(--c-gta-a),0 0 0 1px rgba(var(--c-gta-a-rgb),.08),0 0 22px -8px rgba(var(--c-gta-a-rgb),.40) !important;
}
main.gpd-page .task-section.area-tips{
  --pc:var(--c-brand,#4DC8FF);
  --pc-rgb:var(--c-brand-rgb,77,200,255);
  border-color:rgba(77,200,255,.42) !important;
  box-shadow:inset 3px 0 0 #4DC8FF,0 0 0 1px rgba(77,200,255,.08),0 0 22px -8px rgba(77,200,255,.35) !important;
}
main.gpd-page .task-section > h2{
  display:block !important;
  margin:0 0 12px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
  font-family:"Chakra Petch",sans-serif !important;
  font-weight:700 !important;
  font-size:clamp(1.28rem,1rem + 1vw,1.62rem) !important;
  line-height:1.22 !important;
  letter-spacing:.04em !important;
  text-transform:none !important;
  -webkit-text-stroke:0 !important;
  color:#FFF2F7 !important;
  text-shadow:0 0 8px rgba(var(--c-gta-a-rgb),.92),0 0 22px rgba(var(--c-gta-b-rgb),.60) !important;
}
main.gpd-page .task-section.area-tips > h2{
  color:#EBF7FF !important;
  text-shadow:0 0 8px rgba(77,200,255,.9),0 0 20px rgba(0,166,255,.55) !important;
}
main.gpd-page .gpd-tip-callout{
  display:flex !important;
  margin:0 !important;
  padding:12px 14px !important;
  border-radius:12px !important;
  border:1px solid rgba(77,200,255,.40) !important;
  border-left:4px solid #4DC8FF !important;
  background:rgba(30,107,255,.12) !important;
}

/* ---- Centered tile sections (title + tiles + SHOW MORE) ---- */
main.gpd-page .gpd-tile-sec > h2{text-align:center !important}
main.gpd-page .gpd-tile-sec .tiles.gta-tiles{justify-content:center !important;width:100%}
main.gpd-page .gpd-tile-sec .tiles.gta-tiles > .tile{text-align:left}
main.gpd-page [data-gpd-cap]:not(.is-open) .gta-tiles > .tile.gpd-over{display:none}
main.gpd-page .gpd-more-wrap{display:flex;justify-content:center;margin-top:14px}
main.gpd-page .gpd-more{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  padding:8px 18px;border-radius:999px;
  border:1px solid rgba(var(--c-gta-a-rgb),.65);
  background:linear-gradient(180deg,rgba(var(--c-gta-a-rgb),.18),rgba(8,6,11,.92));
  color:#FFD6E7;font:700 .74rem/1.2 "Chakra Petch",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;
}
main.gpd-page .gpd-more:hover,
main.gpd-page .gpd-more:focus-visible{color:#fff;border-color:var(--c-gta-a);box-shadow:0 0 16px -4px rgba(var(--c-gta-a-rgb),.7);outline:none}
main.gpd-page .gpd-more[hidden]{display:none !important}
main.gpd-page .gpd-pn{display:flex;flex-direction:column;min-width:0}
main.gpd-page .gpd-pn > .tile{flex:1}
main.gpd-page .gpd-pn__lab{margin:0 0 6px;text-align:center;font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#FFD0E4}

/* ---- Right rail: On this page + Useful links (Medical Wing .toc replica in GTA VI palette) ---- */
@media (min-width:1024px){
  main.gpd-page .mission > .toc.gpd-toc{top:96px;padding-top:6px}
  main.gpd-page .mission > .toc.gpd-toc h2{
    font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:#FFF2F7;font-weight:700;margin:0 0 8px;
    text-shadow:0 0 8px rgba(var(--c-gta-a-rgb),.65);
  }
  main.gpd-page .mission > .toc.gpd-toc h2.gpd-toc__sub{margin-top:16px}
  main.gpd-page .mission > .toc.gpd-toc ol{border-left:0;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
  main.gpd-page .mission > .toc.gpd-toc ol > li > a{
    display:flex;align-items:center;justify-content:center;
    min-height:28px;margin:0;padding:5px 12px;
    border:1px solid rgba(var(--c-gta-a-rgb),.72);border-left:1px solid rgba(var(--c-gta-a-rgb),.72);border-radius:999px;
    background:linear-gradient(180deg,rgba(255,79,154,.10) 0%,rgba(12,7,14,.86) 38%,rgba(8,6,11,.96) 100%);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
    color:#FFC4DC;font-size:.72rem;font-weight:650;line-height:1.2;
    text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;
  }
  main.gpd-page .mission > .toc.gpd-toc ol > li > a:hover,
  main.gpd-page .mission > .toc.gpd-toc ol > li > a:focus-visible,
  main.gpd-page .mission > .toc.gpd-toc ol > li > a.on{
    color:#fff;border-color:var(--c-gta-b);
    background:linear-gradient(180deg,rgba(255,79,154,.24) 0%,rgba(18,8,16,.88) 45%,rgba(8,6,11,.96) 100%);
    box-shadow:0 0 14px -4px rgba(var(--c-gta-a-rgb),.75);
  }
  main.gpd-page .gpd-useful-mobile{display:none !important}
}

/* ---- Mobile On this page chips in GTA VI colors ---- */
main.gpd-page .otp-chips__lab{color:#FFC4DC}
main.gpd-page .otp-chips__chip{
  border-color:var(--c-gta-a);color:#FFC4DC;
  background:linear-gradient(180deg,rgba(255,79,154,.10) 0%,rgba(12,7,14,.88) 38%,rgba(8,6,11,.96) 100%);
}
main.gpd-page .otp-chips__chip:hover,
main.gpd-page .otp-chips__chip:focus-visible,
main.gpd-page .otp-chips__chip.on{
  color:#fff;border-color:var(--c-gta-b);
  background:linear-gradient(180deg,rgba(255,79,154,.24) 0%,rgba(12,7,14,.88) 45%,rgba(8,6,11,.96) 100%);
}
main.gpd-page .gpd-useful-mobile .gta-pills{justify-content:center}

/* MK-32 step 3: typographic name card for tiles with no approved still. Never the logo-blip key. */
.gta-namecard{
  position:relative;display:flex;align-items:flex-end;justify-content:flex-start;
  width:100%;height:100%;aspect-ratio:16/9;overflow:hidden;box-sizing:border-box;
  padding:14px 14px 12px;
  background:radial-gradient(120% 90% at 15% 0%,rgba(var(--gx-a-rgb),.30),transparent 60%),
    radial-gradient(100% 80% at 100% 100%,rgba(var(--gx-b-rgb),.22),transparent 62%),
    repeating-linear-gradient(135deg,rgba(var(--gx-c-rgb),.06) 0 2px,transparent 2px 14px),#0E0912;
}
.gta-namecard__title{
  font:700 1.05rem/1.2 "Chakra Petch",system-ui,sans-serif;
  color:#fff;letter-spacing:.02em;
}
main.gtavi-home .tile--home .gta-namecard{aspect-ratio:16/9}

/* =====================================================================
   MK-37: locked place layout from preview e1613c3c (t983s5985).
   Scoped to [data-mk-template="gtavi-place-v2"] so category, home,
   walkthrough and character pages that also load this file stay unchanged.
   Left: title, pills, intro, Found Here (when catalog.json has a find).
   Right: site-standard 16:9 hero, grid-row 1 only (never span 2).
   Below the split: Before you start (when real), then the rest.
   Cache-bust as ?v=gpd3.
   ===================================================================== */

main.gpd-page[data-mk-template="gtavi-place-v2"] .task-header{margin:0}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-lead-copy{min-width:0}
main.gpd-page[data-mk-template="gtavi-place-v2"] .task-header .intro{margin:8px 0 0}

/* Empty Found Here hook stays out of the layout until catalog injects tags. */
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-found-here-slot:not(:has(section.found-here)){
  display:none;
}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-lead-copy > section.found-here.mk-gta-loot-found,
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-found-here-slot > section.found-here.mk-gta-loot-found{
  margin:12px 0 0;
  max-width:none;
  width:100%;
  padding:10px 12px 12px;
  gap:8px;
  flex:none;
}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-lead-copy .found-here .found-here__lab,
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-found-here-slot .found-here .found-here__lab{
  margin:0;
  font-size:.68rem;
  letter-spacing:.08em;
  line-height:1.3;
}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-lead-copy .found-here .mk-drops-list,
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-found-here-slot .found-here .mk-drops-list{gap:8px}

/* Before you start sits full width as the first extras block under the split. */
main.gpd-page[data-mk-template="gtavi-place-v2"] .task-extras > .gpd-before{
  margin:0;
  padding:12px 16px 14px !important;
}
main.gpd-page[data-mk-template="gtavi-place-v2"] .task-extras > .gpd-before .related-tips{margin:0 0 8px}
main.gpd-page[data-mk-template="gtavi-place-v2"] .task-extras > .gpd-before .gta-list{margin:8px 0 0}
main.gpd-page[data-mk-template="gtavi-place-v2"] .task-extras > .gpd-before .callout--tip{margin:0}

/* Show more on a long Before you start card (details/summary, no new JS). */
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more{margin:8px 0 0}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more > summary.mk-boss-tile__more{
  list-style:none;
  display:block;
  cursor:pointer;
}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more > summary.mk-boss-tile__more::-webkit-details-marker{display:none}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more > summary .gpd-more__less{display:none}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more[open] > summary .gpd-more__show{display:none}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more[open] > summary .gpd-more__less{display:inline}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more[open] > .gpd-more__rest{margin:0 0 8px}

main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more-photos{margin:0}
main.gpd-page[data-mk-template="gtavi-place-v2"] .gpd-more-photos .gta-figrow{margin:0}

main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body__col:empty{display:none}

/* Phone / tablet portrait: intro + Found Here, then the 16:9 hero, then
   Before you start and the rest. Hero is later in the DOM than extras, so
   we place it with an explicit grid row. */
@media (max-width:1023px){
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero){
    display:grid;
    grid-template-columns:minmax(0,1fr);
    row-gap:16px;
    align-items:start;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead{
    display:contents;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead > .task-header{
    display:contents;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead > .task-header > .gpd-lead-copy{
    grid-column:1;
    grid-row:1;
    min-width:0;
    margin:0;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero{
    grid-column:1;
    grid-row:2;
    margin:0;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-stage{
    aspect-ratio:16 / 9;
    width:100%;
    height:auto;
  }
  /* otp-chips (visible under 720px) and extras auto-place after the hero. */
}

/* Desktop / tablet landscape: two-column split. Hero occupies ROW 1 ONLY
   (overrides styles-v8 grid-row:1 / span 2, which painted the caption over
   the left column when the 16:9 photo grew taller than the copy). */
@media (min-width:1024px){
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero){
    align-items:start;
    column-gap:16px;
    row-gap:16px;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead > .task-header{
    display:contents;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead > .task-header > .gpd-lead-copy{
    grid-column:1;
    grid-row:1;
    align-self:start;
    min-width:0;
    margin:0;
    position:relative;
    z-index:1;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:start !important;
    position:relative;
    z-index:0;
    margin:0 !important;
    top:auto;
    left:auto;
    right:auto;
    bottom:auto;
    height:auto;
    max-height:none;
    overflow:visible;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-main{
    display:flex;
    flex-direction:column;
    width:100%;
    height:auto;
    max-height:none !important;
    aspect-ratio:auto !important;
    position:relative;
    overflow:visible;
    margin:0;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-stage{
    flex:none;
    aspect-ratio:16 / 9;
    width:100%;
    height:auto !important;
    max-height:none;
    position:relative;
    margin:0;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-stage img,
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-main__img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center center;
    position:static;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-hero .hero-main__cap{
    position:static;
    margin:0;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .task-layout:has(> .task-hero) > .task-lead > .task-extras{
    display:flex !important;
    flex-direction:column !important;
    grid-column:1 / -1;
    grid-row:2 !important;
    width:100%;
    max-width:100%;
    margin:0;
    gap:16px;
    position:relative;
    z-index:1;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body{
    align-items:stretch;
    gap:16px;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body__col{
    display:flex;
    flex-direction:column;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body__col > .task-section{
    flex:1 1 auto;
    height:100%;
  }
}

@media (min-width:720px){
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body:has(> .area-body__col:only-child),
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body:has(> .area-body__col:empty){
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .area-body:has(> .area-body__col:only-child:not(:empty)){
    grid-template-columns:minmax(0,1fr);
  }
}

/* At the 1024 split the left column is tight; wrap the tag pills instead of
   breaking a title mid-word. */
@media (min-width:1024px) and (max-width:1279px){
  main.gpd-page[data-mk-template="gtavi-place-v2"] .mk-htag__top{
    flex-wrap:wrap;
    align-items:center;
  }
  main.gpd-page[data-mk-template="gtavi-place-v2"] .mk-htag__title{
    flex:1 1 auto;
    min-width:8ch;
    overflow-wrap:break-word;
    word-break:normal;
    hyphens:manual;
  }
}
