/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.7;
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #7DA5F3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
    margin: 0 6px;
}

/* ─── Article wrapper ─────────────────────────────────────────────────────── */
.article,
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #222;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 16px;
    color: #222;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 32px 0 12px;
    color: #333;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #333;
}

/* ─── Meta (author / date line) ──────────────────────────────────────────── */
.meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* ─── Body text ───────────────────────────────────────────────────────────── */
p {
    font-size: 17px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

ul,
ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

li {
    font-size: 17px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
}

a {
    color: #7DA5F3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

/* ─── Callout boxes ───────────────────────────────────────────────────────── */
.info-box,
.highlight {
    background: #f0f5ff;
    border-left: 4px solid #7DA5F3;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.info-box p:last-child,
.highlight p:last-child {
    margin-bottom: 0;
}

.warning-box,
.note {
    background: #fff9e6;
    border-left: 4px solid #ffd966;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box strong,
.note strong {
    color: #cc8800;
}

.print-tip,
.example-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
}

.example-box h4 {
    margin-top: 0;
    color: #2e7d32;
}

/* ─── Checklist ───────────────────────────────────────────────────────────── */
.checklist {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.checklist h3 {
    margin-top: 0;
    color: #7DA5F3;
}

/* ─── CTA box ─────────────────────────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, #7DA5F3, #9BBEF7);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 48px 0;
}

.cta-box h3 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 26px;
}

.cta-box p {
    color: #fff;
    margin-bottom: 24px;
    font-size: 17px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #7DA5F3;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ─── App store badges (in-page CTA) ─────────────────────────────────────── */
.download-section {
    text-align: center;
    margin-top: 24px;
}

.app-store-badge {
    display: inline-block;
    margin: 8px;
}

.app-store-badge img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    vertical-align: middle;
}

.app-store-badge img[alt*="App Store"] {
    height: 35px;
}

/* ─── Tables ──────────────────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

th {
    background: #f8f9fa;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}

/* ─── Related articles ────────────────────────────────────────────────────── */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.related-articles h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.related-articles a {
    display: block;
    color: #7DA5F3;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* ─── Author page ─────────────────────────────────────────────────────────── */
.author-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    border-bottom: 1px solid #eee;
}

.author-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.author-header p {
    color: #666;
    font-size: 16px;
}

.guides-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.author-guide-card {
    display: block;
    padding: 20px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.author-guide-card:hover {
    border-color: #7DA5F3;
    box-shadow: 0 2px 12px rgba(125, 165, 243, 0.15);
    text-decoration: none;
}

.author-guide-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.4;
}

.read-more {
    font-size: 14px;
    color: #7DA5F3;
    font-weight: 600;
}

/* ─── About page ──────────────────────────────────────────────────────────── */
.build-photo {
    margin: 44px 0;
}

.build-photo img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: 12px;
}

.build-photo figcaption {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 12px;
    font-style: italic;
}

.signature {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 16px;
    color: #888;
}

.signature strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    .cta-box { padding: 30px 24px; }
    .cta-box h3 { font-size: 22px; }
    .build-photo img { border-radius: 0; max-height: 420px; }
}
