/* Tacetra Site. Uses the theme's fonts; colors can be overridden with these variables. */
.tcs {
  --tcs-accent: #3b5bfd;
  --tcs-ink: #111827;
  --tcs-muted: #4b5563;
  --tcs-line: #e5e7eb;
  --tcs-soft: #f8fafc;
  --tcs-yellow: #ffd23f;
  --tcs-coral: #ff6b4a;
  --tcs-mint: #22c493;
  --tcs-heading: inherit;
  color: var(--tcs-ink);
  box-sizing: border-box;
}
.tcs *, .tcs *::before, .tcs *::after { box-sizing: border-box; }
.tcs [hidden] { display: none !important; }
.tcs .tcs-icon { display: block; flex-shrink: 0; }
.tcs-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

@font-face {
  font-family: "Tacetra Script";
  src: url("fonts/GreatVibes_400Regular.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Search ---------- */
.tcs-search { margin: 0; max-width: 600px; }
.tcs-search .tcs-search-label { display: block; font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.tcs-search .tcs-search-box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px;
  padding: 0 8px 0 18px; border: 1px solid var(--tcs-line); box-shadow: 0 10px 30px rgba(17, 24, 39, .12); color: #6b7280; }
.tcs-search input[type="search"] { flex: 1; min-width: 0; height: 58px; border: 0; outline: none; box-shadow: none; margin: 0; padding: 0;
  font: inherit; font-size: 18px; color: var(--tcs-ink); background: transparent; }
.tcs-search .tcs-search-box:focus-within { outline: 3px solid var(--tcs-yellow); outline-offset: 2px; }
/* Extra specificity: some themes color every submit button (e.g. body:not(.dark-mode) [type="submit"]) */
.tcs.tcs-search .tcs-search-box .tcs-search-btn { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--tcs-coral);
  color: var(--tcs-ink); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.tcs.tcs-search .tcs-search-box .tcs-search-btn:hover { background: #ff5532; color: var(--tcs-ink); }
.tcs-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.tcs-popular-label { font-weight: 700; font-size: 15px; margin-right: 4px; }
.tcs .tcs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tcs-line); color: var(--tcs-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.tcs .tcs-chip:hover { border-color: var(--tcs-ink); }
.tcs-on-dark.tcs-search { color: #fff; }
.tcs-on-dark .tcs-chip { background: rgba(17, 24, 39, .28); border-color: rgba(255, 255, 255, .6); color: #fff; }
.tcs-on-dark .tcs-chip:hover { background: rgba(17, 24, 39, .45); border-color: #fff; color: #fff; }
.tcs-directory .tcs-search { margin-bottom: 24px; }

/* ---------- Directory ---------- */
.tcs-directory { scroll-margin-top: 24px; }
.tcs-directory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tcs-count { margin: 0; color: var(--tcs-muted); font-size: 17px; }
.tcs .tcs-clear { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff;
  color: var(--tcs-ink); font: inherit; font-weight: 700; cursor: pointer; }
.tcs-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tcs .tcs-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #d1d5db; background: #fff; color: var(--tcs-ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.tcs .tcs-filter:hover { border-color: var(--d); }
.tcs .tcs-filter[aria-pressed="true"] { background: var(--d); border-color: var(--d); color: #fff; }
.tcs .tcs-filter[aria-pressed="true"] .tcs-dot { background: #fff !important; }
.tcs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcs-grid > li { margin: 0; padding: 0; }
.tcs .tcs-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border: 1px solid var(--tcs-line);
  border-top: 3px solid var(--c); border-radius: 18px; background: #fff; color: var(--tcs-ink); text-decoration: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .05); transition: box-shadow .15s, transform .15s; }
.tcs .tcs-card:hover { box-shadow: 0 10px 24px rgba(17, 24, 39, .1); transform: translateY(-2px); color: var(--tcs-ink); }
.tcs .tcs-card:focus-visible { outline: 3px solid var(--d); outline-offset: 2px; }
.tcs-card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--s); color: var(--d);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tcs-card-text { min-width: 0; }
.tcs-card-name { display: block; font-weight: 800; font-size: 16px; line-height: 1.35; }
.tcs-card-desc { display: block; font-size: 14px; color: var(--tcs-muted); margin-top: 3px; line-height: 1.45; }
.tcs-new { display: inline-block; vertical-align: 2px; margin-left: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 999px; background: var(--tcs-yellow); color: var(--tcs-ink); }
.tcs-empty { padding: 36px 24px; text-align: center; border: 2px dashed #9ca3af; border-radius: 18px; color: var(--tcs-muted); }
.tcs-empty p { margin: 0; }
.tcs-empty .tcs-empty-title { font-family: var(--tcs-heading); font-weight: 800; color: var(--tcs-ink); font-size: 21px; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .tcs .tcs-card, .tcs .tcs-card:hover { transition: none; transform: none; } }

/* ---------- Carousel ---------- */
.tcs-carousel { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.tcs-window { background: #fff; color: var(--tcs-ink); border-radius: 22px; overflow: hidden; border: 1px solid var(--tcs-line);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .28); }
.tcs-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--tcs-line); transition: background .3s; }
.tcs-light { width: 11px; height: 11px; border-radius: 50%; }
.tcs-window-title { margin-left: 10px; font-size: 14px; font-weight: 800; }
.tcs-window-count { margin-left: auto; font-size: 12px; font-weight: 700; color: #374151; }
.tcs-slides { height: 318px; padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.tcs-slide p { margin: 0; }
.tcs-controls { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tcs-carousel.is-ready .tcs-controls { display: flex; }
.tcs-arrows { display: flex; gap: 8px; }
.tcs .tcs-round { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 2px solid var(--tcs-ink); background: transparent;
  color: var(--tcs-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tcs .tcs-round-solid { background: var(--tcs-ink); color: #fff; }
.tcs-dots { display: flex; align-items: center; }
.tcs .tcs-dot-btn { width: 40px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tcs-dot-btn span { display: block; width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--tcs-ink); transition: width .2s; }
.tcs-dot-btn[aria-current="true"] span { width: 30px; background: var(--tcs-yellow); border-color: var(--tcs-ink); }
.tcs .tcs-carousel-cta { display: block; margin-top: 14px; text-align: center; color: var(--tcs-ink); font-weight: 800; font-size: 17px;
  text-decoration: underline; text-underline-offset: 4px; }
.tcs-badge { position: absolute; left: -22px; top: 54px; display: flex; align-items: center; gap: 8px; background: var(--tcs-mint); color: var(--tcs-ink);
  padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(17, 24, 39, .18); }
.tcs-on-dark .tcs-round { border-color: #fff; color: #fff; }
.tcs-on-dark .tcs-round-solid { background: #fff; color: var(--tcs-ink); }
.tcs-on-dark .tcs-dot-btn span { border-color: #fff; }
.tcs-on-dark .tcs-dot-btn[aria-current="true"] span { border-color: #fff; }
.tcs-on-dark .tcs-carousel-cta, .tcs-on-dark .tcs-carousel-cta:hover { color: #fff; }
.tcs .tcs-round:focus-visible, .tcs .tcs-dot-btn:focus-visible, .tcs .tcs-carousel-cta:focus-visible { outline: 3px solid var(--tcs-yellow); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tcs-window-bar, .tcs-dot-btn span { transition: none; } }
@media (max-width: 520px) {
  .tcs-slides { height: 300px; padding: 16px; }
  .tcs-carousel { display: flex; flex-direction: column; }
  .tcs-badge { position: static; order: -1; align-self: flex-start; margin-bottom: 12px; }
  .tcs .tcs-dot-btn { width: 30px; }
}

/* Slide previews */
.tcs-s-cert-frame { border: 3px solid #b08d2e; padding: 4px; background: #fffdf8; }
.tcs-s-cert-frame > div { border: 1px solid #b08d2e; padding: 16px 12px 14px; text-align: center; }
.tcs-s-cert-org { font-size: 10px; letter-spacing: .22em; color: #7a5f17; font-weight: 800; }
.tcs-s-cert-title { font-family: Georgia, serif; font-size: 27px; font-weight: 700; letter-spacing: .1em; margin-top: 4px !important; line-height: 1.2; }
.tcs-s-cert-sub { font-family: Georgia, serif; font-size: 11px; letter-spacing: .3em; color: #7a5f17; }
.tcs-s-cert-name { font-family: "Tacetra Script", cursive; font-size: 40px; line-height: 1.25; margin-top: 6px !important; }
.tcs-s-cert-course { font-family: Georgia, serif; font-weight: 700; font-size: 14px; border-top: 1px solid #b08d2e; width: 70%; margin: 4px auto 0 !important; padding-top: 6px; }
.tcs-s-row { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.tcs-s-pill { padding: 8px 14px; border-radius: 10px; background: var(--tcs-ink); color: #fff; white-space: nowrap; }
.tcs-s-pay-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 2px solid #f3f4f6; font-weight: 800; }
.tcs-s-pay-head > span { display: flex; align-items: center; gap: 10px; }
.tcs-s-pay-head strong { font-size: 19px; letter-spacing: .03em; }
.tcs-s-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--tcs-coral); }
.tcs-s-pay-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; font-size: 14px; }
.tcs-s-pay-lines dt { color: var(--tcs-muted); margin: 0; }
.tcs-s-pay-lines dd { margin: 0; text-align: right; font-weight: 700; }
.tcs-s-pay-lines .tcs-s-mute { color: var(--tcs-muted); font-weight: 400; }
.tcs-s-pay-lines .tcs-s-neg { color: #b91c1c; }
.tcs-s-net { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px;
  background: var(--tcs-coral); color: var(--tcs-ink); font-weight: 800; }
.tcs-s-net strong { font-size: 25px; }
.tcs-s-pdf { display: flex; align-items: center; justify-content: center; gap: 20px; }
.tcs-s-pdf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tcs-s-pdf li { display: flex; align-items: center; gap: 10px; margin: 0; border: 1px solid var(--tcs-line); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 6px rgba(17, 24, 39, .06); }
.tcs-s-pdf li span { width: 18px; height: 23px; border-radius: 4px; }
.tcs-s-pdf-out { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tcs-s-pdf-out span { width: 80px; height: 100px; border-radius: 10px; background: #e11d74; color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 21px; box-shadow: 0 8px 20px rgba(17, 24, 39, .15); }
.tcs-s-pdf-out strong { font-size: 14px; margin-top: 10px; }
.tcs-s-pdf-out small { font-size: 13px; color: var(--tcs-muted); font-weight: 600; }
.tcs-s-qr { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; }
.tcs-s-qr-code { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); width: 176px; height: 176px; padding: 11px;
  border: 1px solid var(--tcs-line); border-radius: 14px; background: #fff; }
.tcs-s-qr-code span { border-radius: 2px; }
.tcs-s-qr-code .f { background: var(--tcs-ink); }
.tcs-s-qr-code .d { background: #7c3aed; }
.tcs-s-qr-form { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }
.tcs-s-label { font-size: 12px; font-weight: 800; color: var(--tcs-muted); }
.tcs-s-input { padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; font-weight: 600; }
.tcs-s-swatches { display: flex; gap: 8px; }
.tcs-s-swatches span { width: 28px; height: 28px; border-radius: 50%; }
.tcs-s-swatches .on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tcs-ink); }
.tcs-s-json { background: var(--tcs-ink); border-radius: 14px; padding: 16px 20px; }
.tcs-s-json pre { margin: 0; padding: 0; background: none; border: 0; color: #e5e7eb; font: 15px/1.7 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow: hidden; }
.tcs-s-json .b { color: var(--tcs-yellow); } .tcs-s-json .k { color: #8fb3ff; } .tcs-s-json .s { color: #6ee7b7; } .tcs-s-json .n { color: #ff9f8a; }
.tcs-s-ok { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--tcs-mint); color: var(--tcs-ink); font-size: 13px; font-weight: 800; }

/* ---------- Word counter & readability ---------- */
.tcs-tool { max-width: 900px; margin: 0 auto; }
.tcs-tool-label { display: block; font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.tcs-tool-label span { font-weight: 500; color: var(--tcs-muted); font-size: 14px; }
.tcs .tcs-textarea { display: block; width: 100%; min-height: 220px; padding: 16px; border: 1px solid #d1d5db; border-radius: 14px;
  font: inherit; font-size: 17px; line-height: 1.6; color: var(--tcs-ink); background: #fff; resize: vertical; margin: 0; }
.tcs .tcs-textarea:focus { outline: 3px solid var(--tcs-accent); outline-offset: 1px; border-color: var(--tcs-accent); }
.tcs-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 20px; }
.tcs .tcs-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--tcs-ink); background: var(--tcs-ink);
  color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.tcs .tcs-btn-ghost { background: #fff; color: var(--tcs-ink); border-color: #d1d5db; }
.tcs-tool-note { font-size: 14px; font-weight: 600; color: #047857; }
.tcs-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px; }
.tcs-stat { padding: 14px 16px; border: 1px solid var(--tcs-line); border-radius: 14px; background: var(--tcs-soft); }
.tcs-stat-value { display: block; font-family: var(--tcs-heading); font-size: 26px; font-weight: 800; line-height: 1.2; }
.tcs-stat-label { display: block; font-size: 13px; color: var(--tcs-muted); font-weight: 600; margin-top: 2px; }
.tcs-tool-h { font-family: var(--tcs-heading); font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.tcs-keywords ol { margin: 0 0 20px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tcs-keywords li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--tcs-line); border-radius: 10px; font-weight: 700; margin: 0; }
.tcs-kw-count { color: var(--tcs-muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tcs-private { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--tcs-muted); }

.tcs-score { padding: 20px; border: 1px solid var(--tcs-line); border-radius: 18px; background: #fff; margin: 20px 0; box-shadow: 0 2px 8px rgba(17, 24, 39, .05); }
.tcs-score-main { display: flex; align-items: center; gap: 18px; }
.tcs-score-num { font-family: var(--tcs-heading); font-size: 56px; font-weight: 800; line-height: 1; min-width: 80px; color: var(--tcs-accent); }
.tcs-score-label { display: block; font-size: 20px; font-weight: 800; }
.tcs-score-desc { display: block; color: var(--tcs-muted); }
.tcs-gauge { position: relative; height: 12px; margin-top: 18px; border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 35%, #facc15 55%, #22c55e 75%, #16a34a 100%); }
.tcs-gauge-marker { position: absolute; top: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff;
  border: 4px solid var(--tcs-ink); transform: translateY(-50%); transition: left .25s; }
.tcs-gauge-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--tcs-muted); font-weight: 600; }
.tcs-tips ul, .tcs-long ol { margin: 0 0 20px; padding-left: 22px; }
.tcs-tips li, .tcs-long li { margin: 0 0 6px; }
.tcs-long li { color: var(--tcs-muted); }
@media (prefers-reduced-motion: reduce) { .tcs-gauge-marker { transition: none; } }
