/*
 * assets/css/components.css - every component built in the Components project,
 * plus the newsletter sign-up rules that were already in this file (below the
 * shared tokens). Linked from includes/header.php after the site's last
 * stylesheet, so a rule here wins a tie of specificity against style.css (and
 * the files it imports). style.css no longer @imports this file.
 *
 * The first region is the shared tokens every component uses. Each component
 * follows in its own region, appended in the order they were deployed; to
 * remove one, delete its region. Canonical copies of each component:
 * sites/aws-server/golfkings_v3/components/<name>/ in the Components project.
 */

/* #region shared tokens */
/*
 * --st-* tokens, defined once for all components. A component that needs one
 * not listed here ADDS it here, never in its own region. Values: the site's
 * own colours (sites/aws-server/golfkings_v3/assets/css/theme.css says where
 * each was sampled). Sizes in px: this site's root is 16px, not 10px.
 */
:root {
    --st-green:     #6a7730;  /* the olive of .btn-green-background (style.css:292) */
    --st-blue:      #4b5c00;  /* focus rings: the dark olive (.dark-green), 7.4:1 on white */
    --st-blue-dark: #333333;  /* .btn-green-background:hover (style.css:2106) */
    --st-white:     #ffffff;
    --st-slate:     #0a0a0a;  /* body text (Foundation) */
    --st-font:      europa, sans-serif;
    --st-fs-xs:   12px;
    --st-fs-sm:   14px;
    --st-space-1:  5px;
    --st-space-2: 10px;
    --st-space-3: 15px;
    --st-space-8: 40px;
}
/* #endregion shared tokens */

.c-newsletter-signup {

  background-color:                     #000; 
  color :                               #fff;    
  padding:                              20px 0px ;

}

.c-newsletter-signup--form {
  display :                             flex;
  flex-direction :                      column;
  justify-content :                     center;
  align-items :                         center;
  max-width :                           1300px;
  margin :                              0 auto;
  padding-right :                       .9375rem;
  padding-left :                        .9375rem;
}

.c-newsletter-signup--text,
.c-newsletter-signup--email {
  width :                               100%;
}

.c-newsletter-signup--text { text-align : center; font-size: 1.2rem;}

.c-newsletter-signup--email-wrapper { width : 100%; padding-top : 10px;}

input[type=email].c-newsletter-signup--email {
  width :                               100%;
  margin:                               0px;
  padding :                             10px 20px; 
  box-sizing :                          border-box; 
  /*max-width : 35em;*/
}

input[type=submit].c-newsletter-signup--submit {
  width :                               100%;
  padding:                              10px 20px; 
  margin-top :                          10px;
  background-color:                     transparent; 
  color :                               #B8D534; 
  border :                              1px solid #B8D534;
}

input[type=submit].c-newsletter-signup--submit:hover {
  background-color:                     #B8D534; 
  color:                                #000; 
  cursor :                              pointer;
}

/* #region blog-filter */
/*
 * blog-filter - append to the end of assets/css/components.css (the
 * shared tokens region at its top has every --st-* it uses). The topic filter on
 * /blog/ (Caddies Corner). JIRA BDS-4516.
 * Canonical and reasoning: sites/aws-server/golfkings_v3/components/blog-filter/
 * in the Components project, blog-filter-specification.md.
 */

.blog-filter {
    /* Component variables: --blog-filter-*, never --st-*. */
    --blog-filter-accent:     var(--st-green);       /* the button outline and the chosen fill: the site's .btn-green-background olive */
    --blog-filter-accent-ink: var(--st-white);
    --blog-filter-hover:      var(--st-blue-dark);   /* the site's button hover, #333 (style.css:2106) */
    --blog-filter-focus:      var(--st-blue);
    --blog-filter-gap:        var(--st-space-2);

    /* As the tiles' .wrapper (style.css:1869) plus Foundation's column gutter,
       so the buttons line up with the tiles' edges. */
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--st-space-8) 15px 0;
    font-family: var(--st-font);
}

.blog-filter__label {
    margin: 0 0 var(--st-space-2);
    color: var(--st-slate);
    font-size: var(--st-fs-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--blog-filter-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-filter__item {
    margin: 0;
}

/* The site's "every link is black and 18px" rule (style.css:673-685) and
   Foundation's a:hover/a:focus colour are overridden by the two-class
   selectors below; each state sets its colour for that reason. */
.blog-filter__tag {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--st-space-3);
    border: 2px solid var(--blog-filter-accent);
    background: var(--st-white);
    color: var(--blog-filter-accent);
    font-size: var(--st-fs-xs);
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
}

/* Phones: at the full padding, 12 buttons took 9 rows at 375px (measured);
   tighter, they fit more to a row. 640px is Foundation's medium breakpoint,
   where the tiles go two across. */
@media (max-width: 639px) {
    .blog-filter {
        --blog-filter-gap: var(--st-space-1);
    }

    .blog-filter__tag {
        padding: 0 var(--st-space-2);
        letter-spacing: 0.5px;
    }
}

.blog-filter__tag:hover,
.blog-filter__tag:focus {
    border-color: var(--blog-filter-hover);
    background: var(--blog-filter-hover);
    color: var(--st-white);
}

.blog-filter__tag:focus-visible,
.blog-filter__more-toggle:focus-visible {
    outline: 3px solid var(--blog-filter-focus);
    outline-offset: 2px;
}

.blog-filter__tag[aria-current="true"] {
    background: var(--blog-filter-accent);
    color: var(--blog-filter-accent-ink);
}

.blog-filter__tag[aria-current="true"]:hover,
.blog-filter__tag[aria-current="true"]:focus {
    border-color: var(--blog-filter-hover);
    background: var(--blog-filter-hover);
}

.blog-filter__count {
    margin-left: var(--st-space-1);
}

.blog-filter__more {
    margin-top: var(--blog-filter-gap);
}

.blog-filter__more-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--blog-filter-accent);
    font-size: var(--st-fs-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
}

.blog-filter__more-toggle:hover {
    color: var(--blog-filter-hover);
}

/* inline-flex drops the browser's own disclosure triangle, so the open and
   closed state is drawn here: + closed, - open. Safari still draws its own
   marker unless told not to. */
.blog-filter__more-toggle::-webkit-details-marker {
    display: none;
}

.blog-filter__more-toggle::after {
    content: "+";
    margin-left: var(--st-space-1);
    font-size: var(--st-fs-sm);
}

.blog-filter__more[open] > .blog-filter__more-toggle::after {
    content: "\2212";
}

.blog-filter__list--more {
    margin-top: var(--st-space-1);
}

.blog-filter__status {
    margin: var(--st-space-3) 0 0;
    color: var(--st-slate);
    font-size: var(--st-fs-sm);
}

/* A tile the chosen topic leaves out. The `hidden` attribute alone is not
   enough: a stylesheet rule giving the tile a display value would beat the
   browser's own [hidden] rule. */
[data-blog-filter-tags][hidden] {
    display: none;
}

/* Phones show 'visible_tags_phone' topics in the row, wider screens
   'visible_tags' (config.php). The topics between the two are printed twice
   (viewmodel.php, step 6): --wide in the row, --narrow in More topics. Exactly
   one copy shows at any width; display:none also keeps the other out of the
   accessibility tree, so nothing is read out twice. More topics has a count
   for each width, and exists on phones only (--narrow) when every topic fits
   the row on wider screens. 640px: as the media query above. */
.blog-filter__item--wide,
.blog-filter__count--wide {
    display: none;
}

@media (min-width: 640px) {
    .blog-filter__item--wide,
    .blog-filter__count--wide {
        display: revert;
    }

    .blog-filter__item--narrow,
    .blog-filter__count--narrow,
    .blog-filter__more--narrow {
        display: none;
    }
}

/* While a topic is chosen. Live, the site's script.js (:400, :405 -
   columnLayout() in functions.js:142) wraps the tiles three to a .row, so
   hiding tiles would leave gaps in those rows. With a topic chosen the tiles'
   container gets data-blog-filter-active (server and script), becomes a
   wrapping flex box, and its own rows are flattened, so the matching tiles
   close up three across. Child rows only: each tile's own tag rows are left
   alone. With no topic chosen the page is laid out exactly as before. */
[data-blog-filter-active] {
    display: flex;
    flex-wrap: wrap;
}

[data-blog-filter-active] > .row {
    display: contents;
}
/* #endregion blog-filter */
