/* Presentation only: existing buttons retain their handlers and access rules. */
.t5-home {
  --t5-ink: #183539;
  --t5-muted: #546e72;
  --t5-accent: #147d79;
  --t5-glass: rgba(255, 255, 255, .78);
  --t5-line: rgba(110, 153, 153, .2);
  background: radial-gradient(ellipse at 95% 0, #deefee 0, transparent 52%), radial-gradient(ellipse at 0 75%, #e9edf5 0, transparent 60%), #f5f8f8 !important;
  color: var(--t5-ink);
  isolation: isolate;
}
.t5-home-header {
  background: rgba(247, 252, 251, .8) !important;
  background: color-mix(in srgb, var(--t5-tint, #147d79) 8%, #fff) !important;
  border-bottom: 1px solid rgba(255,255,255,.9);
  border-radius: 0 0 26px 26px !important;
  box-shadow: 0 8px 32px #264c4910;
  padding: max(20px, env(safe-area-inset-top)) 18px 16px !important;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.t5-home-header p, .t5-home-header button { color: var(--t5-ink) !important; }
.t5-home-header p.text-xs, .t5-home-header p.truncate { color: var(--t5-muted) !important; }
.t5-home-header button { min-width: 36px; min-height: 40px; }
.t5-home-header button[title] { background: #ffffffa8 !important; border: 1px solid var(--t5-line); box-shadow: none; }
.t5-home-header > .grid > button { background: #ffffff80 !important; border: 1px solid var(--t5-line); padding: 8px 12px !important; }
.t5-home-header img { object-fit: cover; }
.t5-home-header .border-teal-400 { border-color: #a9cfcb !important; }
.t5-home-scroll { min-height: 0; padding: 18px !important; gap: 18px !important; overscroll-behavior-y: contain; }
.t5-home-scroll > * { flex-shrink: 0; }
.t5-home-menus { order: -10; gap: 12px !important; }
.t5-home-menus > button {
  min-height: 98px;
  padding: 14px 10px !important;
  flex-direction: column;
  gap: 10px !important;
  border-radius: 20px !important;
  background: var(--t5-glass) !important;
  border: 1px solid rgba(255,255,255,.98) !important;
  box-shadow: 0 6px 22px #234c4710, inset 0 0 0 1px #7d9c9714 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.t5-home-menus > button:active { transform: scale(.97); }
.t5-home-menus > button > span { color: var(--t5-ink) !important; font-size: 12px !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
.t5-home-menus > button > div:first-child {
  width: 44px !important; height: 44px !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  border-radius: 14px !important;
}
.t5-home-menus > button img { object-fit: contain !important; border-radius: 0 !important; }
.t5-home-legacy-article { display: none !important; }
.t5-home-scroll > .bg-white { background: var(--t5-glass) !important; border-color: var(--t5-line) !important; border-radius: 20px !important; }
.t5-home .t5-carousel { order: -20; }
.t5-carousel { min-width: 0; color: var(--t5-ink); }
.t5-carousel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.t5-carousel-heading h2 { font-size: 15px; font-weight: 800; margin: 0; }
.t5-carousel-heading button { color: var(--t5-accent); font-size: 12px; font-weight: 700; padding: 8px 2px; background: none; border: 0; }
.t5-carousel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 22px; }
.t5-carousel-track::-webkit-scrollbar { display: none; }
.t5-article-card { position: relative; display: block; flex: 0 0 92%; min-width: 0; height: 210px; border: 1px solid #ffffffb0; border-radius: 22px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #244e51; color: white; text-decoration: none; }
.t5-article-card:only-child { flex-basis: 100%; }
.t5-article-card > img { width: 100%; height: 100%; object-fit: cover; }
.t5-article-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #112d35c9, #102d3626 85%); pointer-events: none; }
.t5-article-caption { position: absolute; z-index: 1; inset-inline: 12px; bottom: 12px; padding: 12px 14px; background: #122f397d; border: 1px solid #ffffff45; border-radius: 15px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.t5-article-caption h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t5-article-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; color: #f1ffff; font-size: 11px; }
.t5-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; }
.t5-carousel-controls button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; color: var(--t5-accent); border-radius: 50%; }
.t5-carousel-controls button[data-slide]::before { content: ''; width: 6px; height: 6px; border-radius: 9px; background: #b5c8c7; transition: width .2s; }
.t5-carousel-controls button[aria-current='true']::before { width: 22px; background: var(--t5-accent); }
.t5-carousel-controls button:disabled { opacity: .3; cursor: default; }
.t5-carousel-status { display: grid; place-items: center; min-height: 170px; padding: 22px; border-radius: 22px; background: var(--t5-glass); border: 1px solid var(--t5-line); text-align: center; color: var(--t5-muted); font-size: 13px; line-height: 1.8; }
.t5-carousel-status button { border: 1px solid var(--t5-line); padding: 8px 16px; margin-top: 8px; border-radius: 12px; color: var(--t5-accent); }
.t5-home button:focus-visible, .t5-home a:focus-visible { outline: 3px solid #258d89; outline-offset: 3px; }
.t5-language-control { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); inset-inline-end: 12px; z-index: 900; display: flex; gap: 2px; padding: 4px; border: 1px solid #b9d1ce; border-radius: 12px; background: #fffffff2; box-shadow: 0 3px 16px #152e3220; }
.t5-language-control button { border: 0; border-radius: 8px; background: transparent; color: #34585a; font: 600 11px/1.5 system-ui,sans-serif; padding: 8px; }
.t5-language-control button[aria-pressed='true'] { background: #e2f2ef; color: #105b55; }
html[data-t5-language='en'] [data-t5-page-direction] { direction: ltr !important; }
html[data-t5-language='fa'] [data-t5-page-direction], html[data-t5-language='ar'] [data-t5-page-direction] { direction: rtl !important; }
@media (max-width: 360px) { .t5-home-header { padding-inline: 12px !important; } .t5-home-header .gap-2 { gap: 3px !important; } .t5-home-scroll { padding: 12px !important; } .t5-article-card { height: 200px; } }
@media (min-width: 600px) { .t5-home-menus { grid-template-columns: repeat(3,minmax(0,1fr)) !important; } .t5-article-card { flex-basis: 70%; } }
@media (prefers-reduced-motion: reduce) { .t5-home * { transition: none !important; scroll-behavior: auto !important; } }
.theme-dark .t5-home { --t5-ink: #e5f0ef; --t5-muted: #b0c9c7; --t5-accent: #88d4ca; --t5-glass: #1b333ae8; --t5-line: #59777c66; background: radial-gradient(ellipse at 90% 0,#20494b,transparent 60%),#13252d !important; }
.theme-dark .t5-home-header { background: #19323cce !important; border-color: #52676d !important; }
.theme-dark .t5-home-header button[title], .theme-dark .t5-home-header > .grid > button { background: #29424c !important; }
.theme-dark .t5-home-menus > button { border-color: #52697066 !important; }
.theme-dark .t5-home-scroll > .bg-white p { color: var(--t5-ink); }
