/* Noteleaf components — canonical visual source for frontend and Gutenberg.
   Geometry follows the supplied KG shared CSS; colors are Noteleaf theme tokens.
   Keep legacy .kg-* class names stable for existing posts and block patterns. */
:root{--nl-white:#fff}
.editor-styles-wrapper{--nl-ink:#232626;--nl-muted:#767b79;--nl-line:#e7e9e8;--nl-soft:#f7f8f7;--nl-accent:#25866b;--nl-accent-soft:#edf7f3;--nl-warm:#fff8e8;--nl-blue:#eff6fb;--nl-alert:#fff1f1;--nl-white:#fff}
:is(.post_content,.editor-styles-wrapper) :is(h2.wp-block-heading,h2:not([class]),h2.wp-block-post-title){margin-top:3em;margin-bottom:1.3em;padding:16px 20px;background:var(--nl-soft);border:1px solid var(--nl-line);border-radius:12px;box-shadow:0 3px 10px #00000008;color:var(--nl-ink);font-size:1.45em;font-weight:700;line-height:1.5}
:is(.post_content,.editor-styles-wrapper) :is(h3.wp-block-heading,h3:not([class])){position:relative;margin-top:2.4em;margin-bottom:1em;padding:0 0 10px;border:0;border-bottom:1px solid var(--nl-line);border-radius:0;background:transparent;color:var(--nl-ink);font-size:1.2em;font-weight:700;line-height:1.5}
:is(.post_content,.editor-styles-wrapper) :is(h3.wp-block-heading,h3:not([class]))::after{position:absolute;left:0;bottom:-1px;width:54px;height:3px;border-radius:999px;background:var(--nl-accent);content:""}
:is(.post_content,.editor-styles-wrapper) :is(h4.wp-block-heading,h4:not([class])){margin-top:2em;margin-bottom:.8em;padding:0 0 0 10px;border:0;border-left:3px solid var(--nl-accent);background:transparent;color:var(--nl-ink);font-size:1.05em;font-weight:700;line-height:1.6}
/* Old HTML / patterns and new Gutenberg components share the same primitives. */
:is(.kg-box,.nl-edit-box){box-sizing:border-box;width:100%;margin:28px 0;padding:20px 22px;border:1px solid var(--nl-line);border-radius:12px;color:var(--nl-ink);line-height:1.8;background:var(--nl-white)}
:is(.kg-box,.nl-edit-box) p{margin-top:8px;margin-bottom:0}
:is(.kg-box,.nl-edit-box) p:first-child{margin-top:0}
:is(.kg-box__title,.nl-edit-box__heading){display:block;margin:0 0 8px;font-size:.9em;font-weight:700;letter-spacing:.04em;line-height:1.5}
:is(.kg-box--point,.nl-edit-box--point){background:var(--nl-warm);border-color:#e8d691}
:is(.kg-box--info,.nl-edit-box--info){background:var(--nl-blue);border-color:#c7dce8}
:is(.kg-box--alert,.nl-edit-box--alert){background:var(--nl-alert);border-color:#edc7cf}
:is(.kg-box--conclusion,.nl-edit-box--conclusion){background:var(--nl-accent-soft);border-color:#b9dcd0}
:is(.kg-box--recommend,.nl-edit-box--recommend){background:var(--nl-white);border:2px solid var(--nl-accent);box-shadow:0 4px 14px #0000000a}
:is(.kg-box--point,.nl-edit-box--point) :is(.kg-box__title,.nl-edit-box__heading){color:#78611b}
:is(.kg-box--info,.nl-edit-box--info) :is(.kg-box__title,.nl-edit-box__heading){color:#477a95}
:is(.kg-box--alert,.nl-edit-box--alert) :is(.kg-box__title,.nl-edit-box__heading){color:#a55c63}
:is(.kg-box--conclusion,.nl-edit-box--conclusion,.kg-box--recommend,.nl-edit-box--recommend) :is(.kg-box__title,.nl-edit-box__heading){color:var(--nl-accent)}
:is(.kg-box,.nl-edit-box) :is(.block-editor-inner-blocks,.block-editor-block-list__layout){min-width:0}
/* Responsive table from supplied reference; uses data-label on mobile cells. */
.kg-responsive-table{width:100%;margin:24px 0;overflow:hidden;border:1px solid var(--nl-line);border-radius:12px;background:var(--nl-white);font-size:15px}
.kg-responsive-table__head,.kg-responsive-table__row{display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr}
.kg-responsive-table__head{background:var(--nl-soft);color:var(--nl-ink);font-weight:700}
.kg-responsive-table__head>div,.kg-responsive-table__row>div{padding:13px 15px}
.kg-responsive-table__row{border-top:1px solid var(--nl-line)}
.kg-responsive-table__row>div:first-child{font-weight:700}
.kg-responsive-table__row>div::before{content:none}
/* WordPress native table is also presentable in the editor and front end. */
:is(.post_content,.editor-styles-wrapper) .wp-block-table{overflow-x:auto;margin:24px 0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table table{width:100%;border:1px solid var(--nl-line);border-collapse:separate;border-spacing:0;border-radius:10px;overflow:hidden;font-size:15px}
:is(.post_content,.editor-styles-wrapper) .wp-block-table :is(th,td){padding:12px 14px;border:0;border-right:1px solid var(--nl-line);border-bottom:1px solid var(--nl-line);vertical-align:middle}
:is(.post_content,.editor-styles-wrapper) .wp-block-table tr>:last-child{border-right:0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table tbody tr:last-child>*{border-bottom:0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table th{background:var(--nl-soft);font-weight:700}
/* CTA: supplied legacy markup and the Noteleaf block use equivalent dimensions. */
:is(.kg-cta-a,.nl-edit-cta){box-sizing:border-box;width:100%;max-width:100%;margin:32px 0;padding:28px;background:var(--nl-white);border:1px solid var(--nl-line);border-radius:14px;box-shadow:0 4px 16px #0000000a;color:var(--nl-ink);overflow:hidden;text-align:left}
:is(.kg-cta-a,.nl-edit-cta) *{box-sizing:border-box}
:is(.kg-cta-a .kg-cta__eyebrow,.nl-edit-cta .nl-edit-cta__eyebrow){display:block;margin:0 0 8px;padding:0;color:var(--nl-accent);font-size:13px;font-weight:700;letter-spacing:.04em;line-height:1.5}
:is(.kg-cta-a .kg-cta__title,.nl-edit-cta h3){margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--nl-ink);font-size:22px!important;font-weight:700;line-height:1.5}
.nl-edit-cta h3::after{content:none!important}
:is(.kg-cta-a .kg-cta__text,.nl-edit-cta p){margin:0 0 22px;color:var(--nl-muted);font-size:15px;line-height:1.8}
.kg-cta-a .kg-cta__button-wrap{text-align:center}
:is(.kg-cta-a .kg-cta__btn,.nl-edit-cta .nl-edit-cta__button){display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:220px;max-width:100%;margin:0 auto;padding:14px 26px;background:var(--nl-accent);border:0;border-radius:9px;color:#fff!important;font-size:15px;font-weight:700;line-height:1.5;text-decoration:none!important}
.nl-edit-cta .nl-edit-cta__button{display:flex;width:fit-content}
/* Related horizontal card */
.kg-related-h{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:14px;width:100%;padding:15px;border-radius:10px;background:var(--nl-soft);color:var(--nl-ink)!important;text-decoration:none!important}
.kg-related-h__icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--nl-accent-soft);color:var(--nl-accent);font-size:12px;font-weight:700}
.kg-related-h__label{display:block;margin-bottom:3px;color:var(--nl-accent);font-size:11px;font-weight:700}
.kg-related-h__title{margin:0!important;color:var(--nl-ink);font-size:15px;font-weight:700;line-height:1.6}
.kg-related-h__arrow{color:var(--nl-accent);font-size:24px}
/* FAQ legacy and Gutenberg */
:is(.kg-faq-c,.nl-edit-faq){display:block;margin:0 0 12px;border:1px solid var(--nl-line);border-radius:12px;background:var(--nl-white);overflow:hidden}
:is(.kg-faq-c,.nl-edit-faq) summary{position:relative;display:flex;align-items:center;gap:12px;padding:15px 48px 15px 18px;cursor:pointer;list-style:none;color:var(--nl-ink);font-weight:700;line-height:1.6}
:is(.kg-faq-c,.nl-edit-faq) summary::-webkit-details-marker{display:none}
:is(.kg-faq__q,.kg-faq__a,.nl-edit-faq__q,.nl-edit-faq__a,.nl-edit-faq__editorlabel){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--nl-accent-soft);font-size:13px;font-weight:700}
:is(.kg-faq__a,.nl-edit-faq__a){background:var(--nl-warm)}
:is(.kg-faq-c,.nl-edit-faq) summary::after{position:absolute;top:50%;right:16px;content:"+";transform:translateY(-50%);font-size:20px;font-weight:400}
:is(.kg-faq-c,.nl-edit-faq)[open] summary::after{content:"−"}
:is(.kg-faq-c .kg-faq__answer,.nl-edit-faq .nl-edit-faq__answer){display:flex;align-items:flex-start;gap:12px;padding:4px 18px 18px;line-height:1.8}
.kg-faq__answer-text{flex:1;min-width:0}
.kg-faq__answer-text p{margin:2px 0 0}
/* Editorial sidebar notes */
.kg-voice-b{padding:18px 20px;border:2px solid #232626;border-radius:12px;background:#fff;color:#232626}
.kg-voice-b__head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.kg-voice-b__icon-img{display:block;width:38px!important;height:38px!important;flex-shrink:0;border:2px solid var(--nl-white);border-radius:50%;object-fit:cover;box-shadow:0 1px 5px #00000014}
.kg-voice-b__name{color:#232626;font-size:13px;font-weight:700}
.kg-voice-b p{margin:0;color:#232626;line-height:1.8}
.kg-note-d{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;border:1px solid var(--nl-line);border-radius:8px;color:var(--nl-muted);font-size:13px;line-height:1.8}
.kg-note-d p{margin:0}.kg-note-d__label{flex-shrink:0;color:var(--nl-accent);font-size:10px;font-weight:700;letter-spacing:.06em}
.kg-mini-c{display:flex;align-items:flex-start;gap:10px;color:var(--nl-ink);font-size:14px;line-height:1.8}
.kg-mini-c>span{flex-shrink:0;padding:2px 7px;border-radius:5px;background:var(--nl-accent-soft);color:var(--nl-accent);font-size:11px;font-weight:700}.kg-mini-c p{margin:0}
.kg-summary-a{box-sizing:border-box;margin:24px 0;padding:20px 22px;border:1px solid var(--nl-line);border-radius:12px;background:var(--nl-white)}
.kg-summary-a .kg-summary__title{margin:0 0 10px!important;color:var(--nl-ink);font-weight:700}
.kg-summary-a ul{margin:0;padding:0;list-style:none}.kg-summary-a li{position:relative;margin:7px 0;padding-left:24px;line-height:1.7}
.kg-summary-a li::before{position:absolute;top:.2em;left:0;content:"✓";color:var(--nl-accent);font-weight:700}
.kg-anchor-nav{box-sizing:border-box;margin:28px 0;padding:20px;border:1px solid var(--nl-line);border-radius:14px;background:var(--nl-soft);box-shadow:0 3px 12px #00000008}
.kg-anchor-nav__head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.kg-anchor-nav__mark{flex-shrink:0;padding:4px 8px;border-radius:999px;background:var(--nl-accent);color:#fff;font-size:10px;font-weight:700;letter-spacing:.08em;line-height:1.4}
.kg-anchor-nav__title{margin:0!important;color:var(--nl-accent);font-size:16px;font-weight:700;line-height:1.5}
.kg-anchor-nav__links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.kg-anchor-nav__link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:11px 12px;border:1px solid var(--nl-line);border-radius:9px;background:var(--nl-white);color:var(--nl-ink)!important;font-size:14px;font-weight:700;line-height:1.45;text-decoration:none!important}
.kg-anchor-nav__link:hover{border-color:var(--nl-accent);background:var(--nl-accent-soft)}
.kg-anchor-nav__arrow{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;border-radius:50%;background:var(--nl-accent-soft);color:var(--nl-accent);font-size:12px;line-height:1}
/* Original author card class names remain usable in existing HTML. */
.note-profile-card,.note-profile-card *{box-sizing:border-box}.note-profile-card{position:relative;width:100%;margin:40px 0;padding:0;overflow:hidden;background:var(--nl-white);border:1px solid var(--nl-line);border-radius:16px;box-shadow:0 5px 20px #0000000a;color:var(--nl-ink)}
.note-profile-label{display:flex;align-items:center;gap:10px;padding:11px 20px;background:var(--nl-accent-soft);border-bottom:1px solid var(--nl-line)}
.note-profile-label span{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:5px;background:var(--nl-accent);color:#fff;font-size:10px;font-weight:700;line-height:1.4;letter-spacing:.08em}
.note-profile-label strong{color:var(--nl-accent);font-size:13px;font-weight:700;line-height:1.5}
.note-profile-header{display:flex;align-items:center;gap:18px;padding:24px 24px 20px}
.note-profile-avatar{flex-shrink:0;width:78px;height:78px;padding:3px;border:2px solid var(--nl-line);border-radius:50%;background:#fff;box-shadow:0 2px 10px #0000000a}
.note-profile-avatar img{display:block!important;width:100%!important;height:100%!important;margin:0!important;border-radius:50%;object-fit:cover;aspect-ratio:1}
.note-profile-name{flex:1;min-width:0}.note-profile-role{margin:0 0 5px!important;color:var(--nl-accent);font-size:12px;font-weight:700;line-height:1.5}
.note-profile-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:0!important;color:var(--nl-ink);font-size:22px;font-weight:700;line-height:1.4}
.note-profile-title span{color:var(--nl-muted);font-size:11px;font-weight:500;letter-spacing:.04em}
.note-profile-body{padding:0 24px 24px}.note-profile-body>p{margin:0 0 13px!important;color:var(--nl-ink);font-size:14px;line-height:1.85}.note-profile-body>p:last-of-type{margin-bottom:0!important}.note-profile-lead{color:var(--nl-accent)!important;font-weight:700}
.note-profile-social-title{display:flex;align-items:center;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid var(--nl-line)}
.note-profile-social-title span{color:var(--nl-ink);font-size:12px;font-weight:700}.note-profile-social-title small{color:var(--nl-muted);font-size:10px;font-weight:500;letter-spacing:.05em}
.note-profile-socials{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.note-profile-socials a{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;border:1px solid var(--nl-line);border-radius:50%;background:#fff;color:var(--nl-accent)!important;font-size:16px;text-decoration:none!important;box-shadow:0 2px 7px #00000008}
.note-profile-socials svg{display:block;width:15px;height:15px;fill:currentColor}.note-profile-socials .icon-note-inline span{font-size:9px;font-weight:700}
/* Editor-only controls should not be hidden by frontend details reset. */
.editor-styles-wrapper .nl-edit-faq{padding:12px}.editor-styles-wrapper .nl-edit-faq [contenteditable]{padding:7px 10px;min-height:30px}.editor-styles-wrapper .nl-edit-cta h3::after{display:none}
@media(max-width:768px){
 :is(.post_content,.editor-styles-wrapper) :is(h2.wp-block-heading,h2:not([class])){margin-top:2.6em;padding:14px 16px;font-size:1.25em}
 :is(.post_content,.editor-styles-wrapper) :is(h3.wp-block-heading,h3:not([class])){margin-top:2.2em;font-size:1.12em}
 :is(.post_content,.editor-styles-wrapper) :is(h4.wp-block-heading,h4:not([class])){margin-top:1.8em;font-size:1em}
 :is(.kg-box,.nl-edit-box){margin:24px 0;padding:18px 16px}
 .kg-responsive-table{overflow:visible;border:0;background:transparent}
 .kg-responsive-table__head{display:none}.kg-responsive-table__row{display:block;margin-bottom:16px;overflow:hidden;border:1px solid var(--nl-line);border-radius:10px;background:var(--nl-white)}
 .kg-responsive-table__row>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 13px;border-bottom:1px solid var(--nl-line);font-size:14px}
 .kg-responsive-table__row>div:last-child{border-bottom:0}
 .kg-responsive-table__row>div::before{display:block;flex-shrink:0;content:attr(data-label);color:var(--nl-muted);font-size:12px;font-weight:700}
 .kg-responsive-table__row>div:first-child{background:var(--nl-soft);color:var(--nl-accent);font-size:15px;font-weight:700}
 :is(.kg-cta-a,.nl-edit-cta){margin:26px 0;padding:22px 16px}
 :is(.kg-cta-a .kg-cta__title,.nl-edit-cta h3){font-size:19px!important}
 :is(.kg-cta-a .kg-cta__text,.nl-edit-cta p){font-size:14px}
 :is(.kg-cta-a .kg-cta__btn,.nl-edit-cta .nl-edit-cta__button){display:flex;width:100%;min-width:0}
 .kg-related-h{grid-template-columns:36px 1fr auto;gap:10px}.kg-related-h__icon{width:36px;height:36px}
 :is(.kg-faq-c,.nl-edit-faq) summary{gap:10px;padding:14px 42px 14px 14px;font-size:15px}
 :is(.kg-faq-c .kg-faq__answer,.nl-edit-faq .nl-edit-faq__answer){gap:10px;padding:4px 14px 16px}
 :is(.kg-faq__q,.kg-faq__a,.nl-edit-faq__q,.nl-edit-faq__a){width:28px;height:28px}
 .kg-voice-b{padding:16px}.kg-voice-b__icon-img{width:36px!important;height:36px!important}
 .kg-anchor-nav{margin:24px 0;padding:16px}.kg-anchor-nav__head{align-items:flex-start;margin-bottom:12px}.kg-anchor-nav__title{font-size:15px}.kg-anchor-nav__links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kg-anchor-nav__link{padding:10px;font-size:13px}
 .note-profile-card{margin:32px 0;border-radius:14px}.note-profile-label{padding:10px 16px}.note-profile-header{gap:14px;padding:20px 16px 16px}.note-profile-avatar{width:66px;height:66px}.note-profile-title{font-size:19px}.note-profile-title span{width:100%;font-size:10px}.note-profile-body{padding:0 16px 20px}.note-profile-body>p{font-size:14px;line-height:1.8}
}
@media(max-width:420px){.note-profile-avatar{width:60px;height:60px}.note-profile-header{align-items:flex-start}.note-profile-title{font-size:18px}}
@media(max-width:380px){.kg-anchor-nav__links{grid-template-columns:1fr}}

/* v1.9.5 — original supplied KG component geometry, theme colors only. */
:is(.post_content,.editor-styles-wrapper) :is(.is-style-nl-point,.is-style-nl-info,.is-style-nl-alert,.is-style-nl-conclusion,.is-style-nl-recommend){box-sizing:border-box;margin:28px 0;padding:20px 22px;border:1px solid var(--nl-line);border-radius:12px;line-height:1.8;min-width:0;box-shadow:none}
:is(.post_content,.editor-styles-wrapper) .is-style-nl-point{background:var(--nl-warm);border-color:#e8d691}
:is(.post_content,.editor-styles-wrapper) .is-style-nl-info{background:var(--nl-blue);border-color:#c7dce8}
:is(.post_content,.editor-styles-wrapper) .is-style-nl-alert{background:var(--nl-alert);border-color:#edc7cf}
:is(.post_content,.editor-styles-wrapper) .is-style-nl-conclusion{background:var(--nl-accent-soft);border-color:#b9dcd0}
:is(.post_content,.editor-styles-wrapper) .is-style-nl-recommend{background:var(--nl-white);border:2px solid var(--nl-accent);box-shadow:0 4px 14px #0000000a}
/* Keep the custom box's original .kg-box geometry, too. */
:is(.post_content,.editor-styles-wrapper) :is(.nl-edit-box--point,.nl-edit-box--info,.nl-edit-box--alert,.nl-edit-box--conclusion){border-width:1px;border-style:solid;border-radius:12px;box-shadow:none;padding:20px 22px}
:is(.post_content,.editor-styles-wrapper) .nl-edit-box--point{background:var(--nl-warm);border-color:#e8d691}
:is(.post_content,.editor-styles-wrapper) .nl-edit-box--info{background:var(--nl-blue);border-color:#c7dce8}
:is(.post_content,.editor-styles-wrapper) .nl-edit-box--alert{background:var(--nl-alert);border-color:#edc7cf}
:is(.post_content,.editor-styles-wrapper) .nl-edit-box--conclusion{background:var(--nl-accent-soft);border-color:#b9dcd0}
:is(.post_content,.editor-styles-wrapper) .nl-edit-box--recommend{background:var(--nl-white);border:2px solid var(--nl-accent);border-radius:12px;box-shadow:0 4px 14px #0000000a;padding:20px 22px}
.nl-taxonomy-part{max-width:940px;margin:0 auto 36px;min-width:0}
.nl-taxonomy-part--bottom{margin-top:38px;margin-bottom:0;border-top:1px solid var(--nl-line);padding-top:22px}
.nl-taxonomy-part .nl-blog-part > :first-child{margin-top:0}
.nl-taxonomy-part .nl-blog-part > :last-child{margin-bottom:0}
@media(max-width:600px){:is(.post_content,.editor-styles-wrapper) :is(.is-style-nl-point,.is-style-nl-info,.is-style-nl-alert,.is-style-nl-conclusion,.is-style-nl-recommend){padding:18px 16px}}

/* Noteleaf editable table: native semantic markup, same rules in editor + frontend. */
:is(.post_content,.editor-styles-wrapper) .nl-data-table{box-sizing:border-box;width:100%;max-width:100%;margin:24px 0;overflow-x:auto;background:var(--nl-white);border:1px solid var(--nl-line);border-radius:12px}
:is(.post_content,.editor-styles-wrapper) .nl-data-table table{width:100%;min-width:460px;border-collapse:collapse;border-spacing:0;table-layout:auto;font-size:15px;margin:0}
:is(.post_content,.editor-styles-wrapper) .nl-data-table caption{caption-side:top;text-align:left;font-size:13px;color:var(--nl-muted);padding:10px 14px}
:is(.post_content,.editor-styles-wrapper) .nl-data-table thead{background:var(--nl-soft)}
:is(.post_content,.editor-styles-wrapper) .nl-data-table th,:is(.post_content,.editor-styles-wrapper) .nl-data-table td{padding:12px 14px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--nl-line);overflow-wrap:anywhere;line-height:1.65}
:is(.post_content,.editor-styles-wrapper) .nl-data-table th{font-weight:700}
:is(.post_content,.editor-styles-wrapper) .nl-data-table tr:last-child td{border-bottom:0}
:is(.post_content,.editor-styles-wrapper) .nl-data-table td:first-child{font-weight:700}
.nl-table-editor__actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.nl-table-editor__caption{margin:0 0 8px;font-size:13px;color:var(--nl-muted)}
.nl-table-editor .nl-data-table{margin:0}
.nl-table-editor .nl-data-table table{min-width:0}
.nl-table-editor .nl-data-table :is(th,td) .block-editor-rich-text__editable{min-height:1.5em;min-width:50px;outline-offset:2px}
@media(max-width:600px){
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards{overflow:visible;border:0;background:transparent}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards table{display:block;min-width:0;width:100%}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards thead{display:none}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards tbody{display:block}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards tr{display:block;overflow:hidden;margin:0 0 14px;background:var(--nl-white);border:1px solid var(--nl-line);border-radius:10px}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards td{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:10px 13px;border-bottom:1px solid var(--nl-line);font-weight:400}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards td::before{content:attr(data-label);display:block;flex:0 0 42%;font-size:12px;font-weight:700;color:var(--nl-muted);overflow-wrap:anywhere}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards td:first-child{background:var(--nl-soft);font-weight:700}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--cards tr td:last-child{border-bottom:0}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
 :is(.post_content,.editor-styles-wrapper) .nl-data-table--scroll table{min-width:520px}
}

/* v1.9.7 — interview pillar components, in both the editor and public article. */
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps{display:grid;gap:10px;list-style:none;padding:0;margin:26px 0 34px;counter-reset:none}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li{min-width:0;margin:0;padding:0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a{display:grid;grid-template-columns:72px minmax(0,1fr);gap:2px 15px;align-items:center;padding:14px 16px;border:1px solid var(--nl-line);border-radius:10px;background:var(--nl-white);color:var(--nl-ink);text-decoration:none}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a:hover{border-color:var(--nl-accent);background:var(--nl-accent-soft)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a>span{grid-row:span 2;color:var(--nl-accent);font-size:12px;font-weight:700;white-space:nowrap}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a>strong{min-width:0;font-size:15px;line-height:1.55}
:is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a>small{min-width:0;color:var(--nl-muted);font-size:12px;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) .kg-interview-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding-left:1.5em}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:25px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div{min-width:0;padding:17px 14px;border:1px solid var(--nl-line);border-radius:10px;background:var(--nl-soft)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>span{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;margin-bottom:10px;border-radius:50%;background:var(--nl-accent);color:var(--nl-white);font-size:13px;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>strong,:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>small{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>strong{font-size:15px}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>small{margin-top:4px;color:var(--nl-muted);font-size:12px;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) .kg-interview-links{display:grid;gap:10px;margin:22px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid .kg-related-h{min-width:0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-types :is(.kg-responsive-table__head,.kg-responsive-table__row){grid-template-columns:minmax(90px,1fr) minmax(0,1.35fr) minmax(0,1.65fr)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-area-links{display:flex;flex-wrap:wrap;gap:9px;margin:24px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-area-links>a{display:inline-flex;align-items:center;min-height:40px;padding:7px 14px;border:1px solid var(--nl-line);border-radius:999px;background:var(--nl-white);color:var(--nl-accent);font-size:14px;font-weight:700;text-decoration:none}
:is(.post_content,.editor-styles-wrapper) .kg-interview-area-links>a:hover{border-color:var(--nl-accent);background:var(--nl-accent-soft)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline{display:grid;gap:0;margin:25px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div{position:relative;min-width:0;padding:0 0 24px 25px;border-left:2px solid var(--nl-line)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div:last-child{border-left-color:transparent;padding-bottom:0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div::before{position:absolute;top:.48em;left:-6px;width:10px;height:10px;border-radius:50%;background:var(--nl-accent);content:""}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div>span,:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div>strong{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div>span{color:var(--nl-accent);font-size:12px;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div>strong{margin:4px 0;font-size:15px;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline>div>p{margin:0;color:var(--nl-muted);font-size:14px;line-height:1.7}
@media(max-width:680px){
 :is(.post_content,.editor-styles-wrapper) .kg-interview-flow,:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid{grid-template-columns:1fr}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div{display:grid;grid-template-columns:27px minmax(0,1fr);gap:0 10px;align-items:center;padding:12px 14px}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>span{grid-row:span 2;margin:0}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-flow>div>small{margin:0}
}
@media(max-width:480px){
 :is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a{grid-template-columns:1fr;gap:3px;padding:13px 14px}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-steps>li>a>span{grid-row:auto}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-checklist{grid-template-columns:1fr}
 :is(.post_content,.editor-styles-wrapper) .kg-interview-area-links>a{font-size:13px;padding-inline:12px}
}

/* v1.9.9 — retain visual list components while each item stays editable in Gutenberg. */
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps{counter-reset:interview-step;list-style:none;padding:0}
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li{counter-increment:interview-step;display:grid;grid-template-columns:72px minmax(0,1fr);gap:2px 15px;align-items:center;padding:14px 16px;border:1px solid var(--nl-line);border-radius:10px;background:#fff}
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li::before{content:'STEP ' counter(interview-step);grid-row:span 2;color:var(--nl-accent);font-size:12px;font-weight:700;white-space:nowrap}
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li>a{display:block;padding:0;border:0;border-radius:0;background:none;color:var(--nl-ink);font-size:15px;font-weight:700;line-height:1.55;text-decoration:none}
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li>a:hover{background:none;color:var(--nl-accent);text-decoration:underline}
:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li>small{grid-column:2;color:var(--nl-muted);font-size:12px;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) :is(.kg-interview-flow-list,.kg-interview-timeline-list){list-style:none;padding:0;counter-reset:interview-item}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:25px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list>li{counter-increment:interview-item;min-width:0;margin:0;padding:17px 14px;border:1px solid var(--nl-line);border-radius:10px;background:var(--nl-soft);font-size:12px;line-height:1.6;color:var(--nl-muted)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list>li::before{content:counter(interview-item);display:flex;align-items:center;justify-content:center;width:27px;height:27px;margin-bottom:10px;border-radius:50%;background:var(--nl-accent);color:#fff;font-size:13px;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list>li>strong{display:block;color:var(--nl-ink);font-size:15px}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline-list{margin:25px 0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline-list>li{position:relative;margin:0;padding:0 0 24px 25px;border-left:2px solid var(--nl-line);font-size:14px;line-height:1.7;color:var(--nl-muted)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline-list>li:last-child{border-left-color:transparent;padding-bottom:0}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline-list>li::before{position:absolute;top:.48em;left:-6px;width:10px;height:10px;border-radius:50%;background:var(--nl-accent);content:''}
:is(.post_content,.editor-styles-wrapper) .kg-interview-timeline-list>li>strong{display:block;color:var(--nl-ink);font-size:15px}
:is(.post_content,.editor-styles-wrapper) ul.kg-interview-area-list{display:flex;flex-wrap:wrap;gap:9px;list-style:none;padding:0;margin:24px 0}
:is(.post_content,.editor-styles-wrapper) ul.kg-interview-area-list>li{margin:0}
:is(.post_content,.editor-styles-wrapper) ul.kg-interview-area-list>li>a{display:inline-flex;align-items:center;min-height:40px;padding:7px 14px;border:1px solid var(--nl-line);border-radius:999px;background:#fff;color:var(--nl-accent);font-size:14px;font-weight:700;text-decoration:none}
:is(.post_content,.editor-styles-wrapper) .kg-interview-links>p,:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid>p{min-width:0;margin:0}
@media(max-width:680px){:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list{grid-template-columns:1fr}:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list>li{display:grid;grid-template-columns:27px minmax(0,1fr);gap:0 10px;align-items:center;padding:12px 14px}:is(.post_content,.editor-styles-wrapper) .kg-interview-flow-list>li::before{grid-row:span 2;margin:0}}
@media(max-width:480px){:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li{grid-template-columns:1fr;gap:3px;padding:13px 14px}:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li::before{grid-row:auto}:is(.post_content,.editor-styles-wrapper) ol.kg-interview-steps>li>small{grid-column:1}}

/* v1.9.10: display corrections */
/* 本文のリンク色 */
:is(.post_content,.editor-styles-wrapper) a:not(.kg-cta__btn):not(.nl-edit-cta__button){color:#1176d4!important}
:is(.post_content,.editor-styles-wrapper) a:not(.kg-cta__btn):not(.nl-edit-cta__button):hover{color:#0c5faa!important}
:is(.post_content,.editor-styles-wrapper) :is(.kg-cta__btn,.nl-edit-cta__button){color:#fff!important}

/* 関連記事：グループの自動余白・中央寄せを解除 */
:is(.post_content,.editor-styles-wrapper) :is(.kg-interview-links,.kg-interview-link-grid){display:grid!important;gap:12px!important;align-items:stretch;margin:16px 0 28px!important;padding:0!important}
:is(.post_content,.editor-styles-wrapper) .kg-interview-links{grid-template-columns:minmax(0,1fr)}
:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(.post_content,.editor-styles-wrapper) :is(.kg-interview-links,.kg-interview-link-grid)>*{min-width:0;width:100%;max-width:none!important;margin:0!important;align-self:stretch}
:is(.post_content,.editor-styles-wrapper) .kg-related-h{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;height:100%;margin:0;padding:16px;border:1px solid #e7e9e8;border-radius:10px;background:#f7f8f7;color:#1176d4!important;text-decoration:none!important;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) .kg-related-h>span{min-width:0}
:is(.post_content,.editor-styles-wrapper) .kg-related-h__icon{display:flex;width:42px;height:42px;align-items:center;justify-content:center;background:#eaf3fc;color:#1176d4;border-radius:50%;font-size:11px}
:is(.post_content,.editor-styles-wrapper) .kg-related-h__label{display:block;margin:0 0 3px;color:#626b72;font-size:11px;line-height:1.4}
:is(.post_content,.editor-styles-wrapper) .kg-related-h__title{display:block;margin:0;color:#1176d4;font-size:15px;font-weight:700;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) .kg-related-h__arrow{color:#1176d4;text-align:right;font-size:24px;line-height:1}
:is(.post_content,.editor-styles-wrapper) .kg-related-h:hover{border-color:#1176d4;background:#f0f6fc}
:is(.post_content,.editor-styles-wrapper) .kg-related-h:hover .kg-related-h__title{text-decoration:underline}

/* FAQ：標準のdetailsブロックを閉じた状態で表示 */
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq{margin:0 0 12px;padding:0;border:1px solid #dce1e3;border-radius:10px;background:#fff;overflow:hidden}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>summary{position:relative;display:flex;align-items:center;gap:12px;margin:0;padding:16px 48px 16px 16px;list-style:none;cursor:pointer;font-weight:700;line-height:1.6;color:#232626}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>summary::-webkit-details-marker{display:none}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>summary::before{content:'Q';display:flex;flex:0 0 28px;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#eaf3fc;color:#1176d4;font-size:13px}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>summary::after{content:'+';position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:400}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq[open]>summary::after{content:'−'}
:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>p{margin:0!important;padding:0 18px 18px 56px;font-size:15px;line-height:1.85}
:is(.post_content,.editor-styles-wrapper) :is(.nl-interview-faq,.nl-edit-faq,.kg-faq-c):not([open])>:not(summary){display:none}
@media(max-width:680px){:is(.post_content,.editor-styles-wrapper) .kg-interview-link-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){:is(.post_content,.editor-styles-wrapper) .kg-related-h{grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;padding:13px}:is(.post_content,.editor-styles-wrapper) .kg-related-h__icon{width:34px;height:34px;font-size:10px}:is(.post_content,.editor-styles-wrapper) .kg-related-h__title{font-size:14px}:is(.post_content,.editor-styles-wrapper) .nl-interview-faq>p{padding-left:18px}}
/* v1.9.15: Step explanation (kg-steps) — 問題の解き方・手順を見出しを使わずに示す */
:is(.post_content,.editor-styles-wrapper) ol.kg-steps{counter-reset:kg-step;list-style:none;margin:24px 0 30px;padding:0}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li{counter-increment:kg-step;position:relative;margin:0;padding:0 0 22px 50px;line-height:1.8}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li::before{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--nl-accent);color:#fff;content:counter(kg-step);font-size:14px;font-weight:700;line-height:1}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li::after{position:absolute;top:40px;bottom:6px;left:16px;width:2px;border-radius:2px;background:var(--nl-line);content:""}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li:last-child{padding-bottom:0}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li:last-child::after{display:none}
.kg-steps__label{display:block;color:var(--nl-accent);font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.4}
.kg-steps__title{display:block;margin:2px 0 4px;color:var(--nl-ink);font-size:1.02em;font-weight:700;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li p{margin:4px 0 0}
/* 例題ボックス（kg-box と併用: class="kg-box kg-box--question"） */
.kg-box--question{background:var(--nl-soft);border-color:var(--nl-line)}
.kg-box--question .kg-box__title{color:var(--nl-accent)}
/* Speech bubble spacing for multi-paragraph kg-voice-b (group block) */
.kg-voice-b{box-sizing:border-box;margin-top:28px;margin-bottom:28px}
.kg-voice-b>.kg-voice-b__head+p{margin-top:0}
.kg-voice-b p+p{margin-top:.7em!important}
@media(max-width:480px){:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li{padding-left:44px}:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li::before{width:30px;height:30px;font-size:13px}:is(.post_content,.editor-styles-wrapper) ol.kg-steps>li::after{top:36px;left:14px}}

/* v1.9.16: カード表示の表で、キャプションが細い縦長になる不具合を修正 */
.nl-data-table--cards caption{display:block;width:100%;box-sizing:border-box;padding:0 2px 8px;font-weight:700}
.kg-note-d p+p{margin-top:4px}
