/*
Theme Name:     Skoty Next
Theme URI:      https://damirock.com/
Author:         damirock restoration
Author URI:     https://damirock.com/
Template:       skoty
Description:    Modern successor to skoty-child. Inherits all skoty parent templates; replaces legacy <title>/head plumbing with WP core support, ships block-editor + responsive-image friendly head, async/defer scripts, and is the place to migrate content-template overrides into. v0.2.x carries the skoty-child helpers ([wpb_list_child_pages], [related_posts], /?random=1).
Version:        0.2.2
Requires at least: 6.5
Requires PHP:   8.1
License:        GPLv2 or later
Text Domain:    skoty-next
*/

/* skoty-child's stylesheet is enqueued from functions.php — we don't
   need an @import here. */

/* ==================================================================
   skoty-next surface fixes
   ================================================================== */

/* 1. CF7 form readability — atticthemes box-builder paints inputs with
      `color:#e8e8e8` whenever they live in a `section-background-image`
      block, which is exactly what /contact/ uses. Force a readable
      contrast pair on all CF7 controls site-wide. */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="search"],
.wpcf7-form textarea,
.section-background-image .wpcf7-form input,
.section-background-image .wpcf7-form textarea,
.section-background-image input[type="text"],
.section-background-image input[type="email"],
.section-background-image input[type="url"],
.section-background-image input[type="tel"],
.section-background-image input[type="search"],
.section-background-image textarea {
    color: #1b1c23 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #6b6c75;
    opacity: 1;
}

.wpcf7-form .wpcf7-submit {
    color: #ffffff !important;
}

/* 2. Excess gap between hero and content on pages.
      Origin: `.skoty-default-sidebar-right { margin: 300px 0 0 0 }` in
      skoty-child/style.css — a floated right column that pushes itself
      300 px below where it should sit. The right column is empty on
      most pages today (and the widget area itself has only the menu),
      so the gap is pure dead space. Collapse it. */

.skoty-default-sidebar-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* When the right sidebar happens to have content again, keep a small
   breathing margin from the hero — but nothing close to 300 px. */
body.has-header-content .skoty-default-sidebar-right:not(:empty) {
    margin-top: 32px !important;
}

/* The yellow "su-note" intro that opens many /hse/ and /exam/ pages
   should not need extra spacing above it either. */
body.page .content article .post-content > .su-note:first-child,
body.page .content article .post-content > p:first-child {
    margin-top: 0;
}
