﻿/* Scoped to the individual sign's Today view. */
#profile-preview.today-active .pr-sidebar { display: none; }
#profile-preview.today-active .pr-layout { grid-template-columns: minmax(0,1fr) 310px; }
#today-preview { display: grid; gap: 14px; min-width: 0; }
#today-sidebar { display: flex; flex-direction: column; gap: 14px; min-width: 0; background: #f8faff; border-radius: 9px; }
.td-panel { min-width: 0; border: 1px solid #e0e9f8; border-radius: 9px; padding: 18px; background: white; }
#profile-preview .td-panel h2 { font-size: 20px; margin: 0 0 12px; }
#profile-preview .td-panel h3 { font-size: 17px; margin: 0 0 12px; }
.td-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.td-date { font-size: 12px; color: #53698b; }
.td-date .daily-date { margin: 0; padding: 7px; background: #f5f8ff; font-size: 12px; }
.td-lead { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px; align-items: start; margin-top: 12px; }
.td-lead > img { width: 100%; height: 150px; object-fit: cover; object-position: 30% center; border-radius: 7px; }
#today-preview #section-diena { padding: 0; border: 0; box-shadow: none; background: transparent; margin: 0; }
#today-preview #section-diena > h2, #today-preview #section-diena > time { display: none; }
#today-preview #section-diena .badge { font-size: 9px; padding: 4px 6px; }
#today-preview #section-diena p { font-size: 13px; line-height: 1.7; }
#today-preview #td-source-slot .daily-text { max-width: none; }
#today-preview #section-diena .muted { font-size: 10px; }
#today-preview #section-diena .button { font-size: 11px; padding: 8px 12px; }
#profile-preview .td-demo { font-size: 10px; line-height: 1.5; color: #7b6592; margin: 0 0 12px; }
.td-focus { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.td-focus > div { display: flex; align-items: center; gap: 10px; background: #f5f7fe; border-radius: 8px; padding: 12px 9px; font-size: 12px; min-width: 0; }
.td-focus span { font-size: 25px; color: #0866ed; }
.td-focus strong { overflow-wrap: anywhere; }
.td-domains { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.td-domains article { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e1e9f8; border-radius: 7px; padding: 14px; }
#profile-preview .td-domains h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.td-domains h3 span { font-size: 23px; color: #ac42d8; }
.td-domains p { font-size: 12px; line-height: 1.6; margin: 0 0 12px; color: #53698b; }
.td-domains a { color: #0866ed; font-size: 11px; margin-top: auto; text-decoration: none; }
.td-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.td-tips { list-style: none; margin: 0; padding: 14px; background: #f5efff; border-radius: 7px; }
.td-tips li { position: relative; padding: 7px 0 7px 22px; font-size: 13px; line-height: 1.6; }
.td-tips li::before { content: '✓'; position: absolute; left: 0; color: #9747e8; font-weight: bold; }
.td-meter { display: grid; grid-template-columns: 25px 68px minmax(0,1fr) 33px; gap: 8px; align-items: center; margin: 16px 0; font-size: 12px; }
.td-meter > span { font-size: 25px; color: var(--meter-color); }
.td-meter meter { appearance: none; width: 100%; min-width: 0; height: 10px; border: 0; border-radius: 9px; background: #e6ecf8; overflow: hidden; }
.td-meter meter::-webkit-meter-bar { background: #e6ecf8; border: 0; height: 10px; }
.td-meter meter::-webkit-meter-optimum-value { background: var(--meter-color); border-radius: 9px; }
.td-meter meter::-moz-meter-bar { background: var(--meter-color); }
.td-background { display: grid; grid-template-columns: 135px minmax(0,1fr); gap: 18px; }
.td-background > img { width: 135px; height: 165px; object-fit: cover; object-position: left center; border-radius: 7px; }
.td-background dl { margin: 0; }
.td-background dl > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7eef9; font-size: 12px; }
.td-background dt { font-weight: bold; display: flex; align-items: center; gap: 10px; }
.td-background dt span { color: #a35c20; font-size: 24px; }
.td-background dd { margin: 0; line-height: 1.6; color: #53698b; }
#profile-preview #today-sidebar h2 { font-size: 17px; }
.td-theme { display: flex; align-items: center; gap: 10px; padding: 12px; background: #f5eefe; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.td-theme > span { font-size: 28px; color: #f33385; }
.td-lucky { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px 10px; margin: 0; font-size: 12px; line-height: 1.6; }
.td-lucky dd { font-weight: bold; margin: 0; }
.td-pairs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.td-pairs a { text-decoration: none; text-align: center; font-size: 11px; overflow-wrap: anywhere; }
.td-pairs img { display: block; width: 56px; height: 56px; margin: 0 auto 9px; }
.td-advice { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(#f0e5ff, #faf7ff); }
.td-advice blockquote { margin: 14px 0; font-style: italic; font-size: 16px; line-height: 1.7; text-align: center; }
.td-advice-sign { display: block; margin: 12px auto 25px; }
.td-advice-art { width: calc(100% + 36px); max-width: none; margin: auto -18px -18px; height: 145px; object-fit: cover; object-position: 20% center; }
@media(max-width:1200px) {
  .td-lead { grid-template-columns: minmax(0,1fr); }
  .td-focus, .td-domains { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .td-two { grid-template-columns: minmax(0,1fr); }
  .td-background { grid-template-columns: minmax(0,1fr); }
  .td-background > img { width: 100%; height: 130px; }
}
@media(max-width:800px) {
  #profile-preview.today-active .pr-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:420px) {
  .td-panel { padding: 14px; }
  .td-domains { grid-template-columns: minmax(0,1fr); }
  .td-background dl > div { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .td-meter { grid-template-columns: 20px 57px minmax(0,1fr) 30px; gap: 5px; font-size: 11px; }
  .td-advice-art { width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; margin-bottom: -14px; }
}

/* Daily lead only: reuse the overview float-and-expand layout. */
#today-preview .td-lead { display:flow-root; }
#today-preview .td-lead > img { float:left; width:220px; height:320px; margin:0 22px 14px 0; object-fit:cover; }
#today-preview .td-lead-copy { height:320px; overflow:hidden; position:relative; }
#today-preview .td-long:not(.td-expanded) .td-lead-copy::after { content:''; position:absolute; inset:auto 0 0; height:65px; background:linear-gradient(transparent,white); pointer-events:none; }
#today-preview .td-expanded .td-lead-copy { height:auto; overflow:visible; }
#today-preview #td-source-slot .button { display:none; }
#today-preview .td-read-toggle { display:block; clear:both; margin:18px auto 0; padding:11px 28px; border:0; border-radius:24px; background:linear-gradient(180deg,#064ac4,#063197); color:white; font:inherit; font-size:15px; font-weight:700; box-shadow:0 2px 4px #0631972b; cursor:pointer; max-width:100%; }
#today-preview .td-read-toggle[hidden] { display:none; }
@media(max-width:600px) {
 #today-preview .td-lead > img { float:none; width:100%; height:220px; margin:0 0 18px; }
 #today-preview .td-lead-copy { height:220px; }
 #today-preview .td-expanded .td-lead-copy { height:auto; }
}
