/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
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
 * 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;
}

/*
 * custom changes ↓
 */

.wp-site-blocks {
  padding-bottom: 8em;
  min-height: 960px;  /* keep the scrollbar on pages with not enough content */
}

.wp-site-blocks > * {
  margin-block-start: 0;
}
.wp-block-columns {
  margin-bottom: 0.75em;
}

/* menu link styles */

.widget_nav_menu {
  font-size: 85%;
  text-transform: uppercase;
}

.widget_nav_menu a {
  text-decoration: none;
  color: #000;
}
.widget_nav_menu a:hover, .widget_nav_menu .current-menu-item > a {
  color: #ff4d00;
}

.wp-block-post-excerpt {
  text-transform: uppercase;
  color: #ff4d00;
  margin-top: 0;
}
.wp-block-post-excerpt p {
  padding-right: 1.5em;
  min-height: 3em;
}

/* header styling */

header {
  border-bottom: 1px solid #e1e1e1;
}

/* keep the logo aligned to right */
header figure {
  text-align: right;
}
/* but not on the mobile */
@media only screen and (max-width: 781px) {
  header figure {
    text-align: inherit;
  }
}

header > div:first-child {
  margin-bottom: 0;
  margin-bottom: 0;
}

/* spacing fixes for mobile */

@media only screen and (max-width: 781px) {
  .wp-site-blocks > div:nth-child(2) > .wp-block-column:first-child {
    display: none;
  }
}

/* remove border-top and padding-top on the first h2 if there is no paragraph above it */

.entry-content > h2:first-child {
  border-top: none; 
  padding-top: 0;
}
.wp-block-post-title {
  border-radius: 0.5em 0 0 0.5em;
}
@media only screen and (max-width: 781px) {
  .wp-block-post-title {
    border-radius: 0;
  }
}

/* fix the position of the sidebar rendered goodie */

.sidebar-container {
  position: relative;
}
.sidebar-positioner {
  float: right;
  position: absolute;
  right: 380px;
  top: 2em;
}
.sidebar-image {
  position: fixed;
}
/* hide it on mobile */
@media only screen and (max-width: 781px) {
  .sidebar-container {
    display: none;
  }
}

/*
 * Our collapsable table
 */

.vega-coltab-item {
  border: 1px solid #868686;
  margin-top: 1em;
  background-color: #e1e1e1;
  border-radius: 0.5em;
}

.vega-coltab-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 0.5em;
}
.vega-coltab-header:hover {
  background-color: #f8f8f8;
}
.vega-coltab-item.expanded .vega-coltab-header {
  border-radius: 0.5em 0.5em 0 0;
  background-color: #f8f8f8;
}
.vega-coltab-header > .caliber {
  width: 40%;
  font-weight: normal;
  color: #0c0c0c;
  margin: 1rem;
}
.vega-coltab-header > .status {
  width: 30%;
  opacity: 0;  /* initial opacity, changed via JS on expand */
}
.vega-coltab-header > .status > .status-label {
  margin: 0.5em 0;
  color: #0c0c0c;
  font-weight: bold;
  font-size: 0.8rem;
}
.vega-coltab-header > .status > p {
  margin: 0.5em 0;
  font-size: 80%;
}

.vega-coltab-header > .caliber-label {
  width: 30%;
  padding: 0 1em;
  text-align: right;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
}

.vega-coltab-content {
  display: none;
  margin: 1em;
}

.vega-coltab-top {
  display: flex;
  border-bottom: 1px solid #868686;
}

.vega-coltab-content .characteristics {
  font-size: 80%;
  display: flex;
}
.vega-coltab-content .characteristics > .label {
  color: #0c0c0c;
  font-weight: bold;
}
.vega-coltab-content .vega-coltab-char-leftcol {
  width: 66.666%;
}
.vega-coltab-content .vega-coltab-char-rightcol {
  width: 33.333%;
  text-align: center;
}
.vega-coltab-content .vega-coltab-char-rightcol > img {
  width: 100%;
}
/* switch to a vertical order on mobile to avoid line wrapping problems in the leftcol */
@media only screen and (max-width: 781px) {
  .vega-coltab-content .characteristics {
    flex-direction: column;
  }
  .vega-coltab-content .vega-coltab-char-leftcol {
    width: 100%;
  }
  .vega-coltab-content .vega-coltab-char-rightcol {
    margin-top: 1em;
    width: 100%;
  }
  .vega-coltab-content .vega-coltab-char-rightcol > img {
    width: 40%;
    display: inline-block;
  }
}

.vega-coltab-image-wrapper {
  display: flex;
  margin: 2em 0;
}
.vega-coltab-image-wrapper-leftcol {
  width: 65%;
  text-align: center;
}
.vega-coltab-image-wrapper-rightcol {
  width: 35%;
}

/* tabbed versions of some calibers */
/* Note: turned off for the time being */

.sp-tab__nav-link {
  padding: 8px 16px !important;
}
.sp-tab__lay-default > ul {
  border-bottom: none !important;
}
.sp-tab__tab-content .sp-tab__tab-pane {
  background-color: transparent !important;
  border: none !important;
  padding: 0;
}
.sp-tab__lay-default h4 {
  text-transform: none !important;
}

/* decorate list items with VEGA stars */
/* TODO: fixes on mobile */

ul.wp-block-list {
  list-style-type: none;
  padding-left: 0;
}
ul.wp-block-list > li {
  padding-left: 1.5em;
  background-image: url(/wp-content/uploads/2025/05/vega-star-sym.png);
  background-size: auto 24px;
  background-repeat: no-repeat;
}

/* page headers */
.wp-block-post-title {
  background-color: #ff4d00;
  background-image: url(/wp-content/uploads/2025/07/home-2.png);
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 1em;
}

/* section headers */
.wp-block-heading {
  border-top: 1px solid #9e9e9e;
  margin-top: 1em;
  padding-top: 1em;
}


/* sample headers */

.page-id-492 .entry-content {
  padding-left: 0;
  padding-right: 0;
}
.page-id-492 .entry-content > h2 {
  color: rgb(240, 240, 240);
  background-color: #ff4d00;
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 2em;
  padding: 50px;
  max-width: none;
}
/* hide page title to avoid confusion with standard header look */
.page-id-492 .wp-block-post-title {
  display: none;
}
.page-id-492 .entry-content > h2#header-home-1        { background-image: url(/wp-content/uploads/2025/07/home-1.png); }
.page-id-492 .entry-content > h2#header-home-2        { background-image: url(/wp-content/uploads/2025/07/home-2.png); }
.page-id-492 .entry-content > h2#header-home-3        { background-image: url(/wp-content/uploads/2025/07/home-3.png); }
.page-id-492 .entry-content > h2#header-home-4        { background-image: url(/wp-content/uploads/2025/07/home-4.png); }
.page-id-492 .entry-content > h2#header-technology-1  { background-image: url(/wp-content/uploads/2025/07/technology-1.png); }
.page-id-492 .entry-content > h2#header-technology-2  { background-image: url(/wp-content/uploads/2025/07/technology-2.png); }
.page-id-492 .entry-content > h2#header-calibers-1    { background-image: url(/wp-content/uploads/2025/07/calibers-1.png); }
.page-id-492 .entry-content > h2#header-production-1  { background-image: url(/wp-content/uploads/2025/07/production-1.png); }
.page-id-492 .entry-content > h2#header-production-2  { background-image: url(/wp-content/uploads/2025/07/production-2.png); }
.page-id-492 .entry-content > h2#header-production-3  { background-image: url(/wp-content/uploads/2025/07/production-3.png); }
.page-id-492 .entry-content > h2#header-quality-1     { background-image: url(/wp-content/uploads/2025/07/quality-1.png); }
.page-id-492 .entry-content > h2#header-contact-1     { background-image: url(/wp-content/uploads/2025/07/contact-1.png); }
.page-id-492 .entry-content > h2#header-contact-2     { background-image: url(/wp-content/uploads/2025/07/contact-2.png); }
.page-id-492 .entry-content > h2#header-contact-3     { background-image: url(/wp-content/uploads/2025/07/contact-3.png); }


/*
  for real though, header backgrounds
*/
.page-id-45  h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/home-2.png); }        /* main */
.page-id-186 h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/home-3.png); }        /* technology */
.page-id-108 h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/calibers-1.png); }    /* calibers */
.page-id-130 h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/production-3.png); }  /* production */
.page-id-136 h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/quality-1.png); }     /* quality */
.page-id-140 h2.wp-block-post-title  { background-image: url(/wp-content/uploads/2025/07/contact-2.png); }     /* contact */

/*
  footer with a link to the form
*/

.footer-contact-section a,
.vega-coltab-item a.contact-link {
  text-decoration: none;
  color: #fff;
  background-color: #ff4d00;
  padding: 1em 2em;
  display: inline-block;
}

/* hide on main page, contact page and calibers page (link included in every box) */
/* TODO: verify if the page IDs have changed between test and production */
/* NOTE: this selector assumes the block is the last element in <body/> as it
   doesn't seem like this is displayed as a <footer/> element */
.page-id-45  .footer-contact-section,   /* main */
.page-id-140 .footer-contact-section,   /* contact */
.page-id-108 .footer-contact-section {  /* calibers */
  display: none;
}
