
/* Article rebuild scope: article body only. Site shell/background/header/docks remain original. */
.rebuild-editorial{background:transparent!important;box-shadow:none!important}
.rebuild-editorial .rebuild-prose{max-width:860px;color:var(--ink);font-size:16px;line-height:1.95;letter-spacing:.005em;line-break:strict;word-break:normal;overflow-wrap:break-word}
.rebuild-editorial .rebuild-prose p{margin:0 0 15px}
.rebuild-editorial .rebuild-prose h3{margin:27px 0 9px;color:var(--ink);font-size:18px;line-height:1.55;font-weight:800;letter-spacing:.01em}
.rebuild-editorial .rebuild-prose h3:first-child{margin-top:0}
.rebuild-editorial .rebuild-key{margin:17px 0 20px;padding:11px 0 11px 16px;border-left:3px solid var(--accent);color:var(--ink);font-size:18px;line-height:1.8;font-weight:760}
.rebuild-editorial .rebuild-quick{margin-top:19px;padding-top:14px;border-top:1px solid var(--line);color:var(--ink);font-weight:650}
.rebuild-editorial .rebuild-rule{margin:0 0 18px;color:var(--ink);font-size:19px;line-height:1.75;font-weight:780;line-break:strict}
.rebuild-editorial table{width:100%;border-collapse:collapse;table-layout:auto;background:transparent!important;color:var(--ink)}
.rebuild-editorial th,.rebuild-editorial td{padding:12px 11px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;background:transparent!important;line-height:1.75;line-break:strict;word-break:normal;overflow-wrap:break-word}
.rebuild-editorial th{border-top:1px solid var(--line-strong);color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.04em}
.rebuild-editorial td:first-child{font-weight:750;color:var(--ink)}
.rebuild-editorial .rebuild-jp{font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;color:var(--ink);line-height:2}
.rebuild-editorial .rebuild-examples{border-top:1px solid var(--line-strong)}
.rebuild-editorial .rebuild-example{padding:23px 0 25px;border-bottom:1px solid var(--line);background:transparent!important;box-shadow:none!important;border-radius:0!important}
.rebuild-editorial .rebuild-example:last-child{padding-bottom:0;border-bottom:0}
.rebuild-editorial .rebuild-example-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.rebuild-editorial .rebuild-example-label{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.07em}
.rebuild-editorial .rebuild-example-actions{display:flex;gap:4px;flex:0 0 auto}
.rebuild-editorial .rebuild-example-actions button{min-width:38px;min-height:36px;padding:4px 7px;border:0;background:transparent!important;color:var(--accent);box-shadow:none!important}
.rebuild-editorial .rebuild-example-jp{margin:0;color:var(--ink);font-size:20px;line-height:2;line-break:strict;word-break:normal}
.rebuild-editorial .rebuild-example-jp .grammar{color:var(--accent);font-weight:800}
.rebuild-editorial .rebuild-translation{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.75}
.rebuild-editorial .rebuild-note{margin:20px 0 0;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink);font-weight:650;line-height:1.8}
.rebuild-editorial .rebuild-compare td:nth-child(1){width:180px;font-family:"Noto Sans JP","Yu Gothic",sans-serif}
.rebuild-editorial .rebuild-compare td:nth-child(2){width:125px;color:var(--accent);font-weight:700}
.rebuild-editorial .rebuild-compare tr.current td{border-top:2px solid var(--accent);border-bottom:2px solid var(--accent)}
.rebuild-related{background:transparent!important;box-shadow:none!important}
.rebuild-related .related-intro{margin-bottom:10px;color:var(--muted)}
.rebuild-related ul{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.rebuild-related li{padding:13px 0;border-bottom:1px solid var(--line);color:var(--ink);line-height:1.7}
.rebuild-related strong{font-family:"Noto Sans JP","Yu Gothic",sans-serif}
html[data-theme="dark"] .rebuild-editorial .rebuild-prose,
html[data-theme="dark"] .rebuild-editorial .rebuild-prose h3,
html[data-theme="dark"] .rebuild-editorial .rebuild-key,
html[data-theme="dark"] .rebuild-editorial .rebuild-quick,
html[data-theme="dark"] .rebuild-editorial .rebuild-rule,
html[data-theme="dark"] .rebuild-editorial td,
html[data-theme="dark"] .rebuild-editorial .rebuild-example-jp,
html[data-theme="dark"] .rebuild-editorial .rebuild-note,
html[data-theme="dark"] .rebuild-related li{color:var(--ink)!important}
html[data-theme="dark"] .rebuild-editorial .rebuild-translation,
html[data-theme="dark"] .rebuild-editorial th,
html[data-theme="dark"] .rebuild-related .related-intro{color:var(--muted)!important}

/* Explicitly requested mobile header-control behavior: voice + furigana on one row, metadata below. */
@media(max-width:430px){
  .article-head .center-compact-row{padding-left:8px!important;padding-right:8px!important}
  .article-head .center-compact-row > .context-info{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;column-gap:8px!important;row-gap:8px!important}
  .article-head .center-compact-row .n2-voice-setting{order:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:154px!important;white-space:nowrap!important;font-size:12px!important;gap:5px!important}
  .article-head .center-compact-row .n2-voice-select{width:100px!important;min-width:100px!important;max-width:100px!important;height:38px!important;padding-left:6px!important;padding-right:18px!important;font-size:12px!important}
  .article-head .center-compact-row .content-inline-action{order:2!important;flex:0 0 auto!important;min-width:94px!important;min-height:38px!important;padding:6px 9px!important;white-space:nowrap!important;font-size:12px!important}
  .article-head .center-compact-row .context-meta-group{order:3!important;flex:0 0 100%!important;width:100%!important;justify-content:center!important;margin-top:1px!important;font-size:12px!important;gap:5px 9px!important}
  .rebuild-editorial .rebuild-prose{font-size:15px;line-height:1.9}
  .rebuild-editorial .rebuild-key{font-size:17px;padding-left:12px}
  .rebuild-editorial .rebuild-rule{font-size:17px}
  .rebuild-editorial .rebuild-example-jp{font-size:18px;line-height:2}
  .rebuild-editorial .rebuild-example-head{align-items:flex-start}
  .rebuild-editorial table,.rebuild-editorial tbody,.rebuild-editorial tr,.rebuild-editorial td{display:block;width:100%!important}
  .rebuild-editorial thead{display:none}
  .rebuild-editorial tr{padding:13px 0;border-bottom:1px solid var(--line)}
  .rebuild-editorial tr:first-child{border-top:1px solid var(--line-strong)}
  .rebuild-editorial td{padding:3px 0;border:0!important}
  .rebuild-editorial .rebuild-connection td:nth-child(2)::before{content:"接續：";color:var(--muted);font-size:11px;font-weight:800}
  .rebuild-editorial .rebuild-connection td:nth-child(3)::before{content:"例：";color:var(--muted);font-size:11px;font-weight:800}
  .rebuild-editorial .rebuild-compare td:nth-child(2)::before{content:"語感：";color:var(--muted);font-size:11px;font-weight:800}
  .rebuild-editorial .rebuild-compare td:nth-child(3)::before{content:"判斷：";color:var(--muted);font-size:11px;font-weight:800}
  .rebuild-editorial .rebuild-compare tr.current{border-top:2px solid var(--accent);border-bottom:2px solid var(--accent)}
}
@media(min-width:431px) and (max-width:900px){
  .rebuild-editorial .rebuild-prose{font-size:16px}
  .rebuild-editorial .rebuild-compare td:nth-child(1){width:155px}
  .rebuild-editorial .rebuild-compare td:nth-child(2){width:110px}
}

/* User-confirmed mobile sticky grammar title alignment. */
@media(max-width:430px){
  #grammar-identity .grammar-id-copy{align-items:center!important;text-align:center!important;}
  #grammar-identity .grammar-id-name,#grammar-identity .grammar-id-meaning{display:block;width:100%;text-align:center!important;}
}
/* User-confirmed article-section breathing room. */
.section.rebuild-editorial{
  padding-left:clamp(18px,3.5vw,40px)!important;
  padding-right:clamp(18px,3.5vw,40px)!important;
}
