/*
  TAMESA T·C thinking mark
  -----------------------
  A Tiempos-derived T remains legible. An open circular C, redrawn from the
  site's route-circle language, changes its spatial relationship to the T only
  while the Ask layer is genuinely processing.

  The component inherits currentColor. No font file is shipped.
*/
.tc-thinking-icon {
  --tc-thinking-size: 1.15em;
  --tc-thinking-depth: calc(var(--tc-thinking-size) * 9);
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: var(--tc-thinking-size);
  block-size: var(--tc-thinking-size);
  flex: 0 0 var(--tc-thinking-size);
  color: inherit;
  perspective: var(--tc-thinking-depth);
  isolation: isolate;
  contain: layout style;
  overflow: visible;
  vertical-align: -.18em;
  pointer-events: none;
}

.tc-thinking-icon__stage,
.tc-thinking-icon__letter {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.tc-thinking-icon__stage {
  transform: rotateX(-4deg);
}

.tc-thinking-icon__letter {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  inline-size: 100%;
  block-size: 100%;
  transform-origin: 50% 50%;
  backface-visibility: visible;
}

.tc-thinking-icon__letter--t {
  transform: translate3d(-50%, -50%, 0) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(.94);
  opacity: 1;
}

.tc-thinking-icon__letter--c {
  transform: translate3d(-50%, -50%, -.02em) rotateY(88deg) rotateX(0deg) rotateZ(-1deg) scale(.97);
  opacity: 0;
}

.tc-thinking-icon__svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  overflow: visible;
}

/* Small optical expansion protects the high-contrast T at UI size. */
.tc-thinking-icon__t-path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 10;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

/* The C is an open route-circle, not the unmodified font glyph. */
.tc-thinking-icon__c-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 46;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

/* Optional static specimen pose; the production interface rests on the T. */
.tc-thinking-icon[data-pose="composite"][data-state="idle"] .tc-thinking-icon__letter--t {
  transform: translate3d(-52%, -50%, 0) rotateY(-1deg) rotateX(.2deg) rotateZ(0deg) scale(.94);
}
.tc-thinking-icon[data-pose="composite"][data-state="idle"] .tc-thinking-icon__letter--c {
  transform: translate3d(-20%, -50%, .08em) rotateY(18deg) rotateX(0deg) rotateZ(-.4deg) scale(.97);
  opacity: .32;
}

/* A restrained C hint appears only on deliberate hover or keyboard focus. */
button:hover .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--t,
button:focus-visible .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--t,
a:hover .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--t,
a:focus-visible .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--t {
  transform: translate3d(-50%, -50%, 0) rotateY(-1deg) rotateX(.15deg) rotateZ(0deg) scale(.94);
}
button:hover .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--c,
button:focus-visible .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--c,
a:hover .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--c,
a:focus-visible .tc-thinking-icon[data-state="idle"] .tc-thinking-icon__letter--c {
  transform: translate3d(-39%, -50%, .035em) rotateY(61deg) rotateX(0deg) rotateZ(-.7deg) scale(.97);
  opacity: .20;
}

.tc-thinking-icon[data-state="thinking"] .tc-thinking-icon__letter,
.tc-thinking-icon[data-state="settling"] .tc-thinking-icon__letter {
  will-change: transform, opacity;
}

/* Reduced-motion equivalent: a stable open relation plus the same live text. */
.tc-thinking-icon[data-state="thinking"][data-motion="reduced"] .tc-thinking-icon__letter--t {
  transform: translate3d(-53%, -50%, 0) rotateY(-1.5deg) rotateX(.2deg) rotateZ(0deg) scale(.94);
}
.tc-thinking-icon[data-state="thinking"][data-motion="reduced"] .tc-thinking-icon__letter--c {
  transform: translate3d(-18%, -50%, .08em) rotateY(16deg) rotateX(0deg) rotateZ(-.3deg) scale(.97);
  opacity: .46;
}

/* Candidate A placement: quiet in the masthead, clearer inside Ask TAMESA. */
.ask-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.ask-control .tc-thinking-icon {
  --tc-thinking-size: 14px;
  vertical-align: 0;
}
.ask-panel .ask-heading {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.ask-panel .ask-heading > .tc-thinking-icon {
  --tc-thinking-size: 27px;
  margin-top: 2px;
  vertical-align: 0;
}
.ask-panel .ask-heading h2 {
  line-height: 1;
}
.ask-panel .ask-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ask-panel .ask-submit .tc-thinking-icon {
  --tc-thinking-size: 15px;
  vertical-align: 0;
}

@media (max-width: 720px) {
  .ask-control { gap: 5px; }
  .ask-control .tc-thinking-icon { --tc-thinking-size: 11px; }
  .ask-panel .ask-heading {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 9px;
  }
  .ask-panel .ask-heading > .tc-thinking-icon { --tc-thinking-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-thinking-icon__letter { transition: none !important; }
}
