/* MTsN 1 Tana Toraja • V7 Ruang Aksara layout isolation.
   Repairs mobile catalogue geometry, inherited link hover decoration, compact
   book metadata and raised action buttons. Does not alter reading or server logic. */

/* Keep the authentic wooden cabinet, book art and decorative lamps untouched. */
body.tv-site .aksara-room {overflow-x:clip;}
body.tv-site .aksara-room .aksara-room-inner {
  min-width:0;
  max-width:1230px;
}
body.tv-site .aksara-room .aksara-categories,
body.tv-site .aksara-room .aksara-volumes {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}

/* Category tiles: label must stay inside its own wooden shelf. */
body.tv-site .aksara-room .aksara-category,
body.tv-site .aksara-room .aksara-volume { min-width:0; }
body.tv-site .aksara-room .aksara-category {
  border-radius:2px;
  isolation:isolate;
  text-decoration:none!important;
  min-width:0;
}
body.tv-site .aksara-room .aksara-category:is(:hover,:focus,:active),
body.tv-site .aksara-room .aksara-category:is(:hover,:focus,:active) * {
  text-decoration:none!important;
}
body.tv-site .aksara-room .aksara-category > img {
  display:block;
  width:100%!important;
  max-width:100%;
  height:auto;
  object-fit:cover;
}
body.tv-site .aksara-room .aksara-category > span {
  width:100%;
  min-width:0;
  margin:0!important;
  box-sizing:border-box;
  line-height:1.17!important;
  text-align:center!important;
  overflow-wrap:break-word;
  text-decoration:none!important;
}

/* The entire work item is one real link. Hovering/tapping MUST NOT underline the
   cover typography or any plaque content — current global .tv-site a:hover does. */
body.tv-site .aksara-room .aksara-volume > a,
body.tv-site .aksara-room .aksara-volume > a:is(:hover,:focus,:active),
body.tv-site .aksara-room .aksara-volume > a:is(:hover,:focus,:active) :is(h2,p,time,span) {
  text-decoration:none!important;
  text-decoration-line:none!important;
}
body.tv-site .aksara-room .aksara-volume > a {
  display:grid;
  grid-template-rows:auto 1fr;
  justify-items:center;
  align-content:start;
  align-items:start;
  gap:12px;
  padding:12px 10px 13px;
  height:100%;
  min-height:0;
  min-width:0;
  color:var(--ink);
}
body.tv-site .aksara-room .aksara-book-cover {
  display:grid;
  width:min(100%,200px)!important;
  max-width:100%!important;
  flex:none;
  aspect-ratio:5/7!important;
  height:auto!important;
  overflow:hidden;
}
body.tv-site .aksara-room .aksara-book-cover--portrait img {
  width:100%!important;
  height:100%!important;
  max-width:none!important;
}
body.tv-site .aksara-room .aksara-book-cover--portrait .aksara-book-art {object-fit:contain!important;}
body.tv-site .aksara-room .aksara-book-cover--portrait .aksara-book-paper {object-fit:cover!important;}
body.tv-site .aksara-room .aksara-book-cover--typeset .aksara-book-title {
  font:700 clamp(10px,1.45vw,18px)/1.16 Georgia,serif!important;
  letter-spacing:0!important;
  color:#fff2d1!important;
  text-decoration:none!important;
}
body.tv-site .aksara-room .aksara-book-cover--typeset .aksara-book-author {
  font:400 clamp(9px,1.05vw,13px)/1.25 Georgia,serif!important;
  color:#ecd4a6!important;
  text-decoration:none!important;
}

/* Compact plaque instead of large white typography cards: all items in the same
   grid row share the same overall height and metadata is aligned. */
body.tv-site .aksara-room .aksara-plaque {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  align-self:stretch;
  min-width:0;
  width:100%;
  margin:0;
  padding:10px 8px;
  border-radius:8px;
  background:var(--plaque)!important;
  color:#292014!important;
  text-align:center;
  overflow-wrap:anywhere;
  word-break:normal;
  text-decoration:none!important;
  box-sizing:border-box;
}
body.tv-site .aksara-room .aksara-plaque > :is(span,p,h2,time){
  margin:0!important;
  padding:0;
  display:block;
  max-width:100%;
  color:#292014!important;
  text-align:center;
  text-decoration:none!important;
  line-height:1.24!important;
  letter-spacing:0!important;
  text-shadow:none!important;
}
body.tv-site .aksara-room .aksara-plaque > span {
  font:400 clamp(11px,1.2vw,13px)/1.2 Georgia,serif!important;
  margin-bottom:4px!important;
}
body.tv-site .aksara-room .aksara-plaque > h2 {
  font:700 clamp(13px,1.8vw,20px)/1.16 Georgia,serif!important;
  margin-bottom:6px!important;
  overflow-wrap:anywhere;
  hyphens:auto;
}
body.tv-site .aksara-room .aksara-plaque > p {
  font:400 clamp(11px,1.3vw,14px)/1.2 Georgia,serif!important;
  margin-bottom:5px!important;
  overflow-wrap:anywhere;
}
body.tv-site .aksara-room .aksara-plaque > time {
  font:400 clamp(10px,1.1vw,12px)/1.15 Georgia,serif!important;
  margin-top:auto!important;
}

/* Every end-of-shelf link becomes a consistent embossed control. */
body.tv-site .aksara-room .aksara-shelf-links {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:stretch;
  gap:14px;
  padding:14px 0 5px;
}
body.tv-site .aksara-room .aksara-shelf-links > a,
body.tv-site .aksara-room .aksara-shelf-links > a.aksara-classic-button {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:54px!important;
  padding:12px 20px!important;
  border-radius:17px!important;
  background:#e7ebf0!important;
  background-image:none!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:8px 8px 16px rgba(0,0,0,.34), -5px -5px 16px rgba(255,255,255,.11)!important;
  color:#175b78!important;
  font:700 clamp(13px,1.35vw,16px)/1.28 system-ui,sans-serif!important;
  text-decoration:none!important;
  white-space:normal;
  overflow-wrap:anywhere;
  transition:transform .18s ease, box-shadow .18s ease!important;
}
body.tv-site .aksara-room .aksara-shelf-links > a:is(:hover,:focus-visible) {
  text-decoration:none!important;
  transform:translateY(-2px);
  box-shadow:10px 10px 20px rgba(0,0,0,.35),-5px -5px 16px rgba(255,255,255,.14)!important;
}
body.tv-site .aksara-room .aksara-shelf-links > a:active {
  transform:translateY(0);
  box-shadow:inset 5px 5px 11px rgba(113,130,151,.36),inset -5px -5px 11px #fff!important;
}

/* Tinta footer links are actual navigational actions: raised pills with legible text
   instead of unstyled links, as requested across all application menus. */
body.tv-site .tv-footer { background:#e7ebf0!important;color:#303943!important; }
body.tv-site .tv-footer :is(p,strong,small) { color:#3b4856!important; }
body.tv-site .tv-footer .tv-container > div:nth-child(2) > a {
  display:flex!important;
  align-items:center;
  min-height:42px;
  padding:9px 14px!important;
  margin:9px 0;
  border-radius:14px!important;
  background:#e7ebf0!important;
  border:1px solid rgba(255,255,255,.75)!important;
  box-shadow:6px 6px 12px rgba(163,177,198,.45),-6px -6px 12px rgba(255,255,255,.98)!important;
  color:#245a82!important;
  font-size:14px!important;
  font-weight:650;
  line-height:1.25!important;
  text-decoration:none!important;
}
body.tv-site .tv-footer .tv-container > div:nth-child(2) > a:is(:hover,:focus-visible) {
  box-shadow:inset 5px 5px 10px rgba(163,177,198,.42),inset -5px -5px 10px #fff!important;
  text-decoration:none!important;
}

@media(max-width:620px){
  body.tv-site .aksara-room .aksara-room-inner {width:calc(100% - 24px)!important;}
  body.tv-site .aksara-room .aksara-categories,
  body.tv-site .aksara-room .aksara-volumes {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:10px!important;
  }
  body.tv-site .aksara-room .aksara-category > span {
    min-height:45px;
    padding:7px 5px!important;
    font:700 clamp(12px,3.6vw,16px)/1.17 Georgia,serif!important;
  }
  body.tv-site .aksara-room .aksara-volume > a { padding:9px 6px 11px!important; gap:10px!important; }
  body.tv-site .aksara-room .aksara-book-cover {width:min(100%,153px)!important;}
  body.tv-site .aksara-room .aksara-plaque {padding:9px 5px!important; min-height:108px;}
  body.tv-site .aksara-room .aksara-plaque > h2{font-size:clamp(12px,3.7vw,15px)!important;}
  body.tv-site .aksara-room .aksara-plaque > span{font-size:clamp(10px,3vw,12px)!important;}
  body.tv-site .aksara-room .aksara-plaque > p{font-size:clamp(10px,3vw,12px)!important;}
  body.tv-site .aksara-room .aksara-plaque > time{font-size:clamp(10px,2.9vw,11px)!important;}
  body.tv-site .aksara-room .aksara-shelf-links > a {flex:1 1 calc(50% - 7px);max-width:100%;}
  body.tv-site .tv-footer > .tv-container {grid-template-columns:1fr 1fr;gap:16px;}
  body.tv-site .tv-footer .tv-container > div:nth-child(2) > a {font-size:12px!important;padding:9px 10px!important;}
}
@media(max-width:360px){
  body.tv-site .aksara-room .aksara-categories,
  body.tv-site .aksara-room .aksara-volumes {padding:7px!important;gap:5px!important;}
  body.tv-site .aksara-room .aksara-volume > a {padding:8px 4px 9px!important;}
  body.tv-site .aksara-room .aksara-plaque {padding:8px 4px!important;}
}
@media(prefers-reduced-motion:reduce){
  body.tv-site .aksara-room .aksara-shelf-links > a {transition:none!important;transform:none!important;}
}
