/* Free Amazon Tools - the Amazon-seller skin on top of the shared
 * platform-tools.css shell: a 3-across grid of product-style tiles
 * (square icon tile, name, description, one facts line, an "Open tool"
 * pill), the whole tile one link. Navy + orange palette. The profile
 * block is the shared brand strip (.pp-brand) with the Amazon wordmark. */

:root {
    --am-ink:        #131921;
    --am-muted:      #565959;
    --am-border:     #d5d9d9;
    --am-border-hov: #f0a95c;
    --am-orange:     #c45500;
    --am-orange-tint:#fff3e0;
    --am-pill:       #ffd814;
    --am-pill-hov:   #f7ca00;
    --am-pill-ink:   #0f1111;

    --pp-h1:    var(--am-ink);
    --pp-muted: var(--am-muted);
    --pp-link:  var(--am-orange);
    --pp-faq-highlight: #fff3e0;
    --pp-brand-border:  var(--am-border);
    --pp-brand-radius:  8px;
}

/* -------------------------------------------------------------------
 * Grid: three tiles across on desktop, two on tablets, one on phones
 * ------------------------------------------------------------------- */
.fam-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    color: var(--am-ink);
}

/* -------------------------------------------------------------------
 * Tile: the name is the only anchor; its ::after is stretched over the
 * tile so the whole tile is one click target. The pill is decorative
 * (aria-hidden), the visible affordance the tile-as-link needs.
 * ------------------------------------------------------------------- */
.fam-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fam-tile:hover,
.fam-tile:focus-within {
    border-color: var(--am-border-hov);
    box-shadow: 0 2px 12px rgba(196, 85, 0, 0.14);
}
.fam-tile:focus-within {
    outline: 2px solid var(--am-orange);
    outline-offset: 2px;
}

/* Head row: icon tile with the name beside it (operator request
 * 2026-09-15: "put the tool name beside the icon, not on the next line"). */
.fam-tile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}
.fam-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--am-orange-tint);
    color: var(--am-orange);
    font-size: 24px;
}
.fam-tile-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--am-ink);
}
.fam-tile-name a {
    color: inherit;
    text-decoration: none;
    outline: none;
}
.fam-tile-name a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
}
.fam-tile:hover .fam-tile-name a {
    color: var(--am-orange);
}
.fam-tile-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--am-ink);
}
.fam-tile-facts {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--am-muted);
    font-feature-settings: var(--tnum);
    flex: 1 1 auto;
}
.fam-tile-cta {
    align-self: flex-start;
    margin-top: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--am-pill);
    color: var(--am-pill-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.15s ease;
}
.fam-tile:hover .fam-tile-cta {
    background: var(--am-pill-hov);
}

/* -------------------------------------------------------------------
 * Breakpoints: 1024 (shared footer step), 640, 420
 * ------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .fam-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fam-feed { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .fam-tile { padding: 16px; }
}
@media (max-width: 420px) {
    .fam-tile { padding: 14px; }
    .fam-tile-text { font-size: 14px; }
}
