/* ==========================================================================
   LatinosPC - Pens, Pencils & Drawing Tablets Guide Stylesheet
   Preserving the distinctive, colorful identity of pencil.css (light blue/gray card
   gradients, fiery orange/gold headings, rainbow legend accents, signature dt/dd)
   with simple, modern elegance and responsive site harmony.
   ========================================================================== */

/* Main Container & Base Typography */
.article.fullbar.pencil-guide,
.pencil-guide,
article.article.fullbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3.5rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}


/* Page Heading */
.article.fullbar.pencil-guide>a:first-of-type,
.article.fullbar.pencil-guide>a h1 {
    text-decoration: none;
}

.article.fullbar.pencil-guide h1 {
    color: #1e3a8a;
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 0 1.25rem 0;
    letter-spacing: -0.025em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.article.fullbar.pencil-guide>a:hover h1 {
    color: #2563eb;
}

/* Page Subtitles */
.article.fullbar.pencil-guide>p.sub_title {
    text-align: center;
    color: #475569;
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0.25rem auto;
    max-width: 900px;
    line-height: 1.5;
}

.sub_title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin: 1.25rem 0 0.75rem 0;
    font-family: inherit;
}

article .sub_title {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Blurb Cards (Preserved Subtle Gradient & Elevated Soft Shadows) */
.blurb {
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid rgba(85, 149, 245, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background-image: linear-gradient(to right, rgba(85, 149, 245, 0.14), #ebeef1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.blurb:hover {
    background-color: #f1f5f9;
    background-image: linear-gradient(to right, #e2e8f0, #cbd5e1);
    border-color: rgba(85, 149, 245, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Signature Fiery Orange-Gold Gradient Headings (Preserved) */
.blurb span,
.last_item,
article li strong {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 8px;
    background-image: linear-gradient(to right, #ef4444, #f97316, #84cc16);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Signature Rainbow Fieldset Legend (Preserved & Elevated) */
.blurb legend {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    background-image: linear-gradient(to right, rgb(58, 148, 25), rgb(45, 101, 243), rgb(174, 29, 31));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding: 0 10px;
    background-color: transparent;
}

/* Body Text & Paragraphs (Clean, Readable Contrast) */
.blurb p,
.article details p,
.blurb dd {
    line-height: 1.65;
    color: #334155;
    font-size: 1rem;
    font-weight: 450;
    margin: 0.6rem 0;
    font-stretch: normal;
}

.spacio {
    padding-left: 15px;
}

/* Subtle Elegant Section Divider */
.article hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 101, 243, 0.25), transparent);
    margin: 1.5rem auto;
    max-width: 90%;
}

/* Column Break Control */
.colms p,
.colms2 p,
.avdrk,
.advrk {
    break-inside: avoid;
}

/* Deep Blue Signature Gradient Text (Preserved) */
article summary,
.bluey {
    display: inline-block;
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.15rem;
    font-weight: 700;
}

.bluey {
    display: block;
    padding: 4px 0;
    margin-bottom: 4px;
}

/* Collapsible Interactive Details Cards */
article details {
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(85, 149, 245, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    background-image: linear-gradient(to right, rgba(85, 149, 245, 0.14), #ebeef1);
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

article details:hover,
article details:focus {
    background-color: #f1f5f9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background-image: linear-gradient(to right, #e2e8f0, #cbd5e1);
}

article details summary {
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    outline: none;
}

/* Fieldset Modern Cards */
fieldset.avdrk,
fieldset.advrk {
    background: #ffffff;
    border: 1px solid rgba(85, 149, 245, 0.22);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

fieldset.avdrk:hover,
fieldset.advrk:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 101, 243, 0.45);
    box-shadow: 0 6px 16px rgba(45, 101, 243, 0.1);
}

/* List Items */
article li {
    list-style: inside;
    font-size: 1.05rem;
    padding-top: 8px;
    line-height: 1.6;
}

/* Signature Definition Lists (Preserved & Elevated) */
dl {
    border-radius: 10px;
    margin: 1.25rem 0;
}

/* Term (dt) */
dt {
    background: linear-gradient(135deg, #f0f4ff 0%, #cce0ff 100%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #0044cc;
    margin: 14px 0 6px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 68, 204, 0.15);
    display: inline-block;
}

/* Description (dd) */
dd {
    color: #334155;
    margin: 6px 0 16px 16px;
    padding: 10px 16px;
    border-left: 5px solid #0044cc;
    border-radius: 0 8px 8px 0;
    background: rgba(240, 244, 255, 0.35);
    line-height: 1.6;
}

/* Research Footnote (Standardized Disclaimer) */
.research-footnote {
    margin: 2.5rem auto 1.5rem auto;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
    box-sizing: border-box;
    clear: both;
}

.footnote-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem auto 1rem auto;
    max-width: 100%;
}

.footnote-text,
.research-footnote h3,
.research-footnote p {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
    font-family: inherit;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .article.fullbar.pencil-guide,
    .pencil-guide,
    article.article.fullbar {
        padding: 0.75rem 1rem 2.5rem 1rem;
    }

    .article.fullbar.pencil-guide h1 {
        font-size: 1.75rem;
    }

    .blurb {
        padding: 16px 18px;
        margin-bottom: 20px;
    }

    dt {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    dd {
        margin-left: 6px;
        padding: 8px 12px;
    }
}