/**
 * Theme Name:     Fastenrsc
 * Author:         Wisnu
 * Template:       generatepress
 * Text Domain:	   fastenrsc
 * Description:    fastenrsc theme
 */

:root {
	--color-primary: #35333c;
	--color-secondary: #3b3e3c;
	--color-tertiary: #a2a6b8;

	--color-bg-light: #f5f6f7;

	--color-text-main: #1b1b1d;
	--color-text-muted: #5a5c64;

	--radius-pill: 50px;
	--radius-soft: 10px;

	--transition-default: 0.25s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-top-row {
    background-color: #1A1A1A;
    padding: 15px 0;
}

.header-logo a {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
}

/* 1. The Search Wrapper */
.header-search-wrap {
    flex-grow: 1;
    margin-left: 50px;
    display: flex;
    position: relative;
    background-color: #ffffff; /* This creates the white "bar" background */
    border-radius: 4px; /* Soft square edges for the whole bar */
    overflow: hidden; /* Ensures the button doesn't spill over the rounded corners */
}

/* 2. The Input Field */
.header-search-wrap input {
    width: 100%;
    padding: 10px 55px 10px 15px; /* Leave space on the right for the button */
    border: none;
    background: transparent; /* Let the wrapper's white show through */
    font-size: 14px;
    color: #333;
    -webkit-appearance: none;
    outline: none;
}

/* Ensure the button is a proper container for the SVG */
.header-search-wrap button.search-submit-btn {
    background-color: #FE4A03;
    color: #ffffff;
    border: none;
    width: 45px; /* Adjust this to make the orange box bigger or smaller */
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Clear any default padding */
}

/* Force the SVG to scale up */
.search-icon-svg {
    width: 24px;   /* Increased from 20px */
    height: 24px;  /* Increased from 20px */
    display: block;
    /* Ensure the stroke (lines) is thick enough to see clearly */
    stroke-width: 3; 
}

.header-search-wrap button:hover {
    background-color: #cf5a1d;
}

/* Row 2: Main Nav */
.header-nav-row {
    background-color: #001a4d;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav-list {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    padding: 12px 0;
}

.header-nav-list li {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Row 3: Trust/Social Proof */
.header-trust-bar {
    background-color: #f4f6f8;
    padding: 8px 0;
    font-size: 12px;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
}

.header-trust-bar .header-container {
    justify-content: space-between;
}

.check-icon {
    color: #28a745;
    font-weight: bold;
}

.grid-container,
.site-content,
.inside-site-info {
    max-width: 100% !important;
    width: 100% !important;
}

.grid-container {
    padding-left: 0;
    padding-right: 0;
}

.site-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    width: 100% !important;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-column.main-content {
    min-width: 0;
    overflow: hidden;
}

.right-sidebar {
    position: sticky;
    top: 20px;
}

.tab-btn, .sub-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-tertiary);
    background: #fff;
    cursor: pointer;
    border-radius: var(--radius-soft);
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-btn.active, .sub-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.toggle-group, .sub-group { display: none; }
.toggle-group.active, .sub-group.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-wrapper {
    min-width: 0;
    width: 100%;
	overflow-x: auto;
	display: block;
	border: 1px solid var(--color-primary);
	border-radius: 8px;
}

.dimensions-table {
	border-collapse: collapse;
	background: var(--color-bg-light);
	border-radius: 8px;
	border: 1px solid var(--color-tertiary);
	font-size: 19px;
}

.dimensions-table {
    table-layout: auto;
}

.dimensions-table thead th {
	background: var(--color-primary);
	color: var(--color-bg-light);
	font-weight: 600;
	text-align: center;
}

.dimensions-table td {
	padding: 9px 12px;
	text-align: center;
	border-bottom: 1px solid var(--color-tertiary);
	color: var(--color-primary);
}

.dimensions-table tbody tr:nth-child(even) {
	background: #eceef0;
}

.dimensions-table tbody tr:nth-child(odd) {
	background: var(--color-bg-light);
}

.dimensions-table tbody tr:hover {
	background: #f5f6f7;
}

.dimensions-table thead th {
    border: 1px solid #25232b !important;
    text-align: center;
    vertical-align: middle;
}

.dimensions-table thead th,
.dimensions-table thead tr th {
    text-align: center !important;
}


.dimensions-table-vertical {
    border-collapse: separate; 
    border-spacing: 0; 
    
    background: var(--color-bg-light);
    border-radius: 8px;
    border: 1px solid var(--color-tertiary);
    font-size: 24px; 
}

.dimensions-table-vertical thead th {
	background: var(--color-primary);
	color: var(--color-bg-light);
	font-weight: 600;
	text-align: center;
	border: 1px solid #25232b !important;
    text-align: center;
    vertical-align: middle;
}

.dimensions-table-vertical td {
	padding: 9px 12px;
	text-align: center;
	border-bottom: 1px solid var(--color-tertiary);
	color: var(--color-primary);
}

.dimensions-table-vertical tbody tr:nth-child(even) {
    background: #eceef0;
}

.dimensions-table-vertical tbody tr:nth-child(odd) {
    background: var(--color-bg-light);
}

.dimensions-table-vertical tbody tr:hover {
    background-color: #f0f1f4;
}

.dimensions-table-vertical td,
.dimensions-table-vertical th {
    border-right: 1px solid var(--color-tertiary);
    border-bottom: 1px solid var(--color-tertiary);
    padding: 9px 12px;
}

.sticky-col-1 {
    position: sticky;
    left: 0;
    z-index: 10;
    font-weight: bold;
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    opacity: 0.95;
}

.sticky-col-2 {
    position: sticky;
    z-index: 10;
    font-weight: bold;
    background-color: #fafafa !important;
    border: 1px solid #ddd !important;
    opacity: 0.95;
}

.sticky-col-1, .sticky-col-2 {
    position: sticky;
    z-index: 10;
    background-color: #eceef0 !important;
    box-shadow: inset -1px -1px 0 #ddd; 
    border: 1px solid var(--color-tertiary) !important;
}

.sticky-col-2::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px; /* Positions shadow just outside the cell */
    width: 10px;
    height: 100%;
    pointer-events: none; /* Allows clicking through the shadow */
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0));
    transition: opacity 0.3s ease;
}

.table-wrapper.is-scrolled-x .sticky-col-2::after {
    opacity: 1;
}

.disclaimer {
	font-size: 26px;
	opacity: 0.75;
	line-height: 1.4;
	font-style: italic;
	display: block;
}

.measurement-note {
    font-size: 26px;
	opacity: 0.75;
	line-height: 1.4;
	font-style: italic;
	display: block;
}

.table-detail-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card Styling */
details.legend, 
details.techinical-note {
    background-color: #fcfcfc;
    border: 1px solid var(--color-tertiary);
    border-left: 4px solid var(--color-tertiary); /* Muted accent bar */
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

details.technical-note {
    background-color: #fcfcfc;
    border: 1px solid var(--color-tertiary);
    border-left: 4px solid var(--color-tertiary); /* Muted accent bar */
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header / Summary Styling */
summary {
    list-style: none; /* Removes default arrow in Chrome/Firefox */
    cursor: pointer;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-secondary);
    font-size: 26px;
    letter-spacing: 0.8px;
    user-select: none;
}

/* Removes default arrow in Safari */
summary::-webkit-details-marker {
    display: none;
}

/* Custom Down Arrow */
summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-tertiary);
    border-bottom: 2px solid var(--color-tertiary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 5px;
}

/* Arrow rotation when open */
details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* List Content Padding */
details ul {
    margin: 0;
    padding: 0 20px 20px 20px; /* Top is 0 to stay close to header */
    list-style-type: none;
}

details li {
    font-size: 26px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

details li::before {
    content: "•";
    color: var(--color-tertiary);
    position: absolute;
    left: 0;
}

/* Hover effect for the card */
details:hover {
    border-color: var(--color-secondary);
}

.section {
    margin-top: 30px;
}

.intro-layout::after {
    content: "";
    display: table;
    clear: both;
}

.thumbnail {
    float: left;          
    margin-right: 30px;  
    margin-bottom: 20px;   
    width: 640px;
}

.thumbnail img {
    width: 100%;           
    height: auto;         
    display: block;
}

.intro-title {
    font-size: 48px;
    font-weight: bold;
    margin-top: 0;        
    margin-bottom: 15px;
}

.post-title {
    font-size: 48px;
    font-weight: bold;
    margin-top: 0;        
    margin-bottom: 15px;
}

.intro-text {
    font-size: 32px;
    line-height: 1.6;
}

.section::after {
    content: "";
    display: table;
    clear: both;
}

.section-title h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    width: 100%; 
}

.section-images {
    float: left;          
    margin-right: 30px;  
    margin-bottom: 20px;   
    width: 640px;         
}

.section-images img {
    width: 100%;           
    height: auto;         
    display: block;
    margin-bottom: 15px;   
}

.section-description {
    font-size: 32px;      
    line-height: 1.7;
    display: block;       
}

.section-images-side-by-side {
    display: flex; 
    gap: 15px;             
    margin-right: 30px;    
    margin-bottom: 20px;   
}

.section-images-side-by-side img {
    width: 640px;           
    height: auto;          
    display: block;
}

.section-images-single {
    display: block; 
    margin-bottom: 20px;   
}

.section-images-single img {
    width: 100%;           
    height: auto;       
    display: block;
}

.table-toggle-nav {
    max-width: 800px;
    margin: 30px 0;
    font-family: inherit;
}

.switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.switch-btn {
    border: none;
    background: #e5e5e5;
    padding: 26px 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 26px;
    transition: 0.2s ease;
}

.switch-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.thread-type-panel {
    display: none;
}

.thread-type-panel.active {
    display: block;
}

