/* ═══════════════════════════════════════════════════════════════
   CASABUX — Single post, GoMyReview-style layout
   Loaded only by single.php (single posts). Topbar, header and
   footer keep their styles from theme.css.
   Mirrors gomyreview.com (GeneratePress + its custom CSS):
   1270px container, 70 / 30 content / sidebar, Open Sans 17px.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Colours ──────────────────────────────────────────────────
   Active: Casabux navy.
   To match gomyreview.com exactly, replace the first block with
   the teal values in the comment below it.                       */
:root {
  --gmr-brand: #0F4C81;
  --gmr-brand-rgb: 15, 76, 129;
  --gmr-brand-2: #0B4374;
  --gmr-brand-dark: #0B3A63;
  --gmr-brand-light: #2F7CBA;
  --gmr-link: #0F4C81;
  --gmr-link-hover: #E0551F;
  --gmr-underline: #FF6B35;
  /* GoMyReview teal:
  --gmr-brand: #127a7c; --gmr-brand-rgb: 18, 122, 124; --gmr-brand-2: #0d7f6b;
  --gmr-brand-dark: #0e6264; --gmr-brand-light: #46B6B7; --gmr-link: #2a14cf;
  --gmr-link-hover: #10b98e; --gmr-underline: #2ed392; */

  --gmr-title: #2f4468;
  --gmr-text: #212121;
  --gmr-meta: #878787;
  --gmr-sidebar-link: #4e5b60;
  --gmr-hover: #35343a;
  --gmr-amazon: #EA580C;
  --gmr-amazon-hover: #C2410C;
  --gmr-shadow: rgba(23, 43, 99, 0.3);
  --gmr-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body.gmr-post-design { background: #fff; }

.gmr-post-design .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;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  border-radius: 10px;
}
::-webkit-scrollbar { width: 10px; background-color: #f5f5f5; }
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #fff;
  background-image: linear-gradient(to right, var(--gmr-brand) 0, var(--gmr-brand-2) 51%, var(--gmr-brand) 100%);
}

/* ─── Reading progress bar ──────────────────────────────────── */
.gmr-reading-meter {
  position: fixed; top: 0; left: 0; z-index: 1111;
  width: 100%; background-color: #f1f1f1; pointer-events: none;
}
.gmr-reading-progress { width: 100%; height: 6px; background: #ccc; }
.gmr-progress-bar { width: 0; height: 6px; background-color: var(--gmr-brand-light); transition: none; }

/* ─── Layout ────────────────────────────────────────────────── */
.gmr-site-content {
  display: flex;
  max-width: 1270px;
  margin: 0 auto;
  padding: 45px 50px 25px;
  background: #fff;
  font-family: var(--gmr-font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--gmr-text);
  -webkit-font-smoothing: auto;
}
.gmr-content-area { flex: 0 0 70%; width: 70%; min-width: 0; }
.gmr-main { margin-right: 50px; }
.gmr-sidebar { flex: 0 0 30%; width: 30%; min-width: 0; }
.gmr-article { margin: 0; }

/* ─── Featured image ────────────────────────────────────────── */
.gmr-featured-image { margin: 0 0 0.7em; text-align: center; line-height: 0; }
.gmr-featured-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  position: relative;
  top: -12px;
  border-radius: 25px;
  box-shadow: var(--gmr-shadow) 0 7px 28px;
  transition: top 0.5s;
}
.gmr-featured-image img:hover { top: -20px; }

/* ─── Breadcrumbs (Rank Math) ───────────────────────────────── */
.gmr-breadcrumbs {
  font-size: 0.85em;
  line-height: 1.5;
  margin: 0 0 1.5em;
  opacity: 0.85;
  overflow-wrap: anywhere;
  color: var(--gmr-text);
}
.gmr-breadcrumbs nav, .gmr-breadcrumbs p { margin: 0; }
.gmr-breadcrumbs a { color: var(--gmr-link); }
.gmr-breadcrumbs a:hover { color: var(--gmr-hover); }

/* ─── Title + meta ──────────────────────────────────────────── */
.gmr-entry-header { margin: 0; }
.gmr-entry-title {
  margin: 0;
  font-family: inherit;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gmr-title);
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
.gmr-entry-meta { margin-top: 0.5em; font-size: 85%; line-height: 1.5; color: var(--gmr-meta); }
.gmr-entry-meta a { color: var(--gmr-title); }
.gmr-entry-meta a:hover { color: var(--gmr-hover); }
.gmr-entry-meta .author-name { margin: 0; font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; }

/* ─── Article content ───────────────────────────────────────── */
.gmr-entry-content { margin-top: 0.7em; overflow-wrap: break-word; }
.gmr-entry-content::after { content: ""; display: table; clear: both; }
.gmr-entry-content p { margin: 0 0 1.5em; }
.gmr-entry-content > p:last-child { margin-bottom: 0; }

.gmr-entry-content h2,
.gmr-entry-content h3,
.gmr-entry-content h4,
.gmr-entry-content h5,
.gmr-entry-content h6 {
  margin: 1em 0 0.5em;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}
.gmr-entry-content h2 { font-size: 25px; }
.gmr-entry-content h3 { font-size: 21px; font-weight: 700; }
.gmr-entry-content h4 { font-size: 17px; }
.gmr-entry-content h5 { font-size: 15px; }
.gmr-entry-content h6 { font-size: 13px; }

.gmr-entry-content ul,
.gmr-entry-content ol { margin: 0 0 1.5em 3em; padding: 0; }
.gmr-entry-content ul { list-style: disc; }
.gmr-entry-content ol { list-style: decimal; }
.gmr-entry-content li > ul,
.gmr-entry-content li > ol { margin-bottom: 0; margin-left: 1.5em; }
.gmr-entry-content ul li { margin: 0.4em 0; }
.gmr-entry-content ul > li::marker { color: var(--gmr-brand); }

.gmr-entry-content strong,
.gmr-entry-content b { font-weight: bolder; }
.gmr-entry-content em,
.gmr-entry-content i { font-style: italic; }

.gmr-entry-content img { display: inline; max-width: 100%; height: auto; }
.gmr-entry-content img.emoji {
  display: inline !important; width: 1em !important; height: 1em !important;
  margin: 0 0.07em !important; vertical-align: -0.1em !important;
  border: none !important; box-shadow: none !important; background: none !important; padding: 0 !important;
}
.gmr-entry-content figure { margin: 0 0 1.5em; }
.gmr-entry-content figure img { transition: 0.5s; }
.gmr-entry-content figure img:hover { transform: scale(1.1); }
.gmr-entry-content figcaption { font-size: 85%; text-align: center; margin-top: 0.5em; }
.gmr-entry-content .alignleft { float: left; margin-right: 1.5em; }
.gmr-entry-content .alignright { float: right; margin-left: 1.5em; }
.gmr-entry-content .aligncenter { clear: both; display: block; margin: 0 auto; }
.gmr-entry-content iframe,
.gmr-entry-content embed,
.gmr-entry-content object,
.gmr-entry-content video { max-width: 100%; }

.gmr-entry-content blockquote {
  position: relative;
  margin: 0 0 1.5em;
  padding: 15px;
  background: #dcdcdc54;
  border-left: 5px solid var(--gmr-brand-light);
  font-size: 18px;
  font-style: inherit;
}
.gmr-entry-content blockquote p:last-child { margin: 0; }

.gmr-entry-content hr { height: 1px; margin: 40px 0; border: 0; background-color: rgba(0, 0, 0, 0.1); }
.gmr-entry-content pre {
  max-width: 100%; margin: 0 0 1.5em; padding: 20px; overflow: auto;
  background: rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit; line-height: normal;
}
.gmr-entry-content code,
.gmr-entry-content kbd { font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; }

/* Links: bold, with the animated two-line underline */
.gmr-entry-content a { color: var(--gmr-link); }
.gmr-entry-content a:not(.button):not(.wp-block-button__link):not(.gb-button):not(.mg-buy-btn):not([style*="background"]) {
  text-decoration: none;
  background-image:
    linear-gradient(transparent 2px, var(--gmr-underline) 2px, var(--gmr-underline) 4px, transparent 4px),
    linear-gradient(transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px);
  background-size: 0 6px, 100% 6px;
  background-position: 0 bottom, 0 bottom;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease-in-out, color 0.1s ease-in-out;
  padding-bottom: 4px;
  font-weight: 700;
}
.gmr-entry-content a:hover:not(.button):not(.wp-block-button__link):not(.gb-button):not(.mg-buy-btn):not([style*="background"]) {
  color: var(--gmr-link-hover);
  background-size: 100% 6px;
}

/* Amazon links (Casabux auto-buttons) in GoMyReview's "View on Amazon" style */
.gmr-entry-content a.mg-buy-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--gmr-amazon);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.gmr-entry-content a.mg-buy-btn:hover { background: var(--gmr-amazon-hover); color: #fff !important; }
.gmr-entry-content a.mg-buy-btn u,
.gmr-entry-content a.mg-buy-btn strong { text-decoration: none; font-weight: inherit; color: inherit; }

/* Tables */
.gmr-entry-content .tableWrapper,
.gmr-entry-content .gmr-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gmr-entry-content table {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-width: 1px 0 0 1px;
}
.gmr-entry-content th,
.gmr-entry-content td {
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-width: 0 1px 1px 0;
}
.gmr-entry-content th { font-weight: 700; }

/* ─── Related articles ──────────────────────────────────────── */
.gmr-related {
  margin: 32px 0 8px;
  padding: 20px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.gmr-related-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #0f172a; }
.gmr-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
  margin: 0; padding: 0; list-style: none;
}
.gmr-related li { margin: 0; padding: 0; list-style: none; }
.gmr-related a { color: var(--gmr-brand); font-weight: 600; text-decoration: none; line-height: 1.45; }

/* ─── Entry footer: categories, tags, post navigation ───────── */
.gmr-footer-meta { margin-top: 0.7em; font-size: 85%; line-height: 1.5; color: var(--gmr-meta); }
.gmr-footer-meta a { color: var(--gmr-title); }
.gmr-footer-meta a:hover { color: var(--gmr-hover); }
.gmr-cat-links,
.gmr-tags-links { display: block; }
.gmr-post-navigation { display: block; }
.gmr-nav-previous,
.gmr-nav-next { display: block; }
.gmr-icon { display: inline-flex; align-self: center; margin-right: 0.6em; opacity: 0.7; }
.gmr-icon svg { position: relative; top: 0.125em; width: 1em; height: 1em; fill: currentColor; }

/* ─── Share buttons ─────────────────────────────────────────── */
.gmr-share { margin: 30px 0; font-size: 0; }
.gmr-share-label { padding-right: 10px; font-size: 16px; font-weight: 700; color: var(--gmr-text); }
.gmr-share-btn { display: inline; padding: 7px 20px; font-size: 17px; line-height: 1.5; fill: #fff; }
.gmr-share-btn svg { display: inline-block; position: relative; top: 0.15em; width: 18px; height: 18px; }
.gmr-share-btn:first-of-type { border-radius: 100px 0 0 100px; }
.gmr-share-btn:last-of-type { border-radius: 0 100px 100px 0; }

.gmr-float-share {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 9999;
  transform: translateY(-50%);
}
.gmr-float-btn {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 30px;
  padding: 14px 10px;
  font-size: 12px;
  fill: #fff;
}
.gmr-float-btn svg { display: block; width: 18px; height: 18px; }
.gmr-float-btn:first-of-type { border-top-right-radius: 10px; }
.gmr-float-btn:last-of-type { border-bottom-right-radius: 10px; }

.gmr-social-facebook { background-color: #3b5998; }
.gmr-social-facebook:hover { background-color: rgba(59, 89, 152, 0.8); }
.gmr-social-twitter { background-color: #1da1f2; }
.gmr-social-twitter:hover { background-color: rgba(29, 161, 242, 0.8); }
.gmr-social-pinterest { background-color: #bd081c; }
.gmr-social-pinterest:hover { background-color: rgba(189, 8, 28, 0.8); }
.gmr-social-linkedin { background-color: #0077b5; }
.gmr-social-linkedin:hover { background-color: rgba(0, 119, 181, 0.8); }
.gmr-social-whatsapp { background-color: #25d366; }
.gmr-social-whatsapp:hover { background-color: rgba(37, 211, 102, 0.8); }
.gmr-social-reddit { background-color: #ff5700; }
.gmr-social-reddit:hover { background-color: rgba(255, 87, 0, 0.8); }

/* ─── Author box ────────────────────────────────────────────── */
.gmr-author-box {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  width: 100%;
  margin: 42px 0 34px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(var(--gmr-brand-rgb), 0.08), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.gmr-author-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gmr-brand), var(--gmr-brand-2));
}
.gmr-author-avatar { margin: 0; }
.gmr-author-avatar a { display: block; width: 120px; height: 120px; border-radius: 50%; }
.gmr-author-avatar img {
  display: block;
  width: 120px; height: 120px;
  min-width: 120px; max-width: 120px;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  background: #f1f5f9;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(var(--gmr-brand-rgb), 0.12);
}
.gmr-author-info { min-width: 0; }
.gmr-author-label {
  display: inline-block;
  margin: 0 0 7px;
  padding: 5px 10px;
  background: rgba(var(--gmr-brand-rgb), 0.09);
  color: var(--gmr-brand-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.gmr-author-title {
  margin: 0 0 10px;
  padding: 0;
  font-family: inherit;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.gmr-author-title a { color: inherit; font: inherit; text-decoration: none; }
.gmr-author-title a:hover { color: var(--gmr-brand); }
.gmr-author-summary { max-width: 760px; margin: 0 0 18px; color: #475569; font-size: 16px; line-height: 1.7; }
.gmr-author-summary p { margin: 0 0 10px; color: inherit; font-size: inherit; line-height: inherit; }
.gmr-author-summary p:last-child { margin-bottom: 0; }
.gmr-author-links { margin: 0; }
.gmr-author-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 17px;
  background: var(--gmr-brand);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  border: 1px solid var(--gmr-brand);
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(var(--gmr-brand-rgb), 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gmr-author-links a:hover {
  background: var(--gmr-brand-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--gmr-brand-rgb), 0.27);
  transform: translateY(-2px);
}
.gmr-author-links svg { flex: 0 0 auto; transition: transform 0.2s ease; }
.gmr-author-links a:hover svg { transform: translateX(3px); }

/* ─── Comments ──────────────────────────────────────────────── */
.gmr-comments { margin-top: 1.5em; }
.gmr-comments .comments-title {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--gmr-title);
  text-transform: none;
}
.gmr-comments ol.comment-list { margin: 0 0 1.5em; padding: 0; list-style: none; }
.gmr-comments .comment,
.gmr-comments .comment-list .children { margin: 0; padding: 0; list-style: none; }
.gmr-comments .comment-body { margin: 0; padding: 30px 0; background: none; border: 0; border-radius: 0; }
.gmr-comments .comment-list > .comment:first-child > .comment-body { padding-top: 0; }
.gmr-comments .comment-meta { margin: 0; font-size: inherit; color: inherit; }
.gmr-comments .comment-meta .avatar {
  display: block; float: left;
  width: 50px; height: 50px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
}
.gmr-comments .comment-author-info { display: inline-block; vertical-align: middle; }
.gmr-comments .comment-author { margin: 0; color: inherit; font-weight: inherit; }
.gmr-comments .comment-author cite { font-style: normal; font-weight: 700; }
.gmr-comments .comment-author a { color: inherit; }
.gmr-comments .comment-metadata { margin: 0; font-size: 85%; line-height: 1.5; color: var(--gmr-meta); }
.gmr-comments .comment-metadata a { color: var(--gmr-title); }
.gmr-comments .comment-awaiting-moderation { clear: both; margin: 0.5em 0 0; font-size: 85%; font-style: italic; }
.gmr-comments .comment-content {
  margin-top: 1.5em;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: inherit;
  line-height: 1.5;
  color: inherit;
}
.gmr-comments .comment-content p { margin: 0 0 1.5em; }
.gmr-comments .comment-content p:last-child { margin-bottom: 0; }
.gmr-comments .comment-content a { color: var(--gmr-link); word-wrap: break-word; }
.gmr-comments .reply { display: block; margin-top: 1em; font-size: 85%; }
.gmr-comments .comment-reply-link {
  color: var(--gmr-link);
  font-size: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.gmr-comments .comment .children { padding-left: 30px; margin-top: -30px; border-left: 1px solid rgba(0, 0, 0, 0.05); }
.gmr-comments .depth-1.parent > .children { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.gmr-comments .pingback .comment-body,
.gmr-comments .trackback .comment-body { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.gmr-comments .pingback .comment-body a,
.gmr-comments .trackback .comment-body a { color: var(--gmr-link); }
.gmr-comments .edit-link { font-size: 13px; }

.gmr-comments .comment-respond { margin: 0; }
.gmr-comments .comment-reply-title {
  margin: 0 0 20px;
  padding: 10px 10px 10px 25px;
  background-image: linear-gradient(to right, var(--gmr-brand) 0, var(--gmr-brand-2) 51%, var(--gmr-brand) 100%);
  border-radius: 10px;
  box-shadow: var(--gmr-shadow) 0 7px 28px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
}
.gmr-comments #cancel-comment-reply-link { padding-left: 10px; font-size: 15px; font-weight: 400; color: #fff; }
.gmr-comments .comment-form { margin: 0; }
.gmr-comments .logged-in-as,
.gmr-comments .comment-notes { margin: 0 0 1.5em; font-size: inherit; color: inherit; }
.gmr-comments .logged-in-as a,
.gmr-comments .comment-notes a { color: var(--gmr-link); }
.gmr-comments .comment-form label {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
.gmr-comments .comment-form input[type="text"],
.gmr-comments .comment-form input[type="email"],
.gmr-comments .comment-form input[type="url"],
.gmr-comments .comment-form textarea {
  width: auto;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 10px 15px;
  background: #fafafa;
  color: var(--gmr-text);
  border: 1px solid var(--gmr-text);
  border-radius: 0;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  outline: 0;
  box-sizing: border-box;
}
.gmr-comments .comment-form #author,
.gmr-comments .comment-form #email { display: block; }
.gmr-comments .comment-form textarea { display: block; width: 100%; margin: 0; resize: vertical; }
.gmr-comments .comment-form input[type="text"]:focus,
.gmr-comments .comment-form input[type="email"]:focus,
.gmr-comments .comment-form textarea:focus { background: #fff; color: var(--gmr-meta); border-color: var(--gmr-meta); }
.gmr-comments .comment-form-comment { margin: 0 0 10px; }
.gmr-comments .comment-form-cookies-consent { display: flex; align-items: center; margin: 0 0 10px; }
.gmr-comments .comment-form-cookies-consent input { margin: 0 0.5em 0 0; }
.gmr-comments .form-submit { margin: 0; }
.gmr-comments .comment-form .submit {
  margin: 0;
  padding: 10px 20px;
  background: var(--gmr-brand);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: button;
}
.gmr-comments .comment-form .submit:hover,
.gmr-comments .comment-form .submit:focus { background: var(--gmr-brand-dark); color: #fff; }
.gmr-comments .no-comments { margin: 0 0 1.5em; }

/* ─── Sidebar ───────────────────────────────────────────────── */
.gmr-inside-sidebar { height: 100%; }
.gmr-widget {
  margin: 0 0 34px;
  padding: 40px 25px;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--gmr-shadow) 0 6px 18px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--gmr-text);
}
.gmr-widget:last-child { margin-bottom: 0; }
.gmr-widget-title {
  margin: 0 0 30px;
  padding: 10px;
  background-image: linear-gradient(to right, var(--gmr-brand) 0, var(--gmr-brand-2) 51%, var(--gmr-brand) 100%);
  border-radius: 10px;
  box-shadow: var(--gmr-shadow) 0 7px 28px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
}
.gmr-widget ul { margin: 0; padding: 0; list-style: none; }
.gmr-widget li { margin: 0 0 0.5em; list-style: none; }
.gmr-widget a { color: var(--gmr-sidebar-link); }
.gmr-widget a:hover { color: var(--gmr-hover); }

/* Search */
.gmr-search-label { display: inline; font-size: 17px; font-weight: 400; color: var(--gmr-text); }
.gmr-search-row { display: flex; flex-wrap: nowrap; max-width: 100%; }
.gmr-search-input {
  flex-grow: 1;
  min-width: 3em;
  margin: 0;
  padding: 5px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cdd6d1;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--gmr-text);
  -webkit-appearance: none;
  appearance: none;
}
.gmr-search-input:focus { outline: 0; }
.gmr-search-btn {
  margin-left: 10px;
  padding: 8px 20px;
  background-image: linear-gradient(to right, var(--gmr-brand) 0, var(--gmr-brand-2) 51%, var(--gmr-brand) 100%);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--gmr-shadow) 0 7px 28px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  cursor: pointer;
  word-break: normal;
}

/* Categories */
.gmr-widget-categories li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6em;
  margin: 0 0 0.5em;
}
.gmr-widget-categories li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gmr-brand);
  transform: translateY(-2px);
}
.gmr-widget-categories li > a { flex: 1 1 0; min-width: 0; }
.gmr-widget-categories ul.children { flex: 0 0 100%; margin: 0.5em 0 0 1em; }

/* Recent posts with thumbnails */
.gmr-widget-recent li { margin: 0 0 1.5em; overflow: hidden; }
.gmr-widget-recent li:last-child { margin: 0; }
.gmr-widget-recent img {
  display: inline;
  float: left;
  width: 75px;
  height: 75px;
  margin: 0.3em 0.75em 0.75em 0;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 769px) {
  .gmr-inside-sidebar > .gmr-widget:last-child { position: sticky; top: 80px; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gmr-float-share { display: none; }
}
@media (max-width: 768px) {
  .gmr-site-content { display: block; padding: 30px; }
  .gmr-content-area,
  .gmr-sidebar { width: 100%; }
  .gmr-main { margin-right: 0; }
  .gmr-sidebar { margin-top: 30px; }
  .gmr-entry-title { font-size: 28px; }
  .gmr-share-label { display: none; }
  .gmr-widget-categories { display: none; }
  .gmr-comments .comment-form #author,
  .gmr-comments .comment-form #email { width: 100%; }
}
@media (max-width: 600px) {
  .gmr-share-btn { display: inline-block; padding: 6px 17px; font-size: 17px; }
  .gmr-share { margin: 30px 0; }
  .gmr-author-box {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0 28px;
    padding: 26px 20px;
    text-align: center;
    border-radius: 15px;
  }
  .gmr-author-avatar { justify-self: center; }
  .gmr-author-avatar a,
  .gmr-author-avatar img { width: 96px; height: 96px; min-width: 96px; max-width: 96px; }
  .gmr-author-title { font-size: 21px; }
  .gmr-author-summary { font-size: 15px; line-height: 1.65; }
}
