/*
Theme Name: Link Generator
Author: Local Build
Description: WordPress theme for generated link posts with a shared analog links column.
Version: 1.0.0
Text Domain: linkgen
*/

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

html {
    min-height: 100%;
    background: #fff;
}

body {
    min-height: 100%;
    margin: 0;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body::before {
    content: "";
    display: none;
}

body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #4c6079;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin-top: 0;
}

#primary,
.site-content,
.ast-container,
.content-area,
.entry-content {
    margin-top: 0;
}

.site-header,
.site-footer,
.site-main {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    padding: 26px 0 18px;
}

.site-footer {
    min-height: 40px;
    padding: 32px 0;
}

.site-title {
    margin: 0;
    color: #303747;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
}

.site-main {
    padding: 24px 0 72px;
}

.entry-header {
    margin-bottom: 42px;
    text-align: center;
}

.entry-title {
    margin: 0;
    color: #303747;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.entry-title a {
    color: inherit;
}

.entry-content {
    min-width: 0;
}

.linkgen-link-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.linkgen-link-list,
.linkgen-analog-list,
.linkgen-post-list {
    min-width: 0;
}

.linkgen-link-list p,
.linkgen-analog-list p {
    margin: 0 0 0.55em;
}

.linkgen-link-list a,
.linkgen-analog-list a {
    color: #4c6079;
}

.linkgen-analog-list {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.linkgen-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.linkgen-post-list article {
    display: block;
    overflow: hidden;
    min-height: 0 !important;
     margin: 0 !important;
    padding: 26px 32px !important;
    background: #fff;
    border-bottom: 1px solid #d7dbef;
}

.linkgen-post-list .entry-header {
    margin: 0 0 20px !important;
    padding: 0 !important;
    text-align: left;
}

.linkgen-post-list .entry-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.linkgen-post-list .entry-content {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.linkgen-post-list .linkgen-link-list {
    display: block !important;
    max-height: 4.35em;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.45;
}

.linkgen-post-list .linkgen-link-list p {
    display: inline !important;
    width: auto !important;
    margin: 0 24px 0 0 !important;
    padding: 0 !important;
    line-height: 1.45;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.linkgen-post-list .linkgen-link-list a {
    margin-left: 4px;
}

.linkgen-post-list .linkgen-link-list p::after {
    content: "";
    display: inline;
}

.navigation,
.pagination,
.nav-links {
    margin-top: 34px;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-numbers,
.nav-links a,
.nav-links span {
    color: #4c6079;
}

@media (max-width: 900px) {
    .site-header,
    .site-footer,
    .site-main {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        padding-top: 20px;
    }

    .site-main {
        padding-top: 18px;
        padding-bottom: 56px;
    }

    .linkgen-link-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .entry-header {
        margin-bottom: 30px;
    }

    .entry-title {
        font-size: 28px;
    }

    .linkgen-post-list .entry-title {
        font-size: 20px;
    }

    .linkgen-post-list article {
        height: 210px !important;
        padding: 22px 20px !important;
    }

    .linkgen-post-list .entry-title {
        font-size: 20px;
    }

    .linkgen-post-list .linkgen-link-list p {
        white-space: normal;
    }

    .linkgen-post-list .linkgen-link-list {
        max-height: 4.35em;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .site-title {
        font-size: 24px;
    }

    .entry-title {
        font-size: 25px;
    }
}
