/*
Theme Name: CTR Space Latest
Theme URI: https://ctrspace.com/
Author: CTR Space
Author URI: https://ctrspace.com/
Description: Custom WordPress theme converted from the CTR Space custom website. A premium WordPress publishing foundation with flexible layouts, reusable content blocks, monetization-ready sections and performance-focused defaults.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctrspace-latest
Tags: publishing, blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/*
 * The presentational stylesheets live in assets/css/ and are loaded through
 * wp_enqueue_style() in inc/enqueue.php:
 *
 *   assets/css/site.css   shared shell — header, footer, buttons, typography
 *   assets/css/pages.css  inner page styles
 *   assets/css/home.css   front page styles
 *
 * This file exists for the theme header above (WordPress requires it) plus the
 * handful of rules WordPress itself expects a theme to provide.
 */

/* --- WordPress core markup classes ------------------------------------- */
.alignleft {
  float: left;
  margin: 0.4em 1.6em 1.2em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1.2em 1.6em;
}

.aligncenter {
  clear: both;
  display: block;
  margin: 1.2em auto;
}

.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.4em;
}

.wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wp-caption-text,
.wp-element-caption {
  font-size: 14px;
  color: var(--muted, #6B6B85);
  text-align: center;
  margin-top: 8px;
}

.sticky .article-header::before {
  content: "";
}

.gallery-caption {
  display: block;
}

.bypostauthor > .comment-body {
  border-left: 2px solid var(--purple, #7B00FF);
}

/* --- accessibility: skip link ------------------------------------------ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 15px;
  font-weight: 700;
  height: auto;
  left: 20px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 20px;
  width: auto;
  z-index: 100000;
}

/* --- widget area -------------------------------------------------------
   The blog sidebar accepts widgets, and since WordPress 5.8 those are block
   widgets that render their own <h2> and <ul> rather than the before_title /
   before_widget markup passed to register_sidebar(). Left alone they inherit
   the page's display heading styles and tower over the sidebar cards, so the
   widget output is normalised to the same scale as the hand-built cards.
   Scoped to .article-sidebar so nothing else in the design is touched.        */
.article-sidebar .article-widget + .article-widget {
  margin-top: 26px;
}

.article-sidebar .article-widget h1,
.article-sidebar .article-widget h2,
.article-sidebar .article-widget h3,
.article-sidebar .article-widget h4,
.article-sidebar .article-widget h5,
.article-sidebar .article-widget h6,
.article-sidebar .article-side-title,
.article-sidebar .wp-block-heading,
.article-sidebar .widget-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted, #6B6B85);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin: 0 0 14px;
  line-height: 1.4;
}

.article-sidebar .article-widget ul,
.article-sidebar .article-widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-sidebar .article-widget li {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 7px 0;
  border-bottom: 1px solid var(--line, #ECE9F7);
}

.article-sidebar .article-widget li:last-child {
  border-bottom: 0;
}

.article-sidebar .article-widget a {
  color: var(--ink, #12002F);
  text-decoration: none;
}

.article-sidebar .article-widget a:hover {
  color: var(--purple, #7B00FF);
}

.article-sidebar .article-widget input[type="search"],
.article-sidebar .article-widget input[type="text"],
.article-sidebar .article-widget input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 13.5px;
  border: 1px solid var(--line, #ECE9F7);
  border-radius: 10px;
  background: #fff;
}

.article-sidebar .article-widget .wp-block-search__button,
.article-sidebar .article-widget button[type="submit"],
.article-sidebar .article-widget input[type="submit"] {
  margin-top: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--grad, linear-gradient(135deg, #2447FF, #7B00FF));
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

/* --- admin bar: keep the fixed header clear of it ----------------------- */
.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}
