/* STYLESHEET FOR MOBILE SETTINGS - indv page fixes */

/* ========================== MOBILE ONLY: individual page fixes ================================= */

/* ================= 404.php ========================================================= */
.wcp-page-entry .wcp-error-suggestions {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.wcp-page-entry .wcp-error-suggestions li {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 0.5rem;
}

/* DELETION: The @media (min-width: 981px) layout leak has been cut out */


/* =============   Mobile Search.php  =============== */
#wcp-structural-canvas .wcp-page-header {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

#wcp-structural-canvas .wcp-search-stream {
    display: block;
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

#wcp-structural-canvas .wcp-archive-item {
    display: block;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 2rem;
}

#wcp-structural-canvas .wcp-archive-thumbnail {
    margin-bottom: 1rem;
}

#wcp-structural-canvas .wcp-archive-thumbnail img {
    display: block;
    max-width: 100%;
    height: auto;
}

#wcp-structural-canvas .wcp-archive-title {
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

#wcp-structural-canvas .wcp-archive-title a {
    color: #222222;
    text-decoration: none;
}

#wcp-structural-canvas .wcp-archive-title a:hover {
    color: #888888;
}

#wcp-structural-canvas .wcp-archive-meta {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#wcp-structural-canvas .wcp-archive-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    /* max-width: 42rem; */ /* COMMENTED OUT: Removed mobile layout trap */
}

#wcp-structural-canvas .wcp-archive-nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem 3rem 1.5rem;
}

#wcp-structural-canvas .wcp-archive-nav a {
    font-size: 0.9rem;
    color: #222222;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#wcp-structural-canvas .wcp-archive-nav a:hover {
    color: #888888;
}


/* ==========================================================================
   Mobile Taxonomy Archive 
   ========================================================================== */
#wcp-structural-canvas .wcp-taxonomy-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
    margin-top: 0.5rem;
    /* max-width: 42rem; */ /* COMMENTED OUT: Removed mobile layout trap */
}

#wcp-structural-canvas .wcp-taxonomy-description p {
    margin: 0;
}


/* ==========================================================================
    Mobile Taxonomy Typography Refinement Track (FLATTENED)
   ========================================================================== */
/* DELETION: Redundant max-width 980px conditional query header has been removed */

/* Removes duplicate inner stream side padding to expand the content track */
#wcp-structural-canvas .wcp-search-stream {
    padding-left: 0;
    padding-right: 0;
}

/* Enforces thin humanist weight on mobile archive views */
#wcp-structural-canvas .wcp-page-header .wcp-page-title {
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.3;
    color: #222222;
    letter-spacing: -0.01em;
    text-align: left;
    margin-bottom: 1rem;
    padding: 0; 
}

/* Calibrates taxonomy descriptions for narrow phone views */
#wcp-structural-canvas .wcp-taxonomy-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666666;
    text-align: left;
    margin-bottom: 2rem;
}

/* Scales down post stream title anchors for reading comfort */
#wcp-structural-canvas .wcp-archive-item .wcp-archive-title {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: left;
    margin-top: 1rem;
}

/* Calibrates stream excerpts to an elegant, small mobile reading size */
#wcp-structural-canvas .wcp-archive-item .wcp-archive-summary {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333333;
    text-align: left;
    margin: 0.5rem auto 0 auto;
    max-width: 100%;
}

/* Left-aligns phone view thumbnails to match text editorial baseline */
#wcp-structural-canvas .wcp-archive-thumbnail {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

#wcp-structural-canvas .wcp-archive-thumbnail img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   Home Page Dedicated Layout Track (Bottom-Up Mobile First)
   ========================================================================== */

/* Constrains your homepage intro paragraph reading rails cleanly */
#wcp-structural-canvas .wcp-view-home .wcp-entry-content > p {
    /* max-width: 42rem; */ /* COMMENTED OUT: Removed mobile layout trap */
    margin-left: 0;
    margin-right: auto;
}

/* Enforces width constraints on the center Eiffel Tower hero graphic asset */
#wcp-structural-canvas .wcp-view-home .wcp-entry-content > .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
}

/* Strips core list formatting from the native post template container */
#wcp-structural-canvas .wcp-view-home .wp-block-post-template {
    list-style-type: none !important;
    margin: 3rem 0 0 0 !important;
    padding: 0 !important;
    /* max-width: 42rem; */ /* COMMENTED OUT: Removed mobile layout trap */
}

/* Establishes a clean, self-contained linear card layout track */
#wcp-structural-canvas .wcp-view-home .wp-block-post {
    display: flex !important;
    flex-direction: column !important; 
    margin-bottom: 3rem !important;
    border-bottom: 1px solid #eeeeee !important;
    padding-bottom: 2rem !important;
}

/* Calibrates the top date line string layout rules */
#wcp-structural-canvas .wcp-view-home .wp-block-post-date {
    order: 1; 
    font-size: 0.8rem !important; 
    font-weight: 300 !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 0.75rem 0 !important;
}

/* Ensures the thumbnail photo sits cleanly beneath the date line */
#wcp-structural-canvas .wcp-view-home .wp-block-post-featured-image {
    order: 2;
    margin: 0 0 1rem 0 !important;
}

#wcp-structural-canvas .wcp-view-home .wp-block-post-featured-image img {
    display: block !important;
    max-width: 120px !important;
    height: auto !important;
}

/* Corrects the massive oversized title down to your thin humanist weight */
#wcp-structural-canvas .wcp-view-home h2.wp-block-post-title {
    order: 3;
    font-weight: 300 !important; 
    font-size: 1.15rem !important; 
    line-height: 1.4 !important;
    margin: 0 0 0.5rem 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

#wcp-structural-canvas .wcp-view-home h2.wp-block-post-title a {
    color: #222222 !important;
    text-decoration: none !important;
}

#wcp-structural-canvas .wcp-view-home h2.wp-block-post-title a:hover {
    color: #888888 !important;
}

/* Calibrates the bottom post summary excerpt text rules */
#wcp-structural-canvas .wcp-view-home .wp-block-post-excerpt {
    order: 4;
    font-size: 0.9rem !important; 
    line-height: 1.5 !important;
    color: #444444 !important;
    margin: 0 !important;
}


/* ==========================================================================
   Projects Template Mobile Track (Phones & Tablets)
   ========================================================================== */

/* Corrects the massive, overflowing title typography to thin house style weights */
#wcp-structural-canvas .wcp-view-projects h1.wcp-page-title,
#wcp-structural-canvas .wcp-view-projects .wp-block-heading {
    font-weight: 300 !important;
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    color: #222222 !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.01em !important;
}

/* Hides the redundant secondary heading block for clean presentation */
#wcp-structural-canvas .wcp-view-projects h2.wp-block-heading {
    display: none !important;
}

/* Calibrates introductory paragraph block widths and spacing layout rules */
#wcp-structural-canvas .wcp-view-projects .wcp-entry-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    margin: 0 0 2rem 0 !important;
}

/* Collapses squeezed side-by-side block columns into a clean vertical stack */
#wcp-structural-canvas .wcp-view-projects .wp-block-columns,
#wcp-structural-canvas .wcp-view-projects .wp-block-columns.is-layout-flex {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix: Overrides the nested 25% Gutenberg inline width constraints to expand cards */
#wcp-structural-canvas .wcp-view-projects .wp-block-columns .wp-block-column,
#wcp-structural-canvas .wcp-view-projects .wp-block-columns .wp-block-column.is-layout-flow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    margin: 0 0 1.5rem 0 !important;
}

/* Stabilizes the project graphics inside the card boundaries */
#wcp-structural-canvas .wcp-view-projects .wp-block-column img,
#wcp-structural-canvas .wcp-view-projects .wp-block-column .wp-block-image img {
    display: block !important;
    max-width: 250px !important; 
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 0 0 !important; 
}


/* ==========================================================================
  Places Template Mobile Track (Combined Foundation Fix - FLATTENED)
   ========================================================================== */
/* DELETION: Redundant max-width 980px container header has been stripped out */

/* Scales down the verified h1 title and h2 subtitles by exactly one-third */
#wcp-structural-canvas .wcp-view-places h1.wcp-page-title,
#wcp-structural-canvas .wcp-view-places h2.wp-block-heading {
    font-weight: 300 !important;
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    color: #222222 !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

/* Calibrates the subtitle development text string rules */
#wcp-structural-canvas .wcp-view-places .wcp-entry-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    margin: 0 0 2rem 0 !important;
}

/* Strips the yellow highlight boxes from your native gallery caption elements */
#wcp-structural-canvas .wcp-view-places .wcp-entry-content .wp-block-gallery .wp-element-caption mark,
#wcp-structural-canvas .wcp-view-places .wp-block-gallery figcaption mark {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important; 
    padding: 0 !important;
}


/* ==========================================================================
   Articles & Reviews Archive Mobile Track (Phones & Tablets - FLATTENED)
   ========================================================================== */
/* DELETION: Redundant max-width 980px container header has been stripped out */

/* Enforces thin house style weights and downscales primary page headers */
#wcp-structural-canvas .wcp-page-title {
    font-weight: 300 !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    color: #222222 !important;
    margin: 0 0 1.5rem 0 !important;
    letter-spacing: -0.01em !important;
}

/* Sets up spacious linear block separation padding for each stream item */
#wcp-structural-canvas .wcp-article-archive-stream .wcp-archive-item,
#wcp-structural-canvas .wcp-review-archive-stream .wcp-archive-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 3rem !important;
    border-bottom: 1px solid #eeeeee !important;
    padding-bottom: 2rem !important;
}


/* ==========================================================================
   Singular CPT Content Width Release (Mobile Groundwork - FLATTENED) 
   ========================================================================== */
/* DELETION: Redundant max-width 980px media wrapper has been stripped out safely */

/* Overrides the core block engine's layout constraints on phone glass */
#wcp-structural-canvas .wcp-single-article-entry .wcp-entry-content > *,
#wcp-structural-canvas .wcp-single-review-entry .wcp-entry-content > *,
#wcp-structural-canvas .wcp-entry-content .is-layout-constrained > * {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =======================  /INDIVIDUAL PAGES FIXES ============================== */
