/*
Theme Name: uniss
Theme URI: 
Author: Alex Stevens
Author URI: 
Description: Theme for uni.seascouts.org.nz
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uniss
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/* Link styles */
a {
    text-decoration-thickness: 1px;
    text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/* Progressive enhancement to reduce widows and orphans */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/* Change the position of the more block on the front, by making it a block level element. */
.more-link {
    display: block;
}

/* Style trophy grid */

.uni-trophy-grid li {
    text-align: center;
}

/* Trophy grid filters */
select.wp-block-query-filter-post-type__select.wp-block-query-filter__select,
.uniss-trophy-result-search div input[type="search"] {
    padding: 10px !important;
    font-size: .7em !important;
    border-color: #aaa !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    border-width: 1px !important;
    border-style: solid;
    width: 100% !important;
    margin-bottom: 1em !important;
}

/* Hide link styles on trophy event title */
a.uni-hidelink-style {
    text-decoration: none !important;
    background-color: #eee;
}

/* Trophy Status Banner */
.uni-trophy-status {
    width: 100%;
}

div.uni-trophy-status p {
    width: 100%;
    text-align: center;
}

div.trophy-history {
    max-width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
}


/* Event results */
.event-results {
    margin-top: 2em;
}

.event-result {
    border-bottom: 1px solid #ddd;
    padding: 1em 0;
}

.event-result h3 {
    margin-bottom: 0.3em;
}

.event-result-photo img {
    max-width: 100%;
    height: auto;
    margin-top: 0.5em;
}

main {
    margin: 0px !important;
}

.award-notes {
    font-size: 0.6em;
    color: #666;
    margin-top: 0.5em;
    font-style: italic;

}

.group-results-trophy-awarded-in {
    font-size: 0.5em;
}

.uniss_trophy_result_year {
    font-weight: bold;
    margin-top: 1em;
}

.uniss_trophy_award_yearresult {
    font-weight: normal;
}


/* Group Information */
.group-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.group-links {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    justify-content: center;
    align-items: center;
}

.group-links button {
    border-radius: 10px;
}

/* Resources page */
.document-gallery .document-icon-row {
    display: inline-block !important;
    width: auto !important;
}
