/* ================================
GLOBAL RESET
================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =================================
BODY
================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
}

/* =================================
UNIVERSAL LAYOUT CONTAINER
================================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =================================
GLOBAL KEYBOARD ACCESSIBILITY
================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #004999;
    outline-offset: 2px;
}

/* Skip Link - hidden until keyboard-focused, lets keyboard users bypass navigation */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background-color: #004999;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
}

/* =================================
HEADER
================================= */
header {
    background-color: #ffffff;
    text-align: center;
    padding: 35px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.logo-brand-container {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    margin: 0 auto 12px;
    width: fit-content;
}

.logo-brand-container svg {
    display: block;
    flex-shrink: 0;
}

.logo-brand-container .logo-title {
    color: #004999;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
}

header p {
    color: #666666;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.2px;
}

/* ====================================
NAVIGATION
==================================== */
nav {
    background-color: #004999;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 55px;
}

nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 5px;
   height: 100%;
}

nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #ffffff;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* This button intentionally overrides .cta-button's white background.
   The hero section has a white background, so this button needs to stay
   solid blue for visibility. Every other .cta-button sits on a blue-colored
   section, where the white style provides the correct contrast instead.
   Do not "unify" this without checking the section background color first. */

.hero a {
    display: inline-block;
    background-color: #004999;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* ==========================================
   FRICTION OF THE DAY
========================================== */

/* ==========================================
   FEATURED FRICTIONS
========================================== */

.featured-frictions {
    padding: 70px 20px;
    background-color: #ffffff;
}

.featured-frictions .container {
    max-width: 1100px;
    margin: 0 auto;
}

.featured-frictions h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-frictions > .container > p {
    text-align: center;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.friction-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.friction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.friction-card h3 {
    color: #004999;
    margin-bottom: 12px;
}

.friction-card p {
    color: #555555;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 18px;
}

/* ==========================================
   EXPLORE BY CATEGORY
========================================== */

.categories {
    background-color: #f4f6f9;
    padding: 70px 20px;
}

.categories .container {
    max-width: 1100px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 20px;
}

.categories > .container > p {
    text-align: center;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card h3 {
    color: #004999;
    font-size: 1rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   OUR MISSION
========================================== */

.mission {
    background-color: #ffffff;
    padding: 80px 20px;
}

.mission .container {
    max-width: 850px;
    margin: 0 auto;
}

.mission h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 30px;
}

.mission p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: center;
}

/* ==========================================
   WHY FRICTION JOURNAL IS DIFFERENT
========================================== */

.why-different {
    background-color: #f4f6f9;
    padding: 80px 20px;
}

.why-different .container {
    max-width: 1100px;
    margin: 0 auto;
}

.why-different h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 45px;
}

.difference-list {
    display: flex;
    gap: 25px;
}

.difference-card {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.difference-card h3 {
    color: #004999;
    margin-bottom: 18px;
}

.difference-card p {
    color: #555555;
    line-height: 1.8;
}

/* ==========================================
   CALL TO ACTION
========================================== */

.call-to-action {
    background-color: #004999;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.call-to-action .container {
    max-width: 850px;
    margin: 0 auto;
}

.call-to-action h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.call-to-action p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #004999;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   FOOTER
========================================== */

footer {
    background-color: #1e3a8a;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
}

footer .container {
    max-width: 1100px;
    margin: 0 auto;
}

footer h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

footer p {
    margin-bottom: 18px;
    line-height: 1.7;
}

footer nav {
    margin: 25px 0;
    background: none;
    border: none;
    min-height: auto;
    display: block;
}

footer nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

footer nav a:hover {
    color: #ffd54f;
}

footer p a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

footer p a:hover {
    color: #ffd54f;
}

/* ==================================================
   LIBRARY PAGE - VERSION 1.0
================================================== */

/* ==========================================
   Library Hero
========================================== */

.library-hero {
    background-color: #f8f9fa;
    padding: 70px 20px;
    text-align: center;
}

.library-hero h1 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.library-hero p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

/* ==========================================
   Search Area
========================================== */

.search-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.search-section h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.search-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555555;
    line-height: 1.8;
}

.search-section form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-section input {
    width: 100%;
    max-width: 450px;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-section input:focus {
    border-color: #004999;
}

.search-section button {
    padding: 14px 28px;
    background-color: #004999;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-section button:hover {
    background-color: #003b7a;
}

/* ==========================================
   Category Filters
========================================== */

.category-filters {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.category-filters h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.category-filters p {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #555555;
    line-height: 1.8;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Highlights whichever category button is currently selected */
.filter-buttons button.active {
    background-color: #004999;
    color: #ffffff;
}

/* Friendly message shown when search/filter finds no matching cards */
.no-results-message {
    text-align: center;
    color: #666666;
    font-size: 1.05rem;
    padding: 40px 20px;
}

/* Filter buttons are visual only for now.
   Future JavaScript will add a "selected" state class here for the active category. */
.filter-buttons button {
    padding: 12px 24px;
    border: 1px solid #004999;
    border-radius: 30px;
    background-color: #ffffff;
    color: #004999;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-buttons button:hover {
    background-color: #004999;
    color: #ffffff;
}

/* ==========================================
   Friction Library
========================================== */

.friction-library {
    padding: 70px 20px;
    background-color: #ffffff;
    text-align: center;
}

.friction-library h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.friction-library > .container > p {
    max-width: 700px;
    margin: 0 auto 45px;
    color: #555555;
    line-height: 1.8;
}

.friction-library .friction-card {
    background-color: #ffffff;
    border: 1px solid #e4ebf3;
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(18, 38, 63, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.friction-library .friction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(18, 38, 63, 0.10);
}

.friction-library .friction-card h3 {
    color: #1e3a8a;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.friction-library .friction-card .info-block {
    background-color: #fbfcfe;
    border: 1px solid #edf2f7;
    border-left: 3px solid #004999;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
    flex-grow: 1;
}

.friction-library .friction-card .info-block p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.friction-library .friction-card a {
    color: #004999;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
}

.friction-library .friction-card a:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

/* ==========================================
   Library Call-to-Action
========================================== */

.library-cta {
    background-color: #004999;
    color: #ffffff;
    text-align: center;
    padding: 70px 20px;
}

.library-cta h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.library-cta p {
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.8;
    color: #f5f5f5;
}

.library-cta .cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #004999;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.library-cta .cta-button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* ==========================================
   SUBMIT PAGE
========================================== */

/* ==========================================
   Submit Hero
========================================== */

.submit-hero {
    background-color: #f5f7fa;
    text-align: center;
    padding: 80px 20px;
}

.submit-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2563eb;
}

.submit-hero p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ==========================================
   Submission Introduction
========================================== */

.submission-intro {
    background-color: #ffffff;
    padding: 70px 20px;
}

.submission-intro h2 {
    text-align: center;
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 30px;
}

.submission-intro p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* ==========================================
   Submission Form
========================================== */

.submission-form {
    background-color: #f9fafb;
    padding: 80px 20px;
}

.submission-form h2 {
    text-align: center;
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.submission-form > .container > p {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.submission-form form {
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #004999;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004999;
    box-shadow: 0 0 0 4px rgba(0, 73, 153, 0.15);
}

/* ==========================================
   Submission Encouragement
========================================== */

.submission-cta {
    background-color: #004999;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.submission-cta h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 25px;
}

.submission-cta p {
    max-width: 760px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f5f5f5;
}

.submission-cta p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #ffffff;
}

.submission-form button {
    display: inline-block;
    background-color: #004999;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease,
                transform 0.2s ease,
                box-shadow 0.3s ease;
}

.submission-form button:hover {
    background-color: #003b7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 73, 153, 0.25);
}

/* ==========================================
   ABOUT PAGE
========================================== */

/* About Hero */

.about-hero {
    background-color: #f4f8fc;
    text-align: center;
    padding: 80px 20px;
}

.about-hero h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    text-align: left;
}

/* About Content Sections */

.about-section {
    padding: 45px 20px;
}

.about-section:nth-child(even) {
    background-color: #f9fafb;
}

.about-section h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.about-section p {
    max-width: 850px;
    margin: 0 auto 20px; 
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    text-align: left;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* About Page Call-to-Action */

.about-cta {
    background-color: #004999;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.about-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-cta p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* ==========================================
   CONTACT PAGE
========================================== */

/* Contact Hero */

.contact-hero {
    background-color: #f5f9ff;
    text-align: center;
    padding: 80px 20px;
}

.contact-hero h1 {
    color: #0056b3;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ==========================================
   Contact Information
========================================== */

.contact-info {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.contact-info h2 {
    color: #0056b3;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info > .container > p {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: #555;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .contact-details {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-item {
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 220px;
    }
}

/* ==========================================
   Contact Form
========================================== */

.contact-form-section {
    background-color: #f5f5f5;
    padding: 80px 20px;
}

.contact-form-section .container {
    max-width: 800px;
}

.contact-form-section h2 {
    text-align: center;
    color: #0056b3;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-form-section > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #004999;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cccccc;
    border-radius: 8px;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #004999;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 73, 153, 0.15); 
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    display: inline-block;
    background-color: #004999;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease,
                transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #003b7a;
    transform: translateY(-2px);
}

/* ==========================================
   Social Media Placeholder
========================================== */

/* Tighter vertical spacing for the Privacy & Terms page specifically,
   since its sections are shorter than About page sections.
   This does not affect about.html. */
.privacy-section {
    padding: 30px 20px;
}

.privacy-section p {
    margin-bottom: 12px;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   WRITE ALL FUTURE NEW PAGES AND STYLES HERE
   (Always add new code above the Typography Engine)
   ================================================== */

/* ==================================================
   SECTION F: UNIFIED TYPOGRAPHY & RESPONSIVE ENGINE
   (Leave this block at the absolute bottom of the file,
    just above Section G and Section H below)
   ================================================== */

/* 1. Global Cohesive Branding Colors */
.logo-brand-container .logo-title,
.hero h1,
.featured-frictions h2,
.categories h2,
.mission h2,
.why-different h2,
.library-hero h1,
.search-section h2,
.category-filters h2,
.friction-library h2,
.submit-hero h1,
.submission-intro h2,
.submission-form h2,
.about-hero h1,
.about-section h2,
.contact-hero h1,
.contact-info h2,
.contact-item h3,
.contact-form-section h2 {
    color: #1e3a8a !important;
}

/* 2. Unified Content Card Titles */
.friction-card h3,
.difference-card h3 {
    color: #004999 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

/* 3. Fluid Responsive Typography (Adapts to Mobile, Tablet, and Desktop automatically) */
.logo-brand-container .logo-title {
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
}
.hero h1, .submit-hero h1, .about-hero h1, .contact-hero h1, .library-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
    font-weight: 700 !important;
}
.featured-frictions h2, .categories h2, .mission h2, 
.why-different h2, .submission-intro h2, .submission-form h2, .about-section h2, 
.contact-info h2, .contact-form-section h2, .about-cta h2, .library-cta h2, .submission-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.0rem) !important;
    font-weight: 700 !important;
}

/* 4. Reading Fatigue Protection for Text Elements */
.hero p, .friction-card p, .categories p, .mission p, 
.why-different p, .difference-card p, .library-hero p, .search-section p, .category-filters p, 
.friction-library p, .submit-hero p, .submission-intro p, .about-hero p, 
.about-section p, .contact-hero p, .contact-info p, .contact-item p, .contact-form-section p {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    color: #444444 !important;
}

/* 5. Fluid Responsive Alignment for Call-To-Action Text */
.call-to-action p, .library-cta p, .submission-cta p, .about-cta p {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 6. Elite Button Consistency (Matches visual weight across all processes) */
.hero a, .cta-button, .library-cta .cta-button, .contact-form button, .submission-form button {
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    letter-spacing: 0.3px !important;
    display: inline-block !important;
}

/* ==================================================
   MOBILE NAVIGATION SAFETY NET
   (Stops links like "Contact" from cutting off)
   ================================================== */
@media (max-width: 650px) {
    header nav ul, 
    footer nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 0 !important;
    }

    header nav a, 
    footer nav a {
        display: block !important;
        padding: 10px 20px !important;
        font-size: 1.1rem !important;
    }
}

/* ==================================================
   SECTION G: INTRINSIC BRAND DESIGN PROTECTION
   ================================================== */
.logo-brand-container .logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    display: inline-block;
}

/* Keyboard focus on the blue nav bar: keep white link text readable.
   A light background here made focused/clicked links nearly invisible. */
header nav a:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Stacks the "Why Friction Journal is Different" cards vertically on small
   mobile screens, preventing horizontal overflow. Desktop layout is unaffected.
   Note: .friction-list now uses CSS Grid with its own responsive rules
   (see the FEATURED FRICTIONS section above), so it no longer belongs here. */
@media (max-width: 700px) {
    .difference-list {
        flex-direction: column;
    }
}

/* Feedback messages shown after submitting the Submit or Contact form */
.form-feedback-message {
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.form-feedback-success {
    background-color: #e6f4ea;
    color: #1e7a34;
}

.form-feedback-error {
    background-color: #fdecea;
    color: #b3261e;
}
/* ==================================================
   FRICTION CARD — NEW (Experiment card design,
   recolored to match Friction Journal's real brand palette:
   #004999 / #1e3a8a instead of the Experiment's #1d4e89.
   Uses the site's existing Arial/Georgia fonts by default.
   If a self-hosted Inter font file is added later, only the
   @font-face block below needs activating — nothing else here
   needs to change.
   ================================================== */

.rich-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
    width: 100%;
}

.rich-friction-card {
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(18, 38, 63, 0.05);
    transition: 0.25s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.rich-friction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(18, 38, 63, 0.10);
}

.rich-friction-card .category {
    display: inline-block;
    background: #eaf1fb;
    color: #004999;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.rich-friction-card .card-title {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #1e3a8a;
    margin-bottom: 22px;
    text-align: left;
}

.rich-friction-card .info-block {
    background: #fbfcfe;
    border: 1px solid #edf2f7;
    border-left: 2px solid #004999;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.rich-friction-card .info-block h3 {
    color: #004999;
    font-size: 0.90rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rich-friction-card .info-block p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.8;
}

.rich-friction-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.rich-friction-card .impact-badge {
    background: #f4f7fb;
    border: 1px solid #dbe6f1;
    border-radius: 30px;
    padding: 9px 16px;
    color: #333333;
    font-size: 0.8rem;
    font-weight: 600;
}

.rich-friction-card .impact-badge strong {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #004999;
}

.rich-friction-card .read-link {
    text-decoration: none;
    color: #004999;
    font-weight: 700;
    transition: 0.2s;
}

.rich-friction-card .read-link:hover {
    color: #1e3a8a;
}

/* Homepage's featured grid shows only 3 cards, so it caps at 3 columns
   on wide screens instead of stretching to fill unlimited space. */
.featured-frictions .rich-library-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

/* ==================================================
   FRICTION RECORD — NEW (friction-record.html page styling,
   recolored the same way as the card above)
   ================================================== */

.research-container {
    max-width: 980px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.research-header,
.research-title,
.research-block {
    background: #ffffff;
    border: 1px solid #dfe7f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

.research-header-title,
.research-title-header,
.research-section-title {
    background: #f5f8fc;
    color: #004999;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 30px;
    border-bottom: 1px solid #e6edf5;
    letter-spacing: 0.3px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
}

.meta-row > div {
    flex: 1;
}

.meta-row > div:last-child {
    text-align: right;
}

.meta-label {
    color: #004999;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.meta-value {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 600;
}

.research-title h2 {
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 24px 30px 0;
}

.field {
    padding: 24px 30px;
    border-bottom: 1px solid #edf2f7;
}

.field:last-child {
    border-bottom: none;
}

.field .label {
    color: #004999;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.field .value {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.9;
}

#situation { white-space: pre-line; }

.research-footer {
    text-align: center;
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.research-footer .cta-button {
    background-color: #004999;
    color: #ffffff;
    border: none;
}

.research-footer .cta-button:hover {
    background-color: #003b7a;
    color: #ffffff;
}

#relatedFrictions {
    list-style: none;
    margin: 0;
    padding: 0;
}

#relatedFrictions li {
    margin-bottom: 12px;
}

#relatedFrictions li:last-child {
    margin-bottom: 0;
}

#relatedFrictions a {
    color: #004999;
    font-weight: 600;
    text-decoration: none;
}

#relatedFrictions a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .research-container {
        padding: 0 15px;
    }

    .research-header,
    .research-title,
    .research-block {
        border-radius: 14px;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .meta-row > div:last-child {
        text-align: left;
    }

    .research-title h2 {
        font-size: 22px;
    }

    .research-footer {
        flex-direction: column;
    }

    .research-footer .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Explore by Category cards: slightly smaller, bolder text for a cleaner look */
.categories .category-list .category-card h3 {
    color: #004999;
    font-size: 1rem;
    font-weight: 600;
}

.load-more-button {
    display: block;
    margin: 35px auto 0;
}

/* ==================================================
   SECTION I: READING AND LIBRARY FIXES (21 October 2026)
   ================================================== */

/* Comfortable line length (about 75 characters) for long reading text
   on the About, Privacy and Research Record pages only. */
.about-hero p,
.about-section p {
    max-width: 75ch;
}

.research-block .field .value {
    max-width: 75ch;
}

/* The friction title is the main thing on a Research Record,
   so it should be larger than the section labels around it. */
.research-title h2 {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .research-title h2 {
        font-size: 1.375rem;
    }
}

/* "Showing X of Y frictions" line above the Load More button. */
.library-count {
    text-align: center;
    margin-top: 30px;
}

/* ==================================================
   SECTION J: FRICTION PAGES, ALL-FRICTIONS LIST, CATEGORY HUBS
   (pages made by tools/build-site.js, 22 October 2026)
   ================================================== */

/* Breadcrumb: Home > Library > this friction */
.breadcrumb {
    max-width: 980px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #555555;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: #888888;
}

.breadcrumb a {
    color: #004999;
}

/* Small line above the friction title */
.record-kicker {
    color: #004999;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Friction titles can be long, so they use a calmer size than other
   page headings. !important is needed because Section F sets every
   .library-hero h1 with !important. */
.library-hero.record-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem) !important;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Two rows of facts in the Research Information card */
.research-header .meta-row + .meta-row {
    border-top: 1px solid #edf2f7;
}

.meta-value a {
    color: #004999;
}

/* Field labels are real headings (h3) on friction pages */
.field h3.label {
    line-height: 1.4;
}

/* Situation paragraphs */
.field .value p + p {
    margin-top: 1em;
}

.field .value a {
    color: #004999;
    font-weight: 600;
}

.cite-line {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

/* All-frictions list and category hubs */
.friction-index {
    max-width: 980px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.friction-index-group {
    background: #ffffff;
    border: 1px solid #dfe7f0;
    border-radius: 18px;
    padding: 24px 30px;
    margin-bottom: 30px;
}

.friction-index-group h2 {
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.friction-index-group h2 a {
    color: #1e3a8a;
}

.friction-index-group ul {
    list-style: none;
}

.friction-index-group li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    line-height: 1.5;
}

.friction-index-group li:last-child {
    border-bottom: none;
}

.friction-index-group li a {
    color: #004999;
    font-weight: 600;
}

.friction-index-id,
.friction-index-count {
    color: #666666;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
}

.friction-index-more {
    margin-top: 16px;
}

.friction-index-more a {
    color: #004999;
}

@media (max-width: 768px) {
    .breadcrumb,
    .friction-index {
        padding: 0 15px;
    }

    .friction-index-group {
        padding: 20px;
        border-radius: 14px;
    }
}

/* ==================================================
   SECTION K: SPAM TRAP, 404 PAGE (22 October 2026)
   ================================================== */

/* Honeypot field: moved off screen so people never see it.
   Formspree discards any message where it is filled in. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.not-found-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.not-found-links .cta-button {
    background-color: #004999;
    color: #ffffff;
}

/* ==================================================
L. ACCESSIBILITY FIXES (approved 22 October 2026)
================================================== */

/* 1. Focus outline must be visible on dark blue backgrounds.
   The default outline is dark blue (#004999), which disappears
   on the footer and on the blue call-to-action bands. */
footer a:focus-visible,
.call-to-action a:focus-visible,
.library-cta a:focus-visible,
.about-cta a:focus-visible,
.submission-cta a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* The Library search box had its outline switched off. */
.search-section input:focus-visible {
    outline: 3px solid #004999;
    outline-offset: 2px;
}

/* 2. Respect the visitor's "reduce motion" setting:
   no lifting cards or buttons, no fades or slides. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    a:hover,
    button:hover,
    .friction-card:hover,
    .category-card:hover,
    .rich-friction-card:hover {
        transform: none !important;
    }
}

/* ==================================================
M. FRICTION PAGE REDESIGN, PHONE MENU, PRINT (approved 23 October 2026)
================================================== */

/* ---- Friction page: one calm reading column ---- */
.record {
    max-width: 720px;
    margin: 24px auto 56px;
    padding: 0 20px;
}

.record h1,
.record h2 {
    text-align: left;
}

.record-head h1 {
    color: #1e3a8a;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.25;
    margin: 8px 0 14px;
}

.record-meta {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.record-meta a {
    color: #004999;
    font-weight: 600;
}

.record-dot {
    margin: 0 4px;
    color: #888888;
}

.record-meta-item {
    white-space: nowrap;
}

.record-updated {
    color: #555555;
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.record-summary {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #222222;
    margin: 22px 0 0;
    padding-bottom: 26px;
    border-bottom: 1px solid #dde3ea;
}

.record-body h2,
.record-about h2,
.record-related h2 {
    font-size: 1.15rem;
    color: #1e3a8a;
    margin: 30px 0 8px;
}

.record-text,
.record-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    margin: 0 0 12px;
}

.record-quote {
    margin: 8px 0 0;
    padding: 4px 0 4px 18px;
    border-left: 4px solid #004999;
}

.record-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222222;
    margin: 0;
}

.record-about {
    margin-top: 40px;
    padding-top: 6px;
    border-top: 1px solid #dde3ea;
    font-size: 0.95rem;
    color: #444444;
}

.record-explain {
    margin: 0 0 8px;
}

.record-about dl {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 8px 16px;
    margin: 16px 0;
}

.record-about dt {
    font-weight: 600;
    color: #333333;
}

.record-about dd {
    margin: 0;
}

.record .cite-line {
    overflow-wrap: anywhere;
}

.record-improve a {
    color: #004999;
    font-weight: 600;
}

.record-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-related li {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.record-related-cat {
    display: block;
    font-size: 0.85rem;
    color: #666666;
}

.record-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #dde3ea;
}

.record-pager a {
    display: inline-block;
    color: #004999;
    font-weight: 600;
    text-decoration: underline;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.record-pager a:hover,
.record-pager a:focus-visible {
    background-color: #e6eef8;
    color: #003a7a;
}

@media (max-width: 650px) {
    .record {
        margin-top: 12px;
        padding: 0 16px;
    }

    .record-about dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .record-about dd {
        margin-bottom: 10px;
    }


    .record-pager {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---- Phone menu button ----
   Without JavaScript the full menu stays visible (the "js" class is never added). */
.menu-toggle {
    display: none;
}

@media (max-width: 650px) {
    header {
        padding: 20px 16px 0;
    }

    html.js header nav {
        flex-direction: column;
        min-height: 0;
        padding: 4px 0;
        margin: 14px -16px 0;
    }

    html.js .menu-toggle {
        display: block;
        min-height: 44px;
        margin: 6px auto;
        padding: 8px 22px;
        background: transparent;
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.7);
        border-radius: 6px;
        font: inherit;
        font-weight: bold;
        cursor: pointer;
    }

    html.js header nav .menu {
        display: none;
        width: 100%;
    }

    html.js header nav.is-open .menu {
        display: block;
    }
}

header nav .menu-toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* ---- Print: just the record ---- */
@media print {
    @page {
        margin: 16mm;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .skip-link,
    header nav,
    header p,
    footer,
    .breadcrumb,
    .record-related,
    .record-pager,
    .record-improve {
        display: none !important;
    }

    header {
        padding: 0 0 8pt;
        border-bottom: 1px solid #999999;
        text-align: left;
    }

    .logo-brand-container {
        margin: 0;
    }

    .record {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .record-head h1 {
        font-size: 18pt;
        color: #000000;
    }

    .record-meta,
    .record-updated,
    .record-about {
        color: #000000;
    }

    .record-summary,
    .record-text,
    .record-text p,
    .record-quote p {
        font-size: 11pt;
        line-height: 1.45;
        color: #000000;
        max-width: none;
    }

    .record-body h2,
    .record-about h2 {
        font-size: 12pt;
        color: #000000;
        margin: 12pt 0 4pt;
        break-after: avoid;
    }

    .record a {
        color: #000000;
        text-decoration: none;
    }

    .record-quote {
        border-left: 2pt solid #000000;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}

/* ==================================================
N. FRICTION PAGE POLISH (approved 23 October 2026)
================================================== */

/* Title about 10% smaller on tablet and desktop; phones unchanged. */
@media (min-width: 651px) {
    .record-head h1 {
        font-size: clamp(1.45rem, 2.9vw, 1.98rem);
    }
}

/* Breadcrumb "Home › Library" at every width, lined up with the title. */
.breadcrumb.record-crumbs {
    max-width: 720px;
    padding: 0 20px;
}

@media (max-width: 650px) {
    .breadcrumb.record-crumbs {
        padding: 0 16px;
        margin-top: 14px;
    }
}

/* Pager: line the first link's text up with the column edge. */
.record-pager {
    margin-left: -14px;
    margin-right: -14px;
}

@media print {
    .record-pager {
        display: none !important;
    }
}

/* ==================================================
O. ONE BUTTON STYLE (approved 23 October 2026)
   Every action button uses the Submit Friction look:
   solid blue, white text, no underline, rounded corners,
   darker blue on hover, visible keyboard outline.
   Exceptions on purpose: the Library category filter chips
   (on/off choices, not actions) and the phone Menu button
   (it sits on the blue header).
================================================== */
.cta-button,
.hero a.cta-button,
.library-cta .cta-button,
.not-found-links .cta-button,
.search-section button,
.submission-form button,
.contact-form button,
.record-pager a {
    display: inline-block !important;
    box-sizing: border-box;
    background-color: #004999 !important;
    color: #ffffff !important;
    border: 2px solid #004999 !important;
    border-radius: 8px !important;
    padding: 12px 26px !important;
    font-family: inherit;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: 0.3px !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-button:hover,
.hero a.cta-button:hover,
.search-section button:hover,
.submission-form button:hover,
.contact-form button:hover,
.record-pager a:hover {
    background-color: #003b7a !important;
    border-color: #003b7a !important;
    color: #ffffff !important;
}

.cta-button:focus-visible,
.search-section button:focus-visible,
.submission-form button:focus-visible,
.contact-form button:focus-visible,
.record-pager a:focus-visible {
    color: #ffffff !important;
    outline: 3px solid #004999;
    outline-offset: 3px;
}

/* On the blue bands a white edge keeps the blue button visible,
   and the keyboard outline turns white. */
.call-to-action .cta-button,
.library-cta .cta-button,
.about-cta .cta-button,
.submission-cta .cta-button,
.call-to-action .cta-button:hover,
.library-cta .cta-button:hover,
.about-cta .cta-button:hover,
.submission-cta .cta-button:hover {
    border-color: #ffffff !important;
}

.call-to-action .cta-button:focus-visible,
.library-cta .cta-button:focus-visible,
.about-cta .cta-button:focus-visible,
.submission-cta .cta-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Load More: centred under the cards (the script shows it as a block). */
.load-more-button {
    width: fit-content;
    margin: 35px auto 0 !important;
}

/* Previous / All / Next: one row of buttons on wider screens. */
.record-pager {
    margin-left: 0;
    margin-right: 0;
    justify-content: space-between;
    gap: 12px;
}

/* Phones: buttons centred and stacked, same width. */
@media (max-width: 650px) {
    .cta-button,
    .hero a.cta-button,
    .library-cta .cta-button,
    .not-found-links .cta-button,
    .search-section button,
    .submission-form button,
    .contact-form button,
    .record-pager a {
        display: block !important;
        width: 100%;
        max-width: 320px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .load-more-button {
        width: 100%;
    }

    .not-found-links {
        flex-direction: column;
        align-items: center;
    }

    .not-found-links li {
        width: 100%;
        max-width: 320px;
    }

    .record-pager {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .record-pager > span,
    .record-pager > a {
        width: 100%;
        max-width: 320px;
    }

    .record-pager > span:empty {
        display: none;
    }
}
