/* ============================================================
   Quick Access Shortcuts
   The service shortcut tiles on the landing page. Shares the
   palette used across News Center, Procurement and the events
   calendar (#1a3a4a / #e2e8f0 / #f5f6fa).
   ============================================================ */

/* ------------------------------------------------------------
   Tile

   The whole tile is the click target, via a stretched link on the
   title. Previously only the title text was clickable - a target a
   few characters tall inside a tile the size of a business card,
   which is a miss on a phone and fails the WCAG 2.5.8 target size
   guidance for no reason, since the tile does nothing else.
   ------------------------------------------------------------ */
.sc-tile {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sc-tile:hover {
    border-color: #1a6fb5;
    box-shadow: 0 4px 14px rgba(26, 58, 74, 0.1);
    transform: translateY(-2px);
}

/* The focus ring belongs on the tile, not on the stretched link:
   the link has no box of its own to draw a ring around. */
.sc-tile:focus-within {
    outline: 2px solid #1a6fb5;
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   Icon
   ------------------------------------------------------------ */
.sc-tile-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border-radius: 0.5rem;
    background: rgba(26, 111, 181, 0.08);
    color: #1a6fb5;
    font-size: 1.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.sc-tile:hover .sc-tile-icon {
    background: #1a6fb5;
    color: #ffffff;
}

/* ------------------------------------------------------------
   Text

   The title is a real heading with a plain link. The old tiles used
   a paragraph styled to look like one, wrapping a link carrying the
   theme's animated underline - which read as body copy that happened
   to be underlined rather than as a destination.
   ------------------------------------------------------------ */
.sc-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.sc-tile-title a {
    color: #1a3a4a;
    text-decoration: none;
}

.sc-tile:hover .sc-tile-title a {
    color: #1a6fb5;
}

/* The ring is drawn by .sc-tile:focus-within above. */
.sc-tile-title a:focus-visible {
    outline: none;
}

.sc-tile-text {
    font-size: 0.875rem;
    /* #636270 on white clears 4.5:1; Bootstrap's .text-muted does not. */
    color: #636270;
    margin: 0;
    line-height: 1.5;
}

.sc-tile-arrow {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    color: #9aa7b4;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sc-tile:hover .sc-tile-arrow {
    color: #1a6fb5;
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   Motion and print
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .sc-tile,
    .sc-tile-icon,
    .sc-tile-arrow {
        transition: none;
    }

    .sc-tile:hover {
        transform: none;
    }

    .sc-tile:hover .sc-tile-arrow {
        transform: none;
    }
}

@media print {
    .sc-tile {
        border: 1px solid #999;
        break-inside: avoid;
    }

    .sc-tile-arrow {
        display: none;
    }
}
