/*
 * Linktree Styles
 *
 * Page template "Linktree" (page-templates/linktree.php): one centered column, links as large
 * buttons. Child themes restyle through the iw-linktree classes.
 *
 * @package     iw-foundation-theme
 * @subpackage  style/linktree
 * @since       1.5.0
 -------------------------------------------------------------- */

.iw-linktree {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
    text-align: center;
}

.iw-linktree__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.iw-linktree__logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 50%;
}

.iw-linktree__title {
    margin: 0;
}

/* The link list: no bullets, each link a button of full width (role="list" keeps the list). */
.iw-linktree__main ul,
.iw-linktree__main ol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.iw-linktree__main li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid var(--iw-color-text, #333);
    border-radius: 8px;
    color: var(--iw-color-text, #333);
    text-decoration: none;
    font-weight: 700;
}

.iw-linktree__main li a:hover,
.iw-linktree__main li a:focus-visible {
    background: var(--iw-color-text, #333);
    color: var(--iw-color-background, #fff);
}
