/*
Theme Name: SMR_2025
Theme URI: 
Author: Sunrise Mountain Ridge
Author URI: 
Description: A clone of the 2025 WordPress Theme for Sunrise Mountain Ridge
Requires at least: 6.7
Tested up to: 6.7
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: smr_2025
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
*/

/*
 * SMR
 */
/* sticky header causes hashtag linking to display too high */
/* see https://css-tricks.com/hash-tag-links-padding/ */
#article1, #article2, #article3, #article4, #article5, #article6, #article7, #article8, #article9 {
  scroll-margin-top: 8rem;
}


.smr-name-email-address {
  row-gap: 0.5rem;
  justify-content: space-between;
}
.smr-text-align-center {
  text-align: center;
}
.mce-content-body strong,
.post-message strong,
.smr-paragraph-strong strong {
  font-weight: 700;   /* no support via theme.json */
}

/* wp query block,pagination numbers - space between numbers */
.smr-page-number-word-spacing {
  word-spacing: 1rem;
}

/* wp paragraph block links */
.smr-paragraph-link a {
  color: var(--wp--preset--color--accent-1-med);
}
.smr-paragraph-link a:hover {
  color: var(--wp--preset--color--accent-1-lite);
  background-color: var(--wp--preset--color--accent-1-med);
}

/* smr stack block to anchor last item to bottom of group/card */
.smr-stack div:last-of-type {
  margin-top: auto;
}

/*
 * FSE/Theme.json - not able set on submenu, custom link & page link.
 */
.smr-menu-item:hover {
  color: var(--wp--preset--color--accent-3);
}

/*
 * FSE - not able to force footer onto page bottom.  footer creeps
 * up the page otherwise.
 */
body .wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer {
  margin-top: auto;
}

/*
 * UM - Feature not considered a bug.
 * Do not include administrator role from block content restrictions,
 * while a UM thing, their stylesheets are not loaded for the homepage.
 */
body.logged-in .smr-logged-in-admin-restriction { display: none !important;}
/*
 * TEC - Tribe
 * This appears to be a bug on the single event block page.  A 'no result'
 * message is shown after upgrading to TEC v.6.10.2 Pro v.7.4.2 
 */
.tribe-events-notices li:last-child {
  display: none;
}

/*
 * Asgaros - forum plugin supports custom css in Settings,
 * but formating is lost and adds weird escaping that does
 * not always work, so adding here instead.  These override
 * or extend styles not supported in Appearance.
 */
#af-wrapper #forum-header {
  padding: 0.5rem;
}
#af-wrapper #forum-navigation a {
  font-family: var(--wp--preset--font-family--open-sans) !important;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400;
}
#af-wrapper #forum-navigation a:hover {
  color: var(--wp--preset--color--accent-3) !important;
  text-decoration: none;
}
/* Two rules change nav text Forums to Groups */
#af-wrapper #forum-navigation a.home-link {
  text-indent: -9999px;
  line-height: 0;
}
#af-wrapper #forum-navigation a.home-link::after {
  content: "Groups";
  text-indent: 0;
  display: block;
  line-height: 44px;
}

/* Two rules change forum subscription text forum to group */
/* while keeping text for topics. */
#af-wrapper #bottom-navigation a {
  text-indent: -9999px; /* hide asgaros text */
  line-height: 0;
}
#af-wrapper #bottom-navigation a::after {
  content: "Subscribe to this Group."; /* replace w SMR text */
  text-indent: 0;
  display: block;
  line-height: 44px;
}
/* above changes topics text, so change it back */
/* based on the url containing word topic */
#af-wrapper #bottom-navigation a[href*="topic"]::after {
  content: "Subscribe to this Topic.";
}

/* replace forums with groups on Subscriptions page */
#af-wrapper #subscriptions-panel .action-panel .action-panel-option:first-child span {
  text-indent: -9999px;
  line-height: 0;
}
#af-wrapper #subscriptions-panel .action-panel .action-panel-option:nth-child(1) span::after {
  content: "You get notified about activity in groups and topics you are subscribed to.";
  text-indent: 0;
  display: block;
  line-height: 1.2rem
}

#af-wrapper .post-author-block-name a {
  font-family: var(--wp--preset--font-family--open-sans);
}

#af-wrapper #forum-breadcrumbs {
  padding: 1rem 0;
}
#af-wrapper #forum-breadcrumbs span {
  color: var(--wp--preset--color--accent-1-med);
  font-size: medium;
}
#af-wrapper #forum-breadcrumbs span.breadcrumb-icon.fas.fa-home {
  display: none;
}
#af-wrapper .main-title.main-title-overview,
#af-wrapper .main-title.main-title-forum,
#af-wrapper .main-title.main-title-topic,
#af-wrapper .main-title.main-title-subscriptions,
#af-wrapper .main-title.main-title-activity {
  display: none;
}
#af-wrapper .last-post-headline {
  font-style: normal;
}
#af-wrapper a.highlight-admin {
  color: var(--wp--preset--color--contrast) !important;
}
/* disables the profile link */
#af-wrapper .content-container .content-element .forum-poster .forum-poster-summary small .profile-link.highlight-default,
#af-wrapper .content-container .content-element .topic-poster .forum-poster-summary small .profile-link.highlight-default,
#af-wrapper .content-container .content-element .topic-name small .profile-link.highlight-default,
#af-wrapper .content-container .content-element .forum-poster .forum-poster-summary small .profile-link.highlight-moderator,
#af-wrapper .content-container .content-element .topic-poster .forum-poster-summary small .profile-link.highlight-moderator,
#af-wrapper .content-container .content-element .topic-name small .profile-link.highlight-moderator,
#af-wrapper .content-container .content-element .forum-poster .forum-poster-summary small .profile-link.highlight-admin,
#af-wrapper .content-container .content-element .topic-poster .forum-poster-summary small .profile-link.highlight-admin,
#af-wrapper .content-container .content-element .topic-name small .profile-link.highlight-admin {
pointer-events: none;
color: var(--wp--preset--color--contrast) !important;
}
#af-wrapper .post-element .forum-post-header-container .post-author .post-author-blocks .post-author-block-name .profile-link {
pointer-events: none;
color: var(--wp--preset--color--contrast)
}
#af-wrapper .post-element .forum-post-header-container .post-wrapper .post-message blockquote.quotetitle .profile-link {
pointer-events: none;
color: var(--wp--preset--color--contrast)
}
#af-wrapper blockquote .quotetitle .profile-link,
#af-wrapper .quotetitle .profile-link {
pointer-events: none;
}
/*
.”””profile-link”” {
color: pink;
pointer-events: none;
}
*/
#af-wrapper div[class^="title-element"] {
  background-color: var(--wp--preset--color--accent-1-lite) !important;
  border-color: var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--contrast);
}
#af-wrapper .last-post-headline {
  font-weight: 300;
}
#af-wrapper .editor-row .editor-row-submit .right {
  padding-left: 2rem;
}
#af-wrapper .button {
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 400;
  padding: 0.5rem 1rem;
  
}
#af-wrapper .editor-row input[type='submit'] {
  width: 30%;
}
#af-wrapper .editor-row .button.button-red.cancel {
    background-color: var(--wp--preset--color--gray-lightest);
    border: 1px solid var(--wp--preset--color--gray-dark);
    color: var(--wp--preset--color--contrast);
}
#af-wrapper .editor-row .button.button-red.cancel:hover {
    background-color: var(--wp--preset--color--accent-4-lite);
    border: 1px solid var(--wp--preset--color--accent-4);
    color: var(--wp--preset--color--accent-4);
}
#af-wrapper #bottom-navigation {
  display: block;
  height: unset;
  line-height: unset;
  color: #256db3;
  padding: 2rem 0;
  font-size: var(--wp--preset--font-size--large);
}
#af-wrapper #bottom-navigation a {
  font-size: var(--wp--preset--font-size--medium);
}
/* #af-wrapper .statistics-elements:last-child { */
#af-wrapper .statistics-element:nth-child(2) {
  border: none;
}
#af-wrapper .statistics-element:last-child {
  display: none;
}


/*
 * CF7 Contact form 7
 */
.wpcf7-submit {
  color: var(--wp--preset--color--base);
  background-color: var(--wp--preset--color--accent-1);
  padding: 1rem 2.25rem;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 400;
  border: none;
}
.wpcf7-submit:hover {
  color: var(--wp--preset--color--base);
  background-color: var(--wp--preset--color--accent-1-med);
}
.wpcf7-field-label,
.wpcf7-date,
.wpcf7-number,
.wpcf7-text,
.wpcf7-select,
.wpcf7-textarea {
  line-height: 1.5rem;
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--open-sans);
  padding: 0.5rem;
  margin: 0.25rem;
  max-width: 90%;
}

.smr-um-resident-directory-details summary {
  text-align: center;
}
.smr-um-resident-directory-details div {
  text-align: left;
}

/*
 * SMR Modal and Help
 *
 */
.smr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background-color: black;
  cursor: pointer;
  opacity: 1;
  transition: all 0.35s ease-in;
  visibility: hidden;
  opacity: 0;
}
.smr-modal--show {
  visibility: visible;
  opacity: 1;
  z-index: 1000;
}
.smr-modal-close a {
  padding: 0.5rem 1rem;
  font-size: var(--wp--preset--font-size--large);
}
.smr-modal main p {
  font-size: var(--wp--preset--font-size--medium);
}
.smr-help-content main {
  overflow: auto;
  cursor: default;
}
.smr-help {
  display: none;
}
.smr-help-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  background: white;
  min-width: 300px;
  max-width: 60% !important;
  min-height: 30vh;
  max-height: 60vh;
  border-radius: 5px;
}
.smr-help-content header,
.smr-help-content footer {
  background: #c2c2c2;
  width: 100%;
  justify-content: space-between;
  padding: 1rem;
  box-sizing: border-box;
}
.smr-help-content footer {
  margin-top: auto; /*anchor to bottom*/
}
.smr-help--text-align-right {
  text-align: right;
}
.smr-help-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.smr-help-icon--large {
  width: 2.0rem;
  height: 2.0rem;
}
.smr-help-icon--medium {
  width: 1.5rem;
  height: 1.5rem;
}
.smr-help-icon--small {
  width: 1.0rem;
  height: 1.0rem;
}
.smr-help-icon--tiny {
  width: 0.75rem;
  height: 0.75rem;
}
.smr-help-icon circle {
  fill: white;
  stroke: black;
  cx: 50%;
  cy: 50%;
  r: 1rem;
}
.smr-help-icon circle:hover {
  fill:  #cac7c7;
  stroke: black;
}
.smr-help-icon path {
  stroke-width: 1px;
  stroke: black;
  fill: black;
}

/*
 * These styles are from the TwentyTwentyFive theme to fix bugs
 * found in the FSE.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	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
 * https://github.com/WordPress/gutenberg/issues/55190
 */
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.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
