/* Single exhibit pages: plain image treatment, no inherited gold frame. */
body.single-tfl_exhibit .tfl-gold-museum-frame,
body.single-tfl_exhibit .tfl-object {
  border: 0 !important;
  border-image: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body.single-tfl_exhibit .tfl-gold-museum-frame::before,
body.single-tfl_exhibit .tfl-gold-museum-frame::after,
body.single-tfl_exhibit .tfl-frame-overlay {
  display: none !important;
  content: none !important;
}
body.single-tfl_exhibit .tfl-object-title { display: none !important; }
body.single-tfl_exhibit .tfl-object video,
body.single-tfl_exhibit .tfl-object img {
  display: block;
  width: 100%;
  height: auto;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}


/* Restore shared motto ribbon sizing and centered labels. */
html body .tfl-footer-mottos {
  min-height: 58px !important;
  align-items: stretch !important;
  border-block: 2px solid #0a0a08 !important;
}
html body .tfl-footer-mottos > div {
  display: grid !important;
  place-items: center !important;
  min-height: 54px !important;
  padding: 8px 14px !important;
  text-align: center !important;
  font: 700 16px/1.05 var(--tfl-display-font, Impact, sans-serif) !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}
html body .tfl-footer-mottos > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto !important;
  grid-template-rows: 1fr !important;
  gap: 8px !important;
}
html body .tfl-footer-mottos > div:nth-child(2) b {
  display: block !important;
  font: inherit !important;
}
@media(max-width:760px) {
  html body .tfl-footer-mottos { min-height: 48px !important; }
  html body .tfl-footer-mottos > div {
    min-height: 44px !important;
    padding: 6px 5px !important;
    font-size: clamp(8px, 2.5vw, 12px) !important;
    letter-spacing: 0 !important;
  }
  html body .tfl-footer-mottos > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 1px !important;
  }
}

/* Gold ornate frame reserved for featured anti-recommendation artwork. */
body.single-tfl_anti_rec .tfl-gold-museum-frame {
  position: relative !important;
  display: block !important;
  width: min(100%, 620px) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: 0 !important;
  border: clamp(18px, 3vw, 34px) solid transparent !important;
  border-image: url("/wp-content/uploads/tfl-illustrations/ornate-gold-frame-v2.png?v=20261010") 22% fill / 1 / 0 stretch !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.single-tfl_anti_rec .tfl-gold-museum-art {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
body.single-tfl_anti_rec .tfl-frame-overlay { display:none !important; }


/* Restore adjacent item navigation after stylesheet cache refresh. */
html body .tfl-adjacent-item-nav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  border-block: 3px solid #0a0a08 !important;
  background: #f3e8ce !important;
  box-sizing: border-box !important;
}
html body .tfl-adjacent-item-nav > a {
  display: flex !important;
  min-width: 0 !important;
  min-height: 66px !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 10px clamp(12px, 3vw, 34px) !important;
  border: 0 !important;
  color: #0a0a08 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}
html body .tfl-adjacent-item-nav > a + a,
html body .tfl-adjacent-item-nav > span + a {
  border-left: 2px solid #0a0a08 !important;
  text-align: right !important;
}
html body .tfl-adjacent-item-nav > span {
  display: block !important;
  min-width: 0 !important;
  border: 0 !important;
}
html body .tfl-adjacent-item-nav small {
  color: #087a7c !important;
  font: 700 11px/1.1 var(--tfl-display-font, Impact, sans-serif) !important;
  text-transform: uppercase !important;
}
html body .tfl-adjacent-item-nav strong {
  display: block !important;
  font: 700 16px/1.05 var(--tfl-display-font, Impact, sans-serif) !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere !important;
}


/* Featured anti item: remove Elementor's green frame around gilt artwork. */
body.single-tfl_anti_rec .tfl-object:has(.tfl-gold-museum-frame) {
  border: 0 !important;
  border-image: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body.single-tfl_anti_rec .tfl-object:has(.tfl-gold-museum-frame)::before,
body.single-tfl_anti_rec .tfl-object:has(.tfl-gold-museum-frame)::after {
  content: none !important;
  display: none !important;
}


/* Anti-recommendation detail artwork uses gold gallery frame throughout. */
body.single-tfl_anti_rec .tfl-object {
  border: 0 !important;
  border-image: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body.single-tfl_anti_rec .tfl-object::before,
body.single-tfl_anti_rec .tfl-object::after {
  content: none !important;
  display: none !important;
}

/* Shared detail navigation: desktop outward alignment; mobile centered. */
html body .tfl-adjacent-item-nav > a{align-items:stretch!important;text-align:left!important;flex:initial!important}
html body .tfl-adjacent-item-nav > a:last-child:not(:first-child){text-align:right!important}
html body .tfl-adjacent-item-nav > a[rel="next"]{grid-column:2}
html body .tfl-adjacent-item-nav > a[rel="prev"]{grid-column:1}
html body.single-tfl_exhibit .tfl-exhibit-nav.tfl-adjacent-item-nav{display:grid!important;max-width:none!important;width:100%!important;gap:0!important}
html body .tfl-adjacent-item-nav > a small,html body .tfl-adjacent-item-nav > a strong{width:100%}
@media(max-width:760px){
 html body .tfl-adjacent-item-nav > a,html body .tfl-adjacent-item-nav > a:last-child:not(:first-child){text-align:center!important;align-items:center!important}
 html body .tfl-adjacent-item-nav strong{font-size:14px!important;line-height:1.25!important}
}

/* Acquisitions: broad art tray above a compact catalog record. */
html body.home .museum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:stretch}
html body.home .museum-grid>article{display:contents}
html body.home .museum-grid .museum-card{display:flex!important;flex-direction:column;min-height:0;padding:18px;gap:0;background:var(--cream);border:3px solid var(--ink);box-shadow:6px 6px 0 var(--ink);overflow:visible}
html body.home .museum-grid .museum-card>.tfl-card-art{display:flex;align-items:center;justify-content:center;width:100%;height:230px;padding:12px;background:#dfd2b2;border-bottom:2px solid var(--ink)}
html body.home .museum-grid .tfl-card-art>img,html body.home .museum-grid .tfl-card-art>video{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain!important;padding:0!important;border:0!important;background:transparent!important;mix-blend-mode:multiply}
html body.home .museum-grid .museum-card>.tfl-card-body{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;padding:18px 0 2px;flex:1;width:100%}
html body.home .museum-grid .tfl-card-meta{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px}
html body.home .museum-grid .tfl-card-meta>small{font:600 10px/1.2 var(--tfl-display-font);text-transform:uppercase;letter-spacing:.05em}
html body.home .museum-grid .tfl-card-meta>span{font:600 35px/1 var(--tfl-display-font);color:var(--red);border-bottom:4px solid var(--red);padding:0 0 6px;overflow-wrap:anywhere;max-width:100%}
html body.home .museum-grid .tfl-card-copy h3{font:600 clamp(23px,2vw,31px)/1.12 var(--tfl-display-font)!important;margin:0 0 14px!important;overflow-wrap:normal}
html body.home .museum-grid .tfl-card-copy>p{font:400 17px/1.45 var(--tfl-display-font);margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tfl-certified-seal{flex:none;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:96px;height:96px;border:3px double #144b59;border-radius:50%;outline:1px solid #144b59;outline-offset:-8px;background-color:#7cb7bb;background-image:radial-gradient(#164e5c55 .65px,transparent .9px);background-size:4px 5px;color:#123a45;transform:rotate(-12deg);font-family:var(--tfl-display-font);text-align:center;box-shadow:1px 2px 0 #123a4533}
.tfl-certified-seal>span{font-size:14px!important;font-weight:600;line-height:1.1;text-transform:uppercase;letter-spacing:.12em;color:inherit!important}
.tfl-certified-seal>b{font-size:33px!important;line-height:1.1;color:inherit!important}
html body.home .museum-grid .tfl-certified-seal{width:82px;height:82px;margin:22px 0 4px}
html body.home .museum-grid .tfl-certified-seal>span{font-size:11px!important}
html body.home .museum-grid .tfl-certified-seal>b{font-size:28px!important}
@media(max-width:1100px){html body.home .museum-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 html body.home .museum-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 html body.home .museum-grid .museum-card{padding:16px}
 html body.home .museum-grid .museum-card>.tfl-card-art{height:250px}
 html body.home .museum-grid .museum-card>.tfl-card-body{grid-template-columns:82px minmax(0,1fr);gap:18px}
 html body.home .museum-grid .tfl-card-copy h3{font-size:28px!important}
}
/* Blue paper luggage tag, with cord and metal eyelet; number stays live text. */
html body.single .tfl-catalog-tag.tfl-paper-tag{position:absolute!important;right:10px!important;bottom:8px!important;top:auto!important;width:122px!important;max-width:30%!important;padding:0!important;background:none!important;box-shadow:none!important;transform:rotate(-9deg)!important;overflow:visible!important;z-index:6}
.tfl-tag-cord{position:absolute;left:49%;bottom:calc(100% - 22px);height:62px;width:13px;border:2px solid #78694d;border-radius:50%;transform:rotate(8deg);z-index:3;box-shadow:1px 0 0 #eee2c5}
.tfl-tag-paper{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:38px 10px 15px;clip-path:polygon(17% 0,83% 0,100% 13%,100% 100%,0 100%,0 13%);background-color:#175b86;background-image:radial-gradient(#eadbb53d .65px,transparent .9px),radial-gradient(#061f3944 .6px,transparent .85px);background-size:3px 5px,7px 4px;color:#f6e7c5;text-align:center;filter:drop-shadow(2px 3px 0 #0003)}
.tfl-tag-eyelet{position:absolute;top:9px;left:calc(50% - 9px);width:18px;height:18px;border:4px solid #c1a66b;border-radius:50%;background:#17252b;box-shadow:inset 1px 1px 2px #000,0 0 0 1px #eddaa8}
.tfl-tag-paper>small{font:500 12px/1.1 var(--tfl-display-font);text-transform:uppercase;letter-spacing:.07em}
.tfl-tag-paper>b{font-size:20px;line-height:1}
.tfl-tag-paper>strong{font:600 19px/1.2 var(--tfl-display-font);border-bottom:1px solid #e4d5b077;padding-bottom:7px;width:100%;overflow-wrap:anywhere}
.tfl-tag-paper>span{font:500 10px/1.3 var(--tfl-display-font);text-transform:uppercase;letter-spacing:.06em}
html body.single .tfl-object{overflow:visible!important}
html body.single .tfl-featured{bottom:90px!important}
html body .tfl-balance-fill{display:flex;flex-direction:column;align-items:flex-start;gap:22px;max-width:100%;padding:20px 0 8px;margin-top:20px}
html body .tfl-balance-fill .tfl-visitor-quote{display:block!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:16px 0!important;background:transparent!important;border:0!important;border-top:2px solid var(--ink)!important;box-shadow:none!important;transform:none!important}
html body .tfl-balance-fill .tfl-visitor-quote__label{font:600 12px/1.3 var(--tfl-display-font);color:var(--blue);text-transform:uppercase;letter-spacing:.08em}
html body .tfl-balance-fill .tfl-visitor-quote p{font:500 22px/1.35 var(--tfl-display-font);margin:12px 0}
html body .tfl-balance-fill .tfl-visitor-quote cite{font:500 14px/1.4 var(--tfl-display-font);font-style:normal}
html body .tfl-balance-fill .tfl-quote-disclaimer{display:block;font:400 11px/1.4 var(--tfl-display-font);margin-top:5px}
@media(max-width:1050px){html body .tfl-balance-fill{flex-direction:row;align-items:center;gap:24px;padding:10px 14px}html body .tfl-balance-fill .tfl-visitor-quote{flex:1}html body .tfl-balance-fill .tfl-visitor-quote p{font-size:20px}}
@media(max-width:400px){html body .tfl-balance-fill{gap:16px;padding-inline:4px}.tfl-certified-seal{width:78px;height:78px}.tfl-certified-seal>span{font-size:11px!important}}

/* Isolate stamp type from legacy card badge rules. */
html body .tfl-certified-seal>b{display:block!important;position:static!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;transform:none!important;min-height:0!important;min-width:0!important;width:auto!important;height:auto!important}
html body .tfl-certified-seal>span{position:static!important;background:none!important;padding:0!important;margin:0!important;transform:none!important;border:0!important}
@media(min-width:1051px){
 html body .tfl-notes>.tfl-balance-fill{margin-top:auto!important;padding-top:24px;width:100%}
 html body .tfl-balance-stamp{margin:30px 0 12px 18px;width:110px;height:110px}
}

/* Category color appears beneath hovered and keyboard-focused cards. */
html body .museum-grid .museum-card{--card-accent:var(--teal)}
html body .category-cards>.teal,html body .exhibit.teal{--card-accent:var(--teal)}
html body .category-cards>.red,html body .exhibit.red{--card-accent:var(--red)}
html body .category-cards>.yellow,html body .exhibit.yellow{--card-accent:var(--yellow)}
html body.home .anti-card{--card-accent:var(--yellow)}
html body.home .case-card{--card-accent:var(--blue)}
html body.home .lammy-grid article{--card-accent:var(--yellow)}
html body .museum-grid .museum-card,html body .category-cards>a,html body.home .anti-card,html body.home .case-card,html body.home .lammy-grid article,html body .exhibit{transition:transform .18s ease,box-shadow .18s ease}
html body.home .museum-grid .museum-card:hover,html body.home .museum-grid .museum-card:focus-visible,
html body .category-cards>a:hover,html body .category-cards>a:focus-visible,
html body.home .anti-card:hover,html body.home .anti-card:focus-within,
html body.home .case-card:hover,html body.home .case-card:focus-within,
html body.home .lammy-grid article:hover,html body.home .lammy-grid article:focus-within,
html body .exhibit:hover,html body .exhibit:focus-within{
 transform:translate(-3px,-3px)!important;box-shadow:9px 9px 0 var(--card-accent,var(--teal))!important
}
@media(prefers-reduced-motion:reduce){html body .museum-grid .museum-card,html body .category-cards>a,html body.home .anti-card,html body.home .case-card,html body.home .lammy-grid article,html body .exhibit{transition:none!important}}

/* Museum archive cards use the same animated lift as homepage cards. */
html body .museum-archive .archive-file{--card-accent:var(--teal);transition:transform .18s ease,box-shadow .18s ease}
html body .museum-archive .archive-file.red{--card-accent:var(--red)}
html body .museum-archive .archive-file.teal{--card-accent:var(--teal)}
html body .museum-archive .archive-file.yellow{--card-accent:var(--yellow)}
html body .museum-archive .archive-file:hover,
html body .museum-archive .archive-file:focus-visible,
html body .museum-archive .archive-file:focus-within{transform:translate(-3px,-3px)!important;box-shadow:11px 11px 0 var(--card-accent)!important}
@media(prefers-reduced-motion:reduce){html body .museum-archive .archive-file{transition:none!important}}

/* Celebrity parody belongs only in sparse left columns beside dense records. */
@media(min-width:1051px){
 html body .tfl-identity{justify-content:flex-start}
 html body .tfl-identity>.tfl-declaration{margin-top:24px!important}
 html body .tfl-identity>.tfl-balance-fill{margin-top:26px!important;padding-top:8px!important;gap:0!important}
 html body .tfl-identity>.tfl-balance-fill .tfl-visitor-quote p{font-size:20px;line-height:1.35}
}
@media(max-width:1050px){html body .tfl-balance-fill{display:none!important}}

/* Homepage grid cards share borders. Add an inner highlight without moving
   their frames or replacing the borders/shadows that define each section. */
html body.home .anti-card,
html body.home .case-card,
html body.home .lammy-grid article {
  position: relative;
}
html body.home .anti-card::after,
html body.home .case-card::after,
html body.home .lammy-grid article::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid var(--card-accent, var(--teal));
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 2;
}
html body.home .lammy-grid article::after { border-color: var(--ink); }
html body.home .anti-card:hover,
html body.home .anti-card:focus-within,
html body.home .lammy-grid article:hover,
html body.home .lammy-grid article:focus-within {
  transform: none !important;
  box-shadow: none !important;
}
html body.home .case-card:hover,
html body.home .case-card:focus-within {
  transform: none !important;
  box-shadow: 7px 7px 0 var(--red) !important;
}
html body.home .anti-card:hover::after,
html body.home .anti-card:focus-within::after,
html body.home .case-card:hover::after,
html body.home .case-card:focus-within::after,
html body.home .lammy-grid article:hover::after,
html body.home .lammy-grid article:focus-within::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html body.home .anti-card::after,
  html body.home .case-card::after,
  html body.home .lammy-grid article::after { transition: none; }
}

/* Keep navigation seams visible while the inset department panel changes color. */
html body .site-nav a:hover,
html body .site-nav a:focus-visible,
html body .site-nav a.active {
  background: var(--ink);
}

/* Stacked arrow labels must clear the 5% tail notch and 12% arrowhead. */
@media (max-width: 760px) {
  html body.home .anti-strip .arrow-button {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px calc(12% + 48px) 18px calc(5% + 18px);
    font-size: clamp(24px, 4.2vw, 32px);
    line-height: 1.05;
  }
  html body.home .anti-strip .arrow-button b {
    position: absolute;
    right: calc(12% + 6px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 1;
  }
}
