/*
 Theme Name:   Clore Station Child
 Theme URI:    https://clorestation.com
 Description:  Child theme for Clore Station — GeneratePress child
 Author:       The Marketing Squad
 Author URI:   https://themarketingsquad.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  clore-station-child
*/

/* ==========================================================================
   BRAND TOKENS
   ========================================================================== */
:root {
    --clore-beige:        #EDE5D3;
    --clore-beige-dark:   #DDD3BC;
    --clore-green:        #6A8C68;
    --clore-green-dark:   #526E50;
    --clore-green-light:  #EAF0EA;
    --clore-text:         #2C2C2A;
    --clore-text-muted:   #6B6B67;
    --clore-border:       #D8CFBC;
    --clore-white:        #FFFFFF;

    --font-heading:       'Cormorant', Georgia, serif;
    --font-body:          'Cabin', system-ui, sans-serif;

    --radius-card:        4px;
    --radius-badge:       3px;
    --shadow-card:        0 2px 8px rgba(0,0,0,0.07);
    --shadow-card-hover:  0 6px 20px rgba(0,0,0,0.12);
    --transition:         0.2s ease;
}

/* ==========================================================================
   GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;1,400&family=Cabin:wght@400;500;600&display=swap');

body {
    font-family: var(--font-body);
    color: var(--clore-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ==========================================================================
   PORTAL PAGE HERO BAND
   Used on both /my-lots/ and single lot pages
   ========================================================================== */
.clore-hero {
    background: var(--clore-beige);
    text-align: center;
    padding: 48px 24px;
    margin-bottom: 48px;
    position: relative;
}

.clore-nav-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clore-text-muted);
    text-decoration: none;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    background: var(--clore-white);
    transition: all var(--transition);
    white-space: nowrap;
}

.clore-nav-account:hover {
    color: var(--clore-green);
    border-color: var(--clore-green);
}

.clore-nav-mylots {
    margin-left: 0;
}

.clore-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--clore-text);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.clore-hero .clore-hero-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clore-text-muted);
    margin: 0;
    line-height: 1.8;
}

/* ==========================================================================
   GRID / LIST TOGGLE
   ========================================================================== */
.clore-view-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.clore-view-toggle .toggle-wrap {
    display: inline-flex;
    background: var(--clore-beige);
    border-radius: 40px;
    padding: 4px;
    gap: 2px;
}

.clore-view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clore-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.clore-view-toggle button.active {
    background: var(--clore-white);
    color: var(--clore-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.clore-view-toggle button svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.clore-view-toggle button.active svg {
    opacity: 1;
}

/* ==========================================================================
   STATUS FILTER (admin only)
   ========================================================================== */
.clore-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.clore-filters label {
    font-size: 0.85rem;
    color: var(--clore-text-muted);
    font-weight: 500;
}

.clore-filters select,
.clore-filters input[type="text"] {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 8px 12px;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    background: var(--clore-white);
    color: var(--clore-text);
    outline: none;
    transition: var(--transition);
}

.clore-filters select:focus,
.clore-filters input:focus {
    border-color: var(--clore-green);
}

.clore-filters input[type="text"] {
    min-width: 220px;
}

/* ==========================================================================
   LOT GRID
   ========================================================================== */
.clore-lot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .clore-lot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .clore-lot-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LOT CARD
   ========================================================================== */
.clore-lot-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
}

.clore-lot-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.clore-lot-card__color-block {
    background: var(--clore-beige);
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.clore-lot-card__number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--clore-text);
    margin: 0 0 12px;
    line-height: 1;
}

.clore-lot-card__people {
    font-size: 0.8rem;
    color: var(--clore-text-muted);
    text-align: center;
    line-height: 1.7;
}

.clore-lot-card__status {
    margin-top: 10px;
}

.clore-lot-card__bar {
    height: 6px;
    background: var(--clore-green);
}

/* ==========================================================================
   STATUS BADGE
   ========================================================================== */
.clore-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-badge);
    white-space: nowrap;
}

/* Not started */
.clore-badge--not-started {
    background: #F1EFE8;
    color: #5F5E5A;
}

/* Pending / submission */
.clore-badge--pending {
    background: #FAEEDA;
    color: #854F0B;
}

/* Approved */
.clore-badge--approved {
    background: #EAF0EA;
    color: #3B6D11;
}

/* Approved with comments */
.clore-badge--approved-comments {
    background: #EAF0EA;
    color: #3B6D11;
}

/* Denied */
.clore-badge--denied {
    background: #FCEBEB;
    color: #A32D2D;
}

/* Complete */
.clore-badge--complete {
    background: var(--clore-green);
    color: var(--clore-white);
}

/* Message badges */
.clore-badge--message {
    background: #EAF0FB;
    color: #1A4FA0;
}

.clore-badge--message-response {
    background: #F0EAF6;
    color: #5B2D8E;
}

/* ==========================================================================
   LOT LIST VIEW
   ========================================================================== */
.clore-lot-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.clore-lot-list th {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clore-text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--clore-border);
    background: var(--clore-beige);
}

.clore-lot-list td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--clore-border);
    vertical-align: middle;
}

.clore-lot-list tr {
    transition: var(--transition);
    cursor: pointer;
}

.clore-lot-list tr:hover td {
    background: var(--clore-beige);
}

.clore-lot-list .lot-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clore-text);
}

.clore-lot-list .lot-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.clore-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--clore-text-muted);
}

.clore-pagination__info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clore-pagination__info select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    background: var(--clore-white);
}

.clore-pagination__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clore-pagination__nav a,
.clore-pagination__nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    font-size: 0.85rem;
    color: var(--clore-text);
    text-decoration: none;
    transition: var(--transition);
}

.clore-pagination__nav a:hover {
    background: var(--clore-beige);
    border-color: var(--clore-green);
}

.clore-pagination__nav span.current {
    background: var(--clore-green);
    border-color: var(--clore-green);
    color: var(--clore-white);
}

.clore-pagination__nav span.dots {
    border: none;
    color: var(--clore-text-muted);
}

/* ==========================================================================
   SINGLE LOT — LAYOUT
   ========================================================================== */
.clore-lot-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 600px;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 60px;
}

@media (max-width: 800px) {
    .clore-lot-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SINGLE LOT — SIDEBAR
   ========================================================================== */
.clore-lot-sidebar {
    background: var(--clore-beige);
    border-right: 1px solid var(--clore-border);
    padding: 8px 0;
}

.clore-lot-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clore-text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    user-select: none;
}

.clore-lot-sidebar__item:hover {
    color: var(--clore-text);
    background: var(--clore-beige-dark);
}

.clore-lot-sidebar__item.active {
    color: var(--clore-text);
    border-left-color: var(--clore-green);
    background: rgba(255,255,255,0.5);
}

.clore-lot-sidebar__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
}

.clore-lot-sidebar__item.active svg {
    opacity: 1;
}

/* ==========================================================================
   SINGLE LOT — CONTENT PANELS
   ========================================================================== */
.clore-lot-content {
    background: var(--clore-white);
}

.clore-tab-panel {
    display: none;
    padding: 36px;
}

.clore-tab-panel.active {
    display: block;
}

.clore-tab-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 28px;
    color: var(--clore-text);
}

/* ==========================================================================
   ACTIVITY TABLE
   ========================================================================== */
.clore-activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.clore-activity-table th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clore-text-muted);
    padding: 10px 16px;
    text-align: left;
    background: var(--clore-beige);
    border-bottom: 1px solid var(--clore-border);
}

.clore-activity-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--clore-border);
    vertical-align: middle;
    color: var(--clore-text);
}

.clore-activity-table tr:last-child td {
    border-bottom: none;
}

.clore-activity-table .activity-date {
    white-space: nowrap;
    color: var(--clore-text-muted);
    font-size: 0.82rem;
    width: 120px;
}

.clore-activity-table .activity-desc {
    color: var(--clore-text-muted);
    font-size: 0.85rem;
}

.clore-activity-table .activity-view {
    white-space: nowrap;
    text-align: right;
    width: 80px;
}

.clore-activity-table .view-link {
    font-size: 0.8rem;
    color: var(--clore-green);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.clore-activity-table .view-link:hover {
    text-decoration: underline;
}

.clore-activity-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--clore-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   ACTIVITY MODAL
   ========================================================================== */
.clore-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.clore-modal-overlay.open {
    display: flex;
}

.clore-modal {
    background: var(--clore-white);
    border-radius: var(--radius-card);
    max-width: 580px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
}

.clore-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--clore-text-muted);
    line-height: 1;
}

.clore-modal__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 6px;
}

.clore-modal__date {
    font-size: 0.8rem;
    color: var(--clore-text-muted);
    margin-bottom: 20px;
    display: block;
}

.clore-modal__message {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--clore-text);
    margin-bottom: 20px;
}

.clore-modal__doc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--clore-green);
    text-decoration: none;
    font-weight: 500;
}

.clore-modal__doc a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TAB PLACEHOLDER PANELS
   ========================================================================== */
.clore-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    color: var(--clore-text-muted);
}

.clore-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.25;
    margin-bottom: 16px;
}

.clore-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   SUBMITTALS TAB
   ========================================================================== */

/* Review type accordion card */
.clore-review-card {
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    overflow: hidden;
}

.clore-review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--clore-beige);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.clore-review-card__header:hover {
    background: var(--clore-beige-dark);
}

.clore-review-card.locked .clore-review-card__header {
    cursor: default;
    opacity: 0.6;
}

.clore-review-card__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clore-review-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clore-text);
    margin: 0;
}

.clore-review-card__chevron {
    width: 18px;
    height: 18px;
    color: var(--clore-text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.clore-review-card.open .clore-review-card__chevron {
    transform: rotate(180deg);
}

.clore-review-card__body {
    display: none;
    padding: 24px;
    background: var(--clore-white);
    border-top: 1px solid var(--clore-border);
}

.clore-review-card.open .clore-review-card__body {
    display: block;
}

/* Round history thread inside accordion */
.clore-round-thread {
    margin-bottom: 24px;
}

.clore-round-thread__item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--clore-border);
    align-items: flex-start;
}

.clore-round-thread__item:last-child {
    border-bottom: none;
}

.clore-round-thread__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.clore-round-thread__icon--builder {
    background: #FAEEDA;
}

.clore-round-thread__icon--architect {
    background: var(--clore-green-light);
}

.clore-round-thread__icon svg {
    width: 14px;
    height: 14px;
}

.clore-round-thread__icon--builder svg {
    color: #854F0B;
}

.clore-round-thread__icon--architect svg {
    color: var(--clore-green-dark);
}

.clore-round-thread__meta {
    flex: 1;
    min-width: 0;
}

.clore-round-thread__label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--clore-text);
    margin-bottom: 2px;
}

.clore-round-thread__date {
    font-size: 0.78rem;
    color: var(--clore-text-muted);
    margin-bottom: 6px;
}

.clore-round-thread__excerpt {
    font-size: 0.85rem;
    color: var(--clore-text-muted);
    line-height: 1.5;
}

.clore-round-thread__docs {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.clore-round-thread__doc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--clore-green);
    text-decoration: none;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid var(--clore-green);
    border-radius: var(--radius-badge);
    transition: var(--transition);
}

.clore-round-thread__doc-link:hover {
    background: var(--clore-green-light);
    text-decoration: none;
}

/* Active form area */
.clore-submittal-form-area {
    background: var(--clore-beige);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-top: 8px;
}

.clore-submittal-form-area__heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--clore-text);
}

.clore-submittal-form-area__sub {
    font-size: 0.82rem;
    color: var(--clore-text-muted);
    margin: 0 0 20px;
}

.clore-submittal-form-area__sub strong {
    color: #A32D2D;
}

/* Awaiting message */
.clore-awaiting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #FAEEDA;
    border-radius: var(--radius-card);
    margin-top: 8px;
    font-size: 0.88rem;
    color: #854F0B;
}

.clore-awaiting svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Complete state */
.clore-review-complete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--clore-green-light);
    border-radius: var(--radius-card);
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--clore-green-dark);
    font-weight: 500;
}

.clore-review-complete svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Lot complete banner */
.clore-lot-complete-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--clore-green);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    color: var(--clore-white);
}

.clore-lot-complete-banner svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.clore-lot-complete-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 2px;
    color: var(--clore-white);
}

.clore-lot-complete-banner p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
}

/* ==========================================================================
   SUBMITTALS TAB END
   ========================================================================== */


/* ==========================================================================
   GLOBAL SETTINGS
   Forces GeneratePress to stack hero band above content correctly
   ========================================================================== */
.site-content {
    flex-direction: column;
}

/* ==========================================================================
   PORTAL WRAPPER — full width within GP layout
   ========================================================================== */
.clore-portal-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   CHOICE PROMPT — builder decides on conceptual review
   ========================================================================== */
.clore-choice-prompt {
    padding: 8px 0 16px;
}

.clore-choice-prompt__text {
    font-size: 0.9rem;
    color: var(--clore-text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.clore-choice-prompt__text strong {
    color: var(--clore-text);
}

.clore-choice-prompt__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.clore-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-card);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.clore-btn--primary {
    background: var(--clore-green);
    color: var(--clore-white);
}

.clore-btn--primary:hover {
    background: var(--clore-green-dark);
}

.clore-btn--ghost {
    background: transparent;
    color: var(--clore-text-muted);
    border: 1px solid var(--clore-border);
}

.clore-btn--ghost:hover {
    border-color: var(--clore-text-muted);
    color: var(--clore-text);
    background: var(--clore-beige);
}

/* Confirmation modal */
.clore-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.clore-confirm-overlay.open {
    display: flex;
}

.clore-confirm-modal {
    background: var(--clore-white);
    border-radius: var(--radius-card);
    max-width: 440px;
    width: 90%;
    padding: 36px;
    text-align: center;
}

.clore-confirm-modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--clore-text-muted);
    opacity: 0.5;
}

.clore-confirm-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--clore-text);
}

.clore-confirm-modal p {
    font-size: 0.88rem;
    color: var(--clore-text-muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

.clore-confirm-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ==========================================================================
   LOT CARD BAR — ACTION INDICATOR
   Green  = waiting on architect (builder submitted, not your turn)
   Red    = action needed by you (your turn to act)
   Grey   = complete or not started (admin view)
   ========================================================================== */

/* Default bar is now transparent — colour applied by modifier */
.clore-lot-card__bar {
    height: 6px;
    background: var(--clore-green);
}

.clore-lot-card__bar--green {
    background: var(--clore-green);
}

.clore-lot-card__bar--red {
    background: #C0392B;
}

.clore-lot-card__bar--grey {
    background: var(--clore-border);
}

/* List view — coloured left border on lot number cell */
.clore-lot-list__indicator {
    display: inline-block;
    padding-left: 10px;
    border-left: 4px solid transparent;
}

.clore-lot-list__indicator.clore-lot-card__bar--green {
    border-left-color: var(--clore-green);
    background: transparent;
}

.clore-lot-list__indicator.clore-lot-card__bar--red {
    border-left-color: #C0392B;
    background: transparent;
}

.clore-lot-list__indicator.clore-lot-card__bar--grey {
    border-left-color: var(--clore-border);
    background: transparent;
}

/* ==========================================================================
   GRAVITY FORMS — BRANDED BUTTONS
   Targets submit buttons on the Submittals tab forms
   ========================================================================== */

/* Primary submit button */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_page_footer button[type="submit"] {
    background-color: var(--clore-green) !important;
    border: 2px solid var(--clore-green) !important;
    color: var(--clore-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 12px 32px !important;
    border-radius: var(--radius-card) !important;
    cursor: pointer !important;
    transition: background-color var(--transition), border-color var(--transition) !important;
    box-shadow: none !important;
    width: auto !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper .gform_page_footer button[type="submit"]:hover {
    background-color: var(--clore-green-dark) !important;
    border-color: var(--clore-green-dark) !important;
}

/* Previous / Next page buttons (multi-page forms) */
.gform_wrapper .gform_page_footer input[type="button"],
.gform_wrapper .gform_page_footer button[type="button"] {
    background-color: transparent !important;
    border: 2px solid var(--clore-green) !important;
    color: var(--clore-green) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 12px 32px !important;
    border-radius: var(--radius-card) !important;
    cursor: pointer !important;
    transition: background-color var(--transition), color var(--transition) !important;
    box-shadow: none !important;
}

.gform_wrapper .gform_page_footer input[type="button"]:hover,
.gform_wrapper .gform_page_footer button[type="button"]:hover {
    background-color: var(--clore-green-light) !important;
}

/* Stripe payment button */
.gform_wrapper .gform_card_icon_container ~ .gform_footer input[type="submit"],
.ginput_container_creditcard .gform_card_icon_container {
    border-color: var(--clore-green) !important;
}

/* Remove GF default button chrome */
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* ==========================================================================
   GRAVITY FORMS — FILE UPLOAD BUTTON
   Brands the "Select files" button in drag-and-drop upload fields
   ========================================================================== */

/* The select files button inside GF drag-and-drop uploader */
.gform_wrapper .gform-field-label--upload,
.gform_wrapper .gf_drop_area .button,
.gform_wrapper .gf_drop_area button,
.gform_wrapper .gf_drop_area input[type="button"],
.gform_wrapper .dz-default .button,
.gform_wrapper button.gform_button_select_files,
.gform_wrapper .gform_button_select_files {
    background-color: var(--clore-green) !important;
    border: 2px solid var(--clore-green) !important;
    color: var(--clore-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 10px 28px !important;
    border-radius: var(--radius-card) !important;
    cursor: pointer !important;
    transition: background-color var(--transition), border-color var(--transition) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.gform_wrapper .gform_button_select_files:hover,
.gform_wrapper .gf_drop_area .button:hover,
.gform_wrapper .gf_drop_area button:hover {
    background-color: var(--clore-green-dark) !important;
    border-color: var(--clore-green-dark) !important;
}

/* Progress bar colour */
.gform_wrapper .gfield_fileupload_progress_bar .gfield_fileupload_progress {
    background-color: var(--clore-green) !important;
}

/* Upload area border */
.gform_wrapper .gform-field-label--upload + .ginput_container .gf_drop_area,
.gform_wrapper .gf_drop_area {
    border: 2px dashed var(--clore-green) !important;
    border-radius: var(--radius-card) !important;
}

/* ==========================================================================
   REFERENCE DOCS TAB
   ========================================================================== */

.clore-refdoc-section {
    margin-bottom: 2rem;
}

.clore-refdoc-section__title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clore-text-muted);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clore-border);
}

.clore-refdoc {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--clore-border);
    min-width: 0;
}

.clore-refdoc:last-child {
    border-bottom: none;
}

.clore-refdoc__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-card);
    background: var(--clore-bg-light);
    border: 1px solid var(--clore-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clore-refdoc__icon svg {
    width: 18px;
    height: 18px;
    color: var(--clore-text-muted);
}

.clore-refdoc__info {
    flex: 1;
    min-width: 0;
}

.clore-refdoc__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clore-text);
    margin: 0 0 2px;
    word-break: break-word;
}

.clore-refdoc__desc {
    font-size: 0.8rem;
    color: var(--clore-text-muted);
    margin: 0;
}

.clore-refdoc__meta {
    font-size: 0.72rem;
    color: var(--clore-text-muted);
    opacity: 0.7;
    margin: 3px 0 0;
}

.clore-refdoc__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clore-green);
    background: transparent;
    border: 1px solid var(--clore-green);
    border-radius: var(--radius-card);
    padding: 7px 14px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.clore-refdoc__btn:hover {
    background: var(--clore-green);
    color: var(--clore-white);
}

.clore-refdoc__btn--placeholder {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.clore-refdocs-empty {
    color: var(--clore-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   MESSAGE THREAD (Message Town Architect tab)
   ========================================================================== */
.clore-message-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.clore-message-card {
    background: var(--clore-white);
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
}

.clore-message-card--ta {
    background: var(--clore-bg);
    border-color: var(--clore-green);
}

.clore-message-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.clore-message-card__sender {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clore-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.clore-message-card--ta .clore-message-card__sender {
    color: var(--clore-green);
}

.clore-message-card__date {
    font-size: 0.78rem;
    color: var(--clore-text-muted);
    white-space: nowrap;
}

.clore-message-card__subject {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clore-text-muted);
    margin: 0 0 6px;
}

.clore-message-card__body {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--clore-text);
    white-space: pre-wrap;
    margin: 0;
}

.clore-message-card__doc {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.clore-message-card__doc a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clore-green);
    text-decoration: none;
    word-break: break-all;
}
.clore-message-card__doc a:hover {
    text-decoration: underline;
}

.clore-message-form-heading {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clore-text);
    margin: 0 0 16px;
    padding-top: 8px;
    border-top: 1px solid var(--clore-border);
}

@media ( max-width: 600px ) {
    .clore-refdoc {
        flex-wrap: wrap;
    }
    .clore-refdoc__btn {
        margin-left: 52px;
    }
}

/* ==========================================================================
   MEETING TYPE — CALENDAR EMBED
   ========================================================================== */

.clore-meeting-calendar {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--clore-border);
}

.clore-meeting-calendar__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--clore-text);
    margin: 0 0 6px;
}

.clore-meeting-calendar__sub {
    font-size: 0.85rem;
    color: var(--clore-text-muted);
    margin: 0 0 20px;
}

.clore-meeting-calendar__embed {
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.clore-appt-confirmed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    background: var(--clore-bg);
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
}

.clore-appt-confirmed__message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--clore-text);
}

.clore-appt-confirmed__message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--clore-green);
}

.clore-appt-confirmed__datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--clore-text-muted);
    padding-left: 30px;
}

.clore-appt-confirmed__datetime svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.clore-appt-reschedule__btn {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 5px 12px;
}

.clore-appt-booked-notice {
    padding: 16px 20px;
    background: var(--clore-bg);
    border: 1px solid var(--clore-border);
    border-left: 4px solid var(--clore-green);
    border-radius: var(--radius-card);
    font-size: 0.9rem;
    color: var(--clore-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.clore-round-thread__appt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--clore-text-muted);
    margin-top: 4px;
}

.clore-round-thread__appt svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Lot card role labels */
.clore-lot-card__role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clore-text-muted);
    opacity: 0.8;
}

/* ==========================================================================
   MANAGE ARCHITECTS
   Builder-only section for inviting / removing architects from a lot
   ========================================================================== */

.clore-manage-architects {
    border-bottom: 1px solid var(--clore-border);
    margin-bottom: 36px;
}

.clore-manage-architects__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 14px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clore-text);
    text-align: left;
}

.clore-manage-architects__toggle:hover,
.clore-manage-architects__toggle:focus,
.clore-manage-architects__toggle:active {
    background: none !important;
    background-color: transparent !important;
    color: var(--clore-green);
    box-shadow: none;
}

.clore-manage-architects__toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clore-manage-architects__chevron {
    transition: transform var(--transition);
    flex-shrink: 0;
    color: var(--clore-text-muted);
}

.clore-manage-architects__toggle[aria-expanded="true"] .clore-manage-architects__chevron {
    transform: rotate(180deg);
}

.clore-manage-architects__panel {
    padding-bottom: 24px;
}

.clore-manage-architects__list {
    margin-bottom: 28px;
}

.clore-manage-architects__empty {
    font-size: 0.875rem;
    color: var(--clore-text-muted);
    margin: 0;
}

.clore-manage-architects__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: var(--clore-green-light);
    border-radius: var(--radius-card);
    margin-bottom: 8px;
}

.clore-manage-architects__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.clore-manage-architects__item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clore-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clore-manage-architects__item-email {
    font-size: 0.8rem;
    color: var(--clore-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clore-manage-architects__remove {
    background: none;
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-badge);
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--clore-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}

.clore-manage-architects__remove:hover:not(:disabled) {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdf0ef;
}

/* Invite form */
.clore-invite-form__heading {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clore-text);
    margin: 0 0 16px;
}

.clore-invite-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.clore-invite-form__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.clore-invite-form__row .clore-invite-form__field {
    margin-bottom: 0;
}

.clore-invite-form__field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clore-text);
}

.clore-invite-form__field input,
.clore-invite-form__field select {
    border: 1px solid var(--clore-border);
    border-radius: var(--radius-card);
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--clore-text);
    background: var(--clore-white);
    transition: border-color var(--transition);
    box-sizing: border-box;
    width: 100%;
    appearance: auto;
}

.clore-invite-form__field input:focus,
.clore-invite-form__field select:focus {
    outline: none;
    border-color: var(--clore-green);
    box-shadow: 0 0 0 3px rgba(106,140,104,0.12);
}

.clore-invite-msg {
    padding: 10px 14px;
    border-radius: var(--radius-card);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.clore-invite-msg--success {
    background: var(--clore-green-light);
    color: var(--clore-green-dark);
    border: 1px solid var(--clore-green);
}

.clore-invite-msg--error {
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

@media (max-width: 600px) {
    .clore-invite-form__row {
        grid-template-columns: 1fr;
    }
}