/*
Theme Name: RINMS Classic
Description: Standalone custom theme for Royal Institute of Nursing and Medical Sciences, Durgapur. Full design freedom, no parent-theme constraints.
Version: 1.0.0
Author: RINMS
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*{box-sizing:border-box;}
:root{
  --rc-primary:#154D8B;
  --rc-primary-light:#2F8FE0;
  --rc-primary-dark:#0f3661;
  --rc-accent:#E4232B;
  --rc-ink:#14171F;
  --rc-body:#3a3f4a;
  --rc-surface:#F6F8FC;
  --rc-white:#FFFFFF;
  --rc-radius:10px;
}

/* ---------- base ---------- */
html{scroll-behavior:smooth;}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--rc-ink);line-height:1.65;background:#fff;overflow-x:hidden;}
h1,h2,h3,h4{font-family:Poppins,Arial,sans-serif;font-weight:700;line-height:1.2;margin:0 0 16px;}
img{max-width:100%;height:auto;}
a{color:inherit;}

/* ---------- shared layout utilities ---------- */
.r-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}
.r-sec{padding:64px 0;}
@media(max-width:640px){.r-sec{padding:40px 0;}}
.r-eyebrow{display:inline-block;background:rgba(228,35,43,.1);color:var(--rc-accent);font-weight:700;font-size:13px;letter-spacing:.05em;text-transform:uppercase;padding:6px 16px;border-radius:6px;margin-bottom:16px;}
.r-grid{display:grid;gap:24px;}
.r-grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));}
.r-grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.r-grid-4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.r-card{background:var(--rc-white);border:1px solid #eef1f6;border-radius:var(--rc-radius);box-shadow:0 2px 10px rgba(21,77,139,.06);padding:32px 26px;transition:box-shadow .25s ease,transform .25s ease;position:relative;overflow:hidden;}
.r-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--rc-primary);}
.r-card:hover{box-shadow:0 10px 26px rgba(21,77,139,.14);transform:translateY(-3px);}
.r-card h3{font-size:19px;margin:0 0 10px;}
.r-icon{width:60px;height:60px;border-radius:14px;background:var(--rc-primary);display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:20px;box-shadow:0 6px 16px rgba(21,77,139,.25);}
.r-icon i{color:#fff;font-size:24px;}

/* buttons */
.r-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 26px;border-radius:6px;font-weight:700;font-size:15px;min-height:44px;text-decoration:none;transition:background-color .15s ease,box-shadow .15s ease;}
.r-btn-primary{background:var(--rc-primary);color:#fff;}
.r-btn-primary:hover{background:var(--rc-primary-dark);}
.r-btn-accent{background:var(--rc-accent);color:#fff;}
.r-btn-accent:hover{background:#c11d24;}
.r-btn-outline{background:#fff;color:var(--rc-primary);border:2px solid var(--rc-primary);}
.r-btn-outline:hover{background:var(--rc-surface);}
.r-btn-outline-white{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.7);}
.r-btn-outline-white:hover{background:rgba(255,255,255,.1);}

/* chips */
.r-chip{display:inline-block;background:#fff;border:1px solid var(--rc-primary);color:var(--rc-primary);font-weight:700;font-size:14px;padding:9px 18px;border-radius:6px;margin:6px;}

/* checklists */
.r-check-list{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.r-check-list li{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.08);border-radius:var(--rc-radius);padding:16px 18px;}
.r-check-list .r-tick{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#fff;color:var(--rc-primary);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:14px;}
.r-plain-list{margin:0;padding-left:0;list-style:none;display:grid;gap:14px;}
/* Block + absolute tick (not flex): with flex, any <strong> inside an item
   becomes its own column and the sentence splits into two narrow stacks. */
.r-plain-list li{display:block;position:relative;padding-left:36px;}
.r-plain-list .r-tick2{position:absolute;left:0;top:1px;flex:0 0 24px;height:24px;width:24px;border-radius:50%;background:var(--rc-primary);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;}

/* course cards */
.r-course-card{border-radius:var(--rc-radius);overflow:hidden;background:#fff;border:1px solid #eef1f6;box-shadow:0 2px 10px rgba(21,77,139,.06);}
.r-course-head{background:var(--rc-primary);color:#fff;padding:26px 24px;}
.r-course-body{padding:24px;}
.r-course-stat{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef1f6;font-size:15px;}
.r-course-stat:last-of-type{border-bottom:none;}

/* fee tables — every <table> on the site is made a horizontally-scrollable
   block at the table element itself (no wrapper class needed on any page's
   raw post_content). Without this, body{overflow-x:hidden} above silently
   clips wide fee-structure tables on mobile instead of letting them scroll,
   cutting off semester columns entirely. */
.r-fee-table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--rc-radius);overflow:hidden;border:1px solid #eef1f6;font-size:14px;}
.r-fee-table th,.r-fee-table td{padding:12px 14px;text-align:center;border-bottom:1px solid #eef1f6;}
.r-fee-table th{background:var(--rc-primary);color:#fff;font-family:Poppins,Arial,sans-serif;}
.r-fee-table tr:last-child td{font-weight:700;border-bottom:none;}
table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;min-width:0!important;max-width:100%;}
/* The fee tables carry an inline min-width (560–820px) so their semester
   columns stay readable. That min-width must NOT apply to the scroll
   container itself or the table pushes the whole page sideways on a phone —
   it belongs on the inner thead/tbody, which scroll inside the table box. */
table thead,table tbody{display:table;width:max-content;min-width:100%;}

/* FAQ accordion */
details.r-faq{background:#fff;border:1px solid #eef1f6;border-radius:var(--rc-radius);margin-bottom:14px;padding:0;overflow:hidden;}
details.r-faq summary{cursor:pointer;padding:20px 24px;font-family:Poppins,Arial,sans-serif;font-weight:700;font-size:16px;color:var(--rc-ink);list-style:none;}
details.r-faq summary::-webkit-details-marker{display:none;}
details.r-faq summary span.r-faq-ico{float:right;color:var(--rc-primary);font-weight:700;}
details.r-faq p{margin:0;padding:0 24px 22px;color:var(--rc-body);font-size:15px;}
.r-phone-row a{color:inherit;}

/* ---------- utility topbar ---------- */
.r-topbar{background:var(--rc-primary-dark);color:#dce8f9;font-size:13px;}
.r-topbar-inner{max-width:1280px;margin:0 auto;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.r-topbar-left{display:flex;gap:20px;flex-wrap:wrap;}
.r-topbar-left a{color:#dce8f9;text-decoration:none;display:inline-flex;align-items:center;gap:6px;}
.r-topbar-left a:hover{color:#fff;}
.r-topbar-right{display:flex;align-items:center;gap:10px;}
.r-topbar-right a{color:#dce8f9;width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .2s ease,color .2s ease;}
.r-topbar-right a:hover{background:#fff;color:var(--rc-primary-dark);}
@media(max-width:640px){
  .r-topbar{font-size:12px;}
  .r-topbar-inner{padding:6px 16px;}
  .r-topbar-left a.r-topbar-email{display:none;}
}
@media(max-width:480px){
  .r-topbar-left a:not(:first-child){display:none;}
}

/* ---------- site header ---------- */
.r-site-header{background:#fff;border-bottom:1px solid #eef1f6;position:sticky;top:0;z-index:999;}
.r-header-inner{max-width:1280px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.r-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--rc-ink);}
.r-brand img{height:48px;width:auto;display:block;}
.r-brand span{font-family:Poppins,Arial,sans-serif;font-weight:700;font-size:15px;line-height:1.2;max-width:220px;}
.r-nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.r-nav a{color:var(--rc-ink);text-decoration:none;font-weight:600;font-size:14.5px;position:relative;display:inline-flex;align-items:center;gap:5px;}
.r-nav a:hover{color:var(--rc-primary);}
.r-nav .r-has-drop{position:relative;}
.r-nav .r-drop{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #eef1f6;border-radius:8px;box-shadow:0 8px 20px rgba(21,77,139,.1);padding:10px;min-width:200px;z-index:20;}
.r-nav .r-has-drop:hover .r-drop{display:block;}
.r-nav .r-drop a{display:block;padding:9px 12px;border-radius:6px;font-weight:500;}
.r-nav .r-drop a:hover{background:var(--rc-surface);}
.r-header-cta{display:inline-flex;align-items:center;gap:8px;background:var(--rc-accent);color:#fff !important;font-weight:700;font-size:14px;padding:10px 20px;border-radius:6px;white-space:nowrap;}
.r-header-cta:hover{background:#c11d24;}
.r-nav-toggle{display:none;background:none;border:none;font-size:22px;color:var(--rc-primary);cursor:pointer;}

@media(max-width:900px){
  .r-nav{display:none;width:100%;order:3;flex-direction:column;align-items:stretch;gap:0;background:#fff;padding-top:8px;border-top:1px solid #eef1f6;margin-top:12px;}
  /* Cap the open menu so a long nav can never fill the whole phone screen. */
  .r-nav.r-nav-open{display:flex;max-height:70vh;overflow-y:auto;-webkit-overflow-scrolling:touch;}
  /* 44px minimum touch target — the desktop inline links are only 24px tall. */
  .r-nav > a,.r-nav .r-has-drop > a{display:flex;align-items:center;width:100%;min-height:46px;padding:11px 4px;font-size:15.5px;border-bottom:1px solid #f2f5f9;}
  .r-nav .r-drop{position:static;box-shadow:none;display:block;padding:0 0 6px 14px;min-width:0;border:0;}
  .r-nav .r-has-drop:hover .r-drop{display:block;}
  .r-nav .r-drop a{display:flex;align-items:center;min-height:42px;padding:9px 12px;font-size:15px;}
  .r-nav-toggle{display:block;padding:6px 10px;min-height:44px;min-width:44px;}
  .r-brand span{max-width:170px;font-size:13.5px;}
  .r-header-cta{min-height:44px;}
}
@media(max-width:420px){
  .r-header-inner{padding:12px 16px;gap:12px;}
  .r-header-cta span{display:none;}
  .r-header-cta{padding:10px 14px;}
}

/* ---------- site footer ---------- */
.r-site-footer{background:var(--rc-primary);color:#dce8f9;}
.r-footer-top{padding:56px 0 32px;}
.r-footer-grid{display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));}
.r-footer-grid h4{color:#fff;font-size:16px;margin:0 0 16px;}
.r-footer-grid a{color:#dce8f9;text-decoration:none;display:flex;align-items:flex-start;gap:8px;margin-bottom:12px;font-size:14.5px;line-height:1.5;}
.r-footer-grid a:hover{color:#fff;}
.r-footer-grid a i{margin-top:3px;color:#8fb3e0;}
.r-footer-brand img{height:44px;margin-bottom:12px;background:#fff;border-radius:6px;padding:4px;}
.r-footer-brand p{color:#c3d5f0;font-size:14px;margin:0 0 14px;}
.r-social{display:flex;gap:10px;}
.r-social a{width:36px;height:36px;border-radius:6px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;margin-bottom:0;font-size:15px;transition:background .2s ease;}
.r-social a:hover{background:var(--rc-accent);}
.r-footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:18px 0;font-size:13.5px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#c3d5f0;}
.r-footer-bottom a{color:#c3d5f0;}

/* ---------- blog / archive ---------- */
.r-blog-layout{max-width:1200px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:start;}
.r-blog-main{padding:56px 0;min-width:0;}
.r-blog-sidebar{position:sticky;top:96px;padding:56px 0 0;}
.r-sidebar-ad{display:block;border-radius:16px;overflow:hidden;border:1px solid #eef1f6;box-shadow:0 8px 24px rgba(21,77,139,.08);transition:box-shadow .2s ease,transform .2s ease;}
.r-sidebar-ad:hover{box-shadow:0 12px 28px rgba(21,77,139,.16);transform:translateY(-2px);}
.r-sidebar-ad img{width:100%;height:auto;display:block;}
@media(max-width:900px){
  .r-blog-layout{grid-template-columns:1fr;}
  .r-blog-sidebar{position:static;max-width:320px;margin:0 auto;padding-top:0;}
}
.r-post-list{display:grid;gap:28px;}
.r-post-card{background:#fff;border:1px solid #eef1f6;border-radius:var(--rc-radius);padding:28px;transition:box-shadow .2s ease;}
.r-post-card:hover{box-shadow:0 6px 18px rgba(21,77,139,.1);}
.r-post-card h2{margin:0 0 10px;font-size:22px;}
.r-post-card h2 a{color:var(--rc-ink);text-decoration:none;}
.r-post-card h2 a:hover{color:var(--rc-primary);}
.r-post-meta{color:#8a93a3;font-size:13.5px;margin-bottom:10px;}
.r-post-excerpt{color:var(--rc-body);font-size:15.5px;}
.r-pagination{display:flex;gap:10px;justify-content:center;padding:24px 0 0;flex-wrap:wrap;}
.r-pagination a,.r-pagination span{padding:10px 16px;border-radius:6px;background:#fff;border:1px solid #eef1f6;text-decoration:none;color:var(--rc-ink);font-weight:600;font-size:14px;}
.r-pagination .current{background:var(--rc-primary);color:#fff;border-color:var(--rc-primary);}

.r-single-wrap{max-width:820px;margin:0 auto;padding:56px 20px;}
.r-single-wrap h1{font-size:clamp(28px,4vw,40px);margin-bottom:12px;}
.r-single-meta{color:#8a93a3;font-size:14px;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid #eef1f6;}
.r-single-content{font-size:17px;color:var(--rc-body);}
.r-single-content h2{color:var(--rc-ink);font-size:26px;margin-top:36px;}
.r-single-content h3{color:var(--rc-ink);font-size:21px;margin-top:28px;}
.r-single-content ul,.r-single-content ol{padding-left:22px;}
.r-single-content a{color:var(--rc-primary);text-decoration:underline;}
.r-single-content img{border-radius:var(--rc-radius);margin:16px 0;}
@media(max-width:640px){
  .r-single-wrap{padding:32px 16px;}
  .r-single-content{font-size:16px;}
}

/* ---------- contact page grid ---------- */
.rinms-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;}
@media(max-width:860px){.rinms-contact-grid{grid-template-columns:1fr;}}

/* ---------- Contact Form 7 styling ---------- */
.wpcf7-form p{margin:0 0 18px;}
.wpcf7-form label{display:block;font-family:Poppins,Arial,sans-serif;font-weight:600;font-size:14px;color:var(--rc-ink);margin-bottom:8px;}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea{
  width:100%;
  padding:13px 16px;
  border:1px solid #d7dee8;
  border-radius:6px;
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  color:var(--rc-ink);
  background:#fff;
  transition:border-color .15s ease;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus{outline:none;border-color:var(--rc-primary);}
.wpcf7-form textarea{min-height:120px;resize:vertical;}
.wpcf7-form input[type="submit"]{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;
  background:var(--rc-accent);
  color:#fff;
  font-family:Poppins,Arial,sans-serif;
  font-weight:700;
  font-size:15px;
  padding:14px 28px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  transition:background-color .15s ease;
}
.wpcf7-form input[type="submit"]:hover{background:#c11d24;}
.wpcf7-form input[type="submit"]:disabled{opacity:.6;cursor:not-allowed;}
.wpcf7-not-valid-tip{color:var(--rc-accent);font-size:13px;margin-top:4px;}
.wpcf7-response-output{border-radius:8px;padding:12px 16px;font-size:14px;margin-top:16px;}
div.wpcf7-mail-sent-ok{border-color:#1e9e5a;color:#146b3d;background:#e9f9f0;}
div.wpcf7-validation-errors,div.wpcf7-mail-sent-ng{border-color:var(--rc-accent);color:#a3151b;background:#fdecec;}
.wpcf7-spinner{margin-left:10px;}

/* ---------- video embeds ---------- */
.r-video-grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.r-video-card{background:#fff;border:1px solid #eef1f6;border-radius:var(--rc-radius);overflow:hidden;}
.r-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#0d1930;}
.r-video-frame iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;}
.r-video-caption{padding:18px 22px;}
.r-video-caption h3{margin:0 0 4px;font-size:17px;}
.r-video-caption p{margin:0;color:var(--rc-body);font-size:14px;}

/* ---------- logo strips (accreditation logos + admission scholarship cards) ---------- */
.r-accred-strip{display:flex;flex-wrap:wrap;gap:22px;justify-content:center;align-items:stretch;}
.r-accred-card{background:#fff;border:1px solid #eef1f6;border-radius:8px;padding:14px 24px;display:flex;align-items:center;justify-content:center;height:96px;min-width:150px;}
.r-accred-card img{max-height:68px;max-width:180px;width:auto;height:auto;object-fit:contain;display:block;}
@media(max-width:480px){
  .r-accred-card{height:84px;min-width:130px;}
  .r-accred-card img{max-height:56px;max-width:150px;}
}

/* Scholarship link-cards on the Admission page: the outer element MUST be a
   <div>, not an <a> — WordPress's wpautop filter (runs on all classic
   post_content) only protects recognised block-level tags like <div>/<p>
   from having stray <p></p> spliced in between siblings; <a> isn't on that
   list, so a grid of sibling <a> cards gets silently interleaved with empty
   <p> elements on save, wrecking the grid's row heights. The clickable
   layer is an absolutely-positioned <a> covering the div instead. */
.r-link-card{position:relative;background:#fff;border:1px solid #eef1f6;border-radius:12px;padding:24px;transition:box-shadow .2s ease,transform .2s ease;}
.r-link-card:hover{box-shadow:0 8px 22px rgba(21,77,139,.12);transform:translateY(-2px);}
.r-link-card-hit{position:absolute;inset:0;z-index:1;}

/* ---------- two-column content sections with a supporting photo ---------- */
.r-split{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;}
.r-split.r-split-rev{grid-template-columns:.9fr 1.1fr;}
.r-split.r-split-rev .r-split-media{order:-1;}
@media(max-width:860px){
  .r-split,.r-split.r-split-rev{grid-template-columns:1fr;}
  .r-split.r-split-rev .r-split-media{order:0;}
}
.r-split-media{border-radius:16px;overflow:hidden;border:1px solid #eef1f6;box-shadow:0 8px 24px rgba(21,77,139,.08);}
.r-split-media img{width:100%;height:100%;object-fit:cover;display:block;}
@media(max-width:860px){
  .r-split-media{height:260px;}
}
/* Ad creatives carry their own text, so they must never be cropped: show the
   whole poster at its natural ratio, capped so a 4:5 portrait stays sane. */
.r-split-media.r-split-ad{height:auto;max-width:440px;margin:0 auto;background:#0d1930;}
.r-split-media.r-split-ad img{height:auto;object-fit:contain;}
@media(max-width:860px){
  .r-split-media.r-split-ad{height:auto;max-width:360px;}
}

/* ---------- fixed-ratio contextual photo card (course pages etc.) ----------
   A single supporting photo dropped into a text section must never be
   allowed to render at its native aspect ratio full-width — a portrait
   1080x1350 upload stretched to a 1000px-wide container renders ~1250px
   tall and dwarfs the page. Always crop to a fixed height with object-fit. */
.r-course-photo{max-width:520px;margin:32px auto;border-radius:16px;overflow:hidden;border:1px solid #eef1f6;box-shadow:0 8px 24px rgba(21,77,139,.08);}
.r-course-photo img{width:100%;height:360px;object-fit:cover;display:block;}
.r-course-photo-cap{text-align:center;color:#6b7280;font-size:13px;margin-top:10px;}
/* !important is deliberate: individual photos carry an inline height (e.g.
   480px for a portrait, 360px for a 16:9 seminar shot) to match their own
   aspect ratio on desktop, and an inline style would otherwise beat this
   breakpoint and leave a half-screen-tall photo on a phone. */
@media(max-width:640px){
  .r-course-photo{margin:24px auto;}
  .r-course-photo img{height:300px!important;}
}
@media(max-width:480px){
  .r-course-photo img{height:230px!important;}
  .r-course-photo-cap{font-size:12px;padding:0 16px;}
}

/* ---------- legal pages (Privacy Policy etc.) ---------- */
.r-legal-hero{background:linear-gradient(135deg,#154D8B,#0f3661);padding:56px 20px;text-align:center;}
.r-legal-hero h1{font-family:Poppins,sans-serif;font-weight:700;color:#fff;font-size:clamp(28px,5vw,40px);margin:0 0 10px;}
.r-legal-hero p{color:#dce8f9;font-family:Inter,sans-serif;font-size:15px;margin:0;}
.r-legal{max-width:840px;margin:0 auto;padding:48px 20px 64px;font-family:Inter,sans-serif;color:#333;line-height:1.75;font-size:15.5px;}
.r-legal h2{font-family:Poppins,sans-serif;font-weight:700;color:#14171F;font-size:22px;margin:40px 0 14px;padding-top:24px;border-top:1px solid #eef1f6;}
.r-legal h2:first-child{border-top:none;margin-top:0;padding-top:0;}
.r-legal h3{font-family:Poppins,sans-serif;font-weight:700;color:#154D8B;font-size:17px;margin:26px 0 10px;}
.r-legal h4{font-family:Poppins,sans-serif;font-weight:700;color:#14171F;font-size:15px;margin:20px 0 8px;}
.r-legal p{margin:0 0 14px;}
.r-legal ul{margin:0 0 16px;padding-left:0;list-style:none;}
.r-legal ul li{background:#F6F8FC;border-radius:10px;padding:12px 16px;margin-bottom:8px;font-size:14.5px;}
.r-legal a{color:#154D8B;font-weight:600;text-decoration:underline;}
.r-legal strong{color:#14171F;}

/* ---------- mobile safety net ---------- */
@media(max-width:480px){
  h1{font-size:clamp(24px,7vw,32px)!important;}
  .r-wrap{padding:0 16px;}
}

/* ---------- mobile touch targets ----------
   Small visual elements keep their look but get a ~44px tappable area. */
@media(max-width:860px){
  .r-footer-grid a{padding:11px 0;margin-bottom:0;}
  .r-footer-bottom a{display:inline-block;padding:11px 0;}
  .r-social a{width:44px;height:44px;}
  .r-topbar-left a{padding:10px 0;}
  .r-topbar-right a{width:36px;height:36px;font-size:14px;}
  .r-topbar-inner{padding-top:2px;padding-bottom:2px;}
  .r-legal a,.r-contact-info a{display:inline-block;padding:8px 0;}
}
/* Slider dots: 10px dot drawn by ::before inside a 28px hit area.
   body-prefixed to beat the inline slider CSS printed after this file. */
body .r-hdots button,body .r-sdots button{width:28px;height:28px;border:0;background:transparent;padding:0;position:relative;border-radius:50%;}
body .r-hdots button::before,body .r-sdots button::before{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #fff;background:rgba(255,255,255,.35);}
body .r-hdots button.active,body .r-sdots button.active{background:transparent;}
body .r-hdots button.active::before{background:#fff;}
body .r-sdots button::before{border-color:#154D8B;background:#fff;}
body .r-sdots button.active::before{background:#154D8B;}
body .r-hdots,body .r-sdots{gap:2px;}
body .r-hdots{bottom:6px;}

/* Inline list-style:none is stripped by the WP content sanitizer, so card-style
   grid/flex lists built in page content lose their bullets here instead. */
.r-page ul[style*="display:grid"],.r-page ul[style*="display:flex"]{list-style:none;}

/* Blog tables are 2-3 text columns: let cells wrap to fit the screen instead
   of the max-content sizing used for the wide numeric fee tables. */
.single-post table thead,.single-post table tbody{width:100%;}
.single-post table{border:1px solid #e3e8f0;border-radius:10px;margin:18px 0;}
.single-post table th,.single-post table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #eef1f6;font-size:15px;line-height:1.5;}
.single-post table thead th,.single-post table thead td,.single-post table:not(:has(thead)) tr:first-child > *{background:#F6F8FC;font-weight:700;}
.single-post table tr:last-child td{border-bottom:none;}
