/*
Theme Name: Dr Mohan Pulle (Bricks Child)
Theme URI: https://drmohanvenkateshpulle.com
Description: Child theme for drmohanvenkateshpulle.com. Holds the self-hosted font, page fields/shortcodes and the CSS for editor content (articles, FAQs) that Bricks global classes can't reach. Design tokens live in Bricks (Global Variables, Color Palette, Theme Styles, Global Classes).
Author: GigaWebZone
Author URI: https://gigawebzone.com
Template: bricks
Version: 1.1.0
Text Domain: drmp
*/

/* ---------- Article content (Post Content element on condition, surgery, about, blog pages) ---------- */
.drmp-content { max-width: var(--prose-width); font-size: var(--fs-body); line-height: 1.7; color: var(--text); }
.drmp-content > * { margin-top: 0; margin-bottom: 1.8rem; }
.drmp-content h2 { font-size: clamp(2.4rem, 2rem + 1vw, 3rem); margin: 5.6rem 0 1.6rem; scroll-margin-top: 15rem; }
.drmp-content h3 { font-size: var(--fs-h3); margin: 3.2rem 0 1.2rem; scroll-margin-top: 15rem; }
.drmp-content h4 { margin: 2.4rem 0 .8rem; }
.drmp-content > :first-child { margin-top: 0; }
.drmp-content ul, .drmp-content ol { padding-left: 2.2rem; }
.drmp-content li { margin-bottom: .6rem; }
.drmp-content li::marker { color: var(--navy-700); }
.drmp-content strong { color: var(--navy-900); font-weight: 600; }
.drmp-content a { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.drmp-content a:hover { color: var(--navy-700); }
.drmp-content figure { margin: 3.2rem 0; }
.drmp-content img { border-radius: var(--radius-media); height: auto; max-width: 100%; }
.drmp-content figcaption { font-size: var(--fs-small); color: var(--text-muted); margin-top: .8rem; text-align: center; }
.drmp-content blockquote { margin: 3.2rem 0; padding: 2.4rem 2.8rem; background: var(--tint); border-radius: var(--radius-card); font-size: var(--fs-lead); color: var(--navy-900); }
.drmp-content table { width: 100%; border-collapse: collapse; font-size: 1.6rem; display: block; overflow-x: auto; }
.drmp-content th, .drmp-content td { border-bottom: 1px solid var(--line); padding: 1.2rem; text-align: left; }
.drmp-content th { color: var(--navy-900); font-weight: 600; background: var(--tint); }

/* FAQ: core "Details" blocks inside the content (one block per question) */
.drmp-content .wp-block-details { margin: 0; border-bottom: 1px solid var(--line); }
.drmp-content h2 + .wp-block-details, .drmp-content .wp-block-details:first-of-type { border-top: 1px solid var(--line); }
.drmp-content .wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; min-height: 6.4rem; padding: 1.2rem 0; font-size: 1.8rem; font-weight: 600; color: var(--navy-900); line-height: 1.4; }
.drmp-content .wp-block-details summary::-webkit-details-marker { display: none; }
.drmp-content .wp-block-details summary::after { content: '+'; flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 500; }
.drmp-content .wp-block-details[open] summary::after { content: '−'; background: var(--teal); }
.drmp-content .wp-block-details > :not(summary) { margin: 0 0 2rem; max-width: 68rem; font-size: 1.7rem; }

/* ---------- Shortcode output ---------- */
.drmp-eyebrow { margin: 0; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--navy-700); }
.drmp-summary { margin: 0; font-size: var(--fs-lead); line-height: 1.65; color: var(--text); max-width: 64rem; }

.facts-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 2.8rem; display: flex; flex-direction: column; gap: 1.6rem; }
.facts-card .facts-title { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700); }
.facts-card .fact { display: flex; flex-direction: column; gap: .4rem; }
.facts-card .fact + .fact { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.facts-card .fact-label { font-size: 1.4rem; color: var(--text-muted); }
.facts-card .fact-value { font-size: 1.6rem; font-weight: 600; color: var(--navy-900); line-height: 1.4; }
@media (max-width: 767px) { .facts-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; padding: 2rem; } .facts-card .facts-title { grid-column: 1 / -1; } .facts-card .fact + .fact { border-top: 0; padding-top: 0; } }

.video-facade { margin: 0; }
.video-facade__btn, .video-facade iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-media); overflow: hidden; background: var(--navy-700); cursor: pointer; }
.video-facade__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .85; transition: opacity .2s; }
.video-facade__btn:hover img { opacity: 1; }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 7.2rem; height: 7.2rem; border-radius: 50%; background: var(--teal); box-shadow: 0 8px 24px rgba(0,14,68,.3); }
.video-facade__play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 1.2rem 0 1.2rem 2rem; border-color: transparent transparent transparent var(--navy-900); }

.doctor-note { margin: 0; background: var(--navy-900); border-radius: var(--radius-media); padding: 4rem; display: flex; flex-direction: column; gap: 1.6rem; }
.doctor-note p { margin: 0; color: var(--white); font-size: clamp(1.8rem, 1.7rem + .4vw, 2.1rem); line-height: 1.5; font-weight: 500; }
.doctor-note cite { font-style: normal; color: var(--teal); font-weight: 600; font-size: 1.5rem; }
@media (max-width: 767px) { .doctor-note { padding: 2.8rem 2.4rem; } }

.drmp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); width: 100%; }
@media (max-width: 991px) { .drmp-related { grid-template-columns: minmax(0, 1fr); } }
.drmp-post-card { display: flex; flex-direction: column; gap: 1rem; padding: 2.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; transition: box-shadow .2s; }
.drmp-post-card:hover { box-shadow: var(--shadow-card); }
.drmp-post-card__cat { font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); }
.drmp-post-card__title { font-size: 2rem; font-weight: 600; line-height: 1.35; color: var(--navy-900); }
.drmp-post-card__meta { font-size: 1.5rem; color: var(--text-muted); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 1rem; }
.drmp-chip { display: inline-flex; align-items: center; min-height: 4.4rem; padding: 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy-900); text-decoration: none; font-size: 1.5rem; }
.drmp-chip:hover { border-color: var(--navy-700); }
.drmp-chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------- Bricks element tweaks ---------- */
.brxe-breadcrumbs { font-size: 1.4rem; color: var(--text-muted); }
.brxe-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.brxe-breadcrumbs a:hover { color: var(--navy-900); }
.brxe-breadcrumbs .item[aria-current="page"] { color: var(--navy-900); font-weight: 500; }
.brxe-post-toc .toc-list { list-style: none; padding: 0; margin: 0; }
.brxe-post-toc .toc-link { display: block; padding: .8rem 0 .8rem 1.6rem; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; font-size: 1.5rem; line-height: 1.4; }
.brxe-post-toc .toc-link:hover { color: var(--navy-900); border-color: var(--navy-700); }
.brxe-post-toc .toc-link.is-active-link { color: var(--navy-900); font-weight: 600; border-color: var(--teal); }
.brxe-post-toc .toc-list .toc-list { display: none; }
.brxe-pagination :is(a, span).page-numbers { min-width: 4.4rem; min-height: 4.4rem; border: 1px solid var(--line); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--navy-900); text-decoration: none; }
.brxe-pagination :is(a, span).page-numbers.current { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.drmp-video-heading { font-size: clamp(2.4rem, 2rem + 1vw, 3rem); margin: 5.6rem 0 2.4rem; }
.drmp-after-content { display: flex; flex-direction: column; gap: 4.8rem; max-width: var(--prose-width); margin-top: 4.8rem; width: 100%; }
.drmp-after-content:empty { display: none; }

/* Doctor's note: Bricks gives blockquote/cite their own font; keep Inter. */
.doctor-note, .doctor-note p, .doctor-note cite { font-family: "Inter", system-ui, sans-serif; letter-spacing: normal; text-transform: none; }

/* Labels and nav printed by shortcodes or plain classes (no Bricks global class CSS reaches them). */
.toc-title { font-size: 1.3rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 1.2rem; }
.profile-nav { display: flex; flex-direction: column; }
.profile-nav a { display: block; padding: 1rem 0 1rem 1.6rem; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; font-size: 1.5rem; }
.profile-nav a:hover { color: var(--navy-900); border-color: var(--navy-700); }
.profile-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; border-color: var(--teal); }
@media (max-width: 991px) {
  .profile-nav { flex-direction: row; flex-wrap: wrap; gap: .8rem; }
  .profile-nav a { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .8rem 1.6rem; }
  .profile-nav a[aria-current="page"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
}
.blog-cats { margin-top: 3.2rem; }

/* Hub pages: child page cards */
.drmp-children { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); width: 100%; }
@media (max-width: 991px) { .drmp-children { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .drmp-children { grid-template-columns: minmax(0, 1fr); } }
.drmp-child { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; transition: box-shadow .2s; }
.drmp-child:hover { box-shadow: var(--shadow-card); }
.drmp-child__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 0; background: var(--tint-2); }
.drmp-child__body { padding: 2.4rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.drmp-child__title { font-size: 2rem; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.drmp-child__text { font-size: 1.5rem; line-height: 1.55; color: var(--text); }
.drmp-child__more { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: 1.5rem; color: var(--navy-900); }

/* Core gallery inside article content (profile pages) */
.drmp-content .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 3.2rem 0; padding: 0; }
.drmp-content .wp-block-gallery .wp-block-image { margin: 0; position: relative; }
.drmp-content .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.drmp-content .wp-block-gallery figcaption { font-size: 1.3rem; text-align: left; margin-top: .6rem; }
@media (max-width: 767px) { .drmp-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.drmp-content .wp-block-image img { display: block; }

/* Home: video grid */
.drmp-yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); width: 100%; }
@media (max-width: 991px) { .drmp-yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .drmp-yt-grid { grid-template-columns: minmax(0, 1fr); } }
.drmp-yt { margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.drmp-yt .video-facade__btn, .drmp-yt iframe { border-radius: var(--radius-card); width: 100%; aspect-ratio: 16 / 9; border: 0; }
.drmp-yt .video-facade__play { width: 5.6rem; height: 5.6rem; }
.drmp-yt figcaption { font-weight: 600; color: var(--navy-900); font-size: 1.6rem; line-height: 1.4; }

/* Bricks form (contact page) */
.brxe-form { row-gap: 1.6rem; }
.brxe-form .form-group label { font-size: 1.5rem; font-weight: 600; color: var(--navy-900); }
.brxe-form input:not([type="checkbox"]):not([type="radio"]), .brxe-form select, .brxe-form textarea { min-height: 4.8rem; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.2rem 1.4rem; font-size: 1.6rem; background: var(--white); color: var(--navy-900); font-family: inherit; }
.brxe-form input:focus, .brxe-form select:focus, .brxe-form textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--navy-700); }
.brxe-form textarea { min-height: 12rem; }
.brxe-form .bricks-button { min-height: var(--tap-min); padding: 0 2.8rem; border-radius: var(--radius-pill); background: var(--teal); color: var(--navy-900); font-weight: 600; font-size: 1.6rem; }
.brxe-form .bricks-button:hover { background: var(--teal-hover); }
.brxe-form .form-group-note { font-size: 1.4rem; color: var(--text-muted); }

/* Buttons inside vertical stacks keep their natural width */
.brxe-block > .btn, .brxe-div > .btn, .hero-copy > .btn { align-self: flex-start; }
.brxe-block > .btn--block, .brxe-div > .btn--block, .book-card > .btn { align-self: stretch; }

/* Contact form: full-width controls */
.brxe-form .form-group input:not([type="checkbox"]):not([type="radio"]), .brxe-form .form-group select, .brxe-form .form-group textarea { width: 100%; }
.brxe-form .form-group label { text-transform: none; letter-spacing: 0; }

/* Gallery: override core block-library sizing and caption overlay */
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: 100% !important; margin: 0 !important; flex-direction: column; }
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image img { height: auto; }
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--text-muted); padding: .6rem 0 0; max-height: none; overflow: visible; text-shadow: none; font-size: 1.3rem; }
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before { display: none; }

/* Hub cards: text-only for a consistent grid */
.drmp-child__img { display: none; }
.drmp-child { border-top: 4px solid var(--teal); }

/* Doctor's note attribution: Bricks styles <cite> inside blockquotes; keep full-strength teal (12:1 on navy). */
blockquote.doctor-note cite { color: var(--teal); opacity: 1; }

/* Icons: CSS masks (inherit text colour). Replaces Font Awesome, which loaded ~270 KB of fonts for 8 icons.
   WhatsApp/Facebook/LinkedIn shapes from Bricks' bundled SVGs; the others are simple outline icons. */
.ico::before { content: ''; display: inline-block; flex: none; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.site-footer .footer-social .ico::before { width: 1.8rem; height: 1.8rem; }
.mobile-action-bar .ico::before { width: 2.2rem; height: 2.2rem; }
.header-actions .btn-icon.ico::before { width: 2rem; height: 2rem; }
.opd-card .ico-pin { color: var(--navy-900); font-size: 2.2rem; line-height: 1; margin-top: .2rem; width: auto; }
.ico-whatsapp { --ico: url("data:image/svg+xml,%3Csvg viewBox=%220 0 512 512%22 fill=%22black%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M260.062,32c-121.457,0 -219.928,97.701 -219.928,218.232c-1.42109e-14,41.23 11.532,79.79 31.559,112.687l-39.693,117.081l121.764,-38.682c31.508,17.285 67.745,27.146 106.298,27.146c121.473,0 219.938,-97.715 219.938,-218.232c0,-120.531 -98.465,-218.232 -219.938,-218.232Zm109.362,301.11c-5.174,12.827 -28.574,24.533 -38.899,25.072c-10.314,0.547 -10.608,7.994 -66.84,-16.434c-56.225,-24.434 -90.052,-83.844 -92.719,-87.67c-2.669,-3.812 -21.78,-31.047 -20.749,-58.455c1.038,-27.413 16.047,-40.346 21.404,-45.725c5.351,-5.387 11.486,-6.352 15.232,-6.413c4.428,-0.072 7.296,-0.132 10.573,-0.011c3.274,0.124 8.192,-0.685 12.45,10.639c4.256,11.323 14.443,39.153 15.746,41.989c1.302,2.839 2.108,6.126 0.102,9.771c-2.012,3.653 -3.042,5.935 -5.961,9.083c-2.935,3.148 -6.174,7.042 -8.792,9.449c-2.92,2.665 -5.97,5.572 -2.9,11.269c3.068,5.693 13.653,24.356 29.779,39.736c20.725,19.771 38.598,26.329 44.098,29.317c5.515,3.004 8.806,2.67 12.226,-0.929c3.404,-3.599 14.639,-15.746 18.596,-21.169c3.955,-5.438 7.661,-4.373 12.742,-2.329c5.078,2.052 32.157,16.556 37.673,19.551c5.51,2.989 9.193,4.529 10.51,6.9c1.317,2.38 0.901,13.531 -4.271,26.359Z%22%3E%3C/path%3E%3C/svg%3E"); }
.ico-facebook { --ico: url("data:image/svg+xml,%3Csvg viewBox=%220 0 512 512%22 fill=%22black%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M455.27,32h-398.54l-1.01757e-06,4.11262e-10c-13.6557,0.00551914 -24.7245,11.0743 -24.73,24.73v398.54l-5.44608e-07,-0.00145325c0.00471643,13.6557 11.0728,24.7251 24.7285,24.7315h199.271v-176h-53.55v-64h53.55v-51c0,-57.86 40.13,-89.36 91.82,-89.36c24.73,0 51.33,1.86 57.51,2.68v60.43h-41.18c-28.12,0 -33.48,13.3 -33.48,32.9v44.35h67l-8.75,64h-58.25v176h124.6l-1.14527e-06,4.62819e-10c13.6557,-0.00551794 24.7245,-11.0743 24.73,-24.73v-398.54l5.45583e-07,0.00145607c-0.00471487,-13.6557 -11.0728,-24.7251 -24.7285,-24.7315Z%22%3E%3C/path%3E%3C/svg%3E"); }
.ico-linkedin { --ico: url("data:image/svg+xml,%3Csvg viewBox=%220 0 512 512%22 fill=%22black%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M444.17,32h-373.89c-20.43,0 -38.28,14.7 -38.28,34.89v374.72c0,20.3 17.85,38.39 38.28,38.39h373.78c20.54,0 35.94,-18.21 35.94,-38.39v-374.72c0.12,-20.19 -15.4,-34.89 -35.83,-34.89Zm-273.3,373.43h-64.18v-199.55h64.18Zm-29.87,-229.89h-0.46c-20.54,0 -33.84,-15.29 -33.84,-34.43c0,-19.49 13.65,-34.42 34.65,-34.42c21,0 33.85,14.82 34.31,34.42c-0.01,19.14 -13.31,34.43 -34.66,34.43Zm264.43,229.89h-64.18v-109.11c0,-26.14 -9.34,-44 -32.56,-44c-17.74,0 -28.24,12 -32.91,23.69c-1.75,4.2 -2.22,9.92 -2.22,15.76v113.66h-64.18v-199.55h64.18v27.77c9.34,-13.3 23.93,-32.44 57.88,-32.44c42.13,0 74,27.77 74,87.64Z%22%3E%3C/path%3E%3C/svg%3E"); }
.ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ico-calendar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.ico-youtube { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4'/%3E%3Cpath d='M10 9.5v5l4.5-2.5z' fill='black'/%3E%3C/svg%3E"); }
.ico-instagram { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E"); }

/* Trustindex reviews widget: reserve its height so the late-loading widget doesn't shift the page (CLS),
   and give its "Read more" link readable contrast. */
.brxe-shortcode:has(> .ti-widget), .brxe-shortcode:has(> div > .ti-widget) { min-height: 28rem; }
@media (max-width: 767px) { .brxe-shortcode:has(> .ti-widget), .brxe-shortcode:has(> div > .ti-widget) { min-height: 46rem; } }
.ti-widget .ti-read-more-active, .ti-widget .ti-read-more span { color: #4A4F5C !important; }

/* Gallery fix: WordPress's cropped-gallery CSS gives images "flex: 1 0 0%; height: 100%", which collapses to 0 px
   inside our grid. Same selector strength as core (incl. :not(#individual-image)) to override it. */
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { display: flex; flex-direction: column; width: 100% !important; margin: 0 !important; }
.drmp-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img,
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { flex: none !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
.drmp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption { position: static !important; flex: none; background: none !important; color: var(--text-muted); padding: .6rem 0 0 !important; font-size: 1.3rem; text-shadow: none; max-height: none; }

/* Pages without a sidebar (Profile pages): use the full 1240px content width. */
.page-main--full { width: 100%; }
.page-main--full .drmp-content, .page-main--full .drmp-after-content { max-width: none; }
.page-main--full .drmp-content .wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .page-main--full .drmp-content .wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .page-main--full .drmp-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ico-award { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14 7 22l5-3 5 3-1.5-8'/%3E%3C/svg%3E"); }
.award-card__icon.ico::before { width: 2.4rem; height: 2.4rem; }

/* Profile pages: lead paragraph inside rich-text elements (global-class CSS isn't printed for plain HTML classes). */
.pf-lead { font-size: clamp(1.9rem, 1.7rem + .6vw, 2.4rem); line-height: 1.6; color: var(--navy-900); font-weight: 500; max-width: 96rem; margin: 0; }
.section--navy .pf-lead { color: var(--white); }

/* Phone fixes (mobile review) */
.brxe-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: .8rem; border: 0; padding: 0; margin: 0; list-style: none; }
h1.brxe-heading + p.lead { margin-top: 1.6rem; }
@media (max-width: 767px) {
  .brxe-form .form-group { width: 100% !important; }
  .brxe-pagination ul.page-numbers { gap: .6rem; }
  .brxe-pagination :is(a, span).page-numbers { min-width: 4rem; min-height: 4rem; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .4rem; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chips > * { flex: 0 0 auto; }
}

/* Home stats band: compact (client, 27 Oct) */
.brxe-section.section--navy:has(.stat-value) { padding-top: 5.6rem; padding-bottom: 5.6rem; }
.brxe-section:has(.stat-value) .stat-label { line-height: 1.45; }
@media (max-width: 767px) { .brxe-section.section--navy:has(.stat-value) { padding-top: 4rem; padding-bottom: 4rem; } }

/* Home hero heading on two lines at desktop widths (client, 27 Oct) */
@media (min-width: 992px) {
  .hero-copy h1 { font-size: clamp(4rem, 1.4rem + 2.7vw, 5.2rem); line-height: 1.1; }
  .brxe-section:has(.hero-copy) .grid-2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* Home hero: credentials as a highlighted list (client, 27 Oct) */
.home-hero .hero-copy { gap: 2rem; }
.home-hero .hero-copy .lead { margin: 0; max-width: 56rem; }
.hero-points { display: flex; flex-direction: column; gap: 1.2rem; width: 100%; max-width: 56rem; margin: .8rem 0 1.2rem; padding: 1.8rem 2rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-m, 1.2rem); box-shadow: 0 6px 20px rgba(0, 14, 68, .06); }
.hero-points .hero-point { position: relative; margin: 0; padding-left: 3.2rem; font-size: 1.55rem; line-height: 1.5; font-weight: 500; color: var(--navy-900); }
.hero-points .hero-point::before { content: ''; position: absolute; left: 0; top: .1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--teal); }
.hero-points .hero-point::after { content: ''; position: absolute; left: .75rem; top: .55rem; width: .6rem; height: 1.1rem; border: solid var(--navy-900); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 767px) { .hero-points { padding: 1.4rem 1.6rem; } .hero-points .hero-point { font-size: 1.45rem; } }
