/* Texpedia embed — scoped styles */
.texpedia-embed{
  --ink:#122033;
  --muted:#4a5a6a;
  --line:#d7e0d4;
  --card:#fff;
  --accent:#2f6b3a;
  --soft:#eef3ea;
  max-width:1080px;
  margin:0 auto;
  padding:8px 0 56px;
  color:var(--ink);
  font-family:inherit;
  line-height:1.65;
  box-sizing:border-box;
  position:relative;
}
.texpedia-embed *,
.texpedia-embed *::before,
.texpedia-embed *::after{box-sizing:border-box;}
.texpedia-embed a,.texpedia-embed button.tx-link{
  color:var(--accent);
  text-decoration:none;
  cursor:pointer;
  background:none;
  border:0;
  padding:0;
  font:inherit;
}
.texpedia-embed a:hover,.texpedia-embed button.tx-link:hover{text-decoration:underline;}
.texpedia-embed .tx-lead{
  color:var(--muted);
  font-size:1.05em;
  max-width:42em;
  margin:0 0 20px;
}
.texpedia-embed .tx-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin:0 0 22px;
}
.texpedia-embed .tx-search{
  flex:1 1 220px;
  min-width:0;
  max-width:420px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 16px;
  font:inherit;
  color:var(--ink);
  background:#fff;
}
.texpedia-embed .tx-search:focus{
  outline:2px solid rgba(47,107,58,.25);
  border-color:#b9cbb4;
}
.texpedia-embed .tx-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:8px 16px 8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--ink);
  font-size:0.95em;
  line-height:1;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(18,32,51,.04);
}
.texpedia-embed .tx-back:hover{
  border-color:#b9cbb4;
  color:var(--accent);
  text-decoration:none;
}
.texpedia-embed h2.tx-title{
  margin:0 0 8px;
  font-size:1.85em;
  line-height:1.2;
  font-weight:650;
  color:var(--ink);
}
.texpedia-embed h3.tx-card-title{
  margin:0 0 10px;
  font-size:1.15em;
  line-height:1.3;
  font-weight:650;
  color:var(--ink);
}
.texpedia-embed .tx-kicker{
  margin:0 0 6px;
  font-size:0.75em;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.texpedia-embed .tx-count{
  display:inline-block;
  margin-left:8px;
  font-size:0.85em;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
}
.texpedia-embed .tx-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.texpedia-embed .tx-squares{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.texpedia-embed .tx-card,
.texpedia-embed .tx-square{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  color:inherit;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
  font:inherit;
  width:100%;
}
.texpedia-embed .tx-card{min-height:200px;}
.texpedia-embed .tx-square{
  aspect-ratio:1/1;
  min-height:0;
  overflow:hidden;
}
.texpedia-embed .tx-card:hover,
.texpedia-embed .tx-square:hover{
  text-decoration:none;
  border-color:#b9cbb4;
  box-shadow:0 8px 24px rgba(18,32,51,.08);
  transform:translateY(-1px);
}
.texpedia-embed .tx-card:hover h3,
.texpedia-embed .tx-square:hover h3{color:var(--accent);}
.texpedia-embed .tx-excerpt{
  margin:0;
  color:var(--muted);
  font-size:0.96em;
}
.texpedia-embed .tx-square .tx-excerpt{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:6;
  overflow:hidden;
}
.texpedia-embed .tx-more{
  margin-top:auto;
  padding-top:12px;
  font-size:0.9em;
  color:var(--accent);
  font-weight:550;
}
.texpedia-embed .tx-status{
  color:var(--muted);
  font-size:0.95em;
  margin:0 0 16px;
}
.texpedia-embed .tx-loadmore-wrap{
  display:flex;
  justify-content:center;
  margin:28px 0 0;
}
.texpedia-embed .tx-loadmore{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  padding:10px 22px;
  font:inherit;
  cursor:pointer;
}
.texpedia-embed .tx-loadmore:hover{
  border-color:#b9cbb4;
  color:var(--accent);
}
.texpedia-embed .tx-empty{
  padding:28px 8px;
  color:var(--muted);
}
.texpedia-embed .tx-hidden{display:none !important;}

/* Modal */
.texpedia-embed .tx-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}
.texpedia-embed .tx-modal.is-open{display:flex;}
.texpedia-embed .tx-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(18,32,51,.45);
  cursor:pointer;
  border:0;
}
.texpedia-embed .tx-modal-dialog{
  position:relative;
  z-index:1;
  background:var(--card);
  width:min(760px,100%);
  max-height:min(86vh,840px);
  overflow:auto;
  border-radius:18px;
  padding:28px 32px 36px;
  box-shadow:0 20px 50px rgba(18,32,51,.2);
}
.texpedia-embed .tx-modal-close{
  position:sticky;
  top:0;
  float:right;
  width:36px;
  height:36px;
  margin:0 0 8px 12px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  font-size:22px;
  line-height:34px;
  text-align:center;
  cursor:pointer;
}
.texpedia-embed .tx-modal-close:hover{
  border-color:#b9cbb4;
  color:var(--accent);
}
.texpedia-embed .tx-modal-dialog h2{
  margin:0 0 16px;
  padding-right:48px;
  font-size:1.7em;
  line-height:1.25;
  font-weight:650;
  color:var(--ink);
}
.texpedia-embed .tx-modal-dialog .tx-body p{margin:0 0 1em;}
.texpedia-embed .tx-modal-dialog .tx-body p:last-child{margin-bottom:0;}
.texpedia-embed .tx-modal-dialog .tx-body h3{
  margin:1.4em 0 .55em;
  font-size:1.15em;
  font-weight:650;
  color:var(--ink);
}
.texpedia-embed .tx-meta{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:0.95em;
  clear:both;
}
.texpedia-embed .tx-meta p{margin:0 0 8px;}
.texpedia-embed .tx-meta p:last-child{margin-bottom:0;}
.texpedia-embed .tx-loading{
  padding:24px 0;
  color:var(--muted);
}

@media (max-width:900px){
  .texpedia-embed .tx-squares{grid-template-columns:repeat(2,minmax(0,1fr));}
  .texpedia-embed .tx-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .texpedia-embed .tx-grid,
  .texpedia-embed .tx-squares{grid-template-columns:1fr;}
  .texpedia-embed .tx-square{aspect-ratio:auto;min-height:220px;}
  .texpedia-embed h2.tx-title,
  .texpedia-embed .tx-modal-dialog h2{font-size:1.4em;}
  .texpedia-embed .tx-modal-dialog{padding:22px 20px 28px;}
}
