/*
Theme Name: golightly skill solutions
Theme URI: https://golightlyskills.com/
Author: Paul Golightly
Author URI: https://golightlyskills.com/
Description: The golightly skill solutions site as a WordPress theme. The homepage reproduces the original static site exactly; posts, pages and the Featured Page template use the same palette, type and shapes.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golightly
*/

/*
 * How the styles are organized
 * ----------------------------
 * assets/css/gss.css  The original site stylesheet, unchanged. Loaded on every page.
 *                     Edit colors (:root), nav, buttons and homepage sections there.
 * style.css (this)    Everything WordPress adds on top: inner-page heroes, post
 *                     content, cards, pagination, comments, forms and patterns.
 *                     Nothing here changes how the homepage looks.
 */


/* ==========================================================================
   1. WordPress housekeeping
   ========================================================================== */

/* Keep the sticky nav below the admin toolbar when you're logged in. */
.admin-bar nav.site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar nav.site-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar nav.site-nav { top: 0; } }

/* gss.css styles every <nav> and <footer> as the site nav/footer.
   WordPress also outputs those elements (pagination, comment meta, blocks),
   so return any that aren't the site's own to normal flow. */
nav:not(.site-nav) {
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
    z-index: auto;
}
footer:not(.site-footer) {
    display: block;
    padding: 0;
    margin: 0;
    max-width: none;
    font-size: inherit;
    opacity: 1;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--mist);
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    width: auto;
    padding: 12px 20px;
    left: 8px;
    top: 8px;
    z-index: 100000;
    border-radius: 8px;
}

.navlinks .current-menu-item > a { opacity: 1; }

/* Buttons that are real <button>/<input> elements (forms). */
input.btn-primary,
button.btn-primary {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}


/* ==========================================================================
   2. Inner-page hero (same blobs, kicker and headline as the homepage)
   ========================================================================== */

.hero--compact { padding: 80px 0 72px; }
.hero--compact .blob-1 { width: 440px; top: -190px; right: -180px; }
.hero--compact .blob-2 { width: 260px; bottom: -170px; left: -110px; }
.hero--compact .hero-inner { max-width: 760px; }
.hero--compact h1 { font-size: 44px; max-width: 760px; margin-bottom: 20px; }
.hero--compact p.sub { max-width: 600px; margin-bottom: 20px; }

.hero .entry-meta { font-size: 15px; opacity: .7; }

/* Colored words in an inner-page headline, like "change / chance / grow". */
.hero h1 em.hl-green { color: var(--evergreen); }
.hero h1 em.hl-poppy { color: var(--poppy); }

/* Featured Page: text beside the featured image in a blob frame. */
.hero-split {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 56px;
    align-items: center;
}
.hero-split .hero-text { max-width: 640px; }
.hero-split .btn-row .btn-on-light { margin-top: 0; }
.hero-media {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 44% 56% 60% 40% / 45% 55% 45% 55%;
    background: linear-gradient(155deg, #DCEFE6, #F8F1FF 60%);
}
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .search-form { margin-top: 8px; }


/* ==========================================================================
   3. Post & page body
   ========================================================================== */

.entry-wrap { padding: 72px 0 100px; overflow-x: clip; }
.entry-wrap--featured { padding-top: 88px; }

.entry-figure { margin: 0 0 64px; }
.entry-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
}

/* Reading column, aligned with the hero text. */
.entry,
.post-navigation,
.comments-area { max-width: 720px; }
.entry-wrap--featured .entry { max-width: 860px; }

/*
 * Content typography. Wrapped in :where() so it stays low-priority and the
 * homepage component classes (.service-text, .s1–.s3, .clo, .strip) win when
 * they're used inside a post via the patterns.
 * .is-root-container applies the same styles inside the block editor.
 */
:where(.entry-content, .is-root-container) {
    font-size: 17.5px;
    line-height: 1.7;
}
:where(.entry-content, .is-root-container) > * { margin-bottom: 1.35em; }
:where(.entry-content, .is-root-container) > :last-child { margin-bottom: 0; }

:where(.entry-content, .is-root-container) h1,
:where(.entry-content, .is-root-container) h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}
:where(.entry-content, .is-root-container) h1 { font-size: 40px; line-height: 1.1; margin: 1.4em 0 .5em; }
:where(.entry-content, .is-root-container) h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 1.9em 0 .6em;
}
:where(.entry-content, .is-root-container) h3 { font-size: 24px; line-height: 1.2; margin: 1.7em 0 .5em; }
:where(.entry-content, .is-root-container) h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18.5px;
    line-height: 1.35;
    margin: 1.6em 0 .4em;
}
:where(.entry-content, .is-root-container) h5,
:where(.entry-content, .is-root-container) h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 1.5em 0 .4em;
}
:where(.entry-content, .is-root-container) > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }

:where(.entry-content, .is-root-container) a {
    text-decoration: underline;
    text-decoration-color: var(--evergreen);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color .15s ease;
}
:where(.entry-content, .is-root-container) a:hover { color: var(--evergreen); }

:where(.entry-content, .is-root-container) strong,
:where(.entry-content, .is-root-container) b { font-weight: 600; }

/* Lists: the colored dots from the homepage service lists. */
:where(.entry-content, .is-root-container) ul { list-style: none; }
:where(.entry-content, .is-root-container) ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: .5em;
}
:where(.entry-content, .is-root-container) ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: calc(.85em - 3.5px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--evergreen);
}
:where(.entry-content, .is-root-container) ul ul li::before { background: var(--marigold); }
:where(.entry-content, .is-root-container) ol { padding-left: 1.5em; }
:where(.entry-content, .is-root-container) ol li { padding-left: .3em; margin-bottom: .5em; }
:where(.entry-content, .is-root-container) ol li::marker { color: var(--evergreen); font-weight: 600; }
:where(.entry-content, .is-root-container) li > ul,
:where(.entry-content, .is-root-container) li > ol { margin-top: .5em; }

/* Quotes: Fraunces italic on lavender, like the homepage quote strip. */
:where(.entry-content, .is-root-container) blockquote {
    background: var(--mist-deep);
    border-radius: 24px;
    padding: 32px 36px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 23px;
    line-height: 1.4;
}
:where(.entry-content, .is-root-container) blockquote p { margin-bottom: .6em; }
:where(.entry-content, .is-root-container) blockquote p:last-of-type { margin-bottom: 0; }
:where(.entry-content, .is-root-container) blockquote cite {
    display: block;
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    opacity: .75;
}
:where(.entry-content, .is-root-container) blockquote cite::before { content: "— "; }

:where(.entry-content, .is-root-container) .wp-block-pullquote {
    padding: 40px 0;
    border-top: 2px solid var(--evergreen);
    border-bottom: 2px solid var(--evergreen);
    text-align: center;
}
:where(.entry-content, .is-root-container) .wp-block-pullquote blockquote {
    background: none;
    padding: 0;
    font-size: 28px;
}

/* Media */
:where(.entry-content, .is-root-container) img { max-width: 100%; height: auto; }
:where(.entry-content, .is-root-container) figure img { border-radius: 20px; }
:where(.entry-content, .is-root-container) figcaption,
:where(.entry-content, .is-root-container) .wp-caption-text {
    margin-top: 10px;
    font-size: 14px;
    opacity: .7;
    text-align: center;
}
:where(.entry-content, .is-root-container) iframe { max-width: 100%; border-radius: 20px; }

/* Rules, code, tables */
:where(.entry-content, .is-root-container) hr,
:where(.entry-content, .is-root-container) .wp-block-separator {
    border: 0;
    border-top: 1px solid rgba(54,57,59,0.12);
    margin: 3em 0;
    opacity: 1;
}
:where(.entry-content, .is-root-container) code {
    background: var(--mist-deep);
    padding: .15em .4em;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}
:where(.entry-content, .is-root-container) pre {
    background: var(--charcoal);
    color: var(--mist);
    padding: 24px 28px;
    border-radius: 20px;
    overflow-x: auto;
    font-size: 14.5px;
    line-height: 1.6;
}
:where(.entry-content, .is-root-container) pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
:where(.entry-content, .is-root-container) table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
:where(.entry-content, .is-root-container) th,
:where(.entry-content, .is-root-container) td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(54,57,59,0.12);
}
:where(.entry-content, .is-root-container) th { font-weight: 600; }
:where(.entry-content, .is-root-container) thead th { border-bottom-width: 2px; border-bottom-color: rgba(54,57,59,0.25); }
/* Core's table block adds a full grid of borders; keep the lighter rows. */
.entry-content .wp-block-table :is(th, td) {
    border: 0;
    border-bottom: 1px solid rgba(54,57,59,0.12);
    padding: 12px 14px;
}
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table thead th { border-bottom: 2px solid rgba(54,57,59,0.25); }

/* Buttons block = the homepage's pill buttons. */
.entry-content .wp-block-buttons,
.is-root-container .wp-block-buttons { gap: 16px; }
.entry-content .wp-block-button__link,
.is-root-container .wp-block-button__link {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--mist);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none;
}
.entry-content .wp-block-button__link:hover { color: var(--mist); opacity: .92; }
.entry-content .is-style-outline > .wp-block-button__link,
.is-root-container .is-style-outline > .wp-block-button__link {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid currentColor;
    padding: 13px 26px;
}
.entry-content .is-style-marigold > .wp-block-button__link,
.is-root-container .is-style-marigold > .wp-block-button__link,
.entry-content .clo .wp-block-button__link,
.is-root-container .clo .wp-block-button__link {
    background: var(--marigold);
    color: var(--charcoal);
}

/* Wide and full-width blocks break out of the reading column. */
:where(.entry-content) > .alignwide {
    width: min(1056px, calc(100vw - 64px));
    max-width: none;
}
:where(.entry-content) > .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(-1 * max(32px, (100vw - 1056px) / 2));
    border-radius: 0;
}
:where(.entry-content) .alignleft { float: left; margin: .3em 32px 1em 0; max-width: 50%; }
:where(.entry-content) .alignright { float: right; margin: .3em 0 1em 32px; max-width: 50%; }
:where(.entry-content) .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content::after { content: ""; display: table; clear: both; }

.page-links { margin-top: 32px; font-weight: 600; }
.page-links a { margin-left: 8px; }


/* ==========================================================================
   4. Homepage components inside posts (block patterns)
   ========================================================================== */

/* Group blocks wrap their children; trim the outer edges like the content column. */
.entry-content .wp-block-group__inner-container > :first-child { margin-top: 0; }
.entry-content .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
/* Headings inside the homepage components keep the homepage spacing. */
.gss-highlight h3,
.gss-panel h3 { margin-top: 0; }

/* Quote strip */
.entry-content .strip,
.is-root-container .strip {
    padding: 48px 40px;
    border-radius: 24px;
}

/* Service highlight (.s1 green, .s2 poppy, .s3 marigold) */
.gss-highlight {
    padding: 48px;
    border-radius: 32px;
}
.gss-highlight.s1 { background: #DCEFE6; }
.gss-highlight.s2 { background: #FBDCD5; }
.gss-highlight.s3 { background: #FFF1CC; }
.gss-highlight .wp-block-buttons { margin-top: 28px; }

/* Dark panel */
.gss-panel li { display: block; }
.gss-panel li::before { background: var(--marigold) !important; }
.gss-panel strong { color: var(--mist); }
.gss-panel a:not(.wp-block-button__link) { color: var(--marigold); }


/* ==========================================================================
   5. Blog listing cards
   ========================================================================== */

.listing { padding: 72px 0 110px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}
.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 32px;
    background: var(--mist-deep);
    transition: transform .2s ease;
}
.post-card:hover { transform: translateY(-3px); }
.post-card__media { display: block; }
.post-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 32px 36px 36px;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: .85;
}
.post-card__meta::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--evergreen);
}
.post-card:nth-child(3n+2) .post-card__meta::before { background: var(--poppy); }
.post-card:nth-child(3n) .post-card__meta::before { background: var(--marigold); }
.post-card__title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--evergreen); text-underline-offset: 4px; }
.post-card__excerpt { flex: 1; margin-bottom: 20px; font-size: 15.5px; }
.post-card__more { align-self: flex-start; font-size: 15px; }
.post-card__more:hover { opacity: 1; }

/* Newest post leads the blog's first page across both columns. */
.blog:not(.paged) .post-card:first-child { grid-column: 1 / -1; }
.blog:not(.paged) .post-card:first-child.has-post-thumbnail { flex-direction: row; }
.blog:not(.paged) .post-card:first-child.has-post-thumbnail .post-card__media { flex: 0 0 55%; }
.blog:not(.paged) .post-card:first-child.has-post-thumbnail .post-card__media img { height: 100%; min-height: 340px; aspect-ratio: auto; }
.blog:not(.paged) .post-card:first-child .post-card__body { justify-content: center; padding: 48px; }
.blog:not(.paged) .post-card:first-child .post-card__title { font-size: 34px; }

.empty-state { max-width: 560px; }
.empty-state h3 { font-size: 28px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 20px; }


/* ==========================================================================
   6. Pagination and post navigation
   ========================================================================== */

.pagination { margin-top: 64px; }
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--mist-deep);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.page-numbers.current { background: var(--charcoal); color: var(--mist); }
.page-numbers.dots { background: none; }
a.page-numbers:hover { background: #DCEFE6; }

.post-navigation { margin-top: 72px; }
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 24px 28px;
    border-radius: 24px;
    background: var(--mist-deep);
    text-decoration: none;
    transition: background .15s ease;
}
.post-navigation a:hover { background: #DCEFE6; }
.post-navigation .nav-label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; opacity: .7; }
.post-navigation .nav-title { font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.25; }

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    list-style: none;
}
.topic-pills a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--mist-deep);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.topic-pills a:hover { background: #DCEFE6; }


/* ==========================================================================
   7. Comments and forms
   ========================================================================== */

.comments-area {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid rgba(54,57,59,0.12);
}
.comments-title,
.comment-reply-title { font-size: 28px; margin-bottom: 24px; }
.comment-reply-title small { margin-left: 12px; font-family: 'Inter', sans-serif; font-size: 14px; }
.comment-list,
.comment-list .children { list-style: none; }
.comment-list .children {
    margin-top: 8px;
    padding-left: 28px;
    border-left: 2px solid var(--mist-deep);
}
.comment-body { padding: 24px 0; border-bottom: 1px solid rgba(54,57,59,0.08); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 10px 56px; font-size: 13.5px; opacity: .65; }
.comment-metadata a { text-decoration: none; }
.comment-content { font-size: 16px; }
.comment-content p { margin-bottom: .8em; }
.comment-awaiting-moderation { display: block; font-size: 14px; opacity: .7; }
.reply a { font-size: 14px; font-weight: 600; text-decoration-color: var(--evergreen); text-underline-offset: 4px; }

.comment-respond { margin-top: 48px; }
.comment-notes,
.logged-in-as { margin-bottom: 20px; font-size: 14.5px; opacity: .8; }
.comment-form p { margin-bottom: 18px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .form-submit .btn-primary { margin-top: 4px; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid rgba(54,57,59,0.18);
    border-radius: 14px;
    background: #fff;
    color: var(--charcoal);
    font: inherit;
    font-size: 16px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--evergreen);
    outline: 3px solid rgba(65,157,120,0.22);
    outline-offset: 0;
}

.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form label { flex: 1; }
.search-submit {
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--mist);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}


/* ==========================================================================
   8. Block editor
   ========================================================================== */

/* Mirrors the palette in gss.css for the editor only. */
.editor-styles-wrapper {
    --charcoal: #36393B;
    --evergreen: #419D78;
    --poppy: #E03616;
    --marigold: #FFBC0A;
    --mist: #F8F1FF;
    --mist-deep: #EFE4FB;
    background: var(--mist);
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
}
.editor-styles-wrapper .editor-post-title,
.editor-styles-wrapper .wp-block-post-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}


/* ==========================================================================
   9. Small screens (same breakpoint as gss.css)
   ========================================================================== */

@media (max-width: 850px) {
    .hero--compact { padding: 56px 0 48px; }
    .hero--compact h1 { font-size: 34px; }
    .hero-split { grid-template-columns: 1fr; gap: 36px; }
    .hero-media { max-width: 300px; }

    .entry-wrap { padding: 48px 0 72px; }
    .entry-figure { margin-bottom: 40px; }
    .entry-figure img { border-radius: 24px; }
    :where(.entry-content) { font-size: 17px; }
    :where(.entry-content) h2 { font-size: 24px; }
    :where(.entry-content) h3 { font-size: 21px; }
    :where(.entry-content) blockquote { padding: 26px 24px; font-size: 20px; }
    :where(.entry-content) .alignleft,
    :where(.entry-content) .alignright { float: none; margin: 0 0 1.35em; max-width: 100%; }

    .gss-highlight { padding: 36px 26px; }
    .entry-content .strip { padding: 36px 24px; }

    .listing { padding: 48px 0 80px; }
    .post-grid { grid-template-columns: 1fr; gap: 28px; }
    .post-card__body { padding: 26px 26px 30px; }
    .blog:not(.paged) .post-card:first-child.has-post-thumbnail { flex-direction: column; }
    .blog:not(.paged) .post-card:first-child.has-post-thumbnail .post-card__media img { min-height: 0; aspect-ratio: 16 / 10; }
    .blog:not(.paged) .post-card:first-child .post-card__body { padding: 26px 26px 30px; }
    .blog:not(.paged) .post-card:first-child .post-card__title { font-size: 28px; }

    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .post-navigation .nav-next { grid-column: auto; }

    .search-form { flex-direction: column; }
}
