/* =========================================================
   Write for Us (template-write-for-us.php)
   Hero from tt-tour-listing.css (.tpl-hero), body uses the .ttk system.
   ========================================================= */

.ttw .ttw-hero { padding-bottom: 48px; }
.ttw .tpl-eyebrow { max-width: 100%; white-space: normal; line-height: 1.4; }

/* At-a-glance card in the hero */
.ttw-glance { padding: 24px; background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 24px; box-shadow: 0 18px 44px rgb(18 41 74 / .1); }
.ttw-glance ul { display: grid; gap: 10px; margin: 14px 0 18px; padding: 0; list-style: none; }
.ttw-glance li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f7f9fc; border-radius: 14px; }
.ttw-glance li > .ttk-ic { flex: none; color: var(--o, #ff5e00); }
.ttw-glance small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #64748b); }
.ttw-glance strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy, #1a365d); word-break: break-word; }
.ttw-glance__btn { width: 100%; justify-content: center; }

.ttw-body { padding-bottom: 10px; }
.ttw-sec { margin-top: 64px; scroll-margin-top: 120px; }
.ttw-lead { margin: -4px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--body, #475569); }
.ttw .ttk-h2 { margin-bottom: 20px; }

/* Cards */
.ttw-grid { display: grid; gap: 16px; }
.ttw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ttw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ttw-card { padding: 22px; background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 20px; transition: border-color .2s, box-shadow .2s; }
.ttw-card:hover { border-color: #d7dfea; box-shadow: 0 14px 34px rgb(18 41 74 / .08); }
.ttw-card--flat { background: #fbfcfe; }
.ttw-card--row { display: flex; align-items: flex-start; gap: 16px; }
.ttw-card__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; color: var(--o, #ff5e00); background: var(--o-wash, #fff3eb); border-radius: 14px; }
.ttw-card h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--navy, #1a365d); }
.ttw-card--row h3 { margin-top: 2px; }
.ttw-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body, #475569); }

/* Topics */
.ttw-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ttw-topic { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 16px; }
.ttw-topic__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; color: var(--navy, #1a365d); background: #f1f5fa; border-radius: 12px; }
.ttw-topic h3 { margin: 0 0 3px; font-size: 15.5px; font-weight: 800; color: var(--navy, #1a365d); }
.ttw-topic p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted, #64748b); }

/* Accept / don't accept */
.ttw-dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ttw-box { padding: 22px 24px; border-radius: 20px; }
.ttw-box.is-ok { background: #f3faf6; border: 1px solid #d6efe0; }
.ttw-box.is-no { background: #fdf5f5; border: 1px solid #f3dcdc; }
.ttw-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 18px; font-weight: 800; color: var(--navy, #1a365d); }
.ttw-box.is-ok h3 .ttk-ic { color: #157347; }
.ttw-box.is-no h3 .ttk-ic { color: #c62828; }
.ttw .ttw-checks { grid-template-columns: 1fr; gap: 11px; }
.ttw .ttw-checks li { font-size: 14.5px; }
.ttw .ttw-checks strong { color: var(--navy, #1a365d); }
.ttw-box.is-ok .tpl-ok { color: #157347; }

/* Steps */
.ttw-steps { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ttw-steps li { position: relative; display: flex; gap: 18px; padding: 0 0 22px; }
.ttw-steps li:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; border-left: 2px dashed #d7dfea; }
.ttw-steps__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; font-size: 16px; font-weight: 800; color: #fff; background: var(--o, #ff5e00); border-radius: 50%; box-shadow: 0 6px 16px rgb(255 94 0 / .25); }
.ttw-steps h3 { margin: 8px 0 4px; font-size: 17px; font-weight: 800; color: var(--navy, #1a365d); }
.ttw-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body, #475569); }

/* Notes */
.ttw-notes { margin-top: 18px; padding: 20px 22px; background: #f5f8fc; border-left: 4px solid var(--navy, #1a365d); border-radius: 14px; }
.ttw-notes h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--navy, #1a365d); }
.ttw-notes ul { margin: 0; padding-left: 20px; }
.ttw-notes li { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--body, #475569); }

/* CTA + keywords */
.ttw-cta { margin-top: 64px; }
.ttw-mail { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 700; }
.ttw-mail .ttk-ic { color: var(--o, #ff5e00); }
.ttw-mail a { color: var(--navy, #1a365d); text-decoration: none; word-break: break-all; }
.ttw-mail a:hover { color: var(--o, #ff5e00); }
.ttw-kw { margin-top: 36px; margin-bottom: 40px; }
.ttw-kw h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #64748b); }
.ttw-kw ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ttw-kw li { padding: 6px 12px; font-size: 13px; color: var(--ink, #334155); background: #f5f8fc; border-radius: 999px; }

@media (max-width: 1024px) {
	.ttw-grid--3,
	.ttw-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttw .tpl-hero__in.has-img .ttw-glance { order: 2; }
}
@media (max-width: 640px) {
	.ttw-sec { margin-top: 44px; }
	.ttw-grid--3,
	.ttw-grid--2,
	.ttw-topics,
	.ttw-dual { grid-template-columns: 1fr; }
	.ttw-card,
	.ttw-box { padding: 18px; }
	.ttw-glance { padding: 18px; }
}
