/* =====================================================================
   HARDWARE ACADEMY — PORTAL SKIN FOR MEMBERONI COURSE PAGES
   Blueprint edition, matching dashboard / Video Library / Resources.
   Loaded on course, module, and lesson pages, and on the member pages
   listed in inc/portal-skin.php (account, login, My Content, help), when
   the skin is on. Memberoni's own stylesheet is not loaded on those
   pages, so everything they need is defined here.
===================================================================== */

:root{
  --orange:      #F97211;
  --orange-hi:   #FF8324;
  --orange-card: #FA8434;
  --bp-base:     #0D2748;
  --bp-line:     rgba(174,214,255,.05);
  --bp-line-maj: rgba(174,214,255,.065);
  --bp-frame:    rgba(174,214,255,.28);
  --bp-ink:      #DCEBFF;
  --bp-note:     #9CC4F0;
  --bp-dim:      #FFB27A;
  --navy-950:    #0d1f35;
  --navy-900:    #102741;
  --cyan:        #6FC6EF;
  --paper:       #f5f8fb;
  --ink:         #1d2b3a;
  --slate:       #5c6f84;
  --line:        #e3e9f0;
  --line-2:      #d5dee7;
  --mono:        "IBM Plex Mono","DejaVu Sans Mono",monospace;
  --cond:        "Barlow Condensed","Open Sans",sans-serif;
  --hwa-arrow:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10 h13 M11 4.5 L16.5 10 L11 15.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

body.hwa-portal *,
body.hwa-portal *::before,
body.hwa-portal *::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body.hwa-portal{
  margin:0; padding:0;
  font-family:"Open Sans", Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body.hwa-portal a{ color:inherit; text-decoration:none; }
body.hwa-portal img{ max-width:100%; height:auto; }

body.hwa-portal :focus-visible{
  outline:3px solid rgba(249,114,17,.6);
  outline-offset:3px;
  border-radius:6px;
}

/* Memberoni utility classes still used in its markup */
body.hwa-portal .cb{ clear:both; }
body.hwa-portal .oh{ overflow:hidden; }
body.hwa-portal .fl{ float:left; }
body.hwa-portal .fr{ float:right; }
body.hwa-portal .ta-c{ text-align:center; }
body.hwa-portal .ta-r{ text-align:right; }
body.hwa-portal .mt20{ margin-top:20px; }
body.hwa-portal .mt40{ margin-top:40px; }
body.hwa-portal .mb20{ margin-bottom:20px; }
body.hwa-portal .mb40{ margin-bottom:40px; }
body.hwa-portal .clearfix::after{ content:""; display:table; clear:both; }

/* The copyright line printed by the tracking include is replaced by the
   footer below, so hide the duplicate. The tracking scripts next to it
   are untouched. */
body.hwa-portal > p[align="center"]{ display:none; }

/* ---------- Top navigation ---------- */

.hwa-topbar{ background:#fff; border-bottom:1px solid var(--line); position:relative; z-index:30; }

.hwa-nav-inner{
  max-width:1120px; margin:0 auto; padding:0 24px; height:64px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}

.hwa-brand{ display:flex; align-items:center; flex-shrink:0; }
.hwa-topbar .hwa-brand img{ display:block; height:36px; width:auto; max-width:none; }

.hwa-nav-links{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }

.hwa-nav-links a{
  display:block; padding:10px 11px; font-size:14.5px; font-weight:600; line-height:1.3;
  color:#33465c; border-radius:8px; white-space:nowrap;
  transition:color .15s ease, background-color .15s ease;
}
.hwa-nav-links a:hover{ color:var(--orange); background:#fff4ec; }
.hwa-nav-links a.active{ color:var(--orange); position:relative; }
.hwa-nav-links a.active::after{
  content:""; position:absolute; left:11px; right:11px; bottom:4px;
  height:3px; border-radius:3px; background:var(--orange);
}

.hwa-nav-toggle{
  display:none; background:none; border:1px solid var(--line);
  border-radius:8px; padding:9px 10px; cursor:pointer;
}
.hwa-nav-toggle .bar{ display:block; width:20px; height:2px; background:var(--navy-900); border-radius:2px; }
.hwa-nav-toggle .bar + .bar{ margin-top:5px; }

/* ---------- Breadcrumbs (if enabled in Memberoni options) ---------- */

body.hwa-portal .memberoni_breadcrumbs{ max-width:1120px; margin:0 auto; padding:18px 24px 0; }
body.hwa-portal .memberoni_breadcrumbs .inner{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; color:var(--slate); text-align:center;
}
body.hwa-portal .memberoni_breadcrumbs a{ color:var(--slate); }
body.hwa-portal .memberoni_breadcrumbs a:hover{ color:var(--orange); }

/* ---------- Page title ---------- */

body.hwa-portal header.page_title{ background:none; }

body.hwa-portal header.page_title > .inner{
  max-width:920px; margin:0 auto; padding:48px 24px 6px; text-align:center;
}

/* Kicker above the title: COURSE / MODULE / LESSON / VIDEO */
body.hwa-portal header.page_title > .inner::before{
  content:"Course";
  font-size:12px; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--slate);
  display:inline-block;
  padding:0 38px;
  background:
    linear-gradient(90deg,transparent,#c3d2e0) left center / 26px 2px no-repeat,
    linear-gradient(90deg,#c3d2e0,transparent) right center / 26px 2px no-repeat;
}
body.hwa-type-lesson header.page_title > .inner::before{ content:"Lesson"; }
body.hwa-type-module header.page_title > .inner::before{ content:"Module"; }
body.hwa-type-standalone header.page_title > .inner::before{ content:"Video"; }

body.hwa-portal header.page_title h1{
  margin:14px 0 0;
  font-family:var(--cond);
  font-weight:700; font-size:clamp(30px,4.4vw,44px); line-height:1.12;
  color:var(--orange);
  text-wrap:balance;
}

body.hwa-portal header.page_title .course_byline{
  margin:12px auto 0; max-width:720px;
  font-size:16px; line-height:1.55; color:var(--slate);
  text-wrap:pretty;
}
body.hwa-portal header.page_title .course_byline a{
  color:var(--slate); font-weight:600;
  border-bottom:1px solid #c3d2e0;
  transition:color .15s ease, border-color .15s ease;
}
body.hwa-portal header.page_title .course_byline a::before{ content:"\2190\00a0"; }
body.hwa-portal header.page_title .course_byline a:hover{ color:var(--orange); border-color:var(--orange); }

/* Completion percentage (if enabled in Memberoni options) */
body.hwa-portal .progress-circle{ margin-top:14px; display:inline-block; }
body.hwa-portal .progress-circle .left-half-clipper{ display:none; }
body.hwa-portal .progress-circle span{
  display:inline-block; font-family:var(--mono); font-size:11.5px; letter-spacing:.12em;
  color:var(--orange); border:1px solid rgba(249,114,17,.45); background:#fff4ec;
  border-radius:999px; padding:4px 12px;
}
body.hwa-portal .progress-circle span::after{ content:" COMPLETE"; }

/* ---------- Content layout ---------- */

body.hwa-portal #content{
  max-width:1120px; width:100%; margin:0 auto; padding:34px 24px 64px;
  overflow:visible;
}

body.hwa-portal #content_main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:36px;
  align-items:start;
}

/* Memberoni's float/column classes are handled by the grid */
body.hwa-portal #content_main > .lesson_content,
body.hwa-portal #content_main > #course_overview,
body.hwa-portal #content_main > .course_sidebar{
  float:none; width:auto; margin:0; min-width:0;
}

/* Sidebar on the left, if a course is set that way */
body.hwa-portal #content_main:has(> .fr) { grid-template-columns:350px minmax(0,1fr); }
body.hwa-portal #content_main > .fr{ grid-column:2; grid-row:1; }
body.hwa-portal #content_main:has(> .fr) > .course_sidebar{ grid-column:1; grid-row:1; }

/* Full-width layouts (sidebar below, or no sidebar) */
body.hwa-portal #content_main:has(> .col-full){ grid-template-columns:minmax(0,1fr); }

/* Standalone videos with nothing in the sidebar: Memberoni still prints an
   empty sidebar box. Hide it and let the video use the full width. */
body.hwa-portal #content_main > .course_sidebar:not(:has(> *)){ display:none; }
body.hwa-portal #content_main:not(:has(> .course_sidebar > *)){ grid-template-columns:minmax(0,1fr); }
body.hwa-portal #content_main:not(:has(> .course_sidebar > *)) > *{ grid-column:1; }

body.hwa-portal .course_banner{ margin:0 0 28px; }
body.hwa-portal .course_banner img{ display:block; width:100%; border-radius:14px; }

/* ---------- Blueprint sheet (video, featured image, lesson list) ---------- */

body.hwa-portal .lesson_video,
body.hwa-portal .course_featured_image,
body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads){
  position:relative;
  background-color:var(--bp-base);
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-line) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, var(--bp-line) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg,  var(--bp-line-maj) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(90deg, var(--bp-line-maj) 0 1px, transparent 1px 70px);
  border:1px solid rgba(126,178,228,.30);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(13,31,53,.16);
}
body.hwa-portal .lesson_video::before,
body.hwa-portal .course_featured_image::before,
body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads)::before{
  content:""; position:absolute; inset:10px;
  border:1px solid var(--bp-frame);
  border-radius:6px;
  pointer-events:none;
}

/* Video / featured image sit inside the drawing frame */
body.hwa-portal .lesson_video,
body.hwa-portal .course_featured_image{
  padding:22px;
  margin:0 0 26px;
  max-width:none;
}
body.hwa-portal .lesson_video iframe,
body.hwa-portal .lesson_video video{ display:block; max-width:100%; border:0; border-radius:4px; }
body.hwa-portal .lesson_video > iframe,
body.hwa-portal .lesson_video > div > iframe:only-child{ width:100%; height:auto; aspect-ratio:16/9; }
body.hwa-portal .lesson_video .fluid-width-video-wrapper{ border-radius:4px; overflow:hidden; }
body.hwa-portal .course_featured_image img{ display:block; width:100%; border-radius:4px; position:relative; }
body.hwa-portal .course_featured_image a{ display:block; }

/* ---------- Section headings in the main column ---------- */

body.hwa-portal #course_overview > div > h1,
body.hwa-portal .lesson_content > h1{
  display:flex; align-items:center; gap:14px;
  margin:6px 0 18px;
  font-family:var(--cond);
  font-weight:700; font-size:26px; letter-spacing:.05em; text-transform:uppercase; line-height:1.15;
  color:var(--navy-900);
}
body.hwa-portal #course_overview > div > h1::after,
body.hwa-portal .lesson_content > h1::after{
  content:""; flex:1; height:1px; background:var(--line-2);
}

/* ---------- Written content (overview text, lesson notes) ---------- */

body.hwa-portal #course_overview,
body.hwa-portal .lesson_content{
  font-size:16.5px; line-height:1.7; color:var(--ink);
}

body.hwa-portal #course_overview p,
body.hwa-portal .lesson_content p{ margin:0 0 1em; }

body.hwa-portal #course_overview h2,
body.hwa-portal .lesson_content h2,
body.hwa-portal #course_overview h3,
body.hwa-portal .lesson_content h3,
body.hwa-portal #course_overview h4,
body.hwa-portal .lesson_content h4{
  font-family:var(--cond); font-weight:700; color:var(--navy-900);
  line-height:1.2; margin:1.4em 0 .5em; letter-spacing:.02em;
}
body.hwa-portal #course_overview h2,
body.hwa-portal .lesson_content h2{ font-size:27px; }
body.hwa-portal #course_overview h3,
body.hwa-portal .lesson_content h3{ font-size:22px; }
body.hwa-portal #course_overview h4,
body.hwa-portal .lesson_content h4{ font-size:19px; }

body.hwa-portal #course_overview ul,
body.hwa-portal #course_overview ol,
body.hwa-portal .lesson_content ul,
body.hwa-portal .lesson_content ol{ margin:0 0 1em; padding-left:1.4em; }
body.hwa-portal #course_overview li,
body.hwa-portal .lesson_content li{ margin:.25em 0; }

body.hwa-portal #course_overview p a,
body.hwa-portal #course_overview li a,
body.hwa-portal .lesson_content p:not(.post_tools) a,
body.hwa-portal .lesson_content li a{
  color:var(--orange); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
}
body.hwa-portal #course_overview p a:hover,
body.hwa-portal .lesson_content p:not(.post_tools) a:hover,
body.hwa-portal #course_overview li a:hover,
body.hwa-portal .lesson_content li a:hover{ color:var(--orange-hi); }

body.hwa-portal .lesson_content blockquote,
body.hwa-portal #course_overview blockquote{
  margin:1.2em 0; padding:4px 0 4px 18px; border-left:3px solid var(--orange); color:var(--slate);
}

body.hwa-portal .lesson_content hr,
body.hwa-portal #course_overview hr{ border:0; height:1px; background:var(--line-2); margin:28px 0; }

body.hwa-portal .lesson_content table,
body.hwa-portal #course_overview table{ border-collapse:collapse; width:100%; margin:0 0 1em; font-size:15px; }
body.hwa-portal .lesson_content th,
body.hwa-portal .lesson_content td,
body.hwa-portal #course_overview th,
body.hwa-portal #course_overview td{ border:1px solid var(--line); padding:8px 10px; text-align:left; }

/* Memberoni [highlight] boxes */
body.hwa-portal .highlight{
  background:#fff4ec; border:1px solid #fbd9bf; border-left:4px solid var(--orange);
  border-radius:10px; padding:16px 20px; margin:0 0 1.2em; color:var(--ink);
}
body.hwa-portal .highlight_blue{ background:#eef5fc; border-color:#cfe0f1; border-left-color:var(--cyan); }
body.hwa-portal .highlight_whitepink{ background:#fff5f5; border-color:#f5d0d0; border-left-color:#e05a5a; }

/* ---------- Buttons ---------- */

body.hwa-portal .button,
body.hwa-portal a.button,
body.hwa-portal .bigbutton{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background:var(--orange); color:#fff;
  font-family:"Open Sans", Arial, sans-serif;
  font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.3;
  padding:13px 22px; border-radius:8px; border:1px solid var(--orange);
  text-decoration:none; cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.hwa-portal .button:hover,
body.hwa-portal a.button:hover{ background:var(--orange-hi); border-color:var(--orange-hi); color:#fff; }
body.hwa-portal .button::after,
body.hwa-portal nav.lesson_nav .previous_lesson::before{
  content:""; flex-shrink:0; width:14px; height:14px; background:currentColor;
  -webkit-mask:var(--hwa-arrow) center / contain no-repeat; mask:var(--hwa-arrow) center / contain no-repeat;
  transition:transform .18s ease;
}
body.hwa-portal .button:hover::after{ transform:translateX(4px); }

body.hwa-portal #course_overview .button{ margin-top:10px; }

/* ---------- Lesson tools (complete / bookmark / favorite) ---------- */

body.hwa-portal p.post_tools{
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px;
}

body.hwa-portal .lesson_tool{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px 8px 12px;
  background:#fff; color:#33465c;
  border:1px solid var(--line-2); border-radius:8px;
  font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  line-height:1.2; cursor:pointer; user-select:none;
  transition:color .15s ease, background-color .15s ease, border-color .15s ease;
}
body.hwa-portal .lesson_tool i{ font-size:15px; color:#9aabbd; transition:color .15s ease; }
body.hwa-portal .lesson_tool:hover{ color:var(--orange); border-color:var(--orange); }
body.hwa-portal .lesson_tool:hover i{ color:var(--orange); }

body.hwa-portal .lesson_tool::after{ font-family:var(--mono); }
body.hwa-portal .tool_complete::after{ content:"Mark complete"; }
body.hwa-portal .tool_bookmark::after{ content:"Bookmark"; }
body.hwa-portal .tool_fav::after{ content:"Favorite"; }
body.hwa-portal .tool_complete.post_tool_active::after{ content:"Completed"; }
body.hwa-portal .tool_bookmark.post_tool_active::after{ content:"Bookmarked"; }
body.hwa-portal .tool_fav.post_tool_active::after{ content:"Favorited"; }

body.hwa-portal .tool_complete.post_tool_active{ background:var(--orange); border-color:var(--orange); color:#fff; }
body.hwa-portal .tool_complete.post_tool_active i{ color:#fff; }
body.hwa-portal .tool_bookmark.post_tool_active,
body.hwa-portal .tool_fav.post_tool_active{ background:#fff4ec; border-color:var(--orange); color:var(--orange); }
body.hwa-portal .tool_bookmark.post_tool_active i,
body.hwa-portal .tool_fav.post_tool_active i{ color:var(--orange); }

/* While saving, Memberoni adds spinner classes to the button itself */
body.hwa-portal .lesson_tool.fa{ font-family:var(--mono); opacity:.55; }
body.hwa-portal .lesson_tool.fa::before{ content:none; }
body.hwa-portal .lesson_tool.fa-spin{ animation:none; }

/* Autoplay switch (if enabled) */
body.hwa-portal .autoplay{ display:flex; align-items:center; gap:10px; margin:0 0 14px; }
body.hwa-portal .autoplay span{ font-family:var(--mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--slate); }
body.hwa-portal .autoplay_toggle{
  width:38px; height:22px; border-radius:999px; background:var(--line-2); position:relative; display:inline-block;
}
body.hwa-portal .autoplay_toggle::after{
  content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff;
  transition:left .15s ease;
}
body.hwa-portal .autoplay_toggle.toggle_on{ background:var(--orange); }
body.hwa-portal .autoplay_toggle.toggle_on::after{ left:19px; }

/* ---------- Video jump links ---------- */

body.hwa-portal nav.jumplinks{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:18px 22px; margin:0 0 26px;
}
body.hwa-portal nav.jumplinks h3{
  margin:0 0 10px; font-family:var(--mono); font-size:11.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--slate);
}
body.hwa-portal .jumplink{
  padding:7px 8px; margin:0 -8px; border-radius:6px; cursor:pointer; font-size:15px; line-height:1.45;
  transition:background-color .15s ease;
}
body.hwa-portal .jumplink:hover{ background:#fff4ec; }
body.hwa-portal .jumplink strong{ font-family:var(--mono); font-weight:500; font-size:13px; color:var(--orange); }
body.hwa-portal .jumplink .jumpanchor{ color:#9aabbd; margin-left:4px; }

/* ---------- Downloads & course options ---------- */

/* Lesson downloads (main column) */
body.hwa-portal section.lesson_downloads:not(#course_lesson_box){
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:20px 22px 14px; margin:8px 0 26px;
  font-size:15px;
}

body.hwa-portal section.lesson_downloads h2,
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads h1,
body.hwa-portal .course_sidebar #course_lesson_box.lesson_downloads h1{
  margin:0 0 8px; padding-bottom:12px; border-bottom:1px solid var(--line);
  font-family:var(--mono); font-size:11.5px; font-weight:500; line-height:1.4;
  letter-spacing:.16em; text-transform:uppercase; color:var(--slate);
}

body.hwa-portal .download_links{ display:flex; flex-direction:column; }

body.hwa-portal .download_links a,
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list li a{
  display:flex; align-items:center; gap:12px;
  padding:10px 0; border-bottom:1px solid var(--line);
  color:var(--ink); font-weight:600; font-size:14.5px; line-height:1.4;
  transition:color .15s ease;
}
body.hwa-portal .download_links a:last-child,
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list li:last-child a{ border-bottom:0; }
body.hwa-portal .download_links a:hover,
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list li a:hover{ color:var(--orange); }

body.hwa-portal .download_type{
  flex-shrink:0; min-width:44px; text-align:center;
  font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--orange); background:#fff4ec; border:1px solid #fbd0ae; border-radius:5px;
  padding:3px 7px;
}

/* White cards in the sidebar: course downloads, course options, lesson downloads */
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads,
body.hwa-portal .course_sidebar #course_lesson_box.lesson_downloads{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:20px 22px 12px; margin-top:22px;
}
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list{
  list-style:none; margin:0; padding:0;
}
/* Course Options links are plain actions, not files */
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list li a:not(:has(.download_type)){
  font-family:var(--mono); font-weight:500; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:#33465c;
}
body.hwa-portal .course_sidebar #course_lesson_box.course_downloads ul.course_lesson_list li a:not(:has(.download_type)):hover{ color:var(--orange); }

/* ---------- Lesson list (blueprint sheet in the sidebar) ---------- */

body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads){
  padding:26px 24px 22px;
  color:var(--bp-ink);
}

body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads) > h1{
  position:relative;
  margin:0 0 12px; padding:0 2px 12px;
  border-bottom:1px dashed rgba(174,214,255,.25);
  font-family:var(--mono); font-size:11px; font-weight:500; line-height:1.4;
  letter-spacing:.16em; text-transform:uppercase; color:var(--bp-note);
}

body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list{
  list-style:none; margin:0; padding:0; position:relative;
}
body.hwa-portal #course_lesson_box ul.course_lesson_list li:empty{ display:none; }

body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads) ul.course_lesson_list li{
  margin:0; font-size:14.5px; line-height:1.4;
}

/* Lesson rows */
body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads) ul.course_lesson_list li > a,
body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads) ul.course_lesson_list li.active{
  display:flex; align-items:flex-start; gap:10px;
  padding:8px 10px; border-radius:6px;
  color:var(--bp-ink);
  transition:background-color .15s ease, color .15s ease;
}
body.hwa-portal .course_sidebar #course_lesson_box:not(.course_downloads):not(.lesson_downloads) ul.course_lesson_list li > a:hover{
  background:rgba(174,214,255,.08); color:#fff;
}

/* Current lesson */
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.active{
  background:rgba(249,114,17,.16);
  box-shadow:inset 3px 0 0 var(--orange);
  color:#fff; font-weight:600;
}

/* Completed lessons: dimmer text, cyan check pushed to the right */
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.lesson_complete > a{ color:rgba(220,235,255,.66); }
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.lesson_complete > a:hover{ color:#fff; }
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list i.fa-check-circle{
  float:none !important; color:var(--cyan) !important;
  margin-left:auto; padding-left:6px; font-size:15px; line-height:1.3;
}

/* Locked / coming-soon lessons */
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list i.fa-lock{ color:var(--bp-dim); font-size:13px; line-height:1.5; }
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.lesson_inactive > a{ opacity:.5; cursor:default; }
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.lesson_inactive i{ color:var(--bp-note); line-height:1.5; }

/* Modules (collapsible groups) */
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list > li.menu-item-has-children{
  border-top:1px solid rgba(174,214,255,.14);
  padding-top:4px; margin-top:4px;
}
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list > li.menu-item-has-children:first-child{ border-top:0; margin-top:0; }

body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.menu-item-has-children > a{
  cursor:pointer;
  font-family:var(--cond); font-weight:700; font-size:17px; letter-spacing:.04em; text-transform:uppercase;
  line-height:1.2; color:#fff; padding:10px 10px;
}
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.menu-item-has-children > a::after{
  content:"+"; margin-left:auto; padding-left:10px;
  font-family:var(--mono); font-weight:500; font-size:16px; line-height:1.1; color:var(--orange-card);
}
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.menu-item-has-children > a.expanded::after{ content:"\2212"; }
body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list li.current-menu-parent > a{ color:var(--orange-card); }

body.hwa-portal .course_sidebar #course_lesson_box ul.course_lesson_list ul.sub-menu{
  list-style:none; margin:0 0 8px 12px; padding:0 0 0 8px;
  border-left:1px dashed rgba(174,214,255,.25);
}

/* Other sidebar content (Memberoni sidebar text or widgets) */
body.hwa-portal .lesson_sidebar_content,
body.hwa-portal .course_sidebar .widget{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:18px 22px; margin-top:22px; font-size:15px; line-height:1.6;
}
body.hwa-portal .course_sidebar .widget h2,
body.hwa-portal .course_sidebar .widget h3,
body.hwa-portal .course_sidebar .widget .widget-title{
  margin:0 0 10px; font-family:var(--mono); font-size:11.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--slate);
}

/* ---------- Prev / next lesson ---------- */

body.hwa-portal nav.lesson_nav{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  margin:10px 0 0; padding-top:24px; border-top:1px solid var(--line-2);
  overflow:visible;
}
body.hwa-portal nav.lesson_nav .button{ float:none; }
body.hwa-portal nav.lesson_nav .previous_lesson{
  background:#fff; color:#33465c; border-color:var(--line-2);
}
body.hwa-portal nav.lesson_nav .previous_lesson::after{ content:none; }
body.hwa-portal nav.lesson_nav .previous_lesson::before{ transform:scaleX(-1); }
body.hwa-portal nav.lesson_nav .previous_lesson:hover{ background:#fff4ec; color:var(--orange); border-color:var(--orange); }
body.hwa-portal nav.lesson_nav .previous_lesson:hover::before{ transform:scaleX(-1) translateX(4px); }
body.hwa-portal nav.lesson_nav .next_lesson{ margin-left:auto; }

/* ---------- Locked content (prerequisite not done) ---------- */

body.hwa-portal .locked{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:28px 24px; margin:0 0 26px; text-align:center;
}
body.hwa-portal .locked > i{ font-size:28px; color:var(--orange); display:block; margin-bottom:10px; }
body.hwa-portal .locked a{ color:var(--orange); }

/* ---------- Module overview page ---------- */

body.hwa-portal #course_overview > div > ul.sub-menu{
  list-style:none; padding:0; margin:0;
  background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
}
body.hwa-portal #course_overview > div > ul.sub-menu li{ margin:0; border-bottom:1px solid var(--line); }
body.hwa-portal #course_overview > div > ul.sub-menu li:last-child{ border-bottom:0; }
body.hwa-portal #course_overview > div > ul.sub-menu a{
  display:block; padding:13px 20px; font-weight:600; color:var(--ink); text-decoration:none;
}
body.hwa-portal #course_overview > div > ul.sub-menu a:hover{ color:var(--orange); background:#fff4ec; }

/* ---------- Comments (if turned on) ---------- */

body.hwa-portal .commentlist{ list-style:none; padding:0; }
body.hwa-portal .comment-respond textarea,
body.hwa-portal .comment-respond input[type=text],
body.hwa-portal .comment-respond input[type=email]{
  width:100%; border:1px solid var(--line-2); border-radius:8px; padding:10px 12px; font:inherit;
}
body.hwa-portal .comment-respond input[type=submit]{
  background:var(--orange); color:#fff; border:0; border-radius:8px; padding:12px 20px;
  font-weight:700; letter-spacing:.1em; text-transform:uppercase; font-size:12.5px; cursor:pointer;
}

/* "Content not available" notice */
body.hwa-portal .highlight_blue.highlight.ta-c{ max-width:720px; margin:40px auto; }

/* ---------- Footer ---------- */

.hwa-footer{ margin-top:auto; background:var(--navy-950); color:#8fa3b8; }
.hwa-footer-inner{ max-width:1120px; margin:0 auto; padding:30px 24px 34px; text-align:center; }

.hwa-member-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 28px; list-style:none; margin:0; padding:0; }
.hwa-member-links a{ color:rgba(235,242,249,.88); font-size:14.5px; font-weight:600; transition:color .15s ease; }
.hwa-member-links a:hover{ color:var(--orange-hi); }

.hwa-footer-rule{ height:1px; background:rgba(126,178,228,.16); margin:22px auto 20px; max-width:520px; }

.hwa-copyright{ font-size:13px; line-height:1.7; margin:0; }
.hwa-copyright a{ color:#aebfd0; }
.hwa-copyright a:hover{ color:var(--orange-hi); }

/* ---------- Responsive ---------- */

@media (min-width: 1000px) and (max-width: 1119px){
  .hwa-nav-inner{ gap:12px; }
  .hwa-nav-links a{ padding:10px 6px; font-size:14px; }
  .hwa-nav-links a.active::after{ left:6px; right:6px; }
}

@media (max-width: 999px){
  .hwa-nav-links{
    display:none; position:absolute; top:64px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch;
    padding:10px 16px 16px; gap:2px;
    box-shadow:0 12px 24px rgba(13,31,53,.12); z-index:40;
  }
  .hwa-nav-links.open{ display:flex; }
  .hwa-nav-links a.active::after{ display:none; }
  .hwa-nav-toggle{ display:block; }
}

@media (max-width: 919px){
  body.hwa-portal #content_main,
  body.hwa-portal #content_main:has(> .fr){ grid-template-columns:minmax(0,1fr); gap:28px; }
  body.hwa-portal #content_main > .fr,
  body.hwa-portal #content_main:has(> .fr) > .course_sidebar{ grid-column:auto; grid-row:auto; }
}

@media (max-width: 720px){
  .hwa-topbar .hwa-brand img{ height:30px; }
  body.hwa-portal header.page_title > .inner{ padding-top:36px; }
  body.hwa-portal #content{ padding:26px 16px 48px; }
  .hwa-nav-inner{ padding:0 16px; }
  body.hwa-portal .lesson_video,
  body.hwa-portal .course_featured_image{ padding:14px; border-radius:10px; }
  body.hwa-portal .lesson_video::before,
  body.hwa-portal .course_featured_image::before{ inset:6px; }
  body.hwa-portal #course_overview > div > h1,
  body.hwa-portal .lesson_content > h1{ font-size:23px; }
  body.hwa-portal nav.lesson_nav .button{ flex:1 1 0; }
  body.hwa-portal .lesson_tool{ padding:8px 11px; }
}

@media (prefers-reduced-motion: reduce){
  body.hwa-portal *{ transition:none !important; }
}

/* =====================================================================
   MEMBER PAGES: ACCOUNT, LOGIN, MY CONTENT, HELP (added in skin 1.1.0)
   These are ordinary WordPress pages rendered by Memberoni's page
   templates, listed in hwa_portal_skin_pages() in inc/portal-skin.php.
   MemberPress and Gravity Forms keep their own stylesheets; the rules
   below restyle on top of them, so a few use !important to beat rules
   the plugins or the Customizer's Additional CSS already mark that way.
===================================================================== */

/* ---------- Kicker above the page title ---------- */

body.hwa-type-page header.page_title > .inner::before{ content:"Hardware Academy"; }
body.hwa-type-account header.page_title > .inner::before{ content:"Your Membership"; }
body.hwa-type-tracker header.page_title > .inner::before{ content:"Your Progress"; }
body.hwa-page-member-support header.page_title > .inner::before,
body.hwa-page-intro-videos header.page_title > .inner::before,
body.hwa-page-how-to-cancel header.page_title > .inner::before{ content:"Help"; }

/* ---------- Page layout ---------- */

/* Memberoni's page template floats a two-thirds column next to a sidebar
   that is empty on these pages. Stack them, and hide the sidebar when it
   has nothing in it. */
body.hwa-portal #content > .content_with_sidebar,
body.hwa-portal #content > .sidebar{ float:none; width:auto; min-width:0; }
body.hwa-portal #content > .sidebar:not(:has(> *)){ display:none; }
body.hwa-portal #content:has(> .sidebar > *){
  display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:36px; align-items:start;
}

/* Reading width for plain pages (help, intro videos, how to cancel) */
body.hwa-type-page #content{ max-width:880px; }

/* Thrive's editor flag div prints inside .entry */
body.hwa-portal .tcb_flag{ display:none; }

/* WordPress's screen-reader-only class (Memberoni's stylesheet used to define it) */
body.hwa-portal .screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0;
}

/* ---------- Written content on plain pages ---------- */

body.hwa-type-page .entry{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:34px 40px 36px;
  font-size:16.5px; line-height:1.7; color:var(--ink);
  overflow-wrap:anywhere;
}

body.hwa-type-page .entry p{ margin:0 0 1em; }
body.hwa-type-page .entry > :first-child{ margin-top:0; }
body.hwa-type-page .entry > :last-child{ margin-bottom:0; }

body.hwa-type-page .entry h2,
body.hwa-type-page .entry h3,
body.hwa-type-page .entry h4,
body.hwa-type-page .entry h5{
  font-family:var(--cond); font-weight:700; color:var(--navy-900);
  line-height:1.2; margin:1.6em 0 .5em; letter-spacing:.02em;
}
body.hwa-type-page .entry h2{ font-size:27px; }
body.hwa-type-page .entry h3{ font-size:23px; }
body.hwa-type-page .entry h4{ font-size:21px; }
body.hwa-type-page .entry h5{ font-size:18px; }
body.hwa-type-page .entry h4 strong{ font-weight:700; }

/* Section headings on the help page get a rule under them like the
   portal section heads */
body.hwa-type-page .entry h4{
  padding-bottom:8px; border-bottom:1px solid var(--line-2);
}

body.hwa-type-page .entry ul,
body.hwa-type-page .entry ol{ margin:0 0 1em; padding-left:1.4em; }
body.hwa-type-page .entry li{ margin:.25em 0; }

body.hwa-type-page .entry p a,
body.hwa-type-page .entry li a{
  color:var(--orange); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
}
body.hwa-type-page .entry p a:hover,
body.hwa-type-page .entry li a:hover{ color:var(--orange-hi); }

body.hwa-type-page .entry blockquote{
  margin:1.2em 0; padding:4px 0 4px 18px; border-left:3px solid var(--orange); color:var(--slate);
}
body.hwa-type-page .entry hr{ border:0; height:1px; background:var(--line-2); margin:28px 0; }

body.hwa-type-page .entry img{ border-radius:8px; }
body.hwa-type-page .entry iframe{ max-width:100%; }
body.hwa-type-page .entry .fluid-width-video-wrapper{ border-radius:8px; overflow:hidden; margin:0 0 1.2em; }

/* ---------- Account: tabs (Home / Subscriptions / Payments / Logout) ---------- */

body.hwa-portal #mepr-account-nav{ margin:0 0 26px; width:auto !important; }
body.hwa-portal #mepr-account-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
}
body.hwa-portal #mepr-account-nav li{ margin:0; padding:0; }
body.hwa-portal #mepr-account-nav li a{
  display:inline-block;
  font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:#33465c; background:#fff; border:1px solid var(--line-2); border-radius:8px;
  padding:10px 18px; line-height:1.3; text-decoration:none;
  transition:color .15s ease, background-color .15s ease, border-color .15s ease;
}
body.hwa-portal #mepr-account-nav li a:hover{ color:var(--orange); border-color:var(--orange); }
body.hwa-portal #mepr-account-nav li.mepr-active-nav-tab a{
  color:#fff; background:var(--orange); border-color:var(--orange); font-weight:500;
}
body.hwa-portal #mepr-account-nav li:not(.mepr-active-nav-tab) a#mepr-account-logout{ color:var(--slate); }
body.hwa-portal #mepr-account-nav li:not(.mepr-active-nav-tab) a#mepr-account-logout:hover{ color:var(--orange); }

/* ---------- Forms (MemberPress account, login, password) ---------- */

body.hwa-portal .mp_wrapper{ box-shadow:none !important; }

body.hwa-portal .mp_wrapper form.mepr-form{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:30px 32px 32px;
  max-width:820px; margin:0 auto;
}

/* Profile form: two columns for the short fields */
body.hwa-portal #mepr_account_form{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 22px; align-items:start;
}
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_email,
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_mepr-address-one,
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_mepr-address-two,
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_mepr_company_address,
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_mepr_display_name,
body.hwa-portal #mepr_account_form > .mp-form-row.mepr_mepr_phone_text_only,
body.hwa-portal #mepr_account_form > .mepr_spacer,
body.hwa-portal #mepr_account_form > input[type=submit],
body.hwa-portal #mepr_account_form > .mepr-loading-gif,
body.hwa-portal #mepr_account_form > .mepr-form-has-errors,
body.hwa-portal #mepr_account_form > .mepr_error,
body.hwa-portal #mepr_account_form > .mepr_updated{ grid-column:1 / -1; }
body.hwa-portal #mepr_account_form > input[type=hidden]{ display:none; }
body.hwa-portal #mepr_account_form > input[type=submit]{ justify-self:start; }
body.hwa-portal #mepr_account_form > .mepr_spacer{ height:2px; margin:6px 0 0; }

body.hwa-portal .mp_wrapper .mp-form-row{ margin:0 0 4px; width:100% !important; }
body.hwa-portal #mepr_account_form > .mp-form-row{ margin:0; }

body.hwa-portal .mp_wrapper .mp-form-label{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin:0 0 7px;
}
body.hwa-portal .mp_wrapper .mp-form-row label,
body.hwa-portal .mp_wrapper .mp-form-label label{
  display:block !important; width:auto !important;
  font-family:var(--mono); font-size:11.5px !important; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:var(--slate); line-height:1.4;
}
body.hwa-portal .mp_wrapper .mp-form-label .cc-error{
  font-size:12.5px; color:#c4351b; font-weight:600; line-height:1.4;
}

body.hwa-portal .mp_wrapper input[type=text],
body.hwa-portal .mp_wrapper input[type=email],
body.hwa-portal .mp_wrapper input[type=tel],
body.hwa-portal .mp_wrapper input[type=password],
body.hwa-portal .mp_wrapper input[type=url],
body.hwa-portal .mp_wrapper input[type=number],
body.hwa-portal .mp_wrapper input.mepr-form-input,
body.hwa-portal .mp_wrapper select,
body.hwa-portal .mp_wrapper textarea{
  display:block; width:100%; margin:0 !important;
  font-family:"Open Sans", Arial, sans-serif; font-size:15.5px; line-height:1.4; color:var(--ink);
  background:#fff; border:1px solid var(--line-2); border-radius:8px;
  padding:11px 13px; box-shadow:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.hwa-portal .mp_wrapper select{
  appearance:none; -webkit-appearance:none; padding-right:38px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235c6f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:16px;
}
body.hwa-portal .mp_wrapper textarea{ min-height:96px; resize:vertical; }
body.hwa-portal .mp_wrapper input:focus,
body.hwa-portal .mp_wrapper select:focus,
body.hwa-portal .mp_wrapper textarea:focus{
  outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,114,17,.18);
}
body.hwa-portal .mepr-form input.invalid{
  border:1px solid #c4351b !important; background-color:#fff5f3 !important;
}

/* Phone field (intl-tel-input) fills its row */
body.hwa-portal .mp_wrapper .iti{ width:100%; display:block; }
body.hwa-portal .mp_wrapper .iti input.mepr-tel-input{ padding-left:96px; }

/* Checkbox rows (remember me, terms) */
body.hwa-portal .mp_wrapper .mp-form-row input[type=checkbox]{
  width:18px; height:18px; margin:0 8px 0 0; vertical-align:-3px; accent-color:var(--orange);
}
body.hwa-portal .mp_wrapper .mepr_remember_me label,
body.hwa-portal .mp_wrapper .mepr_remember_me .mp-form-label label{
  display:inline !important; font-family:"Open Sans", Arial, sans-serif; font-size:14.5px !important;
  letter-spacing:0; text-transform:none; color:var(--ink);
}

/* Buttons */
body.hwa-portal .mp_wrapper input[type=submit],
body.hwa-portal .mp_wrapper .mepr-submit,
body.hwa-portal .mp_wrapper button.mepr-btn,
body.hwa-portal .mepr-white-popup .mepr-btn{
  display:inline-block; width:auto;
  background:var(--orange); color:#fff;
  font-family:"Open Sans", Arial, sans-serif;
  font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.3;
  padding:13px 24px; border-radius:8px; border:1px solid var(--orange);
  cursor:pointer; margin:8px 0 0;
  transition:background-color .15s ease, border-color .15s ease;
}
body.hwa-portal .mp_wrapper input[type=submit]:hover,
body.hwa-portal .mp_wrapper .mepr-submit:hover,
body.hwa-portal .mp_wrapper button.mepr-btn:hover,
body.hwa-portal .mepr-white-popup .mepr-btn:hover{ background:var(--orange-hi); border-color:var(--orange-hi); }

body.hwa-portal .mp_wrapper .mepr-loading-gif{ margin:12px 0 0 12px; vertical-align:middle; }
body.hwa-portal .mp_wrapper .mepr-form-has-errors{
  color:#c4351b; font-weight:600; font-size:14px; margin-top:10px;
}

/* Secondary link under the profile form */
body.hwa-portal .mp_wrapper .mepr-account-change-password{
  display:block; max-width:820px; margin:16px auto 0; text-align:center;
}
body.hwa-portal .mp_wrapper .mepr-account-change-password a,
body.hwa-portal .mp_wrapper .mepr-login-actions a{
  display:inline-block;
  font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:#33465c; background:#fff; border:1px solid var(--line-2); border-radius:8px;
  padding:9px 16px; text-decoration:none;
  transition:color .15s ease, border-color .15s ease;
}
body.hwa-portal .mp_wrapper .mepr-account-change-password a:hover,
body.hwa-portal .mp_wrapper .mepr-login-actions a:hover{ color:var(--orange); border-color:var(--orange); }
body.hwa-portal .mp_wrapper .mepr-login-actions{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:16px;
}

/* Status messages */
body.hwa-portal .mepr_updated,
body.hwa-portal .mepr_error{
  border-radius:10px; padding:14px 18px !important; margin:0 auto 22px !important;
  max-width:820px; font-size:15px; line-height:1.5; box-sizing:border-box !important;
}
body.hwa-portal .mepr_updated{ background:#eef9f0 !important; border:1px solid #9fd7ac !important; color:#1f5f30; }
body.hwa-portal .mepr_error{ background:#fff5f3 !important; border:1px solid #f0b8ad !important; color:#8f2a17; }
body.hwa-portal .mepr_error ul{ padding:0 0 0 18px !important; margin:0 !important; }

/* ---------- Account: subscriptions and payments tables ---------- */

body.hwa-portal .mp_wrapper table.mepr-account-table{
  width:100% !important; border-collapse:separate; border-spacing:0;
  background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  font-size:14.5px; line-height:1.5; margin:0 0 18px;
}
body.hwa-portal .mp_wrapper table.mepr-account-table thead th{
  background:var(--bp-base);
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-line) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, var(--bp-line) 0 1px, transparent 1px 14px);
  color:var(--bp-note);
  font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  text-align:left; padding:13px 16px; border:0; white-space:nowrap;
}
body.hwa-portal .mp_wrapper table.mepr-account-table td{
  padding:15px 16px; border:0; border-top:1px solid var(--line); vertical-align:top; text-align:left;
  color:var(--ink);
}
body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:first-child td{ border-top:0; }
body.hwa-portal .mp_wrapper table.mepr-account-table thead th:first-child{ border-top-left-radius:13px; }
body.hwa-portal .mp_wrapper table.mepr-account-table thead th:last-child{ border-top-right-radius:13px; }
body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:last-child td:first-child{ border-bottom-left-radius:13px; }
body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:last-child td:last-child{ border-bottom-right-radius:13px; }
body.hwa-portal .mp_wrapper table.mepr-account-table td{ overflow-wrap:anywhere; }
body.hwa-portal .mp_wrapper table.mepr-account-table td[data-label="Invoice"]{
  font-family:var(--mono); font-size:12px; color:var(--slate); word-break:break-all;
}
body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:hover td{ background:#fbfcfe; }

body.hwa-portal .mepr-account-product{
  font-family:var(--cond); font-weight:700; font-size:19px; letter-spacing:.02em; line-height:1.15; color:var(--navy-900);
}
body.hwa-portal .mepr-account-subscr-id,
body.hwa-portal .mepr-account-created-at,
body.hwa-portal .mepr-account-cc-exp{
  font-family:var(--mono); font-size:12.5px; color:var(--slate);
}
body.hwa-portal .mepr-account-subscr-id{ margin-top:4px; font-size:11.5px; word-break:break-all; }
body.hwa-portal .mepr-account-auto-rebill{ font-weight:600; }
body.hwa-portal .mepr-account-terms{ color:var(--slate); font-size:13.5px; margin-top:2px; }

body.hwa-portal .mepr-active,
body.hwa-portal .mepr-inactive{
  display:inline-block; font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; line-height:1.3;
}
body.hwa-portal .mepr-active{ color:#1f6b33 !important; background:#eaf7ee; border:1px solid #a9dcb6; }
body.hwa-portal .mepr-inactive{ color:#8f2a17 !important; background:#fff1ee; border:1px solid #f0b8ad; }

/* Row actions: Update / Cancel / Resume, one small button each */
body.hwa-portal .mepr-account-actions{ display:flex; flex-wrap:wrap; gap:6px; }
body.hwa-portal .mp_wrapper table.mepr-account-table .mepr-account-actions a,
body.hwa-portal .mp_wrapper table.mepr-account-table td a{
  display:inline-block;
  font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:#33465c; background:#fff; border:1px solid var(--line-2); border-radius:6px;
  padding:6px 11px; line-height:1.3; text-decoration:none; white-space:nowrap;
  transition:color .15s ease, border-color .15s ease, background-color .15s ease;
}
body.hwa-portal .mp_wrapper table.mepr-account-table td a:hover{ color:var(--orange); border-color:var(--orange); }
body.hwa-portal .mp_wrapper table.mepr-account-table .mepr-account-update{
  color:var(--orange); border-color:rgba(249,114,17,.5); background:#fff4ec;
}
body.hwa-portal .mp_wrapper table.mepr-account-table .mepr-account-update:hover{ color:#fff; background:var(--orange); border-color:var(--orange); }
body.hwa-portal .mp_wrapper table.mepr-account-table .mepr-account-cancel{ color:var(--slate); }

/* Cancel / change-plan popups (Magnific) */
body.hwa-portal .mepr-white-popup{
  background:#fff; border-radius:14px; padding:30px 32px; max-width:520px; margin:24px auto; position:relative;
  font-family:"Open Sans", Arial, sans-serif; color:var(--ink);
}
body.hwa-portal .mepr-cancel-sub-text,
body.hwa-portal .mepr-upgrade-sub-text{ font-size:17px; font-weight:600; margin:0 0 18px; }
body.hwa-portal .mepr-cancel-sub-buttons{ display:flex; gap:10px; flex-wrap:wrap; }
body.hwa-portal .mepr-white-popup .mepr-btn.mepr-confirm-no,
body.hwa-portal .mepr-white-popup .mepr-btn.mepr-upgrade-cancel{ background:#fff; color:#33465c; border-color:var(--line-2); }
body.hwa-portal .mepr-white-popup .mepr-btn.mepr-confirm-no:hover,
body.hwa-portal .mepr-white-popup .mepr-btn.mepr-upgrade-cancel:hover{ color:var(--orange); border-color:var(--orange); background:#fff; }

/* Paging under the tables */
body.hwa-portal #mepr-subscriptions-paging,
body.hwa-portal #mepr-payments-paging{ font-family:var(--mono); font-size:12px; color:var(--slate); }

/* Narrow screens: each row becomes a card with the column names down the left */
@media (max-width: 720px){
  body.hwa-portal .mp_wrapper table.mepr-account-table,
  body.hwa-portal .mp_wrapper table.mepr-account-table tbody{ display:block; }
  body.hwa-portal .mp_wrapper table.mepr-account-table thead{ display:none !important; }
  body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr{
    display:block; padding:8px 16px; border-top:1px solid var(--line);
  }
  body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:first-child{ border-top:0; }
  body.hwa-portal .mp_wrapper table.mepr-account-table tbody tr:hover td{ background:none; }
  body.hwa-portal .mp_wrapper table.mepr-account-table td{
    display:grid; grid-template-columns:96px minmax(0,1fr); gap:6px 14px; align-items:start;
    padding:9px 0; border:0; border-top:1px dashed var(--line); text-align:left;
  }
  body.hwa-portal .mp_wrapper table.mepr-account-table td:first-child{ border-top:0; }
  body.hwa-portal .mp_wrapper table.mepr-account-table td::before{
    content:attr(data-label); float:none; width:auto; padding:2px 0 0;
    font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--slate);
  }
  body.hwa-portal .mp_wrapper table.mepr-account-table td > *{ grid-column:2; }
  body.hwa-portal .mp_wrapper table.mepr-account-table td > a,
  body.hwa-portal .mp_wrapper table.mepr-account-table td > .mepr-account-actions{ justify-self:start; }
  body.hwa-portal .mp_wrapper table.mepr-account-table td:empty{ display:none; }
}

/* The payments table has seven columns, so it switches to cards sooner */
@media (min-width: 721px) and (max-width: 899px){
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table,
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table tbody{ display:block; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table thead{ display:none !important; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table tbody tr{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 28px; padding:8px 18px; border-top:1px solid var(--line);
  }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table tbody tr:first-child{ border-top:0; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table tbody tr:hover td{ background:none; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table td{
    display:grid; grid-template-columns:96px minmax(0,1fr); gap:6px 14px; align-items:start;
    padding:9px 0; border:0; border-top:1px dashed var(--line); text-align:left; border-radius:0;
  }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table td:nth-child(-n+2){ border-top:0; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table td::before{
    content:attr(data-label); padding:2px 0 0;
    font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--slate);
  }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table td > *{ grid-column:2; }
  body.hwa-portal .mp_wrapper table#mepr-account-payments-table td > a{ justify-self:start; }
}

/* ---------- My Content (completed / bookmarks / favorites) ---------- */

body.hwa-type-tracker #lesson_library{ display:flex; flex-direction:column; }
body.hwa-type-tracker #lesson_library > .sidebar,
body.hwa-type-tracker #lesson_library > .content_with_sidebar{ float:none; width:auto; min-width:0; }
body.hwa-type-tracker #lesson_library > .sidebar{ order:0; display:block; margin:0 0 6px; }
body.hwa-type-tracker #lesson_library > .content_with_sidebar{ order:1; }

/* Filter row, same as the Video Library page */
body.hwa-type-tracker #lesson_categories ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
}
body.hwa-type-tracker #lesson_categories li{ margin:0; padding:0; }
body.hwa-type-tracker #lesson_categories a.filter_option{
  display:inline-block;
  font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:#33465c; background:#fff; border:1px solid var(--line-2); border-radius:8px;
  padding:10px 18px; line-height:1.3; cursor:pointer;
  transition:color .15s ease, background-color .15s ease, border-color .15s ease;
}
body.hwa-type-tracker #lesson_categories a.filter_option:hover{ color:var(--orange); border-color:var(--orange); }
body.hwa-type-tracker #lesson_categories a.filter_option.active{ color:#fff; background:var(--orange); border-color:var(--orange); }

/* Only the chosen tab's list is shown (Memberoni's stylesheet used to do this) */
body.hwa-type-tracker .filtered_content{ display:none; }
body.hwa-type-tracker .filtered_content.active{ display:block; }

body.hwa-type-tracker .filtered_content > .clearfix{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 20px; margin-top:26px;
}
body.hwa-type-tracker .filtered_content > .clearfix::after{ content:none; }

body.hwa-type-tracker article.listing_history{
  display:grid; grid-template-columns:132px minmax(0,1fr); gap:0 18px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 18px 14px 14px;
  margin:0; float:none; width:auto;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.hwa-type-tracker article.listing_history:hover{
  transform:translateY(-3px); border-color:rgba(249,114,17,.55); box-shadow:0 12px 26px rgba(13,31,53,.14);
}

body.hwa-type-tracker article.listing_history .course-thumb{
  position:relative; width:132px; height:88px; border-radius:8px; overflow:hidden;
  background-color:var(--bp-base);
  background-size:cover; background-position:center;
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-line-maj) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, var(--bp-line-maj) 0 1px, transparent 1px 14px);
  float:none; margin:0;
}
/* Inline background-image on the thumb (a course image) wins over the grid above */
body.hwa-type-tracker article.listing_history .course-thumb[style*="background-image"]{ background-image:none; }
body.hwa-type-tracker article.listing_history .course-thumb .viewed_time{
  position:absolute; left:6px; bottom:6px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; line-height:1.2;
  color:#fff; background:rgba(13,31,53,.82); border:1px solid rgba(174,214,255,.3);
  border-radius:4px; padding:3px 6px;
}

body.hwa-type-tracker article.listing_history .course-content{ float:none; width:auto; min-width:0; }
body.hwa-type-tracker article.listing_history h4{
  margin:0 0 4px; font-family:var(--cond); font-weight:700; font-size:20px; letter-spacing:.02em; line-height:1.18;
  color:var(--navy-900); text-wrap:pretty;
}
body.hwa-type-tracker article.listing_history h4 a{ color:inherit; }
body.hwa-type-tracker article.listing_history h4 a:hover{ color:var(--orange); }
body.hwa-type-tracker article.listing_history h6{
  margin:0 0 8px; font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  color:var(--slate); line-height:1.4;
}
body.hwa-type-tracker article.listing_history h6 a{ color:inherit; }
body.hwa-type-tracker article.listing_history h6 a:hover{ color:var(--orange); }
body.hwa-type-tracker article.listing_history p{ margin:0; }
body.hwa-type-tracker article.listing_history a.button{
  width:auto; padding:8px 14px; font-size:11px; border-radius:6px; margin:2px 0 0;
}

/* Nothing in a tab yet */
body.hwa-type-tracker .filtered_content > p,
body.hwa-type-tracker .filtered_content .no_content{
  margin:26px auto 0; max-width:720px; text-align:center;
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 24px; color:var(--slate);
}

/* Note under the lists, and an empty tab */
body.hwa-type-tracker #lesson_library .col-full,
body.hwa-type-tracker #content > .col-full{
  margin:26px 0 0; text-align:center; font-size:14px; color:var(--slate);
}
body.hwa-type-tracker .filtered_content.active > .clearfix:empty{ display:block; }
body.hwa-type-tracker .filtered_content.active > .clearfix:empty::before{
  content:"Nothing here yet."; display:block;
  margin:26px auto 0; max-width:720px; text-align:center;
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 24px; color:var(--slate);
}

/* ---------- Gravity Forms (contact form on the help page) ---------- */

body.hwa-portal .gform_wrapper{
  margin:28px 0 0; padding:26px 0 0; border-top:1px solid var(--line-2);
  font-family:"Open Sans", Arial, sans-serif;
}
body.hwa-portal .gform_wrapper form{ text-align:left; }
body.hwa-portal .gform_wrapper .gform_heading{ margin:0 0 18px; }
body.hwa-portal .gform_wrapper .gform_title{
  margin:0 0 6px; font-family:var(--cond); font-weight:700; font-size:24px; letter-spacing:.03em; color:var(--navy-900);
}
body.hwa-portal .gform_wrapper .gform_description{ font-size:15px; color:var(--slate); }

body.hwa-portal .gform_wrapper .gform_body,
body.hwa-portal .gform_wrapper .gform-body.gform_body{ font-size:16px; margin-top:0; }
body.hwa-portal .gform_wrapper .gform_fields{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px 22px; margin:0; padding:0; list-style:none;
}
body.hwa-portal .gform_wrapper .gfield{ margin:0; padding:0; width:100%; grid-column:1 / -1; min-width:0; }
body.hwa-portal .gform_wrapper .gfield--width-half{ grid-column:span 1; }
body.hwa-portal .gform_wrapper .gform_validation_container,
body.hwa-portal .gform_wrapper .gfield--type-honeypot{ display:none !important; }

body.hwa-portal .gform_wrapper .gfield_label,
body.hwa-portal .gform_wrapper.gravity-theme .gfield_label,
body.hwa-portal .gform_wrapper .gfield_label.gform-field-label,
body.hwa-portal .gform_wrapper.gravity-theme .gfield_label.gform-field-label{
  display:block; margin:0 0 7px; padding:0;
  font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:var(--slate); line-height:1.4;
}
body.hwa-portal .gform_wrapper .gfield_required,
body.hwa-portal .gform_wrapper.gravity-theme .gfield_label span.gfield_required{
  font-size:11.5px; color:var(--orange); margin-left:2px;
}
body.hwa-portal .gform_wrapper .gfield_description{
  font-size:14px; line-height:1.5; color:var(--slate); padding:6px 0 0; margin:0;
}

/* Name field: First / Last side by side */
body.hwa-portal .gform_wrapper .ginput_complex{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px 16px; }
body.hwa-portal .gform_wrapper .ginput_complex > span{ display:block; margin:0; padding:0; width:auto; }
body.hwa-portal .gform_wrapper .ginput_complex > span.name_first{ padding:0; }
body.hwa-portal .gform_wrapper .gform-field-label--type-sub,
body.hwa-portal .gform_wrapper .ginput_complex label{
  display:block; margin:5px 0 0; font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:#8496a8;
}

body.hwa-portal .gform_wrapper .ginput_container{ margin:0; }
body.hwa-portal .gform_wrapper .ginput_container.ginput_container_textarea{ margin-top:0; }

body.hwa-portal .gform_wrapper input[type=text],
body.hwa-portal .gform_wrapper input[type=email],
body.hwa-portal .gform_wrapper input[type=tel],
body.hwa-portal .gform_wrapper input[type=url],
body.hwa-portal .gform_wrapper input[type=number],
body.hwa-portal .gform_wrapper select,
body.hwa-portal .gform_wrapper textarea{
  display:block; width:100%; max-width:none !important; margin:0;
  font-family:"Open Sans", Arial, sans-serif; font-size:15.5px; line-height:1.4 !important; color:var(--ink);
  background:#fff; border:1px solid var(--line-2) !important; border-radius:8px;
  padding:11px 13px !important; box-shadow:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.hwa-portal .gform_wrapper textarea{ min-height:150px; resize:vertical; }
body.hwa-portal .gform_wrapper input:focus,
body.hwa-portal .gform_wrapper select:focus,
body.hwa-portal .gform_wrapper textarea:focus{
  outline:none; border-color:var(--orange) !important; box-shadow:0 0 0 3px rgba(249,114,17,.18);
}

body.hwa-portal .gform_wrapper .gform_footer,
body.hwa-portal .gform_wrapper .gform-footer{ margin:20px 0 0; padding:0; display:flex; align-items:center; gap:12px; }
body.hwa-portal .gform_wrapper input[type=submit],
body.hwa-portal .gform_wrapper .gform_button,
body.hwa-portal .gform_wrapper button.gform_button{
  display:inline-block; width:auto; margin:0;
  background:var(--orange); color:#fff;
  font-family:"Open Sans", Arial, sans-serif;
  font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.3;
  padding:13px 26px !important; border-radius:8px; border:1px solid var(--orange) !important;
  cursor:pointer; transition:background-color .15s ease, border-color .15s ease;
}
body.hwa-portal .gform_wrapper input[type=submit]:hover,
body.hwa-portal .gform_wrapper .gform_button:hover{ background:var(--orange-hi); border-color:var(--orange-hi) !important; }
body.hwa-portal .gform_wrapper .gform_ajax_spinner{ margin-left:6px; }

/* Validation and confirmation */
body.hwa-portal .gform_wrapper .gform_validation_errors{
  background:#fff5f3; border:1px solid #f0b8ad; border-radius:10px; padding:14px 18px; margin:0 0 18px; color:#8f2a17;
}
body.hwa-portal .gform_wrapper .gform_validation_errors h2{
  margin:0; font-family:"Open Sans", Arial, sans-serif; font-size:15px; font-weight:600; line-height:1.5; color:#8f2a17;
}
body.hwa-portal .gform_wrapper .gfield_validation_message,
body.hwa-portal .gform_wrapper .validation_message{
  margin:6px 0 0; padding:0; background:none; border:0; font-size:13.5px; font-weight:600; color:#c4351b;
}
body.hwa-portal .gform_wrapper .gfield_error input,
body.hwa-portal .gform_wrapper .gfield_error textarea{ border-color:#c4351b !important; }
body.hwa-portal .gform_confirmation_wrapper,
body.hwa-portal .gform_confirmation_message{
  background:#eef9f0; border:1px solid #9fd7ac; border-radius:10px; padding:16px 20px; color:#1f5f30; font-size:15.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 899px){
  body.hwa-type-tracker .filtered_content > .clearfix{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 720px){
  body.hwa-type-page .entry{ padding:24px 20px 26px; font-size:16px; }
  body.hwa-portal .mp_wrapper form.mepr-form{ padding:22px 18px 24px; }
  body.hwa-portal #mepr_account_form{ grid-template-columns:minmax(0,1fr); gap:14px; }
  body.hwa-portal #mepr-account-nav li a{ padding:9px 14px; font-size:12px; }
  body.hwa-portal .gform_wrapper .gform_fields{ grid-template-columns:minmax(0,1fr); }
  body.hwa-portal .gform_wrapper .gfield--width-half{ grid-column:1 / -1; }
  body.hwa-type-tracker article.listing_history{ grid-template-columns:104px minmax(0,1fr); gap:0 14px; padding:12px 14px 12px 12px; }
  body.hwa-type-tracker article.listing_history .course-thumb{ width:104px; height:70px; }
  body.hwa-type-tracker article.listing_history h4{ font-size:18px; }
}

@media (max-width: 400px){
  body.hwa-portal .gform_wrapper .ginput_complex{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 340px){
  body.hwa-type-tracker article.listing_history{ grid-template-columns:minmax(0,1fr); gap:10px 0; }
  body.hwa-type-tracker article.listing_history .course-thumb{ width:100%; height:120px; }
}

/* ---------- Login page (logged-out visitors) ---------- */

/* No member menu when logged out, so no hamburger either */
body.hwa-portal:not(.logged-in) .hwa-nav-toggle{ display:none; }
body.hwa-portal:not(.logged-in) .hwa-nav-links:empty{ display:none; }

/* Memberoni's login template prints no page title; add one */
body.hwa-page-login #content{ padding-top:52px; }
body.hwa-page-login #content::before{
  content:"Member Login"; display:block; grid-column:1 / -1;
  margin:0 0 30px; text-align:center;
  font-family:var(--cond); font-weight:700; font-size:clamp(30px,4.4vw,44px); line-height:1.12; color:var(--orange);
}

body.hwa-page-login .mp_wrapper form.mepr-form{ margin:0; }
body.hwa-page-login .mp_wrapper .mp-spacer{ height:8px; }

/* Password field with the show/hide eye button inside it. MemberPress
   prints this wrapper inside the label block, so that block stacks. */
body.hwa-portal .mp_wrapper .mp-form-label:has(> .mp-hide-pw){ display:block; }
body.hwa-portal .mp_wrapper .mp-form-label:has(> .mp-hide-pw) > label{ margin-bottom:7px; }
body.hwa-portal .mp_wrapper .mp-hide-pw{ position:relative; }
body.hwa-portal .mp_wrapper .mp-hide-pw input[type=password],
body.hwa-portal .mp_wrapper .mp-hide-pw input[type=text]{ padding-right:46px; }
body.hwa-portal .mp_wrapper .mp-hide-pw button.button,
body.hwa-portal .mp_wrapper .mp-hide-pw button.button:hover{
  position:absolute; top:50%; right:6px; transform:translateY(-50%);
  width:34px; height:34px; padding:0; margin:0;
  background:none; border:0; border-radius:6px; color:var(--slate); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
body.hwa-portal .mp_wrapper .mp-hide-pw button.button::after{ content:none; }
body.hwa-portal .mp_wrapper .mp-hide-pw button.button:hover{ color:var(--orange); background:#fff4ec; }
body.hwa-portal .mp_wrapper .mp-hide-pw button.button .dashicons{ font-size:20px; width:20px; height:20px; line-height:1; }

/* Remember me */
body.hwa-portal #mepr_loginform label:has(> input[type=checkbox]){
  display:inline-flex !important; align-items:center; gap:8px; width:auto !important;
  font-family:"Open Sans", Arial, sans-serif; font-size:14.5px; color:var(--ink); cursor:pointer;
}
body.hwa-portal #mepr_loginform input[type=checkbox]{
  width:18px; height:18px; margin:0; accent-color:var(--orange);
}
body.hwa-portal #mepr_loginform .submit{ margin-top:6px; }
body.hwa-portal #mepr_loginform .submit input[type=submit]{ margin-top:6px; }

/* Sidebar widget next to the login form ("Not yet a member?") */
body.hwa-portal #content > .sidebar .widget,
body.hwa-portal #content > .sidebar .sidebar_widget{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:24px 26px; font-size:15.5px; line-height:1.6; color:var(--ink);
}
body.hwa-portal #content > .sidebar .sidebar_widget + .sidebar_widget{ margin-top:22px; }
body.hwa-portal #content > .sidebar .textwidget > div[style]{
  color:var(--navy-900) !important; font-family:var(--cond); font-weight:700;
  font-size:24px !important; line-height:1.2 !important; letter-spacing:.02em; margin:0 0 12px;
}
body.hwa-portal #content > .sidebar .textwidget > br{ display:none; }
body.hwa-portal #content > .sidebar .textwidget p{ margin:0; }
body.hwa-portal #content > .sidebar .textwidget p > br:last-child,
body.hwa-portal #content > .sidebar .textwidget p > br:nth-last-child(2):has(+ br:last-child){ display:none; }
body.hwa-portal #content > .sidebar .textwidget a.button{ margin-top:4px; text-align:left; line-height:1.3 !important; }

@media (max-width: 919px){
  body.hwa-portal #content:has(> .sidebar > *){ grid-template-columns:minmax(0,1fr); gap:28px; }
}
