/* Free Twitter Tools - the X / Twitter skin on top of the shared
 * platform-tools.css shell: a single-column timeline of posts with a link card and an Open tool
 * button (no profile header: the tools sit above the fold; no action-icon
 * row and no Saved tab since 2026-09-03). */

:root {
    --x-ink:       #0f1419;
    --x-muted:     #536471;
    --x-border:    #e6ecf0;
    --x-chip:      #eff3f4;
    --x-chip-hov:  #e1e8ed;
    --x-blue:      #1d9bf0;
    --x-blue-dark: #1a8cd8;
    --x-like:      #f91880;
    --x-repost:    #00ba7c;

    --pp-h1:    var(--x-blue-dark);
    --pp-muted: var(--x-muted);
    --pp-link:  var(--x-blue-dark);
    --pp-faq-highlight: #e8f4fd;
}

/* Buttons: the classic blue pill. Anchor-styled, so :hover restates
 * color. */
.ftt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ftt-btn:focus-visible {
    outline: 2px solid var(--x-blue);
    outline-offset: 2px;
}
.ftt-btn-blue {
    align-self: flex-start;
    background: var(--x-blue);
    color: #fff;
}
.ftt-btn-blue:hover,
.ftt-btn-blue:focus-visible {
    background: var(--x-blue-dark);
    color: #fff;
}
.ftt-btn:active {
    transform: translateY(1px);
}

/* -------------------------------------------------------------------
 * Timeline (fills the page column; the 720px x.com-style cap was dropped
 * 2026-09-03 so the content takes more width)
 * ------------------------------------------------------------------- */
.ftt-feed {
    color: var(--x-ink);
    background: #fff;
    border: 1px solid var(--x-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ftt-post {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--x-border);
    scroll-margin-top: 24px;
    transition: background 0.15s ease;
}
.ftt-post:last-child {
    border-bottom: 0;
}
.ftt-post:hover {
    background: #f7f9f9;
}
.ftt-post-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ftt-post-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    line-height: 1.3;
}
.ftt-post-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--x-ink);
}
.ftt-post-name a {
    color: inherit;
}
.ftt-post-name a:hover {
    color: var(--x-ink);
    text-decoration: underline;
}
.ftt-post-handle {
    font-size: 14px;
    color: var(--x-muted);
}
.ftt-post-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--x-ink);
}

/* Link card (what X shows under a post with a URL): icon, domain, the
 * X job as the title, the facts as the description. */
.ftt-card {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--x-border);
    border-radius: 14px;
    overflow: hidden;
    color: var(--x-ink);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ftt-card:hover,
.ftt-card:focus-visible {
    background: var(--x-chip);
    border-color: #cfd9de;
    color: var(--x-ink);
}
.ftt-card:focus-visible {
    outline: 2px solid var(--x-blue);
    outline-offset: 2px;
}
.ftt-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 96px;
    background: linear-gradient(135deg, #e8f4fd 0%, #cfe8fa 100%);
    color: var(--x-blue-dark);
    font-size: 36px;
    border-right: 1px solid var(--x-border);
}
.ftt-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 10px 14px;
}
.ftt-card-domain {
    font-size: 12.5px;
    color: var(--x-muted);
}
.ftt-card-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--x-ink);
}
.ftt-card-desc {
    font-size: 13px;
    line-height: 1.4;
    color: var(--x-muted);
    font-feature-settings: var(--tnum);
}

/* -------------------------------------------------------------------
 * Mobile (project breakpoints: 640px, 420px)
 * ------------------------------------------------------------------- */
@media (max-width: 640px) {
    .ftt-post { padding: 14px; }
    .ftt-card-icon { width: 72px; font-size: 30px; }
}
@media (max-width: 420px) {
    .ftt-post-text { font-size: 14px; }
    .ftt-card { flex-direction: column; }
    .ftt-card-icon { width: 100%; height: 64px; font-size: 28px; border-right: 0; border-bottom: 1px solid var(--x-border); }
}
