/*
 * IA Discuss — Legacy style theme
 *
 * phpBB prosilver-inspired light theme for users who prefer a classic forum look.
 * Enabled by: .ia-discuss-root[data-iad-theme="legacy"]
 */

.ia-discuss-root[data-iad-theme="legacy"]{
  color-scheme: light;
  --iad-bg: #f5f7fa;
  --iad-panel: #ffffff;
  --iad-card: #ecf1f3;
  --iad-card2: #ecf3f7;
  --iad-border: #c5d3df;
  --iad-text: #28313f;
  --iad-muted: #536482;
  --iad-accent: #105289;
  --iad-accent2: #12a3eb;
  --iad-radius: 7px;
  --iad-radius2: 8px;
  --iad-font-sans: Verdana, Helvetica, Arial, sans-serif;
  background: var(--iad-bg);
  color: var(--iad-text);
}

.ia-discuss-root[data-iad-theme="legacy"],
.ia-discuss-root[data-iad-theme="legacy"] .iad-shell{
  font-family: var(--iad-font-sans);
  letter-spacing: 0;
}

.ia-discuss-root[data-iad-theme="legacy"] h1,
.ia-discuss-root[data-iad-theme="legacy"] h2,
.ia-discuss-root[data-iad-theme="legacy"] h3,
.ia-discuss-root[data-iad-theme="legacy"] h4,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar-title,
.ia-discuss-root[data-iad-theme="legacy"] .iad-modal-title{
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.ia-discuss-root[data-iad-theme="legacy"] a,
.ia-discuss-root[data-iad-theme="legacy"] a:visited,
.ia-discuss-root[data-iad-theme="legacy"] .iad-user-link{
  color: #105289;
}

.ia-discuss-root[data-iad-theme="legacy"] a:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-user-link:hover{
  color: #d31141;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-input,
.ia-discuss-root[data-iad-theme="legacy"] .iad-textarea{
  background: #ffffff;
  color: #28313f;
  border-color: #bfc8d2;
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-input::placeholder,
.ia-discuss-root[data-iad-theme="legacy"] .iad-textarea::placeholder{
  color: #6c7b8a;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-tab,
.ia-discuss-root[data-iad-theme="legacy"] .iad-btn,
.ia-discuss-root[data-iad-theme="legacy"] .iad-link,
.ia-discuss-root[data-iad-theme="legacy"] .iad-iconbtn,
.ia-discuss-root[data-iad-theme="legacy"] .iad-collapse,
.ia-discuss-root[data-iad-theme="legacy"] .iad-stab,
.ia-discuss-root[data-iad-theme="legacy"] .iad-x{
  background: linear-gradient(to bottom, #ffffff 0%, #e8eef4 100%);
  color: #28313f;
  border-color: #bfc8d2;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-tab:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-btn:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-link:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-iconbtn:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-collapse:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-stab:hover,
.ia-discuss-root[data-iad-theme="legacy"] .iad-x:hover{
  background: linear-gradient(to bottom, #ffffff 0%, #dfe8f1 100%);
  text-decoration: none;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-tab.is-active,
.ia-discuss-root[data-iad-theme="legacy"] .iad-stab.is-active{
  background: linear-gradient(to bottom, #dff0ff 0%, #bfdcf3 100%);
  border-color: #7aa8d0;
  color: #0d4473;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-card,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sr-row,
.ia-discuss-root[data-iad-theme="legacy"] .iad-topic-head,
.ia-discuss-root[data-iad-theme="legacy"] .iad-linkcard{
  background: #ecf1f3;
  color: #28313f;
  border: 1px solid #c5d3df;
  border-radius: 7px;
  box-shadow: none;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-card.is-unread{
  border-color: #8fb2cf;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-card.is-read{
  border-color: #c5d3df;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-card::before{
  display: none;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post.is-op{
  background: #ecf3f7;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post.is-reply,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post.is-reply.is-alt,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post.is-alt{
  background: #e1ebf2;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-body,
.ia-discuss-root[data-iad-theme="legacy"] .iad-search-title,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sr-title,
.ia-discuss-root[data-iad-theme="legacy"] .iad-topic-count{
  color: #28313f;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-meta,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sub,
.ia-discuss-root[data-iad-theme="legacy"] .iad-muted,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sr-sub,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sr-sn,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sg-title,
.ia-discuss-root[data-iad-theme="legacy"] .iad-theme-copy,
.ia-discuss-root[data-iad-theme="legacy"] .iad-theme-choice-desc{
  color: #536482;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-pill{
  background: #ffffff;
  color: #28313f;
  border-color: #bfc8d2;
  border-radius: 999px;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-pill-primary{
  background: #d0e4f6;
  color: #0d4473;
  border-color: #7aa8d0;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-modal-sheet{
  background: #ffffff;
  border-color: #bfc8d2;
  box-shadow: 0 16px 42px rgba(24,40,60,0.22);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-modal-top{
  background: linear-gradient(to bottom, #fdfefe 0%, #e7eef5 100%);
  border-bottom-color: #c5d3df;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar{
  background: linear-gradient(to bottom, #fdfefe 0%, #ecf3f7 100%);
  border-right-color: #c5d3df;
  box-shadow: 18px 0 40px rgba(24,40,60,0.18);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar-divider{
  background: #c5d3df;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar-subtitle{
  color: #536482;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar .iad-tab,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar .iad-btn{
  background: linear-gradient(to bottom, #ffffff 0%, #e8eef4 100%);
  color: #28313f;
  border-color: #bfc8d2;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar .iad-tab.is-active{
  background: linear-gradient(to bottom, #dff0ff 0%, #bfdcf3 100%);
  border-color: #7aa8d0;
  color: #0d4473;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar .iad-tab-theme{
  background: linear-gradient(to bottom, #e9f6ff 0%, #cfe7fa 100%);
  color: #105289;
  border-color: #7aa8d0;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sidebar-close,
.ia-discuss-root[data-iad-theme="legacy"] .iad-discuss-topbar-toggle{
  background: linear-gradient(to bottom, #ffffff 0%, #e8eef4 100%);
  color: #28313f;
  border-color: #bfc8d2;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-suggest,
.iad-suggest--portal[data-iad-theme="legacy"]{
  background: #ffffff;
  border-color: #bfc8d2;
  box-shadow: 0 20px 50px rgba(24,40,60,0.22);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-row,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-row{
  color: #28313f;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-row:hover,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-row:hover{
  background: #d0e4f6;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-row.is-cta,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-row.is-cta{
  border-bottom-color: #c5d3df;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-sub,
.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-sn,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-sub,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-sn,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sg-title{
  color: #536482;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-sug-ico,
.ia-discuss-root[data-iad-theme="legacy"] .iad-av,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-sug-ico,
.iad-suggest--portal[data-iad-theme="legacy"] .iad-av{
  background: #ecf3f7;
  border-color: #c5d3df;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-body .iad-code-block{
  background: #f8fbfd;
  color: #28313f;
  border-color: #bfc8d2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-body .iad-code-block::before{
  background: #e7eef5;
  border-bottom-color: #c5d3df;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-body .iad-code-block::after{
  color: rgba(83,100,130,0.55);
}

/* Theme modal */
.iad-theme-sheet{
  width: min(560px, calc(100% - 18px));
}

.iad-theme-copy{
  margin-bottom: 12px;
  color: var(--iad-muted);
}

.iad-theme-list{
  display: grid;
  gap: 12px;
}

.iad-theme-choice{
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--iad-border);
  background: rgba(255,255,255,0.04);
  color: var(--iad-text);
  cursor: pointer;
}

.iad-theme-choice:hover{
  background: rgba(255,255,255,0.08);
}

.iad-theme-choice.is-active{
  border-color: rgba(71,179,255,0.45);
  box-shadow: 0 0 0 1px rgba(71,179,255,0.18);
}

.iad-theme-choice-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.iad-theme-choice-title{
  font-size: 15px;
  font-weight: 700;
}

.iad-theme-choice-check{
  opacity: 0;
}

.iad-theme-choice.is-active .iad-theme-choice-check{
  opacity: 1;
}

.iad-theme-choice-desc{
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--iad-muted);
}

.ia-discuss-root[data-iad-theme="light"] .iad-theme-choice{
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.88);
  border-color: rgba(0,0,0,0.10);
}

.ia-discuss-root[data-iad-theme="light"] .iad-theme-choice:hover{
  background: rgba(0,0,0,0.05);
}

.ia-discuss-root[data-iad-theme="light"] .iad-theme-choice.is-active{
  border-color: rgba(17,80,152,0.34);
  box-shadow: 0 0 0 1px rgba(17,80,152,0.14);
}


.iad-theme-modal[data-iad-theme="light"] .iad-modal-sheet{
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
}

.iad-theme-modal[data-iad-theme="light"] .iad-modal-top{
  background: rgba(248,248,250,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}

.iad-theme-modal[data-iad-theme="light"] .iad-modal-title{
  color: rgba(0,0,0,0.92);
}

.iad-theme-modal[data-iad-theme="light"] .iad-x{
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.82);
  border-color: rgba(0,0,0,0.12);
}

.iad-theme-modal[data-iad-theme="light"] .iad-theme-copy,
.iad-theme-modal[data-iad-theme="light"] .iad-theme-choice-desc{
  color: rgba(0,0,0,0.60);
}

.iad-theme-modal[data-iad-theme="light"] .iad-theme-choice{
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.88);
  border-color: rgba(0,0,0,0.10);
}

.iad-theme-modal[data-iad-theme="light"] .iad-theme-choice:hover{
  background: rgba(0,0,0,0.05);
}

.iad-theme-modal[data-iad-theme="light"] .iad-theme-choice.is-active{
  border-color: rgba(17,80,152,0.34);
  box-shadow: 0 0 0 1px rgba(17,80,152,0.14);
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-modal-sheet{
  background: #ffffff;
  border-color: #bfc8d2;
  box-shadow: 0 16px 42px rgba(24,40,60,0.22);
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-modal-top{
  background: linear-gradient(to bottom, #fdfefe 0%, #e7eef5 100%);
  border-bottom-color: #c5d3df;
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-modal-title{
  color: #28313f;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-x{
  background: linear-gradient(to bottom, #ffffff 0%, #e8eef4 100%);
  color: #28313f;
  border-color: #bfc8d2;
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-copy,
.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-choice-desc{
  color: #536482;
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-choice{
  background: linear-gradient(to bottom, #ffffff 0%, #eef3f7 100%);
  color: #28313f;
  border-color: #bfc8d2;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-choice:hover{
  background: linear-gradient(to bottom, #ffffff 0%, #dfe8f1 100%);
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-choice.is-active{
  border-color: #7aa8d0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 1px rgba(122,168,208,0.18);
}

.iad-theme-modal[data-iad-theme="legacy"] .iad-theme-choice-title{
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

/* 0.3.81 readability patch
   - Feed excerpts were still inheriting dark-theme white text from cards.css.
   - Topic signatures also needed a legacy-specific contrast override. */
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt,
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt p,
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt li,
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt div,
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt span{
  color: #3f4d5d;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt a,
.ia-discuss-root[data-iad-theme="legacy"] .iad-card-excerpt a:visited{
  color: #105289;
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-sig-divider{
  background: rgba(83,100,130,0.28);
}

.ia-discuss-root[data-iad-theme="legacy"] .iad-post-sig-body,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post-sig-body p,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post-sig-body div,
.ia-discuss-root[data-iad-theme="legacy"] .iad-post-sig-body span{
  color: #4f5d73;
}

