/*
Theme Name: OAN Shop
Theme URI: https://shops.obsessingalone.org/
Author: Obsessing Alone Network
Author URI: https://shops.obsessingalone.org/
Description: A custom storefront and publishing theme for the Obsessing Alone Network.
Version: 1.0.1
Tested up to: 7.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: oan-shop
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce
*/

/* === Reset & Box Sizing === */ 
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Base Typography === */
html,
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #466063;
}

/* Keep the outer site canvas consistent when WordPress emits its
   higher-specificity custom-background rule on internal templates. */
body.custom-background {
  background-color: #466063 !important;
}

body {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* === Layout === */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 815px) 300px;
  gap: 25px;
  align-items: start;
}

@media (max-width: 1199px) {
  .container {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
}

/* Stats list in the sidebar */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

/* Sidebar stats header style (gradient bars like your widget titles) */
.sidebar ul::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,  /* orange */
        #f6a564,  /* peach */
        #6bceee,  /* pastel blue */
        #d9b6fd   /* pastel purple */
    );
}

/* Each stat row */
.sidebar li {
    padding: 8px 12px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar li:last-child {
    border-bottom: none;
}

/* Stat label text */
.sidebar li .label {
    font-weight: 600;
    color: #333;
}

/* Stat value text */
.sidebar li .value {
    font-weight: 600;
    color: #ef8354; /* Accent color from palette */
}

/* Hover effect */
.sidebar li:hover {
    background: #fafafa;
}


/* Styled UL for class="stats" */
ul.stats {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

ul.stats li {
    padding: 10px 15px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

ul.stats li:last-child {
    border-bottom: none;
}

/* Label text */
ul.stats li .label {
    font-weight: 600;
    color: #333;
}

/* Value text */
ul.stats li .value {
    font-weight: 600;
    color: #ef8354;
}

ul.stats li:hover {
    background: #fafafa;
}

ul.stats::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,
        #f6a564,
        #6bceee,
        #d9b6fd
    );
}

/* =========================
   Comment list layout + numbering
   ========================= */
/* -------- Base & numbering -------- */
.comment-list{ list-style:none; margin:0; padding:0; counter-reset:cnum; }
.comment-list > li.comment{ counter-increment:cnum; margin:14px 0; }
.comment-list .children{ margin-left:56px; }

/* -------- Card grid: left col (76px) + right col -------- */
.comment-list .comment-body{
  position:relative;
  display:grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 8px 14px;
  padding:16px 16px 56px 16px;
  border:1px solid #e9edf2;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
}

.comment-list .comment-author{ grid-column:1; grid-row:1 / span 2; position:relative; }
.comment-list .comment-author .avatar{
  width:60px; height:60px; border-radius:50%;
  margin-left: -90px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* numbered badge over avatar (top-right) */
.comment-list li.comment .comment-author::after{
  content: counter(cnum);
  position:absolute; top:-6px; left:-98px;
  width:26px; height:26px; display:grid; place-items:center;
  border-radius:999px;
  background: linear-gradient(135deg,#ef8354,#d9b6fd);
  color:#fff; font-weight:800; font-size:13px;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.comment-list .reply{
  position:absolute; left:16px; bottom:12px;
}
.comment-list .reply a{
  display:inline-block; padding:8px 12px;
  border:1px solid #e9edf2; border-radius:10px;
  font-weight:800; text-decoration:none;
}
.comment-list .reply a:hover{ background:#f6f9fc; color:#ef8354; }

/* -------- Right column: header row, content, actions -------- */

.comment-list .comment-meta{ grid-column:2; grid-row:1; display:flex; align-items:baseline; gap:6px; }
.comment-list .fn{ display:inline; font-weight:800; color:#2b2f35; text-transform: uppercase; margin-left: 120px; }
.comment-list .says{ display:inline; text-transform:uppercase; font-weight:800; letter-spacing:.02em; color:#8a98a6; }

/* Edit link top-right */
.comment-list .comment-metadata .edit-link{
  position:absolute; right:16px; top:10px;
}
.comment-list .comment-metadata .edit-link a{
  font-weight:800; text-decoration:none; color:#4f5d75;
}
.comment-list .comment-metadata .edit-link a:hover{ color:#ef8354; }

/* Date/time bottom-right (instead of Edit) */
.comment-list .comment-metadata > a{
  position:absolute; right:16px; bottom:12px;
  font-size:.9rem; color:#8a98a6; text-decoration:none;
}
.comment-list .comment-metadata > a:hover{ color:#ef8354; }

/* Comment text */
.comment-list .comment-content{ grid-column:2; grid-row:2 / span 2; color:#2f3946; }
.comment-list .comment-content p{ margin:.6em 0; }

/* moderation pill */
.comment-awaiting-moderation{
  display:inline-block; margin-top:6px;
  padding:4px 8px; border-radius:999px;
  background:#fff2ee; color:#ef5a3a; font-weight:700;
}

/* mobile */
@media (max-width:520px){
  .comment-list .comment-body{ grid-template-columns:68px 1fr; padding-bottom:64px; }
  .comment-list .comment-author .avatar{ width:52px; height:52px; }
  .comment-list li.comment .comment-author::after{ left:40px; }
}


/* === Header & Logo === */
.site-header {
  position: relative;
  background: #85b9be;
  background-size: 1500px;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-logo-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.site-branding {
  display: none;
}

/* === Navigation === */
.main-navigation {
  display: flex;
  justify-content: center;
  background-color: #ac875a;
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: 0.3s ease all;
  background: transparent;
  border-radius: 5px;
}

.main-navigation a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* === Mobile Navigation === */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin: 1rem auto;
    background: #fff;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    cursor: pointer;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation a {
    color: #333;
    background: #f9f9f9;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
}

/* === Footer === */
.site-footer {
  background: #ac875a;
  color: #fff;
  padding: 1.75rem 30px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-site-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.footer-site-info p {
  margin: 0;
}

.footer-site-info .footer-copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-site-info .footer-copyright .ph {
  font-size: 1em;
}

.footer-site-info .footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.footer-site-info .footer-divider {
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, 0.65);
}

.site-footer a {
  color: #fff;
  font-weight: bold;
}

.site-footer a:hover {
	color: #ddd;
	text-decoration: none;
}

@media (max-width: 520px) {
  .footer-site-info .footer-meta {
    flex-wrap: wrap;
  }
}

/* === Main Content & Sidebar === */
.site-main {
  width: 100%;
  min-width: 0;
}

.widget-area {
  width: 300px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .widget-area {
    width: 100%;
  }
}

/* ============================
   POSTS (news) – cards & meta
   ============================ */

:root{
  --post-bg: #ffffff;
  --post-bdr: #e9edf2;
  --accent: #ef5a3a;            /* your orange from the screenshot */
  --accent-dark: #d94e32;
  --muted: #6b7785;
  --chip-bg: #fff2ee;
}

/* Card look */
article.post, article.page, article.hentry {
  background: var(--post-bg);
  border: 1px solid var(--post-bdr);
  border-radius: 0;
  padding: 24px;
  margin: 0 0 24px;
}

/* Title */
.entry-title {
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 6px;
}
.entry-title a {
  color: #23262b;
  text-decoration: none;
}
.entry-title a:hover { color: var(--accent); }

/* Meta row */
.entry-meta, .posted-on, .byline, .cat-links, .tags-links, .comments-link {
  color: var(--muted);
  font-size: 12px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 4px 0 14px;
}
.entry-meta > span { position: relative; padding-right: 12px; }
.entry-meta > span:not(:last-child)::after {
  content: "•";
  position: absolute; right: 2px; top: 0; color: #c6cbd3;
}

/* Category chips */
.cat-links a, .tags-links a {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--accent);
  border: 1px solid #ffd7cc;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 6px;
}
.cat-links a:hover, .tags-links a:hover { background: #ffe7df; }

/* Featured image & content */
.post-thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .post-thumbnail {
    display: none;
  }
}

.entry-content { color: #2f3946; }
.entry-content p { margin-bottom: 1em; }

/* Read more button */
.more-link, .read-more a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.more-link:hover, .read-more a:hover {
  background: var(--accent-dark);
}

/* Post navigation on singles */
.post-navigation .nav-links a {
  border: 1px solid var(--post-bdr);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
}

/* ============================
   SIDEBAR (300px) – tidy cards
   ============================ */

article.post, article.page, article.hentry,
#secondary.widget-area {
    margin-bottom: 30px; /* space between stacked elements */
}

/* ====== SIDEBAR SEARCH - INPUT ONLY ====== */
.widget_search .search-form .search-submit {
    display: none; /* hide the button */
}

.widget_search .search-form {
    display: block;
    width: 100%;
}

.widget_search .search-form .search-field {
    width: 100%;              /* full width */
    box-sizing: border-box;   /* include padding in width calc */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
}

/* =========================
   404 Not Found Card
   ========================= */
.notfound-card{
  --nf-accent: #ef8354;          /* orange accent */
  --nf-accent-2: #4F5D75;        /* teal/blue accent */
  --nf-bdr: #e9edf2;

  background:#fff;
  border:1px solid var(--nf-bdr);
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  padding:28px 26px;
  overflow:hidden;

  /* slide-in animation */
  animation: nf-slide-in .45s ease-out both;
}
@keyframes nf-slide-in{
  from{ transform: translateY(14px); opacity: 0; }
  to{   transform: translateY(0);    opacity: 1; }
}

/* little pill badge */
.nf-badge{
  display:inline-block;
  padding:4px 10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-radius:999px;
  background:linear-gradient(90deg, #6bceee, #d9b6fd);
  color:#1b2a3a;
  margin-bottom:10px;
}

/* header block */
.nf-head{
  position:relative;
  padding-left:90px; /* space for big 404 */
  margin-bottom:14px;
}
.nf-404{
  position:absolute;
  left:0; top:-8px;
  font-size:72px;
  font-weight:900;
  line-height:1;
  color:#c9d9de;
  opacity:.5;
  letter-spacing:.02em;
}
.nf-title{
  margin:0;
  font-size:clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight:900;
  padding-left:87px;
  position:relative;
}

.nf-subtitle{
  color:#6b7785;
  margin-top: -12px;
	padding-left: 87px;
}

/* actions: search + buttons */
.nf-actions { margin-top:16px; }
.nf-actions .search-form{
  display:block;
  margin-bottom:12px;
}
.nf-actions .search-field{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--nf-bdr);
  border-radius:10px;
  padding:12px 14px;
  font-size:1rem;
}
.nf-actions .search-submit{ display:none; } /* Enter to submit */

.nf-buttons{
  display:flex; gap:10px; flex-wrap:wrap;
	padding-left: 200px;
}
.nf-buttons .btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  border:1px solid transparent;
}
.nf-buttons .nf-home{
  background: var(--nf-accent);
  color:#fff;
}
.nf-buttons .nf-home:hover{ background:#d86f43; }
.nf-buttons .nf-contact{
  background:#fff;
  border-color: var(--nf-bdr);
  color: var(--nf-accent-2);
}
.nf-buttons .nf-contact:hover{ background:#f6f9fc; }

/* helper links with gradient separators */
.nf-help{
  margin-top:16px; text-align:center;
}
.nf-help .nf-line{
  display:block; height:3px; width:60%; margin:0 auto 10px auto;
  border-radius:2px;
  background:linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
}
.nf-help p{ margin:0 0 8px; color:#7b8794; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.nf-links{ list-style:none; margin:0; padding:0; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.nf-links a{ text-decoration:none; font-weight:700; color: var(--nf-accent-2); }
.nf-links a:hover{ color: var(--nf-accent); }

/* responsive */
@media (max-width: 600px){
  .nf-head{ padding-left:70px; }
  .nf-404{ font-size:56px; top:-6px; }
}

/* ====== SIDEBAR HEADER STYLING ====== */
.widget-title, 
.widget .wp-block-heading {
  position: relative;
  margin: -14px -14px 30px;
  padding: 13px 16px 16px;
  border-radius: 11px 11px 0 0;
  background: #74b4b4;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

/* Automatically add a centered Phosphor emblem to every widget heading. */
.widget-title::before,
.widget .wp-block-heading::before {
  content: none;
}

.widget-title::after,
.widget .wp-block-heading::after {
  content: "\ecf4";
  position: absolute;
  left: 50%;
  bottom: -17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateX(-50%);
  border: 2px solid #74b4b4;
  border-radius: 50%;
  background: #fff;
  color: #ac875a;
  font-family: "Phosphor-Bold";
  font-size: 18px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.widget-title a,
.widget .wp-block-heading a {
  color: inherit;
}

/* Sidebar account actions */
.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.sidebar-actions .sa-item {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #74b4b4;
  border-radius: 8px;
  background: #74b4b4;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-actions .sa-item:hover,
.sidebar-actions .sa-item:focus-visible {
  border-color: #ac875a;
  background: #ac875a;
  color: #fff;
  transform: translateY(-2px);
}

.sidebar-actions .sa-item:focus-visible {
  outline: 2px solid #253f42;
  outline-offset: 3px;
}

.tippy-box[data-theme~='oan-actions'] {
  border: 1px solid #74b4b4;
  border-radius: 6px;
  background: #253f42;
  box-shadow: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tippy-box[data-theme~='oan-actions'] > .tippy-content {
  padding: 6px 9px;
}

.tippy-box[data-theme~='oan-actions'] > .tippy-arrow {
  color: #253f42;
}

.widget { 
  background: #ffffff;
  border: 1px solid var(--post-bdr);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
/* Lists */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px dashed #e7ecf2; }
.widget ul li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--accent); }

/* Search widget */
.search-form .search-field {
  flex: 1;
  border: 1px solid var(--post-bdr);
  border-radius: 10px;
	width: 100%;
  padding: 10px 12px;
}
.search-form .search-submit {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* Optional: sticky sidebar */
@media (min-width: 992px){
  #secondary.widget-area { position: sticky; top: 20px; }
  body.admin-bar #secondary.widget-area { top: 52px; }
}

/* ============================
   SPACING & TWEAKS
   ============================ */

.posts-navigation, .navigation.posts-navigation { margin-top: 18px; }
.entry-footer { margin-top: 14px; }


/* === Links & Buttons === */
a {
  color: #F54927;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #927273;
  text-decoration: underline;
}

/* === Forms === */
input, textarea, select {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.5em;
  font-family: inherit;
}

/* === Accessibility === */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================
   Post head: date + title
   ========================= */
article.post, article.page, article.hentry { position: relative; }

.post-head{
  display: grid;
  grid-template-columns: 84px 1fr; /* date badge + title area */
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

/* Calendar-framed publication date */
.date-badge{
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #74b4b4;
}

.date-badge > .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #74b4b4;
  font-size: 82px;
  line-height: 1;
}

.date-badge time {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "year"
    "month"
    "day";
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  align-content: start;
  justify-content: center;
  justify-items: center;
  row-gap: 0;
  width: 62px;
  height: 50px;
  padding-top: 0;
  color: #253f42;
  line-height: 1;
  text-align: center;
}

.date-badge .month{
  grid-area: month;
  padding: 2px 5px;
  border-radius: 2px;
  background: #ac875a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-badge .day{
  grid-area: day;
  margin-top: -2px;
  font-size: 1.45rem;
  font-weight: 800;
}

.date-badge .year{
  grid-area: year;
  align-self: start;
  padding-top: 1px;
  padding-bottom: 7px;
  color: #ac875a;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

/* Editorial title and author credit */
.title-wrap {
  position: relative;
  padding-bottom: 12px;
}

.title-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ac875a 0 28%, #74b4b4 28% 100%);
}

.title-wrap .entry-title {
  margin: 0;
  padding: 0;
  color: #25313d;
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-transform: uppercase;
}

.entry-title a{ text-decoration: none; color: #2b2f35; }
.entry-title a:hover{ color: #ef8354; }

.byline-upper{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #75818f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.byline-upper .ph-bold {
  display: inline-grid;
  width: 1em;
  height: 1em;
  place-items: center;
  color: #74b4b4;
  font-size: 1rem;
  line-height: 1;
}

.byline-upper span,
.byline-upper a {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
}

.byline-upper a {
  color: #ac875a;
  font-weight: 900;
  text-decoration: none;
}

.byline-upper a:hover {
  color: #8b6c44;
}

/* Comment section headings = match sidebar header style */
.comments-area .comments-title,
.comments-area .comment-reply-title{
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 1.05rem;
  margin: 0 0 16px;
  position: relative;
  padding: 8px 0; /* space for the lines */
}

/* gradient lines above and below */
.comments-area .comments-title::before,
.comments-area .comments-title::after,
.comments-area .comment-reply-title::before,
.comments-area .comment-reply-title::after{
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ef8354, #f6a564, #6bceee, #d9b6fd);
  width: 60%;
  margin: 0 auto;
  border-radius: 2px;
}
.comments-area .comments-title::before,
.comments-area .comment-reply-title::before{ margin-bottom: 6px; }
.comments-area .comments-title::after,
.comments-area .comment-reply-title::after{ margin-top: 6px; }

/* “Cancel reply” (small) sits neatly under the title */
.comment-reply-title small,
.comment-reply-title .cancel-comment-reply a{
  display: block;
  margin-top: 6px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* optional: a little breathing room above the thread & form */
.comment-list{ margin-top: 14px; }
#respond{ margin-top: 18px; }

/* mobile: shorten the lines a bit */
@media (max-width: 600px){
  .comments-area .comments-title::before,
  .comments-area .comments-title::after,
  .comments-area .comment-reply-title::before,
  .comments-area .comment-reply-title::after{
    width: 70%;
  }
}

/* EDD single product: style the Fields table in the sidebar */
.single-download #secondary table.edd-fields{
  display: block;                  /* lets padding/radius work on table */
  width: 100%;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
  padding: 14px;                   /* inner breathing room */
  border-collapse: separate;       /* keep spacing clean */
  overflow: hidden;
  position: relative;
}

/* gradient top bar like your widget titles */
.single-download #secondary table.edd-fields::before{
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
  position: absolute; left: 14px; right: 14px; top: 14px;
}
.single-download #secondary table.edd-fields { padding-top: 24px; } /* make room for the bar */

/* Rows: make each TR a neat two-column grid (Label | Value) */
.single-download #secondary table.edd-fields tr{
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  padding: 8px 0;
  border-bottom: 1px dashed #e7ecf2;
}
.single-download #secondary table.edd-fields tr:last-child{ border-bottom: 0; }

/* Label (left) */
.single-download #secondary table.edd-fields th{
  grid-column: 1;
  text-align: left;
  font-weight: 800;
  color: #2b2f35;
  padding: 0;
  margin: 0;
  white-space: normal;
}

/* Value (right) */
.single-download #secondary table.edd-fields td{
  grid-column: 2;
  text-align: right;
  color: #2f3946;
  padding: 0;
  margin: 0;
  white-space: normal;
}

/* Links inside values */
.single-download #secondary table.edd-fields td a{
  color: #ef5a3a;
  text-decoration: none;
  font-weight: 700;
}
.single-download #secondary table.edd-fields td a:hover{ text-decoration: underline; }

/* Optional: turn comma-separated values into small pills when they are links */
.single-download #secondary table.edd-fields td a{
  display: inline-block;
  background: #fff2ee;
  border: 1px solid #ffd9cf;
  color: #ef5a3a;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.single-download #secondary table.edd-fields td a:first-child{ margin-left: 0; }

#edd_show_discount,
#edd-discount-code-wrap {
    display: none !important;
}

/* Site Information */
.site-info{
  padding:14px 18px 18px;
}

.info-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:20px;
  padding:10px 0;
}

.info-row:not(:last-of-type){
  border-bottom:1px solid #edf2f7;
}

.info-label{
  flex-shrink:0;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#97a2b3;
}

.info-value{
  flex:1;
  text-align:right;
  font-size:14px;
  font-weight:600;
  color:#33486d;
}

.info-value a{
  color:#4d7ca8;
  text-decoration:none;
}

.info-value a:hover{
  text-decoration:underline;
}

/* Blockquote */
.wp-block-quote{
  margin-top:40px;
  position:relative;
  padding:28px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e7edf2;
}

.wp-block-quote::before{
  font-family:"Phosphor";
  content:"\E660";
  position:absolute;
  left:50%;
  top:-22px;
  transform:translateX(-50%);
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#79b7bb;
  color:#fff;
  font-size:24px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* Page Title */
.page .entry-header{
  position:relative;
}

.page .entry-header::before{
  content:"OBSESSION...";
  position:absolute;
  top:-60px;
  left:0;
  font-size:80px;
  font-weight:900;
  color:#edf3f8;
  letter-spacing:5px;
  z-index:0;
}

.page .entry-title{
  position:relative;
  z-index:1;
  font-size:40px;
  font-family:"Elms Sans", sans-serif;
  text-transform:uppercase;
  font-weight:800;
}

@media (max-width:768px){
  .page .entry-header::before{
    content:"OBSESS";
    top:-40px;
    left:0;
    max-width:100%;
    overflow:hidden;
    color:#000;
    font-size:60px;
    letter-spacing:1px;
    opacity:.45;
  }
}

/* Headings */
.page .entry-content h2.wp-block-heading{
  margin:50px 0 20px;
  padding:8px 0 8px 18px;
  border-left:6px solid #79b7bb;
  color:#2f4366;
  font-family:"Elms Sans",sans-serif;
  font-size:2rem;
  font-weight:800;
  text-transform:uppercase;
  line-height:1.2;
}

.page .entry-content h3.wp-block-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin:38px 0 18px;
  color:#31456b;
  font-family:"Elms Sans", sans-serif;
  font-size:1.6rem;
  font-weight:700;
}

.page .entry-content h3.wp-block-heading::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:50%;
  background:#79b7bb;
  box-shadow:0 0 0 4px rgba(121,183,187,.15);
  flex-shrink:0;
}

.page .entry-content h4.wp-block-heading{
  margin:28px 0 12px;
  color:#66758b;
  font-family:"Outfit",sans-serif;
  font-size:1rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
}


/* ===========================
	EDD STYLES 
   =========================== */
.single-download #secondary .widget { 
  border: 1px solid #e7edf3;
  border-radius: 12px;
  padding: 14px;
}

/* EDD purchase button in the sidebar (works for links and buttons) */
.single-download #secondary .edd-submit,
.single-download #secondary a.edd-add-to-cart {
  display: block;              /* Make it full-width block element */
  width: fit-content;           /* Size to fit the text */
  margin: 0 auto 1em;           /* Center horizontally, add bottom spacing */
  padding: 10px 14px;
  border-radius: 10px;
  background: #ff8a65;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  text-align: center;     
}

#edd-purchase-button, .edd-submit, [type=submit].edd-submit {
	font-weight: 600;
}
.single-download #secondary .edd-submit:hover,
.single-download #secondary a.edd-add-to-cart:hover { background: #dd8f17; }

/* “Download Categories:” line */
.single-download #secondary .download-cats,
.single-download #secondary .download-cats a {
  color: #ef5a3a;
  text-decoration: none;
}
.single-download #secondary .download-cats a:hover { text-decoration: underline; }

.edd-no-js {
    display: none !important;
}

/* Style for Download Categories on EDD single product pages */
.single-download .categories,
.single-download .categories a {
  font-family: 'Segoe UI', Tahoma, sans-serif; /* clean readable font */
}

.single-download .categories {
  display: block;
  font-weight: 600;
  color: #555; /* label color */
  margin-top: 3em;
  margin-bottom: -2.5em;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.single-download .categories a {
  background: linear-gradient(90deg, #ff8a65, #ff5252);
  color: #fff;
  padding: 4px 8px;
  margin-right: 5px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.single-download .categories a:hover {
  background: linear-gradient(90deg, #ff7043, #ff1744);
}

/* Style the review form container */
.edd-reviews-form,
.comment-form {
    background: #ffffff;
    padding: 20px;
}

/* Style form labels */
.edd-reviews-form label,
.comment-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Style text inputs and textarea */
.edd-reviews-form input[type="text"],
.edd-reviews-form textarea,
.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Style Post Review button */
.edd-reviews-form input[type="submit"],
.comment-form input[type="submit"] {
    background-color: #ff8a65;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edd-reviews-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    background-color: #ff7043;
}

.edd-reviews-heading {
	position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 8px 0;
    margin: 0 0 16px;
    text-align: center;
}

/* line above and below but shorter than full width */
.edd-reviews-heading::before,
.edd-reviews-heading::after,
.edd-reviews-heading::before,
.edd-reviews-heading::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,   /* orange */
        #f6a564,   /* peach */
        #6bceee,   /* pastel blue */
        #d9b6fd    /* pastel purple */
    );
    width: 60%; /* shorter than full width */
    margin: 0 auto;
    border-radius: 2px;
}


/* =========================
   Footer split: cats / comments
   ========================= */
.post-footer{
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #e6ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.post-footer .footer-left,
.post-footer .footer-right{ display: flex; align-items: center; gap: 8px; }

/* Flat metadata icons and links */
.post-footer .post-meta-icon {
  display: inline-grid;
  width: 1.1em;
  height: 1.1em;
  place-items: center;
  color: #74b4b4;
  font-size: 1.05rem;
  line-height: 1;
}

.post-footer .post-meta-icon i {
  display: block;
  line-height: 1;
}

.post-footer .cat-links,
.post-footer .comments-link {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
}

.post-footer .cat-links a{
  display: inline-block;
  padding: 2px 0;
  margin-right: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #657384;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.post-footer .cat-links a + a{ margin-left: 10px; }
.post-footer .cat-links a:hover{ border-bottom-color:#ac875a; color:#8b6c44; }

.post-footer .comments-link a{
  text-decoration: none;
  font-weight: 800;
  color: #657384;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-footer .comments-link a:hover{
  color: #8b6c44;
}

@media (max-width: 600px) {
  .post-head {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  .date-badge {
    width: 70px;
    height: 70px;
  }

  .date-badge > .ph {
    font-size: 68px;
  }

  .date-badge time {
    transform: scale(0.86);
  }

  .post-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* Discount Codes */
.discount-list{
  padding:0px 12px 12px;
}

.discount-item{
  text-align:center;
  padding:11px 0;
}

.discount-item:not(:last-child){
  border-bottom:1px solid #edf2f7;
}

.discount-code{
  display:inline-block;
  padding:8px 18px;
  margin-bottom:8px;
  min-width:170px;
  background:#f7f9fc;
  border:1px solid #d9e3ef;
  border-radius:30px;
  color:#34496a;
  font-size:15px;
  font-weight:700;
  letter-spacing:1px;
  transition:.2s ease;
}

.discount-code:hover{
  background:#eef5ff;
  border-color:#9ec3ff;
  cursor:pointer;
}

.discount-text{
  font-size:12px;
  line-height:1.5;
  color:#6d7480;
}

.discount-text strong{
  color:#f26d21;
  font-weight:700;
}

/* Latest Plugins */
.latest-plugin{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px 0;
}

.latest-plugin:not(:last-child){
  border-bottom:1px solid #edf1f5;
}

.plugin-image{
  flex-shrink:0;
}

.plugin-image img{
  width:72px;
  height:72px;
  display:block;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #dde4eb;
}

.plugin-info{
  flex:1;
  min-width:0;
}

.plugin-name{
  font-size:15px;
  font-weight:700;
  margin-bottom:8px;
}

.plugin-name a{
  color:#2d4267;
  text-decoration:none;
}

.plugin-name a:hover{
  color:#76b7bc;
}

.plugin-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  font-size:12px;
}

.plugin-version{
  color:#7b8595;
}

.plugin-version i{
  margin-right:4px;
}

.plugin-price{
  font-weight:700;
  color:#f26d21;
}

.plugin-button{
  display:block;
  text-align:center;
  background:#76b7bc;
  color:#fff;
  padding:8px;
  border-radius:8px;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:.2s;
}

.plugin-button:hover{
  background:#5ea6ac;
}

/* Progress */
.project-progress{
  padding:14px 18px;
}

.project{
  padding:12px 0;
}

.project:not(:last-child){
  border-bottom:1px solid #edf2f7;
  margin-bottom:12px;
}

.project-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.project-name{
  font-size:14px;
  font-weight:700;
  color:#31456b;
}

.project-percent{
  font-size:13px;
  font-weight:700;
  color:#8b97a8;
}

.progress{
  height:8px;
  background:#edf2f7;
  border-radius:999px;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#7fb7bc,#5ca5ad);
}

.project-bottom{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.project-version{
  font-size:12px;
  color:#8b97a8;
}

/* Status Pills */
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.status-pill i{
  font-size:13px;
}

/* Status Colours */
.status-pill.planning{
  background:#eef3ff;
  color:#4567b7;
}

.status-pill.development{
  background:#eafaf0;
  color:#2f8a59;
}

.status-pill.beta{
  background:#fff6e8;
  color:#c77a12;
}

.status-pill.testing{
  background:#f4edff;
  color:#7b51c8;
}

.status-pill.complete{
  background:#e8fbf3;
  color:#1f8c61;
}

.status-pill.maintenance{
  background:#f3f4f6;
  color:#6b7280;
}

.status-pill.discontinued{
  background:#fdecec;
  color:#b63b3b;
}

/* Center the form and give it the site card look */
.oa-cf7.wpcf7 {
  display:block;
  max-width: 720px;           /* center width */
  margin: 0 auto 22px;        /* centered */
  background:#fff;
  border:1px solid #e9edf2;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
  padding:22px;
}

/* Labels: uppercase + bold */
.oa-cf7 .wpcf7-form label{
  display:block;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  color:#2b2f35;
  margin:10px 0 6px;
}

/* Two-column rows */
.oa-cf7 .grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 700px){
  .oa-cf7 .grid-2{ grid-template-columns: 1fr; }
}

/* Inputs / selects / textareas */
.oa-cf7 .wpcf7-form input[type="text"],
.oa-cf7 .wpcf7-form input[type="email"],
.oa-cf7 .wpcf7-form input[type="url"],
.oa-cf7 .wpcf7-form select,
.oa-cf7 .wpcf7-form textarea,
.oa-cf7 .wpcf7-form input.wpcf7-quiz{
  width:100%;
  box-sizing:border-box;
  border:1px solid #e7ecf2;
  border-radius:10px;
  padding:10px 12px;
  font-size:1rem;
  background:#fff;
}
.oa-cf7 .wpcf7-form input:focus,
.oa-cf7 .wpcf7-form select:focus,
.oa-cf7 .wpcf7-form textarea:focus{
  outline:0;
  border-color:#cfd9e6;
  box-shadow:0 0 0 3px rgba(111,164,255,.15);
}

/* Submit button (600 weight, #ff8a65 bg, white text) */
.oa-cf7 .wpcf7-submit{
  background:#ff8a65;
  color:#fff;
  font-weight:600;
  border:0;
  border-radius:10px;
  padding:10px 16px;
  cursor:pointer;
  transition:background .2s ease;
}
.oa-cf7 .wpcf7-submit:hover{ background:#ff7043; }

/* Spacing */
.oa-cf7 .wpcf7-form p{ margin-bottom:14px; }

/* --- Arithmetic CF7 add-on styling (IDs you mentioned) --- */
.oa-cf7 #arithmetic_input_holder{
  display:flex; align-items:center; gap:10px;
  margin:10px 0 2px;
}
.oa-cf7 #arithmetic_recognation{      /* the "6 + 5 =" bit */
  font-weight:800; color:#2b2f35;
  background:#f6f9fc;
  border:1px solid #e7ecf2;
  border-radius:8px;
  padding:6px 10px;
}
.oa-cf7 #arithmetic_cal{              /* answer input */
  border:1px solid #e7ecf2;
  border-radius:10px;
  padding:0px 10px;
  width:180px; max-width:100%;
}
.oa-cf7 #arithmetic_refresh,
.oa-cf7 #arithmetic_refresh button,
.oa-cf7 #arithmetic_refresh a{
  display:inline-grid; place-items:center;
  width:34px; height:34px;
  border:1px solid #e9edf2;
  border-radius:999px;
  background:#fff;
  color:#4f5d75;
  text-decoration:none;
}
.oa-cf7 #arithmetic_refresh:hover,
.oa-cf7 #arithmetic_refresh button:hover,
.oa-cf7 #arithmetic_refresh a:hover{
  background:#f6f9fc; color:#ef8354;
}

/* Validation + messages (unchanged but kept for polish) */
.oa-cf7 .wpcf7-not-valid{ border-color:#ffb3a1; }
.oa-cf7 .wpcf7-not-valid-tip{ color:#e05a43; font-weight:600; margin-top:6px; }
.oa-cf7 .wpcf7-response-output{
  margin-top:14px; border-radius:10px; padding:10px 12px;
  border:1px solid #e7ecf2; background:#f6f9fc; color:#2f3946;
}

/* Sidebar project card */
#secondary .project-card{
  position: relative;
  padding-bottom: 28px;           /* room for the overlapping chips */
}

/* Image: fixed 200px wide, nice crop, centered */
#secondary .project-card .thumb{
  position: relative;
  width: 250px;
  aspect-ratio: 16/10;             /* nice landscape crop; remove if not supported */
  border-radius: 12px;
  overflow: visible; 
  background: #f3f6fa;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  margin: 0 auto 22px;             /* centered in 300px sidebar */
}

#secondary .project-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;               /* fills/crops cleanly */
  display: block;
  border-radius: 12px;
}

/* Chips row overlaps the bottom of the image */
#secondary .project-card .chip-row{
  position: absolute;
  left: 50%;
  bottom: -14px;                   /* overlap */
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* Base chip */
#secondary .project-card .chip{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
  border: 1px solid #e9edf2;
  background: #fff;
  color: #4f5d75;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* Download (accent) */
#secondary .project-card .chip-download{
  background: #ef8354;
  border-color: #ef8354;
  color: #fff;
}
#secondary .project-card .chip-download:hover{ background:#d86f43; border-color:#d86f43; }

/* Version (neutral) */
#secondary .project-card .chip-version{
  background: #fbfcff;
}

/* Price (warm) */
#secondary .project-card .chip-price{
  background: #fff2ee;
  border-color: #ffd9cf;
  color: #ef5a3a;
}

/* Optional: full-width on very narrow sidebars */
@media (max-width: 360px){
  #secondary .project-card .thumb{ width: 100%; }
}

/* Rules Directory */
.oan-rules{
  display:grid;
  gap:20px;
  margin:30px 0;
}

.oan-rule{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:22px;
  background:#fff;
  border:1px solid #e6edf2;
  border-radius:18px;
  transition:.2s;
}

.oan-rule:hover{
  border-color:#79b7bb;
  transform:translateY(-3px);
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.rule-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  background:#f4fbfc;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.rule-icon i{
  font-size:28px;
  color:#79b7bb;
}

.rule-body h3{
  margin:0 0 8px;
  font-size:1.3rem;
}

.rule-body p{
  margin:0;
  line-height:1.7;
}

/* Shop Grid Directory */
.shop-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:28px;
}

.shop-card{
  position:relative;
  background:#fff;
  border:1px solid #e6edf2;
  border-radius:20px;
  overflow:visible;
  transition:.25s;
}

.shop-card:hover{
  transform:translateY(-6px);
  border-color:#79b7bb;
}

/* Image */
.shop-image{
  padding:20px;
  max-width:350px;
  max-height:100px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f8fbfc;
  border-radius:20px 20px 0 0;
  overflow:hidden;
  text-align:center;
  border-bottom:1px solid #edf2f7;
}

.shop-image img{
  width:400px;
  height:100px;
  object-fit:cover;
  display:block;
}

/* Content */
.shop-content{
  padding:20px 20px 42px;
}

.shop-content h3{
  margin:0 0 18px;
  text-align:center;
  font-size:18px;
  line-height:1.35;
  color:#31456b;
}

/* Pills */
.shop-meta{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

.price-pill,
.type-pill{
  height:34px;
  min-width:82px;
  padding:0 14px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
}

.price-pill{
  background:#ecfaf1;
  color:#238653;
}

.type-pill.wordpress{
  background:#eef6ff;
  color:#2271b1;
}

.type-pill.coppermine{
  background:#fff5ea;
  color:#d97706;
}

.shop-button{
  position:absolute;
  left:50%;
  bottom:-20px;
  transform:translateX(-50%);
  min-width:unset;
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  background:#79b7bb;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  font-size:.8rem;
  font-weight:700;
  transition:.2s;
}

.shop-button:hover{
  background:#5fa6ab;
}

.shop-button i{
  font-size:15px;
  transition:.2s;
}

.shop-button:hover i{
  transform:translateX(3px);
}

.shop-button,
.shop-button:link,
.shop-button:visited{
  text-decoration:none !important;
}

.shop-button:hover,
.shop-button:focus,
.shop-button:active{
  text-decoration:none !important;
}

/* Mobile */
@media (max-width:768px){
  .shop-grid{
    gap:35px;
  }

  .shop-button{
    width:calc(100% - 40px);
    justify-content:center;
  }
}


/* ========= EDD Account – scoped styles ========= */
:root{
  /* Tweak these to match your brand */
  --acc-bg: #f7f8fb;
  --acc-card: #ffffff;
  --acc-text: #2b2d42;
  --acc-muted: #6b7280;
  --acc-border: #e5e7eb;
  --acc-accent: #6bceee;          /* accent */
  --acc-accent-ink: #073b4c;      /* readable on light accent */
  --acc-radius: 16px;
  --acc-shadow: 0 8px 24px rgba(0,0,0,.06);
  --acc-gap: 22px;
}

.edd-account{
  --_max: 1100px;
  color: var(--acc-text);
}

/* Sticky sub-nav */
.edd-account__nav{
  position: sticky;
  top: 72px; /* adjust if you have admin bar or a tall header */
  z-index: 2;
  justify-content: center;
  align-items: center; /* optional, keeps rows tidy when wrapping */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: -10px -10px var(--acc-gap);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--acc-border);
  border-top-left-radius: var(--acc-radius);
  border-top-right-radius: var(--acc-radius);
}

.edd-account__nav a{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--acc-border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--acc-text);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.edd-account__nav a:hover{ transform: translateY(-1px); }
.edd-account__nav a:focus{ outline: 3px solid color-mix(in srgb, var(--acc-accent) 40%, transparent); outline-offset: 2px; }
.edd-account__nav a[href*="#"]:target,
.edd-account__nav a[aria-current="true"]{
  background: var(--acc-accent);
  color: var(--acc-accent-ink);
  border-color: color-mix(in srgb, var(--acc-accent) 40%, var(--acc-border));
}

/* Sections (cards) */
.account-section{
  max-width: var(--_max);
  margin: 0 auto var(--acc-gap);
  background: var(--acc-card);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: clamp(16px, 2.4vw, 28px);
  scroll-margin-top: 90px; /* avoids sticky header overlap */
}
.account-section h2{
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.account-section h2::after{
  content: "";
  height: 3px; width: 36px;
  background: var(--acc-accent);
  border-radius: 3px;
  display: inline-block;
}

/* Make EDD tables pretty without knowing exact classes */
.account-section table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--acc-border);
  border-radius: 12px;
}
.account-section thead th{
  text-align: left;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 12px 14px;
  color: var(--acc-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--acc-border);
}
.account-section tbody td{
  padding: 12px 14px;
  border-top: 1px solid var(--acc-border);
  vertical-align: middle;
}
.account-section tbody tr:hover td{ background: #fcfcff; }

/* Buttons (covers EDD anchors that look like buttons) */
.account-section a.button,
.account-section .edd-submit,
.account-section input[type="submit"],
.account-section button{
  display: inline-block;
  border: 1px solid transparent;
  background: var(--acc-accent);
  color: var(--acc-accent-ink);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.account-section a.button:hover,
.account-section .edd-submit:hover,
.account-section input[type="submit"]:hover,
.account-section button:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* Small badges (e.g., status, license state) */
.badge{
  display:inline-block;padding:.25rem .5rem;border-radius:999px;
  font-size:.75rem;font-weight:700;line-height:1;border:1px solid var(--acc-border);
  background:#f4f7ff;color:#334155;
}
.badge--ok{ background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.badge--warn{ background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.badge--danger{ background:#fef2f2; color:#991b1b; border-color:#fecaca; }

/* Forms inside Profile Editor & Renewal Form */
.account-section input[type="text"],
.account-section input[type="email"],
.account-section input[type="password"],
.account-section input[type="url"],
.account-section input[type="number"],
.account-section select,
.account-section textarea{
  width: 100%;
  border: 1px solid var(--acc-border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--acc-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-section input:focus,
.account-section select:focus,
.account-section textarea:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--acc-accent) 50%, var(--acc-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc-accent) 22%, transparent);
}
.account-section label{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  color: var(--acc-muted);
  display:block; margin: 14px 0 6px;
}
.account-section .form-row{ margin-bottom: 10px; }

/* EDD notices / alerts (generic) */
.account-section .edd_errors,
.account-section .edd_success,
.account-section .edd-alert{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--acc-border);
  background: #f9fafb;
  color: var(--acc-text);
  margin: 12px 0;
}
.account-section .edd_success{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.account-section .edd_errors{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

/* Make long license keys wrap nicely */
.account-section code, .account-section .license-key{
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #f5f7fb; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--acc-border);
}

/* Mobile tweaks */
@media (max-width: 640px){
  .edd-account__nav{ top: 56px; }
  .account-section table, .account-section thead{ display: block; }
  .account-section thead tr{ display:none; }
  .account-section tbody{ display:block; }
  .account-section tbody tr{ display:grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px; }
  .account-section tbody td{ border: 0; padding: 4px 0; }
  .account-section tbody td:first-child{ grid-column: 1 / -1; font-weight: 700; }
}

/* Optional: light dark-mode respect */
@media (prefers-color-scheme: dark){
  :root{
    --acc-bg: #0f1623;
    --acc-card: #131c2b;
    --acc-text: #e8edf7;
    --acc-muted: #a6b0c3;
    --acc-border: #243248;
    --acc-shadow: 0 10px 28px rgba(0,0,0,.35);
    --acc-accent: #6bceee;
    --acc-accent-ink: #082a36;
  }
  .account-section thead th{ background: #0f1a2a; }
  .account-section tbody tr:hover td{ background: #0e1522; }
  .account-section input, .account-section select, .account-section textarea{ background:#0f1623; color: var(--acc-text); }
}

/* --- EDD Profile Editor: remove box + side gradients on legends --- */

/* kill the fieldset border */
.edd-account #account fieldset,
#edd_profile_editor_form fieldset{
  border: 0 !important;
  margin: 0 0 22px;
  padding: 18px 0;
}

/* center the section titles (legends) */
.edd-account #account legend,
#edd_profile_editor_form legend{
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;                 /* space between text and the lines */
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: .02em;
  color: var(--acc-text);
}

/* the flanking gradient lines */
.edd-account #account legend::before,
.edd-account #account legend::after,
#edd_profile_editor_form legend::before,
#edd_profile_editor_form legend::after{
  content: "";
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
        90deg,
        #ef8354,  /* orange */
        #f6a564,  /* peach */
        #6bceee,  /* pastel blue */
        #d9b6fd   /* pastel purple */
    );
}

/* mirror the gradient on the right so it feels symmetrical */
.edd-account #account legend::after,
#edd_profile_editor_form legend::after{
  transform: scaleX(-1);
}

/* Remove the ugly fieldset border everywhere inside EDD forms */
.edd-account fieldset,
.account-section fieldset,
.edd_form fieldset,
#edd_profile_editor_form fieldset{
  border: 0 !important;
  border-image: none !important;
  padding: 18px 0;
  margin: 24px 0 16px;
}

/* Center the titles and make them behave */
.edd-account legend,
.account-section legend,
.edd_form legend,
#edd_profile_editor_form legend{
  display: block;            /* override display:table */
  text-align: center;        /* center the text */
  position: relative;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: .04em;
  /* keep your theme’s uppercase if you like; remove next line to use normal case */
  text-transform: uppercase;
}

/* Gradient lines on left + right of the legend text */
.edd-account legend::before,
.edd-account legend::after,
.edd_form legend::before,
.edd_form legend::after{
  content: "";
  position: relative;
  top: 50%;
  height: 4px;
  width: 15%;                 /* tweak to taste */
  border-radius: 999px;
  /* use your sidebar gradient var if set; otherwise fallback to your pastel set */
  background: var(--sidebar-gradient,
    linear-gradient(90deg,#f996ae,#6bceee,#d9b6fd,#f6f0a3));
}
.edd-account legend::before,
.edd_form legend::before{ left: 0; }
.edd-account legend::after,
.edd_form legend::after{ right: 0; transform: translateY(-50%) scaleX(-1); }

/* Tighten spacing above the Save button */
#edd_profile_editor_form fieldset:last-of-type{ margin-bottom: 8px; }

/* ==========================================================
   Product navigation and customer reviews
   ========================================================== */
.single-download .post-navigation {
  clear: both;
  margin: 28px 0 36px;
}

.single-download .post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.single-download .post-navigation .nav-previous,
.single-download .post-navigation .nav-next {
  min-width: 0;
}

.single-download .post-navigation .nav-next {
  grid-column: 2;
}

.single-download .post-navigation .nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  color: #202635;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
}

.single-download .post-navigation .nav-next a {
  justify-content: flex-end;
  text-align: right;
}

.single-download .post-navigation .nav-links a:hover {
  border-color: #6bceee;
  color: #176983;
  background: #f7fbfd;
}

.single-download .post-navigation .nav-subtitle,
.single-download .post-navigation .nav-title {
  display: block;
}

.single-download .post-navigation .nav-subtitle {
  margin-bottom: 2px;
  color: #738092;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.single-download .post-navigation .nav-title {
  overflow: hidden;
  font-size: .96rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-download .post-navigation .nav-direction {
  flex: 0 0 auto;
  color: #ef8354;
  font-size: 1.35rem;
  line-height: 1;
}

.comments-area {
  margin-top: 34px;
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  margin: 0 0 20px;
  padding: 0;
  color: #202635;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-align: left;
  text-transform: none;
}

.comments-area .comments-title::before,
.comments-area .comments-title::after,
.comments-area .comment-reply-title::before,
.comments-area .comment-reply-title::after {
  display: none;
}

.comment-list,
.comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin: 14px 0 0 clamp(18px, 5vw, 54px);
}

.comment-list > li.comment {
  margin: 0 0 14px;
}

.comment-list .comment-body {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.comment-list .comment-avatar {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.comment-list .comment-avatar .avatar {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eef3f7;
  box-shadow: none;
}

.comment-list .comment-header {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
}

.comment-list .comment-author {
  position: static;
  grid-column: 1;
  grid-row: 1;
  color: #202635;
  font-size: .94rem;
  font-weight: 800;
}

.comment-list li.comment .comment-author::after {
  display: none;
}

.comment-list .comment-author a {
  color: inherit;
  text-decoration: none;
}

.comment-list .verified-owner {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #176983;
  background: #eaf8fc;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.comment-list .review-stars {
  grid-column: 2;
  grid-row: 1;
  color: #ef8354;
  font-size: 1rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.comment-list .comment-metadata {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 10px;
  color: #8290a1;
  font-size: .78rem;
}

.comment-list .comment-metadata > a,
.comment-list .comment-metadata .edit-link {
  position: static;
  color: inherit;
  text-decoration: none;
}

.comment-list .comment-content {
  grid-column: 2;
  grid-row: 2;
  margin-top: 8px;
  color: #384355;
}

.comment-list .comment-content p:last-child {
  margin-bottom: 0;
}

.comment-list .reply {
  position: static;
  grid-column: 2;
  grid-row: 3;
  margin-top: 8px;
}

.comment-list .reply a {
  padding: 0;
  border: 0;
  color: #176983;
  background: transparent;
  font-size: .78rem;
}

.comments-area #respond {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  background: #f7f9fc;
}

.comments-area .comment-form {
  padding: 0;
  background: transparent;
}

.comments-area .comment-form textarea,
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"] {
  width: 100%;
  border: 1px solid #cfd7e2;
  border-radius: 10px;
  background: #fff;
}

.downloads-suite-rating-field {
  margin: 0 0 18px;
}

.downloads-suite-rating-options {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 3px;
}

.downloads-suite-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.downloads-suite-rating-options label {
  margin: 0;
  color: #c7ced8;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.downloads-suite-rating-options label:hover,
.downloads-suite-rating-options label:hover ~ label,
.downloads-suite-rating-options input:checked ~ label {
  color: #ef8354;
}

.downloads-suite-review-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #667184;
}

.downloads-suite-review-summary__stars {
  color: #ef8354;
  font-size: 1.1rem;
  letter-spacing: .07em;
}

@media (max-width: 620px) {
  .single-download .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .single-download .post-navigation .nav-next {
    grid-column: 1;
  }

  .comment-list .comment-body {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .comment-list .comment-avatar .avatar {
    width: 42px;
    height: 42px;
  }

  .comment-list .comment-header {
    grid-template-columns: 1fr;
  }

  .comment-list .review-stars {
    grid-column: 1;
    grid-row: auto;
  }
}

.downloads-suite-member-gate {
  margin: 22px 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #dfe5ec;
  border-left: 4px solid #6bceee;
  border-radius: 12px;
  color: #384355;
  background: #f7fbfd;
}

.downloads-suite-member-gate > strong {
  color: #202635;
  font-size: 1.1rem;
}

.downloads-suite-membership__offer {
  padding: 10px 13px;
  border-left: 3px solid #6bceee;
  color: #176983;
  background: #fff;
}

.downloads-suite-membership__perks {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.downloads-suite-membership__perks li::before {
  content: "✓";
  margin-right: 9px;
  color: #176983;
  font-weight: 900;
}
