/* V117 — app download icon of the public headers (components/app-download-icon.tsx). */
.tc-app-icon {
  position: relative; flex: none; inline-size: 40px; block-size: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--tc-line, #efe2d4); border-radius: var(--tc-r-md, 12px);
  background: var(--tc-paper, #fff); color: var(--tc-brand-600, #c2410c); text-decoration: none;
  transition: background var(--tc-dur-2, 180ms) var(--tc-ease-out, ease), border-color var(--tc-dur-2, 180ms) var(--tc-ease-out, ease);
}
.tc-app-icon:hover { background: var(--tc-brand-50, #fff5f0); border-color: var(--tc-brand-200, #ffc9ae); }
.tc-app-icon[aria-current="page"] { background: var(--tc-brand-50, #fff5f0); border-color: var(--tc-brand-300, #ffa078); }
.tc-app-icon:focus-visible { outline: 3px solid var(--tc-focus, #c2410c); outline-offset: 2px; }
.tc-app-icon svg { inline-size: 20px; block-size: 20px; }
/* Tap target 44px on touch screens without growing the drawn button. */
.tc-app-icon::after { content: ""; position: absolute; inset: -2px; }
.tc-app-icon-tip {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 60; padding: 6px 10px;
  border-radius: var(--tc-r-sm, 8px); background: var(--tc-ink-900, #1f1a17); color: #fff; font-size: 13px; font-weight: 600;
  line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-2px);
  transition: opacity var(--tc-dur-2, 180ms) var(--tc-ease-out, ease), transform var(--tc-dur-2, 180ms) var(--tc-ease-out, ease);
}
@media (hover: hover) { .tc-app-icon:hover .tc-app-icon-tip { opacity: 1; transform: none; } }
/* Touch screens never hover: no tooltip box that could sit past the screen edge. */
@media (hover: none) { .tc-app-icon-tip { display: none; } }
.tc-app-icon:focus-visible .tc-app-icon-tip { opacity: 1; transform: none; }
.tc-header-dark .tc-app-icon { background: var(--tc-glass, rgba(255,255,255,.06)); border-color: var(--tc-glass-line, rgba(255,255,255,.12)); color: #fff; }
/* Already inside the app (native shell or installed web app): nothing to download. */
html[data-app] .tc-app-icon { display: none !important; }
@media (display-mode: standalone) { .tc-app-icon { display: none !important; } }
@media print { .tc-app-icon { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .tc-app-icon, .tc-app-icon-tip { transition: none; } }
