/*
 * Guiding Hands LearnDash Custom Accounts
 * Front-end component styles.
 */

.ghh-account {
    --ghh-green: #2d5f63;
    --ghh-green-dark: #21494c;
    --ghh-green-soft: #e6efef;
    --ghh-purple: #8678a9;
    --ghh-purple-dark: #6f628f;
    --ghh-purple-soft: #f1eef7;
    --ghh-white: #ffffff;
    --ghh-light-grey: #eaeaea;
    --ghh-grey-50: #f8f9f9;
    --ghh-grey-100: #f2f4f4;
    --ghh-grey-300: #d5dddd;
    --ghh-grey-500: #647174;
    --ghh-text: #243638;
    --ghh-success: #287a50;
    --ghh-success-soft: #e8f5ee;
    --ghh-warning: #9a6400;
    --ghh-warning-soft: #fff5dc;
    --ghh-danger: #a33a3a;
    --ghh-danger-soft: #fff0f0;
    --ghh-radius-sm: 7px;
    --ghh-radius-md: 12px;
    --ghh-radius-lg: 18px;
    --ghh-radius-pill: 999px;
    --ghh-shadow-sm: 0 2px 7px rgba(27, 51, 53, 0.08);
    --ghh-shadow-md: 0 12px 32px rgba(27, 51, 53, 0.11);
    --ghh-focus: 0 0 0 3px rgba(134, 120, 169, 0.34);

    color: var(--ghh-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1240px;
    width: 100%;
}

.ghh-account *,
.ghh-account *::before,
.ghh-account *::after {
    box-sizing: border-box;
}

.ghh-account a {
    color: var(--ghh-green);
}

.ghh-account a:hover {
    color: var(--ghh-green-dark);
}

.ghh-account a:focus-visible,
.ghh-account button:focus-visible,
.ghh-account input:focus-visible,
.ghh-account select:focus-visible {
    outline: 2px solid var(--ghh-purple-dark);
    outline-offset: 2px;
    box-shadow: var(--ghh-focus);
}

.ghh-account h1,
.ghh-account h2,
.ghh-account h3,
.ghh-account p {
    margin-top: 0;
}

.ghh-account h1,
.ghh-account h2,
.ghh-account h3 {
    color: var(--ghh-text);
    font-weight: 700;
    line-height: 1.2;
}

.ghh-account h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.ghh-account h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin-bottom: 0.75rem;
}

.ghh-account h3 {
    font-size: 1.15rem;
}

.ghh-account__skip {
    background: var(--ghh-green-dark);
    border-radius: 0 0 var(--ghh-radius-sm) var(--ghh-radius-sm);
    color: var(--ghh-white) !important;
    left: 1rem;
    padding: 0.65rem 1rem;
    position: fixed;
    top: -200px;
    transition: top 0.15s ease;
    z-index: 100000;
}

.ghh-account__skip:focus {
    top: 0;
}

.ghh-account__layout {
    align-items: flex-start;
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    grid-template-columns: minmax(220px, 278px) minmax(0, 1fr);
}

.ghh-account__sidebar {
    position: sticky;
    top: 2rem;
}

.ghh-account__content {
    min-width: 0;
}

/* Account navigation */
.ghh-account-nav {
    background: var(--ghh-green);
    border-radius: var(--ghh-radius-lg);
    box-shadow: var(--ghh-shadow-md);
    color: var(--ghh-white);
    display: flex;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
}

.ghh-account-nav__identity {
    align-items: center;
    background: var(--ghh-green-dark);
    color: var(--ghh-white) !important;
    display: flex;
    gap: 0.85rem;
    padding: 1.35rem 1.25rem;
    text-decoration: none !important;
}

.ghh-account-nav__identity:hover {
    background: #1d4144;
    color: var(--ghh-white) !important;
}

.ghh-account-nav__avatar {
    align-items: center;
    background: var(--ghh-purple);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 0.96rem;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    letter-spacing: 0.04em;
}

.ghh-account-nav__identity-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ghh-account-nav__eyebrow {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ghh-account-nav__name {
    color: var(--ghh-white);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghh-account-nav__list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 1.1rem 0.85rem;
}

.ghh-account-nav__item {
    margin: 0;
}

.ghh-account-nav__link,
.ghh-account-nav__logout {
    align-items: center;
    border-radius: var(--ghh-radius-sm);
    color: rgba(255, 255, 255, 0.89) !important;
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ghh-account-nav__link .dashicons,
.ghh-account-nav__logout .dashicons {
    font-size: 1.1rem;
    height: 1.1rem;
    width: 1.1rem;
}

.ghh-account-nav__link:hover,
.ghh-account-nav__logout:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ghh-white) !important;
    transform: translateX(2px);
}

.ghh-account-nav__item.is-current .ghh-account-nav__link {
    background: var(--ghh-white);
    color: var(--ghh-green-dark) !important;
    box-shadow: var(--ghh-shadow-sm);
}

.ghh-account-nav__item.is-disabled .ghh-account-nav__link {
    cursor: not-allowed;
    opacity: 0.5;
}

.ghh-account-nav__logout {
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
    padding: 1rem 1.6rem;
}

.ghh-account--navigation-only {
    max-width: 300px;
}

/* Shared section components */
.ghh-account-section {
    width: 100%;
}

.ghh-account-section__header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.ghh-account-section__header > div {
    max-width: 760px;
}

.ghh-account-section__header p:last-child {
    color: var(--ghh-grey-500);
    margin-bottom: 0;
    max-width: 760px;
}

.ghh-account-section__eyebrow {
    color: var(--ghh-purple-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.ghh-panel {
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-sm);
    padding: clamp(1.15rem, 3vw, 1.65rem);
}

.ghh-button {
    align-items: center;
    appearance: none;
    border: 2px solid transparent;
    border-radius: var(--ghh-radius-pill);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 0.72rem 1.2rem;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ghh-button:hover {
    transform: translateY(-1px);
}

.ghh-button--primary {
    background: var(--ghh-green);
    border-color: var(--ghh-green);
    color: var(--ghh-white) !important;
}

.ghh-button--primary:hover {
    background: var(--ghh-green-dark);
    border-color: var(--ghh-green-dark);
    color: var(--ghh-white) !important;
}

.ghh-button--secondary {
    background: var(--ghh-white);
    border-color: var(--ghh-purple-dark);
    color: var(--ghh-purple-dark) !important;
}

.ghh-button--secondary:hover {
    background: var(--ghh-purple-soft);
    color: var(--ghh-purple-dark) !important;
}

.ghh-text-link {
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.ghh-notice {
    align-items: flex-start;
    border: 1px solid currentColor;
    border-radius: var(--ghh-radius-sm);
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
}

.ghh-notice .dashicons {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.ghh-notice p:last-child {
    margin-bottom: 0;
}

.ghh-notice--success {
    background: var(--ghh-success-soft);
    color: var(--ghh-success);
}

.ghh-notice--warning {
    background: var(--ghh-warning-soft);
    color: var(--ghh-warning);
}

.ghh-notice--error {
    background: var(--ghh-danger-soft);
    color: var(--ghh-danger);
}

.ghh-status-badge {
    background: var(--ghh-grey-100);
    border: 1px solid #d8e0e1;
    border-radius: var(--ghh-radius-pill);
    color: var(--ghh-grey-500);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    padding: 0.48rem 0.7rem;
    text-transform: uppercase;
}

.ghh-status-badge--in_progress {
    background: var(--ghh-purple-soft);
    border-color: #d6cce6;
    color: var(--ghh-purple-dark);
}

.ghh-status-badge--completed {
    background: var(--ghh-success-soft);
    border-color: #c8e3d4;
    color: var(--ghh-success);
}

.ghh-status-badge--not_started {
    background: var(--ghh-green-soft);
    border-color: #c6ddda;
    color: var(--ghh-green-dark);
}

/* Dashboard */
.ghh-metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.ghh-metric-card {
    align-items: center;
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-sm);
    display: grid;
    gap: 0.2rem 0.8rem;
    grid-template-columns: auto 1fr;
    padding: 1.15rem;
}

.ghh-metric-card__icon {
    align-items: center;
    background: var(--ghh-green-soft);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    font-size: 1.25rem;
    grid-row: span 2;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.ghh-metric-card:nth-child(2) .ghh-metric-card__icon {
    background: var(--ghh-purple-soft);
    color: var(--ghh-purple-dark);
}

.ghh-metric-card:nth-child(3) .ghh-metric-card__icon {
    background: var(--ghh-success-soft);
    color: var(--ghh-success);
}

.ghh-metric-card:nth-child(4) .ghh-metric-card__icon {
    background: var(--ghh-grey-100);
    color: var(--ghh-green-dark);
}

.ghh-metric-card__value {
    color: var(--ghh-text);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.ghh-metric-card__label {
    color: var(--ghh-grey-500);
    font-size: 0.85rem;
    font-weight: 600;
}

.ghh-dashboard__columns {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.85fr);
}

.ghh-panel--feature {
    border-top: 4px solid var(--ghh-green);
}

.ghh-panel--actions {
    border-top: 4px solid var(--ghh-purple);
}

.ghh-continue-card {
    align-items: flex-start;
    background: var(--ghh-grey-50);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.1rem;
}

.ghh-continue-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.ghh-dashboard-progress-overview {
    background: linear-gradient(135deg, var(--ghh-green-soft), var(--ghh-purple-soft));
    border: 1px solid #cad8d9;
    border-radius: var(--ghh-radius-sm);
    margin: 0.95rem 0 1rem;
    padding: 0.9rem 1rem;
}

.ghh-dashboard-progress-overview__heading {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.ghh-dashboard-progress-overview__heading > .dashicons {
    align-items: center;
    background: var(--ghh-white);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ghh-dashboard-progress-overview__heading > div {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
}

.ghh-dashboard-progress-overview__heading strong {
    color: var(--ghh-text);
    font-size: 0.88rem;
}

.ghh-dashboard-progress-overview__heading span:not(.dashicons) {
    color: var(--ghh-green-dark);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.ghh-dashboard-progress-overview__track {
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--ghh-radius-pill);
    height: 9px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.ghh-dashboard-progress-overview__track > span {
    background: linear-gradient(90deg, var(--ghh-green), var(--ghh-purple));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.ghh-dashboard-progress-overview p {
    color: var(--ghh-grey-500);
    font-size: 0.75rem;
    margin: 0.55rem 0 0;
}

.ghh-dashboard-course-list {
    display: grid;
    gap: 0.9rem;
}

.ghh-dashboard-course {
    align-items: center;
    background: var(--ghh-grey-50);
    border: 1px solid var(--ghh-grey-300);
    border-left: 4px solid var(--ghh-green);
    border-radius: var(--ghh-radius-sm);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
}

.ghh-dashboard-course--in_progress {
    border-left-color: var(--ghh-purple);
}

.ghh-dashboard-course__content {
    min-width: 0;
}

.ghh-dashboard-course h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin: 0.5rem 0 0;
}

.ghh-dashboard-course h3 a {
    color: var(--ghh-text);
    text-decoration: none;
}

.ghh-dashboard-course h3 a:hover {
    color: var(--ghh-green-dark);
    text-decoration: underline;
}

.ghh-dashboard-course__hint,
.ghh-dashboard-course__progress p {
    color: var(--ghh-grey-500);
    font-size: 0.82rem;
    margin: 0.45rem 0 0;
}

.ghh-dashboard-course__progress {
    margin-top: 0.7rem;
}

.ghh-dashboard-course__progress.is-unavailable {
    border-left: 3px solid var(--ghh-grey-300);
    padding-left: 0.65rem;
}

.ghh-dashboard-course__progress-unavailable {
    font-style: italic;
}

.ghh-dashboard-course__progress-copy {
    align-items: center;
    display: flex;
    font-size: 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.ghh-dashboard-course__progress-track {
    background: var(--ghh-grey-300);
    border-radius: var(--ghh-radius-pill);
    height: 8px;
    overflow: hidden;
}

.ghh-dashboard-course__progress-track > span {
    background: var(--ghh-green);
    display: block;
    height: 100%;
}

.ghh-dashboard-course__cta {
    white-space: nowrap;
}

.ghh-empty-state {
    align-items: center;
    color: var(--ghh-grey-500);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
}

.ghh-empty-state > .dashicons {
    color: var(--ghh-purple);
    font-size: 2.3rem;
    height: 2.3rem;
    margin-bottom: 0.75rem;
    width: 2.3rem;
}

.ghh-empty-state h3 {
    margin-bottom: 0.5rem;
}

.ghh-empty-state--compact {
    align-items: flex-start;
    padding: 0.5rem 0;
    text-align: left;
}

.ghh-action-link {
    align-items: center;
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    display: flex;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.9rem;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ghh-action-link:hover {
    background: var(--ghh-grey-50);
    border-color: var(--ghh-green);
    transform: translateY(-1px);
}

.ghh-action-link > .dashicons {
    align-items: center;
    background: var(--ghh-green-soft);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.ghh-action-link span:last-child {
    display: flex;
    flex-direction: column;
}

.ghh-action-link strong {
    color: var(--ghh-text);
}

.ghh-action-link small {
    color: var(--ghh-grey-500);
}

/* Training catalog */
.ghh-screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.ghh-catalog-header {
    margin-bottom: 1.2rem;
}

.ghh-catalog-controls {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1rem;
}

.ghh-catalog-search {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ghh-catalog-search__field {
    min-width: min(100%, 250px);
}

.ghh-catalog-search__field,
.ghh-catalog-search__select {
    position: relative;
}

.ghh-catalog-search__field > .dashicons {
    color: var(--ghh-grey-500);
    font-size: 1.15rem;
    height: 1.15rem;
    left: 0.9rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
}

.ghh-catalog-search input[type="search"],
.ghh-catalog-search select {
    appearance: none;
    background: var(--ghh-white);
    border: 1px solid #aeb9ba;
    border-radius: var(--ghh-radius-sm);
    color: var(--ghh-text);
    font: inherit;
    height: 48px;
    margin: 0;
    width: 100%;
}

.ghh-catalog-search input[type="search"] {
    padding: 0.65rem 0.9rem 0.65rem 2.7rem;
}

.ghh-catalog-search select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ghh-green) 50%),
        linear-gradient(135deg, var(--ghh-green) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding: 0.65rem 2.2rem 0.65rem 0.85rem;
}

.ghh-catalog-search input[type="search"]::placeholder {
    color: #788486;
    opacity: 1;
}

.ghh-catalog-search__submit {
    border-radius: var(--ghh-radius-sm);
    min-width: 145px;
    white-space: nowrap;
}

.ghh-course-card--type-lesson .ghh-course-card__content-type {
    background: rgba(45, 95, 99, 0.94);
}

.ghh-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ghh-filter-pill {
    align-items: center;
    background: var(--ghh-white);
    border: 1px solid #aeb9ba;
    border-radius: var(--ghh-radius-pill);
    color: var(--ghh-green-dark) !important;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.36rem;
    line-height: 1;
    min-height: 34px;
    padding: 0.48rem 0.75rem;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ghh-filter-pill .dashicons {
    font-size: 0.95rem;
    height: 0.95rem;
    width: 0.95rem;
}

.ghh-filter-pill:hover {
    background: var(--ghh-green-soft);
    border-color: var(--ghh-green);
    color: var(--ghh-green-dark) !important;
    transform: translateY(-1px);
}

.ghh-filter-pill.is-active {
    background: var(--ghh-green);
    border-color: var(--ghh-green);
    color: var(--ghh-white) !important;
}

.ghh-filter-pill.is-active:hover {
    background: var(--ghh-green-dark);
    border-color: var(--ghh-green-dark);
    color: var(--ghh-white) !important;
}

.ghh-catalog-results {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 0 0 1rem;
    min-height: 30px;
}

.ghh-catalog-results__summary {
    color: var(--ghh-grey-500);
    font-size: 0.86rem;
    font-weight: 650;
    margin: 0;
}

.ghh-catalog-results__reset {
    font-size: 0.84rem;
}

.ghh-course-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ghh-course-grid--compact {
    gap: 1rem;
}

.ghh-course-card {
    align-self: start;
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ghh-course-card:hover {
    border-color: #b8c6c7;
    box-shadow: var(--ghh-shadow-md);
    transform: translateY(-3px);
}

/* Cards size to their content; cards without measurable progress also avoid
 * reserving the flexible progress region used by active learners. */
.ghh-course-card--without-progress .ghh-course-card__body {
    flex: 0 0 auto;
}

.ghh-course-card__media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ghh-green-dark), var(--ghh-purple-dark));
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
}

.ghh-course-card__media::after {
    background: linear-gradient(to top, rgba(16, 41, 43, 0.52), transparent 55%);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

.ghh-course-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.ghh-course-card:hover .ghh-course-card__media img {
    transform: scale(1.025);
}

.ghh-course-card__media-fallback {
    align-items: center;
    background:
        radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.14), transparent 23%),
        linear-gradient(135deg, var(--ghh-green-dark), var(--ghh-purple-dark));
    color: var(--ghh-white);
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ghh-course-card__media-fallback .dashicons {
    font-size: 3.2rem;
    height: 3.2rem;
    opacity: 0.9;
    width: 3.2rem;
}

.ghh-course-card__format {
    align-items: center;
    background: rgba(45, 95, 99, 0.95);
    border-radius: 0 var(--ghh-radius-sm) 0 0;
    bottom: 0;
    color: var(--ghh-white);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.4rem;
    left: 0;
    line-height: 1.2;
    max-width: calc(100% - 1rem);
    padding: 0.62rem 0.82rem;
    position: absolute;
    z-index: 1;
}

.ghh-course-card__format .dashicons {
    font-size: 1.05rem;
    height: 1.05rem;
    width: 1.05rem;
}

.ghh-course-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.05rem 1.05rem 0 !important;
}

.ghh-course-card__heading-row {
    display: block;
    width: 100%;
}

.ghh-course-card__title {
    font-size: 1.2rem !important;
    line-height: 1.22 !important;
    margin: 0 0 0.7rem !important;
    width: 100%;
}

.ghh-course-card__title a {
    color: var(--ghh-text) !important;
    text-decoration: none !important;
}

.ghh-course-card__title a:hover {
    color: var(--ghh-green) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.16em;
}

.ghh-course-card__ceu {
    background: var(--ghh-purple-soft);
    border: 1px solid #d6cce6;
    border-radius: var(--ghh-radius-pill);
    color: var(--ghh-purple-dark);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1;
    margin: 0;
    padding: 0.4rem 0.58rem;
}

.ghh-status-badge--not_enrolled {
    background: var(--ghh-grey-100);
    border-color: #d8e0e1;
    color: var(--ghh-grey-500);
}

.ghh-course-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.85rem;
}

.ghh-course-card__meta .ghh-status-badge {
    flex: 0 0 auto;
    font-size: 0.62rem;
    padding: 0.4rem 0.55rem;
}

.ghh-course-card__category {
    background: var(--ghh-purple-soft);
    border: 1px solid #d6cce6;
    border-radius: var(--ghh-radius-pill);
    color: var(--ghh-purple-dark);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1;
    padding: 0.4rem 0.58rem;
}

.ghh-course-card__instructor {
    border-bottom: 1px solid var(--ghh-light-grey);
    border-top: 1px solid var(--ghh-light-grey);
    display: grid;
    gap: 0.28rem;
    margin: 0 -1.05rem -1px !important;
    padding: 0.72rem 1.05rem;
}

.ghh-course-card__instructor-label {
    color: var(--ghh-grey-500);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ghh-course-card__instructor-person {
    align-items: center;
    color: var(--ghh-text);
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.5rem;
}

.ghh-course-card__instructor-person img,
.ghh-course-card__instructor-initials {
    border-radius: 50%;
    flex: 0 0 30px;
    height: 30px;
    object-fit: cover;
    width: 30px;
}

.ghh-course-card__instructor-initials {
    align-items: center;
    background: var(--ghh-green-soft);
    color: var(--ghh-green-dark);
    display: inline-flex;
    font-size: 0.65rem;
    justify-content: center;
    letter-spacing: 0.04em;
}

.ghh-course-card__excerpt {
    color: #4c5a5c;
    display: -webkit-box;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
    overflow: hidden;
    padding-top: 0.8rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.ghh-course-card__progress {
    background: var(--ghh-grey-50);
    border-radius: var(--ghh-radius-sm);
    margin-top: auto;
    padding: 0.72rem;
}

.ghh-course-card__progress-copy {
    align-items: center;
    color: var(--ghh-grey-500);
    display: flex;
    font-size: 0.7rem;
    justify-content: space-between;
    margin-bottom: 0.38rem;
}

.ghh-course-card__progress-copy strong {
    color: var(--ghh-green-dark);
    font-size: 0.76rem;
}

.ghh-course-card__progress-track {
    background: #dbe2e2;
    border-radius: var(--ghh-radius-pill);
    height: 7px;
    overflow: hidden;
}

.ghh-course-card__progress-track span {
    background: linear-gradient(90deg, var(--ghh-green), var(--ghh-purple));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.ghh-course-card__progress p {
    color: var(--ghh-grey-500);
    font-size: 0.66rem;
    margin: 0.38rem 0 0;
}

.ghh-course-card__progress.is-unavailable {
    border: 1px dashed var(--ghh-grey-300);
}

.ghh-course-card__progress-unavailable {
    font-style: italic;
    line-height: 1.45;
    margin: 0 !important;
}

/* Compact catalog-card variant */
.ghh-course-card--variant-compact .ghh-course-card__media {
    aspect-ratio: 16 / 7;
}

.ghh-course-card--variant-compact .ghh-course-card__media-fallback .dashicons {
    font-size: 2.4rem;
    height: 2.4rem;
    width: 2.4rem;
}

.ghh-course-card--variant-compact .ghh-course-card__format {
    font-size: 0.7rem;
    padding: 0.5rem 0.68rem;
}

.ghh-course-card--variant-compact .ghh-course-card__body {
    padding: 0.82rem 0.88rem 0.75rem;
}

.ghh-course-card--variant-compact .ghh-course-card__title {
    display: -webkit-box;
    font-size: 1.02rem !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ghh-course-card--variant-compact .ghh-course-card__meta {
    margin-bottom: 0.58rem;
}

.ghh-course-card--variant-compact .ghh-course-card__progress {
    padding: 0.58rem;
}

.ghh-course-card--variant-compact .ghh-course-card__footer {
    padding: 0.72rem 0.88rem;
}

.ghh-course-card--variant-compact .ghh-course-card__price strong {
    font-size: 0.95rem;
}

.ghh-course-card--variant-compact .ghh-course-card__cta {
    min-height: 36px;
    padding: 0.5rem 0.72rem;
}

.ghh-course-card__footer {
    align-items: center;
    border-top: 1px solid var(--ghh-light-grey);
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 0.85rem 1.05rem;
}

.ghh-course-card__price {
    display: grid;
    line-height: 1.15;
    min-width: 0;
}

.ghh-course-card__price > span:not(.ghh-course-card__price-spacer) {
    color: var(--ghh-grey-500);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ghh-course-card__price strong {
    color: var(--ghh-text);
    font-size: 1.05rem;
}

.ghh-course-card__price small {
    color: var(--ghh-grey-500);
    font-size: 0.62rem;
}

.ghh-course-card__price-spacer {
    display: block;
    min-width: 1px;
}

.ghh-course-card__cta {
    flex: 0 0 auto;
    font-size: 0.76rem;
    min-height: 38px;
    padding: 0.58rem 0.85rem;
}

.ghh-course-card--completed {
    border-color: #bed9ca;
}

.ghh-course-card--in_progress {
    border-color: #cfc8df;
}

.ghh-catalog-empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 6vw, 4rem);
    text-align: center;
}

.ghh-catalog-empty > .dashicons {
    align-items: center;
    background: var(--ghh-green-soft);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    font-size: 2rem;
    height: 68px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 68px;
}

.ghh-catalog-empty h2 {
    font-size: 1.35rem;
}

.ghh-catalog-empty p {
    color: var(--ghh-grey-500);
    max-width: 520px;
}

.ghh-catalog-pagination {
    margin-top: 1.5rem;
}

.ghh-catalog-pagination .page-numbers {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ghh-catalog-pagination li {
    margin: 0;
}

.ghh-catalog-pagination a.page-numbers,
.ghh-catalog-pagination span.page-numbers {
    align-items: center;
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    color: var(--ghh-green-dark) !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    padding: 0.45rem 0.65rem;
    text-decoration: none !important;
}

.ghh-catalog-pagination a.page-numbers:hover {
    background: var(--ghh-green-soft);
    border-color: var(--ghh-green);
}

.ghh-catalog-pagination span.page-numbers.current {
    background: var(--ghh-green);
    border-color: var(--ghh-green);
    color: var(--ghh-white) !important;
}

/* Profile */
.ghh-profile__panel {
    margin-bottom: 1.25rem;
}

.ghh-profile-form__grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ghh-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ghh-field--full {
    grid-column: 1 / -1;
}

.ghh-field label {
    color: var(--ghh-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.ghh-field input {
    background: var(--ghh-white);
    border: 1px solid #aeb9ba;
    border-radius: var(--ghh-radius-sm);
    color: var(--ghh-text);
    font: inherit;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.ghh-field input[readonly] {
    background: var(--ghh-grey-100);
    color: var(--ghh-grey-500);
    cursor: not-allowed;
}

.ghh-field__help {
    color: var(--ghh-grey-500);
    font-size: 0.8rem;
}

.ghh-profile-form__actions {
    border-top: 1px solid var(--ghh-grey-300);
    margin-top: 1.4rem;
    padding-top: 1.2rem;
}

.ghh-profile__security {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.ghh-profile__security > .dashicons {
    align-items: center;
    background: var(--ghh-purple-soft);
    border-radius: 50%;
    color: var(--ghh-purple-dark);
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.ghh-profile__security h2 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.ghh-profile__security p {
    color: var(--ghh-grey-500);
    margin-bottom: 0.35rem;
}

/* Access gate */
.ghh-account--gate {
    max-width: 620px;
}

.ghh-gate {
    align-items: center;
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-lg);
    box-shadow: var(--ghh-shadow-md);
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
}

.ghh-gate__icon {
    align-items: center;
    background: var(--ghh-green-soft);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 72px;
}

.ghh-gate p:not(.ghh-account-section__eyebrow) {
    color: var(--ghh-grey-500);
    max-width: 440px;
}

/* Responsive layout */
/* Certificate history and compliance records. */
.ghh-metric-grid--certificates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.ghh-metric-grid--certificates .ghh-metric-card--certificate-active .ghh-metric-card__icon {
    background: var(--ghh-success-soft);
    color: var(--ghh-success);
}

.ghh-metric-grid--certificates .ghh-metric-card--certificate-expiring .ghh-metric-card__icon {
    background: var(--ghh-purple-soft);
    color: var(--ghh-purple-dark);
}

.ghh-metric-grid--certificates .ghh-metric-card--certificate-expired .ghh-metric-card__icon {
    background: #f7e8e8;
    color: #7d2f2f;
}

/* Retained for child-theme overrides created before v1.0.2. */
.ghh-certificate-summary {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.ghh-certificate-summary > div {
    align-items: center;
    background: var(--ghh-color-white);
    border: 1px solid var(--ghh-color-border);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-card);
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
}

.ghh-certificate-summary strong { color: var(--ghh-color-green); font-size: 1.65rem; line-height: 1; }
.ghh-certificate-summary span { color: var(--ghh-color-muted); font-weight: 600; }
.ghh-certificates__policy,
.ghh-certificates__truncated,
.ghh-certificate-group__description { color: var(--ghh-color-muted); }
.ghh-certificates__policy { align-items: flex-start; display: flex; gap: 0.5rem; }
.ghh-certificate-group { margin-top: 2rem; }
.ghh-certificate-group__heading {
    align-items: center;
    border-bottom: 2px solid var(--ghh-color-green);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
}
.ghh-certificate-group--expiring .ghh-certificate-group__heading { border-bottom-color: var(--ghh-color-purple); }
.ghh-certificate-group--expired .ghh-certificate-group__heading { border-bottom-color: #8a3a3a; }
.ghh-certificate-group__heading h2 { margin: 0; }
.ghh-certificate-group__heading > span {
    align-items: center;
    background: var(--ghh-color-light-grey);
    border-radius: var(--ghh-radius-pill);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0.2rem 0.6rem;
}
.ghh-certificate-list { display: grid; gap: 1rem; }
.ghh-certificate-card {
    align-items: center;
    background: var(--ghh-color-white);
    border: 1px solid var(--ghh-color-border);
    border-left: 5px solid var(--ghh-color-green);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-card);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.15rem;
}
.ghh-certificate-card--expiring,
.ghh-certificate-card--scheduled { border-left-color: var(--ghh-color-purple); }
.ghh-certificate-card--expired { border-left-color: #8a3a3a; }
.ghh-certificate-card__icon {
    align-items: center;
    background: #e8f0f0;
    border-radius: 50%;
    color: var(--ghh-color-green);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}
.ghh-certificate-card__icon .dashicons { font-size: 1.45rem; height: 1.45rem; width: 1.45rem; }
.ghh-certificate-card__badges { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ghh-certificate-card__type,
.ghh-certificate-card__archive-label {
    color: var(--ghh-color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ghh-certificate-card h3 { color: var(--ghh-color-text); margin: 0.45rem 0 0; }
.ghh-certificate-card__course { color: var(--ghh-color-muted); margin: 0.35rem 0 0; }
.ghh-certificate-card__details { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.85rem 0 0; }
.ghh-certificate-card__details > div { display: grid; gap: 0.1rem; }
.ghh-certificate-card__details dt {
    color: var(--ghh-color-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ghh-certificate-card__details dd { color: var(--ghh-color-text); margin: 0; }
.ghh-certificate-card__actions { min-width: 10rem; }
.ghh-certificate-card__actions .ghh-button { justify-content: center; width: 100%; }
.ghh-status-badge--active { background: #e8f0f0; color: var(--ghh-color-green); }
.ghh-status-badge--expiring,
.ghh-status-badge--scheduled { background: #eeeaf6; color: #675884; }
.ghh-status-badge--expired { background: #f7e8e8; color: #7d2f2f; }


/* v1.2 Account Manager portal */
.ghh-manager-portal {
    min-width: 0;
}

.ghh-manager-metrics {
    margin-top: 1.4rem;
}

.ghh-manager-filters {
    align-items: end;
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-sm);
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.3fr) auto auto;
    margin: 1.25rem 0;
    padding: 1rem;
}

.ghh-manager-filters label {
    display: grid;
    gap: 0.38rem;
    margin: 0;
}

.ghh-manager-filters label > span {
    color: var(--ghh-grey-500);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ghh-manager-filters select,
.ghh-manager-filters input {
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    min-width: 0;
    width: 100%;
}

.ghh-manager-detail,
.ghh-manager-students {
    margin-top: 1.25rem;
}

.ghh-manager-detail__header,
.ghh-manager-students__header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ghh-manager-detail__header h2,
.ghh-manager-students__header h2,
.ghh-manager-quiz-attempts h3,
.ghh-manager-detail__columns h3 {
    margin: 0;
}

.ghh-manager-students__header {
    border-bottom: 1px solid var(--ghh-grey-300);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.ghh-manager-students__header > p {
    color: var(--ghh-grey-500);
    margin: 0;
}

.ghh-manager-student__identity {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    min-width: 0;
}

.ghh-manager-student__identity img,
.ghh-manager-student__identity > .dashicons {
    align-items: center;
    background: var(--ghh-green-soft);
    border-radius: 50%;
    color: var(--ghh-green-dark);
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    object-fit: cover;
    width: 48px;
}

.ghh-manager-student__identity h3,
.ghh-manager-student__identity p {
    margin: 0;
}

.ghh-manager-student__identity p {
    color: var(--ghh-grey-500);
    font-size: 0.8rem;
}

.ghh-manager-detail__summary {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 1rem 0;
}

.ghh-manager-detail__summary > span {
    background: var(--ghh-grey-50);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    color: var(--ghh-grey-500);
    display: grid;
    font-size: 0.72rem;
    gap: 0.15rem;
    padding: 0.65rem;
}

.ghh-manager-detail__summary strong {
    color: var(--ghh-text);
    font-size: 1.15rem;
}

.ghh-manager-detail__columns {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ghh-manager-detail__columns > div,
.ghh-manager-quiz-attempts {
    background: var(--ghh-grey-50);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    padding: 1rem;
}

.ghh-manager-course-list,
.ghh-manager-certificate-list,
.ghh-manager-quiz-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.ghh-manager-course,
.ghh-manager-certificate-list article,
.ghh-manager-quiz {
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-sm);
    padding: 0.78rem;
}

.ghh-manager-course > div:first-child,
.ghh-manager-certificate-list article > div:first-child {
    align-items: flex-start;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
}

.ghh-manager-certificate-list p {
    color: var(--ghh-grey-500);
    font-size: 0.75rem;
    margin: 0.45rem 0 0;
}

.ghh-manager-course__progress {
    align-items: center;
    color: var(--ghh-grey-500);
    display: grid;
    font-size: 0.72rem;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0.65rem;
}

.ghh-manager-course__track {
    background: #dbe2e2;
    border-radius: var(--ghh-radius-pill);
    height: 7px;
    overflow: hidden;
}

.ghh-manager-course__track > span {
    background: linear-gradient(90deg, var(--ghh-green), var(--ghh-purple));
    display: block;
    height: 100%;
}

.ghh-manager-quiz-attempts {
    margin-top: 1rem;
}

.ghh-manager-quiz {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.ghh-manager-quiz > div {
    display: grid;
    gap: 0.15rem;
}

.ghh-manager-quiz > div span,
.ghh-manager-quiz time {
    color: var(--ghh-grey-500);
    font-size: 0.72rem;
}

.ghh-manager-student-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ghh-manager-student {
    background: var(--ghh-white);
    border: 1px solid var(--ghh-grey-300);
    border-radius: var(--ghh-radius-md);
    box-shadow: var(--ghh-shadow-sm);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.ghh-manager-student__metrics {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ghh-manager-student__metrics > span {
    background: var(--ghh-grey-50);
    border-radius: var(--ghh-radius-sm);
    color: var(--ghh-grey-500);
    display: grid;
    font-size: 0.68rem;
    gap: 0.1rem;
    padding: 0.58rem;
    text-align: center;
}

.ghh-manager-student__metrics strong {
    color: var(--ghh-green-dark);
    font-size: 1rem;
}

.ghh-manager-student > .ghh-button {
    justify-content: center;
    width: 100%;
}

@media (max-width: 1120px) {
    .ghh-manager-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ghh-manager-filters .ghh-button {
        justify-content: center;
    }

    .ghh-manager-detail__summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ghh-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ghh-catalog-search {
        grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.45fr);
    }

    .ghh-catalog-search__submit {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .ghh-manager-student-grid,
    .ghh-manager-detail__columns {
        grid-template-columns: 1fr;
    }

    .ghh-account__layout {
        grid-template-columns: 1fr;
    }

    .ghh-account__sidebar {
        position: static;
    }

    .ghh-account-nav {
        min-height: 0;
    }

    .ghh-account-nav__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ghh-account-nav__logout {
        border-left: 0;
        justify-content: center;
    }

    .ghh-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ghh-dashboard__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .ghh-manager-filters,
    .ghh-manager-detail__summary {
        grid-template-columns: 1fr;
    }

    .ghh-manager-detail__header,
    .ghh-manager-students__header {
        align-items: stretch;
        flex-direction: column;
    }

    .ghh-manager-detail__header .ghh-button {
        justify-content: center;
        width: 100%;
    }

    .ghh-manager-quiz {
        align-items: flex-start;
        grid-template-columns: 1fr auto;
    }

    .ghh-manager-quiz time {
        grid-column: 1 / -1;
    }

    .ghh-account {
        font-size: 15px;
    }

    .ghh-account-nav__list {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0.8rem;
        scrollbar-width: thin;
    }

    .ghh-account-nav__item {
        flex: 0 0 auto;
    }

    .ghh-account-nav__link {
        min-height: 42px;
        white-space: nowrap;
    }

    .ghh-account-nav__logout {
        justify-content: flex-start;
    }

    .ghh-metric-grid {
        grid-template-columns: 1fr;
    }

    .ghh-dashboard-progress-overview__heading > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.1rem;
    }

    .ghh-dashboard-course {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .ghh-dashboard-course__cta {
        justify-content: center;
        width: 100%;
    }

    .ghh-metric-card {
        grid-template-columns: auto auto 1fr;
    }

    .ghh-metric-card__icon {
        grid-row: auto;
    }

    .ghh-metric-card__value {
        font-size: 1.45rem;
    }

    .ghh-metric-card__label {
        align-self: center;
    }

    .ghh-profile-form__grid {
        grid-template-columns: 1fr;
    }

    .ghh-field--full {
        grid-column: auto;
    }

    .ghh-account-section__header--welcome .ghh-button {
        width: 100%;
    }

    .ghh-catalog-search {
        grid-template-columns: 1fr;
    }

    .ghh-catalog-search__submit {
        width: 100%;
    }

    .ghh-catalog-results {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .ghh-course-grid {
        grid-template-columns: 1fr;
    }

    .ghh-certificate-summary {
        grid-template-columns: 1fr;
    }

    .ghh-certificate-card {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ghh-certificate-card__actions {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ghh-account *,
    .ghh-account *::before,
    .ghh-account *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .ghh-account__sidebar,
    .ghh-account__skip,
    .ghh-button,
    .ghh-profile-form__actions {
        display: none !important;
    }

    .ghh-account__layout {
        display: block;
    }

    .ghh-panel,
    .ghh-metric-card {
        box-shadow: none;
    }
}

/* v0.6 catalog presentation controls */
.ghh-course-card--featured {
    border-color: var(--ghh-purple);
    box-shadow: 0 3px 12px rgba(134, 120, 169, 0.18);
}

.ghh-course-card--featured:hover {
    border-color: var(--ghh-purple-dark);
}

.ghh-course-card__featured {
    align-items: center;
    background: rgba(123, 110, 155, 0.96);
    border-radius: 0 0 0 var(--ghh-radius-sm);
    color: var(--ghh-white);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    gap: 0.32rem;
    line-height: 1;
    padding: 0.52rem 0.68rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.ghh-course-card__featured .dashicons {
    font-size: 0.9rem;
    height: 0.9rem;
    width: 0.9rem;
}

.ghh-course-card__cta--external::after {
    content: "↗";
    font-size: 0.9em;
    margin-left: 0.32rem;
}

/* v0.7 accessibility and resilient-interaction hardening */
.ghh-account textarea:focus-visible,
.ghh-account [tabindex="-1"]:focus-visible {
    outline: 2px solid var(--ghh-purple-dark);
    outline-offset: 2px;
    box-shadow: var(--ghh-focus);
}

.ghh-account .ghh-button,
.ghh-account button,
.ghh-account input:not([type="hidden"]),
.ghh-account select,
.ghh-account textarea {
    min-height: 44px;
}

.ghh-account h1,
.ghh-account h2,
.ghh-account h3,
.ghh-account a,
.ghh-account dd,
.ghh-account .ghh-course-card__excerpt {
    overflow-wrap: anywhere;
}

.ghh-field__required {
    color: var(--ghh-danger);
    margin-inline-start: 0.15em;
}

[data-ghh-profile-notice]:focus,
[data-ghh-catalog-results]:focus {
    outline: 3px solid var(--ghh-purple-dark);
    outline-offset: 3px;
}

@media (prefers-contrast: more) {
    .ghh-account {
        --ghh-grey-300: #758083;
        --ghh-grey-500: #3d484a;
        --ghh-focus: none;
    }

    .ghh-account .ghh-panel,
    .ghh-account .ghh-course-card,
    .ghh-account .ghh-metric-card,
    .ghh-account .ghh-certificate-card {
        border-width: 2px;
    }
}

@media (forced-colors: active) {
    .ghh-account,
    .ghh-account * {
        forced-color-adjust: auto;
    }

    .ghh-account .ghh-button,
    .ghh-account .ghh-filter-pill,
    .ghh-account .ghh-status-badge,
    .ghh-account .ghh-panel,
    .ghh-account .ghh-course-card,
    .ghh-account .ghh-certificate-card {
        border: 1px solid ButtonText;
    }

    .ghh-account [role="progressbar"] > span {
        background: Highlight;
    }
}

/* v1.6.0 — immutable learner transcript and CEU wallet. */
.ghh-metric-grid--transcript {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ghh-metric-grid--transcript .ghh-metric-card:nth-child(1) .ghh-metric-card__icon {
    background: rgba(45, 95, 99, 0.1);
    color: var(--ghh-color-green);
}

.ghh-metric-grid--transcript .ghh-metric-card:nth-child(2) .ghh-metric-card__icon {
    background: rgba(134, 120, 169, 0.13);
    color: var(--ghh-color-purple-accessible);
}

.ghh-metric-grid--transcript .ghh-metric-card:nth-child(3) .ghh-metric-card__icon {
    background: rgba(50, 145, 104, 0.12);
    color: #237c58;
}

.ghh-transcript-records {
    margin-top: 2rem;
}

.ghh-transcript-records__heading {
    align-items: flex-end;
    border-bottom: 2px solid var(--ghh-color-green);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.ghh-transcript-records__heading h2,
.ghh-transcript-records__heading p {
    margin: 0;
}

.ghh-transcript-records__heading > span {
    color: var(--ghh-color-muted);
    font-weight: 700;
}

.ghh-transcript-table-wrap {
    border: 1px solid var(--ghh-color-border);
    border-radius: var(--ghh-radius-md);
    overflow-x: auto;
}

.ghh-transcript-table {
    border-collapse: collapse;
    min-width: 48rem;
    width: 100%;
}

.ghh-transcript-table th,
.ghh-transcript-table td {
    border-bottom: 1px solid var(--ghh-color-border);
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.ghh-transcript-table thead th {
    background: var(--ghh-color-light-grey);
    color: var(--ghh-color-text);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ghh-transcript-table tbody tr:last-child > * {
    border-bottom: 0;
}

.ghh-transcript-table code {
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .ghh-metric-grid--transcript {
        grid-template-columns: 1fr;
    }
}
