/* HTCAA News Wire styles */
.newswire-year-heading {
    text-align: center;
    font-family: Anton, sans-serif;
    font-weight: 900;
    color: var(--wp--preset--color--ti-bg-inv, #1E1E1E);
    margin: 16px 0 24px;
    letter-spacing: -0.02em;
}
.newswire-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.newswire-card {
    background: #fff;
    border-left: 4px solid var(--wp--preset--color--ti-accent, #ffb81c);
    padding: 28px 32px;
}
.newswire-card-title {
    font-family: var(--wp--preset--font-family--fraunces), serif;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--wp--preset--color--ti-bg-inv, #1E1E1E);
}
.newswire-card-content p {
    margin-bottom: 12px;
}
.newswire-card-content .wp-block-buttons {
    margin-top: 16px;
}

/* ------------------------------------------------------------
   Newswire button system
   Both variants share the same shape, sizing, and typography
   so primary (fill) and secondary (outline) match in height
   and border thickness.

   Note on !important: the active theme injects an inline rule
   from theme.json that uses !important on outline-button padding
   ("body .wp-block-button.is-style-outline > .wp-block-button__link
   { padding-*: calc(... - 2px) !important }"). To force the two
   variants to share the same height, we mirror !important on our
   padding declarations here. It's the minimum needed escalation
   and is scoped tightly to .newswire-card-content.
   ------------------------------------------------------------ */

/* Shared base — applied to both variants */
.newswire-card .newswire-card-content .wp-block-button > .wp-block-button__link.wp-element-button,
.newswire-card .newswire-card-content .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
    box-sizing: border-box;
    display: inline-block;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 12px 22px !important;
    border-width: 2px;
    border-style: solid;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary / filled variant — solid accent yellow */
.newswire-card .newswire-card-content .wp-block-button.is-style-fill > .wp-block-button__link.wp-element-button,
.newswire-card .newswire-card-content .wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-element-button {
    background-color: var(--wp--preset--color--ti-accent, #ffb81c);
    border-color: var(--wp--preset--color--ti-accent, #ffb81c);
    color: var(--wp--preset--color--ti-bg-inv, #1E1E1E);
}
.newswire-card .newswire-card-content .wp-block-button.is-style-fill > .wp-block-button__link.wp-element-button:hover,
.newswire-card .newswire-card-content .wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-element-button:hover {
    background-color: #B47C00;
    border-color: #B47C00;
    color: #ffffff;
}

/* Secondary / outline variant — transparent body, dark border */
.newswire-card .newswire-card-content .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
    background-color: transparent;
    border-color: var(--wp--preset--color--ti-bg-inv, #1E1E1E);
    color: var(--wp--preset--color--ti-bg-inv, #1E1E1E);
}
.newswire-card .newswire-card-content .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover {
    background-color: #B47C00;
    border-color: #B47C00;
    color: #ffffff;
}

/* Match outline padding on small screens too (theme has a max-width: 481px override) */
@media (max-width: 481px) {
    .newswire-card .newswire-card-content .wp-block-button > .wp-block-button__link.wp-element-button,
    .newswire-card .newswire-card-content .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
        padding: 12px 22px !important;
    }
}

.newswire-grid .newswire-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .newswire-grid {
        grid-template-columns: 1fr;
    }
}
