/* ================================================================================
   BREWERY-LINK.CSS - A brewery's name as the way to its page
   Rendered by ui/brewery-link.js. Not scoped to a screen: the link is the
   same thing wherever it is drawn, so its rules live with it (as the beer
   row's do in beer-row.css).

   It takes its size from the line it sits in. Colour is a theme token, so it
   follows light and dark.
   ================================================================================ */

.brewery-link {
    position: relative;
    color: var(--text-purple);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* The name is one line of small text; this is what makes it a 44px target.
   A screen where something else tappable sits close by moves these edges in
   its own stylesheet. */
.brewery-link::after {
    content: '';
    position: absolute;
    inset: -13px -6px;
}

.brewery-link:hover {
    color: var(--text-purple);
}

.brewery-link:active {
    opacity: 0.6;
}

.brewery-link:focus-visible {
    outline: 2px solid var(--border-purple);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.brewery-link-chevron {
    width: 0.7em;
    height: 0.7em;
    margin-left: 2px;
}
