/* Route pages — inspired by the admin login visual language.
   IMPORTANT: no width/height/object-fit rules are applied to .article-cover. */
.tr-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 8%,rgba(16,185,129,.14),transparent 28%),
    radial-gradient(circle at 92% 92%,rgba(245,185,66,.13),transparent 30%),
    #f3f7f4;
  color:#14251f;
}
/* Do not inherit the two-column login shell. Route detail is a single full-width page. */
.tr-main.am-main{display:block!important;place-items:initial!important;padding:28px 16px 64px!important;}
.tr-topbar.am-topbar{width:min(1180px,calc(100% - 32px));margin:18px auto 0;position:relative;}
.tr-shell.am-shell{
  display:block!important;
  grid-template-columns:1fr!important;
  width:min(1180px,100%)!important;
  max-width:1180px!important;
  margin:0 auto;
  background:transparent!important;
  border-radius:0!important;
  overflow:visible!important;
  box-shadow:none!important;
  animation:none!important;
}
.tr-shell.am-shell::before{display:none!important;}
.tr-page-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(210,226,218,.95);
  border-radius:32px;
  background:rgba(255,255,255,.94);
  box-shadow:0 28px 75px rgba(13,73,56,.13),0 6px 20px rgba(13,73,56,.06);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.tr-page-card::before{
  content:"";position:absolute;top:0;right:0;left:0;height:5px;z-index:3;
  background:linear-gradient(90deg,#10b981,#0ea5e9,#8b5cf6,#fb7185,#f5b942);
}
.tr-topline{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 28px;
  border-bottom:1px solid #e5eee9;
  background:linear-gradient(180deg,#f8fcfa,#fff);
}
.tr-route-label{display:flex;align-items:center;gap:12px;min-width:0;}
.tr-route-icon{
  width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;
  border-radius:16px;background:linear-gradient(135deg,#d1fae5,#cffafe);
  border:1px solid #cde6dc;box-shadow:0 10px 24px rgba(15,118,110,.10);font-size:24px;
}
.tr-route-label b{display:block;font-size:15px;font-weight:950;color:#124d3e;}
.tr-route-label small{display:block;margin-top:3px;color:#70817a;font-size:11px;line-height:1.7;}
.tr-counter{
  flex:0 0 auto;padding:9px 13px;border-radius:14px;background:#edf8f3;
  border:1px solid #d6ebe1;color:#0f766e;font-size:18px;font-weight:950;direction:ltr;
}
.tr-counter i{font-style:normal;font-size:11px;color:#80928b;}
.tr-content{padding:38px 42px 34px;}
.tr-heading{text-align:center;max-width:900px;margin:0 auto 30px;}
.tr-eyebrow{
  display:inline-flex;padding:7px 14px;border-radius:999px;
  background:linear-gradient(135deg,#d1fae5,#e0f2fe);border:1px solid #d3e9df;
  color:#0f766e;font-size:11px;font-weight:900;
}
.tr-icon{
  width:68px;height:68px;margin:18px auto 11px;display:grid;place-items:center;
  border-radius:22px;background:#fff;border:1px solid #dcebe4;
  box-shadow:0 14px 30px rgba(13,73,56,.09);font-size:31px;
}
.tr-heading h1{margin:0;color:#123b31;font-size:clamp(27px,4vw,42px);line-height:1.4;font-weight:950;}
.tr-lead{max-width:760px;margin:10px auto 0;color:#61746c;font-size:14px;line-height:2.1;}
/* Image sizing intentionally untouched: .article-cover keeps its existing/natural dimensions. */
.tr-image-wrap{
  margin:0 auto 30px;display:flex;justify-content:center;align-items:flex-start;
  border-radius:22px;background:#f6faf8;border:1px solid #e0ebe6;padding:8px;
  overflow:hidden;
}
.tr-richtext{
  max-width:900px;margin:0 auto;padding:25px 28px;border:1px solid #e0ebe7;
  border-radius:22px;background:linear-gradient(180deg,#fbfdfc,#f5faf7);
  color:#334a42;font-size:15px;line-height:2.3;box-shadow:inset 0 1px 0 #fff;overflow-wrap:anywhere;
}
.tr-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:26px;}
.tr-action{
  min-width:0;display:flex;flex-direction:column;gap:4px;padding:15px 16px;border-radius:18px;
  text-decoration:none;border:1px solid #dce9e3;background:#fff;box-shadow:0 8px 22px rgba(18,59,45,.055);transition:.22s ease;
}
.tr-action:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(18,59,45,.11);border-color:#bcd8cc;}
.tr-action span{font-size:18px;color:#0f766e;line-height:1;}
.tr-action small{font-size:10px;color:#81928c;font-weight:800;}
.tr-action b{font-size:12px;line-height:1.7;color:#183f34;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tr-action.primary{background:linear-gradient(135deg,#059669,#0d9488 55%,#0284c7);border-color:transparent;box-shadow:0 13px 28px rgba(13,148,136,.20);}
.tr-action.primary span,.tr-action.primary small,.tr-action.primary b{color:#fff;}
.tr-related{margin-top:22px;}
.tr-related .inj-section{padding:0!important;}
.tr-related .inj-head{text-align:right;}
@media(max-width:900px){
  .tr-topbar.am-topbar{width:calc(100% - 24px);margin-top:12px;}
  .tr-main.am-main{padding:16px 12px 42px!important;}
  .tr-content{padding:28px 22px 24px;}
  .tr-topline{padding:17px 20px;}
  .tr-route-label small{display:none;}
  .tr-actions{grid-template-columns:1fr 1fr;}
  .tr-action.primary{order:-1;grid-column:1/-1;}
}
@media(max-width:600px){
  .tr-page-card{border-radius:24px;}
  .tr-content{padding:24px 15px 20px;}
  .tr-topline{padding:15px 14px;}
  .tr-route-icon{width:44px;height:44px;flex-basis:44px;font-size:21px;}
  .tr-counter{font-size:15px;padding:7px 10px;}
  .tr-heading{margin-bottom:24px;}
  .tr-icon{width:58px;height:58px;font-size:27px;}
  .tr-heading h1{font-size:25px;}
  .tr-lead{font-size:12.5px;}
  .tr-image-wrap{border-radius:17px;padding:5px;}
  .tr-richtext{padding:18px 15px;font-size:13.5px;line-height:2.15;}
  .tr-actions{grid-template-columns:1fr;}
  .tr-action.primary{grid-column:auto;order:-1;}
}

/* Responsive image sizing: keep the complete image visible without letting tall artwork dominate the phone screen. */
.tr-image-wrap .article-cover{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:520px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
@media (max-width:900px){
  .tr-image-wrap .article-cover{max-height:420px!important;}
}
@media (max-width:600px){
  .tr-image-wrap{
    padding:4px!important;
    margin-bottom:20px!important;
  }
  .tr-image-wrap .article-cover{
    width:100%!important;
    height:320px!important;
    max-width:100%!important;
    max-height:320px!important;
    object-fit:contain!important;
  }
}
